File: | pyext/gammalib/app_wrap.cpp |
Location: | line 4778, column 5 |
Description: | Value stored to 'arg3' 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_GApplicationswig_types[0] swig_types[0] |
2941 | #define SWIGTYPE_p_GBaseswig_types[1] swig_types[1] |
2942 | #define SWIGTYPE_p_GChatterswig_types[2] swig_types[2] |
2943 | #define SWIGTYPE_p_GContainerswig_types[3] swig_types[3] |
2944 | #define SWIGTYPE_p_GLogswig_types[4] swig_types[4] |
2945 | #define SWIGTYPE_p_GParswig_types[5] swig_types[5] |
2946 | #define SWIGTYPE_p_GParsswig_types[6] swig_types[6] |
2947 | #define SWIGTYPE_p_charswig_types[7] swig_types[7] |
2948 | #define SWIGTYPE_p_p_charswig_types[8] swig_types[8] |
2949 | #define SWIGTYPE_p_std__invalid_argumentswig_types[9] swig_types[9] |
2950 | #define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_tswig_types[10] swig_types[10] |
2951 | #define SWIGTYPE_p_swig__SwigPyIteratorswig_types[11] swig_types[11] |
2952 | static swig_type_info *swig_types[13]; |
2953 | static swig_module_info swig_module = {swig_types, 12, 0, 0, 0, 0}; |
2954 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2955 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
2956 | |
2957 | /* -------- TYPES TABLE (END) -------- */ |
2958 | |
2959 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
2960 | # if !defined(SWIG_PYTHON_CLASSIC) |
2961 | # error "This python version requires swig to be run with the '-classic' option" |
2962 | # endif |
2963 | #endif |
2964 | |
2965 | /*----------------------------------------------- |
2966 | @(target):= _app.so |
2967 | ------------------------------------------------*/ |
2968 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2969 | # define SWIG_initinit_app PyInit__app |
2970 | |
2971 | #else |
2972 | # define SWIG_initinit_app init_app |
2973 | |
2974 | #endif |
2975 | #define SWIG_name"_app" "_app" |
2976 | |
2977 | #define SWIGVERSION0x020011 0x020011 |
2978 | #define SWIG_VERSION0x020011 SWIGVERSION0x020011 |
2979 | |
2980 | |
2981 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
2982 | #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)) |
2983 | |
2984 | |
2985 | #include <stdexcept> |
2986 | |
2987 | |
2988 | namespace swig { |
2989 | class SwigPtr_PyObject { |
2990 | protected: |
2991 | PyObject *_obj; |
2992 | |
2993 | public: |
2994 | SwigPtr_PyObject() :_obj(0) |
2995 | { |
2996 | } |
2997 | |
2998 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
2999 | { |
3000 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3001 | } |
3002 | |
3003 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3004 | { |
3005 | if (initial_ref) { |
3006 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3007 | } |
3008 | } |
3009 | |
3010 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3011 | { |
3012 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3013 | 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); |
3014 | _obj = item._obj; |
3015 | return *this; |
3016 | } |
3017 | |
3018 | ~SwigPtr_PyObject() |
3019 | { |
3020 | 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); |
3021 | } |
3022 | |
3023 | operator PyObject *() const |
3024 | { |
3025 | return _obj; |
3026 | } |
3027 | |
3028 | PyObject *operator->() const |
3029 | { |
3030 | return _obj; |
3031 | } |
3032 | }; |
3033 | } |
3034 | |
3035 | |
3036 | namespace swig { |
3037 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3038 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3039 | |
3040 | SwigVar_PyObject & operator = (PyObject* obj) |
3041 | { |
3042 | 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); |
3043 | _obj = obj; |
3044 | return *this; |
3045 | } |
3046 | }; |
3047 | } |
3048 | |
3049 | |
3050 | #include <stddef.h> |
3051 | #include "GException.hpp" |
3052 | #include "GTools.hpp" |
3053 | |
3054 | |
3055 | #include <stdexcept> |
3056 | |
3057 | |
3058 | #if defined(__GNUC__4) |
3059 | # if __GNUC__4 == 2 && __GNUC_MINOR <= 96 |
3060 | # define SWIG_STD_NOMODERN_STL |
3061 | # endif |
3062 | #endif |
3063 | |
3064 | |
3065 | #include <string> |
3066 | #include <stdexcept> |
3067 | #include <stddef.h> |
3068 | |
3069 | |
3070 | #include <string> |
3071 | |
3072 | |
3073 | #include <iostream> |
3074 | |
3075 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
3076 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj)) |
3077 | #else |
3078 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj)) |
3079 | #endif |
3080 | |
3081 | |
3082 | #include <stddef.h> |
3083 | |
3084 | |
3085 | namespace swig { |
3086 | struct stop_iteration { |
3087 | }; |
3088 | |
3089 | struct SwigPyIterator { |
3090 | private: |
3091 | SwigPtr_PyObject _seq; |
3092 | |
3093 | protected: |
3094 | SwigPyIterator(PyObject *seq) : _seq(seq) |
3095 | { |
3096 | } |
3097 | |
3098 | public: |
3099 | virtual ~SwigPyIterator() {} |
3100 | |
3101 | // Access iterator method, required by Python |
3102 | virtual PyObject *value() const = 0; |
3103 | |
3104 | // Forward iterator method, required by Python |
3105 | virtual SwigPyIterator *incr(size_t n = 1) = 0; |
3106 | |
3107 | // Backward iterator method, very common in C++, but not required in Python |
3108 | virtual SwigPyIterator *decr(size_t /*n*/ = 1) |
3109 | { |
3110 | throw stop_iteration(); |
3111 | } |
3112 | |
3113 | // Random access iterator methods, but not required in Python |
3114 | virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const |
3115 | { |
3116 | throw std::invalid_argument("operation not supported"); |
3117 | } |
3118 | |
3119 | virtual bool equal (const SwigPyIterator &/*x*/) const |
3120 | { |
3121 | throw std::invalid_argument("operation not supported"); |
3122 | } |
3123 | |
3124 | // C++ common/needed methods |
3125 | virtual SwigPyIterator *copy() const = 0; |
3126 | |
3127 | PyObject *next() |
3128 | { |
3129 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3130 | PyObject *obj = value(); |
3131 | incr(); |
3132 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3133 | return obj; |
3134 | } |
3135 | |
3136 | /* Make an alias for Python 3.x */ |
3137 | PyObject *__next__() |
3138 | { |
3139 | return next(); |
3140 | } |
3141 | |
3142 | PyObject *previous() |
3143 | { |
3144 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3145 | decr(); |
3146 | PyObject *obj = value(); |
3147 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3148 | return obj; |
3149 | } |
3150 | |
3151 | SwigPyIterator *advance(ptrdiff_t n) |
3152 | { |
3153 | return (n > 0) ? incr(n) : decr(-n); |
3154 | } |
3155 | |
3156 | bool operator == (const SwigPyIterator& x) const |
3157 | { |
3158 | return equal(x); |
3159 | } |
3160 | |
3161 | bool operator != (const SwigPyIterator& x) const |
3162 | { |
3163 | return ! operator==(x); |
3164 | } |
3165 | |
3166 | SwigPyIterator& operator += (ptrdiff_t n) |
3167 | { |
3168 | return *advance(n); |
3169 | } |
3170 | |
3171 | SwigPyIterator& operator -= (ptrdiff_t n) |
3172 | { |
3173 | return *advance(-n); |
3174 | } |
3175 | |
3176 | SwigPyIterator* operator + (ptrdiff_t n) const |
3177 | { |
3178 | return copy()->advance(n); |
3179 | } |
3180 | |
3181 | SwigPyIterator* operator - (ptrdiff_t n) const |
3182 | { |
3183 | return copy()->advance(-n); |
3184 | } |
3185 | |
3186 | ptrdiff_t operator - (const SwigPyIterator& x) const |
3187 | { |
3188 | return x.distance(*this); |
3189 | } |
3190 | |
3191 | static swig_type_info* descriptor() { |
3192 | static int init = 0; |
3193 | static swig_type_info* desc = 0; |
3194 | if (!init) { |
3195 | desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *" ); |
3196 | init = 1; |
3197 | } |
3198 | return desc; |
3199 | } |
3200 | }; |
3201 | |
3202 | #if defined(SWIGPYTHON_BUILTIN) |
3203 | inline PyObject* make_output_iterator_builtin (PyObject *pyself) |
3204 | { |
3205 | Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++); |
3206 | return pyself; |
3207 | } |
3208 | #endif |
3209 | } |
3210 | |
3211 | |
3212 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3213 | SWIG_AsVal_double (PyObject *obj, double *val) |
3214 | { |
3215 | int res = SWIG_TypeError-5; |
3216 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3217 | if (val) *val = PyFloat_AsDouble(obj); |
3218 | return SWIG_OK(0); |
3219 | } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3220 | if (val) *val = PyInt_AsLong(obj); |
3221 | return SWIG_OK(0); |
3222 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3223 | double v = PyLong_AsDouble(obj); |
3224 | if (!PyErr_Occurred()) { |
3225 | if (val) *val = v; |
3226 | return SWIG_OK(0); |
3227 | } else { |
3228 | PyErr_Clear(); |
3229 | } |
3230 | } |
3231 | #ifdef SWIG_PYTHON_CAST_MODE |
3232 | { |
3233 | int dispatch = 0; |
3234 | double d = PyFloat_AsDouble(obj); |
3235 | if (!PyErr_Occurred()) { |
3236 | if (val) *val = d; |
3237 | return SWIG_AddCast(SWIG_OK)((0)); |
3238 | } else { |
3239 | PyErr_Clear(); |
3240 | } |
3241 | if (!dispatch) { |
3242 | long v = PyLong_AsLong(obj); |
3243 | if (!PyErr_Occurred()) { |
3244 | if (val) *val = v; |
3245 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3246 | } else { |
3247 | PyErr_Clear(); |
3248 | } |
3249 | } |
3250 | } |
3251 | #endif |
3252 | return res; |
3253 | } |
3254 | |
3255 | |
3256 | #include <float.h> |
3257 | |
3258 | |
3259 | #include <math.h> |
3260 | |
3261 | |
3262 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3263 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3264 | double x = *d; |
3265 | if ((min <= x && x <= max)) { |
3266 | double fx = floor(x); |
3267 | double cx = ceil(x); |
3268 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3269 | if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) { |
3270 | errno(*__error()) = 0; |
3271 | } else { |
3272 | double summ, reps, diff; |
3273 | if (rd < x) { |
3274 | diff = x - rd; |
3275 | } else if (rd > x) { |
3276 | diff = rd - x; |
3277 | } else { |
3278 | return 1; |
3279 | } |
3280 | summ = rd + x; |
3281 | reps = diff/summ; |
3282 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3283 | *d = rd; |
3284 | return 1; |
3285 | } |
3286 | } |
3287 | } |
3288 | return 0; |
3289 | } |
3290 | |
3291 | |
3292 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3293 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3294 | { |
3295 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3296 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3297 | long v = PyInt_AsLong(obj); |
3298 | if (v >= 0) { |
3299 | if (val) *val = v; |
3300 | return SWIG_OK(0); |
3301 | } else { |
3302 | return SWIG_OverflowError-7; |
3303 | } |
3304 | } else |
3305 | #endif |
3306 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3307 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3308 | if (!PyErr_Occurred()) { |
3309 | if (val) *val = v; |
3310 | return SWIG_OK(0); |
3311 | } else { |
3312 | PyErr_Clear(); |
3313 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3314 | { |
3315 | long v = PyLong_AsLong(obj); |
3316 | if (!PyErr_Occurred()) { |
3317 | if (v < 0) { |
3318 | return SWIG_OverflowError-7; |
3319 | } |
3320 | } else { |
3321 | PyErr_Clear(); |
3322 | } |
3323 | } |
3324 | #endif |
3325 | } |
3326 | } |
3327 | #ifdef SWIG_PYTHON_CAST_MODE |
3328 | { |
3329 | int dispatch = 0; |
3330 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3331 | if (!PyErr_Occurred()) { |
3332 | if (val) *val = v; |
3333 | return SWIG_AddCast(SWIG_OK)((0)); |
3334 | } else { |
3335 | PyErr_Clear(); |
3336 | } |
3337 | if (!dispatch) { |
3338 | double d; |
3339 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3340 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3341 | if (val) *val = (unsigned long)(d); |
3342 | return res; |
3343 | } |
3344 | } |
3345 | } |
3346 | #endif |
3347 | return SWIG_TypeError-5; |
3348 | } |
3349 | |
3350 | |
3351 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3352 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
3353 | { |
3354 | unsigned long v; |
3355 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
3356 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
3357 | return res; |
3358 | } |
3359 | |
3360 | |
3361 | #define SWIG_From_longPyLong_FromLong PyLong_FromLong |
3362 | |
3363 | |
3364 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3365 | SWIG_From_ptrdiff_t (ptrdiff_t value) |
3366 | { |
3367 | return SWIG_From_longPyLong_FromLong (static_cast< long >(value)); |
3368 | } |
3369 | |
3370 | |
3371 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3372 | SWIG_From_bool (bool value) |
3373 | { |
3374 | return PyBool_FromLong(value ? 1 : 0); |
3375 | } |
3376 | |
3377 | |
3378 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3379 | SWIG_AsVal_long (PyObject *obj, long* val) |
3380 | { |
3381 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3382 | if (val) *val = PyInt_AsLong(obj); |
3383 | return SWIG_OK(0); |
3384 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3385 | long v = PyLong_AsLong(obj); |
3386 | if (!PyErr_Occurred()) { |
3387 | if (val) *val = v; |
3388 | return SWIG_OK(0); |
3389 | } else { |
3390 | PyErr_Clear(); |
3391 | } |
3392 | } |
3393 | #ifdef SWIG_PYTHON_CAST_MODE |
3394 | { |
3395 | int dispatch = 0; |
3396 | long v = PyInt_AsLong(obj); |
3397 | if (!PyErr_Occurred()) { |
3398 | if (val) *val = v; |
3399 | return SWIG_AddCast(SWIG_OK)((0)); |
3400 | } else { |
3401 | PyErr_Clear(); |
3402 | } |
3403 | if (!dispatch) { |
3404 | double d; |
3405 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3406 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3407 | if (val) *val = (long)(d); |
3408 | return res; |
3409 | } |
3410 | } |
3411 | } |
3412 | #endif |
3413 | return SWIG_TypeError-5; |
3414 | } |
3415 | |
3416 | |
3417 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3418 | SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) |
3419 | { |
3420 | long v; |
3421 | int res = SWIG_AsVal_long (obj, val ? &v : 0); |
3422 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v); |
3423 | return res; |
3424 | } |
3425 | |
3426 | |
3427 | #include <stdexcept> |
3428 | |
3429 | |
3430 | #include <algorithm> |
3431 | |
3432 | |
3433 | #include <vector> |
3434 | |
3435 | |
3436 | #include <utility> |
3437 | |
3438 | |
3439 | #include <map> |
3440 | #include <algorithm> |
3441 | #include <stdexcept> |
3442 | |
3443 | |
3444 | /* Put headers and other declarations here that are needed for compilation */ |
3445 | #include "GApplication.hpp" |
3446 | #include "GTools.hpp" |
3447 | |
3448 | |
3449 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3450 | SWIG_pchar_descriptor(void) |
3451 | { |
3452 | static int init = 0; |
3453 | static swig_type_info* info = 0; |
3454 | if (!init) { |
3455 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3456 | init = 1; |
3457 | } |
3458 | return info; |
3459 | } |
3460 | |
3461 | |
3462 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3463 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3464 | { |
3465 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3466 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3467 | #else |
3468 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3469 | #endif |
3470 | { |
3471 | char *cstr; Py_ssize_t len; |
3472 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3473 | if (!alloc && cptr) { |
3474 | /* We can't allow converting without allocation, since the internal |
3475 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3476 | a UTF-8 representation. |
3477 | TODO(bhy) More detailed explanation */ |
3478 | return SWIG_RuntimeError-3; |
3479 | } |
3480 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj); |
3481 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3482 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3483 | #else |
3484 | PyString_AsStringAndSize(obj, &cstr, &len); |
3485 | #endif |
3486 | if (cptr) { |
3487 | if (alloc) { |
3488 | /* |
3489 | In python the user should not be able to modify the inner |
3490 | string representation. To warranty that, if you define |
3491 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3492 | buffer is always returned. |
3493 | |
3494 | The default behavior is just to return the pointer value, |
3495 | so, be careful. |
3496 | */ |
3497 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3498 | if (*alloc != SWIG_OLDOBJ((0))) |
3499 | #else |
3500 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3501 | #endif |
3502 | { |
3503 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); |
3504 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3505 | } |
3506 | else { |
3507 | *cptr = cstr; |
3508 | *alloc = SWIG_OLDOBJ((0)); |
3509 | } |
3510 | } else { |
3511 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3512 | assert(0)((void)0); /* Should never reach here in Python 3 */ |
3513 | #endif |
3514 | *cptr = SWIG_Python_str_AsChar(obj); |
3515 | } |
3516 | } |
3517 | if (psize) *psize = len + 1; |
3518 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3519 | 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); |
3520 | #endif |
3521 | return SWIG_OK(0); |
3522 | } else { |
3523 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3524 | if (pchar_descriptor) { |
3525 | void* vptr = 0; |
3526 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3527 | if (cptr) *cptr = (char *) vptr; |
3528 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3529 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3530 | return SWIG_OK(0); |
3531 | } |
3532 | } |
3533 | } |
3534 | return SWIG_TypeError-5; |
3535 | } |
3536 | |
3537 | |
3538 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3539 | SWIG_AsPtr_std_string (PyObject * obj, std::string **val) |
3540 | { |
3541 | char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0)); |
3542 | if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc) ) >= 0)) { |
3543 | if (buf) { |
3544 | if (val) *val = new std::string(buf, size - 1); |
3545 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf; |
3546 | return SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3547 | } else { |
3548 | if (val) *val = 0; |
3549 | return SWIG_OLDOBJ((0)); |
3550 | } |
3551 | } else { |
3552 | static int init = 0; |
3553 | static swig_type_info* descriptor = 0; |
3554 | if (!init) { |
3555 | descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string" " *"); |
3556 | init = 1; |
3557 | } |
3558 | if (descriptor) { |
3559 | std::string *vptr; |
3560 | int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor , 0, 0); |
3561 | if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr; |
3562 | return res; |
3563 | } |
3564 | } |
3565 | return SWIG_ERROR(-1); |
3566 | } |
3567 | |
3568 | |
3569 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3570 | SWIG_AsArgcArgv(PyObject *input, |
3571 | swig_type_info *ppchar_info, |
3572 | size_t *argc, char ***argv, int *owner) |
3573 | { |
3574 | void *vptr; |
3575 | int res = SWIG_ConvertPtr(input, &vptr, ppchar_info, 0)SWIG_Python_ConvertPtrAndOwn(input, &vptr, ppchar_info, 0 , 0); |
3576 | if (!SWIG_IsOK(res)(res >= 0)) { |
3577 | int list = 0; |
3578 | PyErr_Clear(); |
3579 | list = PyList_Check(input)((((((PyObject*)(input))->ob_type))->tp_flags & ((1L <<25))) != 0); |
3580 | if (list || PyTuple_Check(input)((((((PyObject*)(input))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
3581 | size_t i = 0; |
3582 | size_t size = list ? PyList_Size(input) : PyTuple_Size(input); |
3583 | if (argc) *argc = size; |
3584 | if (argv) { |
3585 | *argv = (new char*[size + 1]); |
3586 | for (; i < size; ++i) { |
3587 | PyObject *obj = list ? PyList_GetItem(input,i) : PyTuple_GetItem(input,i); |
3588 | char *cptr = 0; size_t sz = 0; int alloc = 0; |
3589 | res = SWIG_AsCharPtrAndSize(obj, &cptr, &sz, &alloc); |
3590 | if (SWIG_IsOK(res)(res >= 0)) { |
3591 | if (cptr && sz) { |
3592 | (*argv)[i] = (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) ? cptr : reinterpret_cast< char* >(memcpy((new char[sz]), cptr, sizeof(char)*(sz))); |
3593 | } else { |
3594 | (*argv)[i] = 0; |
3595 | } |
3596 | } else { |
3597 | return SWIG_TypeError-5; |
3598 | } |
3599 | } |
3600 | (*argv)[i] = 0; |
3601 | if (owner) *owner = 1; |
3602 | } else { |
3603 | for (; i < size; ++i) { |
3604 | PyObject *obj = list ? PyList_GetItem(input,i) : PyTuple_GetItem(input,i); |
3605 | res = SWIG_AsCharPtrAndSize(obj, 0, 0, 0); |
3606 | if (!SWIG_IsOK(res)(res >= 0)) return SWIG_TypeError-5; |
3607 | } |
3608 | if (owner) *owner = 0; |
3609 | } |
3610 | return SWIG_OK(0); |
3611 | } else { |
3612 | return SWIG_TypeError-5; |
3613 | } |
3614 | } else { |
3615 | /* seems dangerous, but the user asked for it... */ |
3616 | size_t i = 0; |
3617 | if (argv) { while (*argv[i] != 0) ++i;} |
3618 | if (argc) *argc = i; |
3619 | if (owner) *owner = 0; |
3620 | return SWIG_OK(0); |
3621 | } |
3622 | } |
3623 | |
3624 | |
3625 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3626 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3627 | { |
3628 | if (carray) { |
3629 | if (size > INT_MAX2147483647) { |
3630 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3631 | return pchar_descriptor ? |
3632 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3633 | } else { |
3634 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3635 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size)); |
3636 | #else |
3637 | return PyString_FromStringAndSize(carray, static_cast< int >(size)); |
3638 | #endif |
3639 | } |
3640 | } else { |
3641 | return SWIG_Py_Void(); |
3642 | } |
3643 | } |
3644 | |
3645 | |
3646 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3647 | SWIG_From_std_string (const std::string& s) |
3648 | { |
3649 | return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
3650 | } |
3651 | |
3652 | |
3653 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
3654 | |
3655 | |
3656 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3657 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
3658 | { |
3659 | int r = PyObject_IsTrue(obj); |
3660 | if (r == -1) |
3661 | return SWIG_ERROR(-1); |
3662 | if (val) *val = r ? true : false; |
3663 | return SWIG_OK(0); |
3664 | } |
3665 | |
3666 | SWIGINTERNstatic __attribute__ ((__unused__)) GPar &GApplication___getitem__(GApplication *self,std::string const &name){ |
3667 | return (*self)[name]; |
3668 | } |
3669 | SWIGINTERNstatic __attribute__ ((__unused__)) void GApplication___setitem____SWIG_0(GApplication *self,std::string const &name,GPar const &val){ |
3670 | (*self)[name] = val; |
3671 | return; |
3672 | } |
3673 | |
3674 | #include <limits.h> |
3675 | #if !defined(SWIG_NO_LLONG_MAX) |
3676 | # if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3677 | # define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL |
3678 | # define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL) |
3679 | # define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL) |
3680 | # endif |
3681 | #endif |
3682 | |
3683 | |
3684 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3685 | SWIG_AsVal_int (PyObject * obj, int *val) |
3686 | { |
3687 | long v; |
3688 | int res = SWIG_AsVal_long (obj, &v); |
3689 | if (SWIG_IsOK(res)(res >= 0)) { |
3690 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3691 | return SWIG_OverflowError-7; |
3692 | } else { |
3693 | if (val) *val = static_cast< int >(v); |
3694 | } |
3695 | } |
3696 | return res; |
3697 | } |
3698 | |
3699 | SWIGINTERNstatic __attribute__ ((__unused__)) void GApplication___setitem____SWIG_1(GApplication *self,std::string const &name,int const &val){ |
3700 | (*self)[name].integer(val); |
3701 | return; |
3702 | } |
3703 | SWIGINTERNstatic __attribute__ ((__unused__)) void GApplication___setitem____SWIG_2(GApplication *self,std::string const &name,double const &val){ |
3704 | (*self)[name].real(val); |
3705 | return; |
3706 | } |
3707 | SWIGINTERNstatic __attribute__ ((__unused__)) void GApplication___setitem____SWIG_3(GApplication *self,std::string const &name,std::string const &val){ |
3708 | (*self)[name].value(val); |
3709 | return; |
3710 | } |
3711 | SWIGINTERNstatic __attribute__ ((__unused__)) GApplication GApplication_copy(GApplication *self){ |
3712 | return (*self); |
3713 | } |
3714 | |
3715 | /* Put headers and other declarations here that are needed for compilation */ |
3716 | #include "GLog.hpp" |
3717 | #include "GTools.hpp" |
3718 | |
3719 | |
3720 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3721 | SWIG_From_int (int value) |
3722 | { |
3723 | return PyInt_FromLong((long) value); |
3724 | } |
3725 | |
3726 | SWIGINTERNstatic __attribute__ ((__unused__)) GLog GLog_copy(GLog *self){ |
3727 | return (*self); |
3728 | } |
3729 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog___call____SWIG_0(GLog *self,GLog &log){ |
3730 | (*self) << log; |
3731 | } |
3732 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog___call____SWIG_1(GLog *self,std::string const &arg){ |
3733 | (*self) << arg; |
3734 | } |
3735 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog___call____SWIG_2(GLog *self,bool const &value){ |
3736 | (*self) << value; |
3737 | } |
3738 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog___call____SWIG_3(GLog *self,int const &value){ |
3739 | (*self) << value; |
3740 | } |
3741 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog___call____SWIG_4(GLog *self,double const &value){ |
3742 | (*self) << value; |
3743 | } |
3744 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog_parformat(GLog *self,std::string const &arg){ |
3745 | (*self) << gammalib::parformat(arg); |
3746 | } |
3747 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog_toupper(GLog *self,std::string const &arg){ |
3748 | (*self) << gammalib::toupper(arg); |
3749 | } |
3750 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog_tolower(GLog *self,std::string const &arg){ |
3751 | (*self) << gammalib::tolower(arg); |
3752 | } |
3753 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog_fill(GLog *self,std::string const &arg,int const &n){ |
3754 | (*self) << gammalib::fill(arg, n); |
3755 | } |
3756 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog_left(GLog *self,std::string const &arg,int const &n){ |
3757 | (*self) << gammalib::left(arg, n); |
3758 | } |
3759 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog_right(GLog *self,std::string const &arg,int const &n){ |
3760 | (*self) << gammalib::right(arg, n); |
3761 | } |
3762 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLog_center(GLog *self,std::string const &arg,int const &n){ |
3763 | (*self) << gammalib::center(arg, n); |
3764 | } |
3765 | |
3766 | /* Put headers and other declarations here that are needed for compilation */ |
3767 | #include "GPars.hpp" |
3768 | #include "GException.hpp" |
3769 | |
3770 | SWIGINTERNstatic __attribute__ ((__unused__)) GPar &GPars___getitem____SWIG_0(GPars *self,int const &index){ |
3771 | if (index >= 0 && index < self->size()) { |
3772 | return (*self)[index]; |
3773 | } |
3774 | else { |
3775 | throw GException::out_of_range("__getitem__(int)", index, self->size()); |
3776 | } |
3777 | } |
3778 | SWIGINTERNstatic __attribute__ ((__unused__)) GPar &GPars___getitem____SWIG_1(GPars *self,std::string const &name){ |
3779 | return (*self)[name]; |
3780 | } |
3781 | SWIGINTERNstatic __attribute__ ((__unused__)) void GPars___setitem____SWIG_0(GPars *self,int const &index,GPar const &par){ |
3782 | if (index>=0 && index < self->size()) { |
3783 | (*self)[index] = par; |
3784 | return; |
3785 | } |
3786 | else { |
3787 | throw GException::out_of_range("__setitem__(int)", index, self->size()); |
3788 | } |
3789 | } |
3790 | SWIGINTERNstatic __attribute__ ((__unused__)) void GPars___setitem____SWIG_1(GPars *self,std::string const &name,GPar const &par){ |
3791 | (*self)[name] = par; |
3792 | return; |
3793 | } |
3794 | SWIGINTERNstatic __attribute__ ((__unused__)) GPars GPars_copy(GPars *self){ |
3795 | return (*self); |
3796 | } |
3797 | |
3798 | /* Put headers and other declarations here that are needed for compilation */ |
3799 | #include "GPar.hpp" |
3800 | #include "GTools.hpp" |
3801 | |
3802 | SWIGINTERNstatic __attribute__ ((__unused__)) GPar GPar_copy(GPar *self){ |
3803 | return (*self); |
3804 | } |
3805 | #ifdef __cplusplus199711L |
3806 | extern "C" { |
3807 | #endif |
3808 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3809 | PyObject *resultobj = 0; |
3810 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3811 | void *argp1 = 0 ; |
3812 | int res1 = 0 ; |
3813 | PyObject * obj0 = 0 ; |
3814 | |
3815 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail; |
3816 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
3817 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3818 | 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); |
3819 | } |
3820 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3821 | delete arg1; |
3822 | resultobj = SWIG_Py_Void(); |
3823 | return resultobj; |
3824 | fail: |
3825 | return NULL__null; |
3826 | } |
3827 | |
3828 | |
3829 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3830 | PyObject *resultobj = 0; |
3831 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3832 | void *argp1 = 0 ; |
3833 | int res1 = 0 ; |
3834 | PyObject * obj0 = 0 ; |
3835 | PyObject *result = 0 ; |
3836 | |
3837 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail; |
3838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3839 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3840 | 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); |
3841 | } |
3842 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3843 | try { |
3844 | result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); |
3845 | } |
3846 | catch(swig::stop_iteration &_e) { |
3847 | { |
3848 | (void)_e; |
3849 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3850 | SWIG_failgoto fail; |
3851 | } |
3852 | } |
3853 | |
3854 | resultobj = result; |
3855 | return resultobj; |
3856 | fail: |
3857 | return NULL__null; |
3858 | } |
3859 | |
3860 | |
3861 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3862 | PyObject *resultobj = 0; |
3863 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3864 | size_t arg2 ; |
3865 | void *argp1 = 0 ; |
3866 | int res1 = 0 ; |
3867 | size_t val2 ; |
3868 | int ecode2 = 0 ; |
3869 | PyObject * obj0 = 0 ; |
3870 | PyObject * obj1 = 0 ; |
3871 | swig::SwigPyIterator *result = 0 ; |
3872 | |
3873 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail; |
3874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3875 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3876 | 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); |
3877 | } |
3878 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3879 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3880 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3881 | 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); |
3882 | } |
3883 | arg2 = static_cast< size_t >(val2); |
3884 | try { |
3885 | result = (swig::SwigPyIterator *)(arg1)->incr(arg2); |
3886 | } |
3887 | catch(swig::stop_iteration &_e) { |
3888 | { |
3889 | (void)_e; |
3890 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3891 | SWIG_failgoto fail; |
3892 | } |
3893 | } |
3894 | |
3895 | 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[11], 0 | 0); |
3896 | return resultobj; |
3897 | fail: |
3898 | return NULL__null; |
3899 | } |
3900 | |
3901 | |
3902 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3903 | PyObject *resultobj = 0; |
3904 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3905 | void *argp1 = 0 ; |
3906 | int res1 = 0 ; |
3907 | PyObject * obj0 = 0 ; |
3908 | swig::SwigPyIterator *result = 0 ; |
3909 | |
3910 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail; |
3911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3912 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3913 | 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); |
3914 | } |
3915 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3916 | try { |
3917 | result = (swig::SwigPyIterator *)(arg1)->incr(); |
3918 | } |
3919 | catch(swig::stop_iteration &_e) { |
3920 | { |
3921 | (void)_e; |
3922 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3923 | SWIG_failgoto fail; |
3924 | } |
3925 | } |
3926 | |
3927 | 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[11], 0 | 0); |
3928 | return resultobj; |
3929 | fail: |
3930 | return NULL__null; |
3931 | } |
3932 | |
3933 | |
3934 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { |
3935 | int argc; |
3936 | PyObject *argv[3]; |
3937 | int ii; |
3938 | |
3939 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3940 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3941 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3942 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3943 | } |
3944 | if (argc == 1) { |
3945 | int _v; |
3946 | void *vptr = 0; |
3947 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
3948 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3949 | if (_v) { |
3950 | return _wrap_SwigPyIterator_incr__SWIG_1(self, args); |
3951 | } |
3952 | } |
3953 | if (argc == 2) { |
3954 | int _v; |
3955 | void *vptr = 0; |
3956 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
3957 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3958 | if (_v) { |
3959 | { |
3960 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3961 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3962 | } |
3963 | if (_v) { |
3964 | return _wrap_SwigPyIterator_incr__SWIG_0(self, args); |
3965 | } |
3966 | } |
3967 | } |
3968 | |
3969 | fail: |
3970 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" |
3971 | " Possible C/C++ prototypes are:\n" |
3972 | " swig::SwigPyIterator::incr(size_t)\n" |
3973 | " swig::SwigPyIterator::incr()\n"); |
3974 | return 0; |
3975 | } |
3976 | |
3977 | |
3978 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3979 | PyObject *resultobj = 0; |
3980 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3981 | size_t arg2 ; |
3982 | void *argp1 = 0 ; |
3983 | int res1 = 0 ; |
3984 | size_t val2 ; |
3985 | int ecode2 = 0 ; |
3986 | PyObject * obj0 = 0 ; |
3987 | PyObject * obj1 = 0 ; |
3988 | swig::SwigPyIterator *result = 0 ; |
3989 | |
3990 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail; |
3991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
3992 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3993 | 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); |
3994 | } |
3995 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3996 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3997 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3998 | 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); |
3999 | } |
4000 | arg2 = static_cast< size_t >(val2); |
4001 | try { |
4002 | result = (swig::SwigPyIterator *)(arg1)->decr(arg2); |
4003 | } |
4004 | catch(swig::stop_iteration &_e) { |
4005 | { |
4006 | (void)_e; |
4007 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4008 | SWIG_failgoto fail; |
4009 | } |
4010 | } |
4011 | |
4012 | 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[11], 0 | 0); |
4013 | return resultobj; |
4014 | fail: |
4015 | return NULL__null; |
4016 | } |
4017 | |
4018 | |
4019 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4020 | PyObject *resultobj = 0; |
4021 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4022 | void *argp1 = 0 ; |
4023 | int res1 = 0 ; |
4024 | PyObject * obj0 = 0 ; |
4025 | swig::SwigPyIterator *result = 0 ; |
4026 | |
4027 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail; |
4028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4029 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4030 | 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); |
4031 | } |
4032 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4033 | try { |
4034 | result = (swig::SwigPyIterator *)(arg1)->decr(); |
4035 | } |
4036 | catch(swig::stop_iteration &_e) { |
4037 | { |
4038 | (void)_e; |
4039 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4040 | SWIG_failgoto fail; |
4041 | } |
4042 | } |
4043 | |
4044 | 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[11], 0 | 0); |
4045 | return resultobj; |
4046 | fail: |
4047 | return NULL__null; |
4048 | } |
4049 | |
4050 | |
4051 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { |
4052 | int argc; |
4053 | PyObject *argv[3]; |
4054 | int ii; |
4055 | |
4056 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4057 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4058 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4059 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4060 | } |
4061 | if (argc == 1) { |
4062 | int _v; |
4063 | void *vptr = 0; |
4064 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4065 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4066 | if (_v) { |
4067 | return _wrap_SwigPyIterator_decr__SWIG_1(self, args); |
4068 | } |
4069 | } |
4070 | if (argc == 2) { |
4071 | int _v; |
4072 | void *vptr = 0; |
4073 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4074 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4075 | if (_v) { |
4076 | { |
4077 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
4078 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4079 | } |
4080 | if (_v) { |
4081 | return _wrap_SwigPyIterator_decr__SWIG_0(self, args); |
4082 | } |
4083 | } |
4084 | } |
4085 | |
4086 | fail: |
4087 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" |
4088 | " Possible C/C++ prototypes are:\n" |
4089 | " swig::SwigPyIterator::decr(size_t)\n" |
4090 | " swig::SwigPyIterator::decr()\n"); |
4091 | return 0; |
4092 | } |
4093 | |
4094 | |
4095 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4096 | PyObject *resultobj = 0; |
4097 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4098 | swig::SwigPyIterator *arg2 = 0 ; |
4099 | void *argp1 = 0 ; |
4100 | int res1 = 0 ; |
4101 | void *argp2 = 0 ; |
4102 | int res2 = 0 ; |
4103 | PyObject * obj0 = 0 ; |
4104 | PyObject * obj1 = 0 ; |
4105 | ptrdiff_t result; |
4106 | |
4107 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail; |
4108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4109 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4110 | 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); |
4111 | } |
4112 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4113 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4114 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4115 | 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); |
4116 | } |
4117 | if (!argp2) { |
4118 | 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 ); |
4119 | } |
4120 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4121 | try { |
4122 | result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); |
4123 | } |
4124 | catch(std::invalid_argument &_e) { |
4125 | 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[ 9]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[9], 0x1)); SWIG_failgoto fail; |
4126 | } |
4127 | |
4128 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4129 | return resultobj; |
4130 | fail: |
4131 | return NULL__null; |
4132 | } |
4133 | |
4134 | |
4135 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4136 | PyObject *resultobj = 0; |
4137 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4138 | swig::SwigPyIterator *arg2 = 0 ; |
4139 | void *argp1 = 0 ; |
4140 | int res1 = 0 ; |
4141 | void *argp2 = 0 ; |
4142 | int res2 = 0 ; |
4143 | PyObject * obj0 = 0 ; |
4144 | PyObject * obj1 = 0 ; |
4145 | bool result; |
4146 | |
4147 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail; |
4148 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4149 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4150 | 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); |
4151 | } |
4152 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4153 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4154 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4155 | 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); |
4156 | } |
4157 | if (!argp2) { |
4158 | 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 ); |
4159 | } |
4160 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4161 | try { |
4162 | result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); |
4163 | } |
4164 | catch(std::invalid_argument &_e) { |
4165 | 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[ 9]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[9], 0x1)); SWIG_failgoto fail; |
4166 | } |
4167 | |
4168 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4169 | return resultobj; |
4170 | fail: |
4171 | return NULL__null; |
4172 | } |
4173 | |
4174 | |
4175 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4176 | PyObject *resultobj = 0; |
4177 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4178 | void *argp1 = 0 ; |
4179 | int res1 = 0 ; |
4180 | PyObject * obj0 = 0 ; |
4181 | swig::SwigPyIterator *result = 0 ; |
4182 | |
4183 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail; |
4184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4185 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4186 | 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); |
4187 | } |
4188 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4189 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); |
4190 | 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[11], 0x1 | 0); |
4191 | return resultobj; |
4192 | fail: |
4193 | return NULL__null; |
4194 | } |
4195 | |
4196 | |
4197 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4198 | PyObject *resultobj = 0; |
4199 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4200 | void *argp1 = 0 ; |
4201 | int res1 = 0 ; |
4202 | PyObject * obj0 = 0 ; |
4203 | PyObject *result = 0 ; |
4204 | |
4205 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail; |
4206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4207 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4208 | 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); |
4209 | } |
4210 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4211 | try { |
4212 | result = (PyObject *)(arg1)->next(); |
4213 | } |
4214 | catch(swig::stop_iteration &_e) { |
4215 | { |
4216 | (void)_e; |
4217 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4218 | SWIG_failgoto fail; |
4219 | } |
4220 | } |
4221 | |
4222 | resultobj = result; |
4223 | return resultobj; |
4224 | fail: |
4225 | return NULL__null; |
4226 | } |
4227 | |
4228 | |
4229 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(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 | PyObject *result = 0 ; |
4236 | |
4237 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail; |
4238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4239 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4240 | 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); |
4241 | } |
4242 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4243 | try { |
4244 | result = (PyObject *)(arg1)->__next__(); |
4245 | } |
4246 | catch(swig::stop_iteration &_e) { |
4247 | { |
4248 | (void)_e; |
4249 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4250 | SWIG_failgoto fail; |
4251 | } |
4252 | } |
4253 | |
4254 | resultobj = result; |
4255 | return resultobj; |
4256 | fail: |
4257 | return NULL__null; |
4258 | } |
4259 | |
4260 | |
4261 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4262 | PyObject *resultobj = 0; |
4263 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4264 | void *argp1 = 0 ; |
4265 | int res1 = 0 ; |
4266 | PyObject * obj0 = 0 ; |
4267 | PyObject *result = 0 ; |
4268 | |
4269 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail; |
4270 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4271 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4272 | 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); |
4273 | } |
4274 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4275 | try { |
4276 | result = (PyObject *)(arg1)->previous(); |
4277 | } |
4278 | catch(swig::stop_iteration &_e) { |
4279 | { |
4280 | (void)_e; |
4281 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4282 | SWIG_failgoto fail; |
4283 | } |
4284 | } |
4285 | |
4286 | resultobj = result; |
4287 | return resultobj; |
4288 | fail: |
4289 | return NULL__null; |
4290 | } |
4291 | |
4292 | |
4293 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4294 | PyObject *resultobj = 0; |
4295 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4296 | ptrdiff_t arg2 ; |
4297 | void *argp1 = 0 ; |
4298 | int res1 = 0 ; |
4299 | ptrdiff_t val2 ; |
4300 | int ecode2 = 0 ; |
4301 | PyObject * obj0 = 0 ; |
4302 | PyObject * obj1 = 0 ; |
4303 | swig::SwigPyIterator *result = 0 ; |
4304 | |
4305 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail; |
4306 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4307 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4308 | 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); |
4309 | } |
4310 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4311 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4312 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4313 | 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); |
4314 | } |
4315 | arg2 = static_cast< ptrdiff_t >(val2); |
4316 | try { |
4317 | result = (swig::SwigPyIterator *)(arg1)->advance(arg2); |
4318 | } |
4319 | catch(swig::stop_iteration &_e) { |
4320 | { |
4321 | (void)_e; |
4322 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4323 | SWIG_failgoto fail; |
4324 | } |
4325 | } |
4326 | |
4327 | 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[11], 0 | 0); |
4328 | return resultobj; |
4329 | fail: |
4330 | return NULL__null; |
4331 | } |
4332 | |
4333 | |
4334 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4335 | PyObject *resultobj = 0; |
4336 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4337 | swig::SwigPyIterator *arg2 = 0 ; |
4338 | void *argp1 = 0 ; |
4339 | int res1 = 0 ; |
4340 | void *argp2 = 0 ; |
4341 | int res2 = 0 ; |
4342 | PyObject * obj0 = 0 ; |
4343 | PyObject * obj1 = 0 ; |
4344 | bool result; |
4345 | |
4346 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
4347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4348 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4349 | 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); |
4350 | } |
4351 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4352 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4353 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4354 | 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); |
4355 | } |
4356 | if (!argp2) { |
4357 | 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 ); |
4358 | } |
4359 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4360 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); |
4361 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4362 | return resultobj; |
4363 | fail: |
4364 | return NULL__null; |
4365 | } |
4366 | |
4367 | |
4368 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4369 | PyObject *resultobj = 0; |
4370 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4371 | swig::SwigPyIterator *arg2 = 0 ; |
4372 | void *argp1 = 0 ; |
4373 | int res1 = 0 ; |
4374 | void *argp2 = 0 ; |
4375 | int res2 = 0 ; |
4376 | PyObject * obj0 = 0 ; |
4377 | PyObject * obj1 = 0 ; |
4378 | bool result; |
4379 | |
4380 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
4381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4382 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4383 | 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); |
4384 | } |
4385 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4386 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4387 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4388 | 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); |
4389 | } |
4390 | if (!argp2) { |
4391 | 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 ); |
4392 | } |
4393 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4394 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); |
4395 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4396 | return resultobj; |
4397 | fail: |
4398 | return NULL__null; |
4399 | } |
4400 | |
4401 | |
4402 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4403 | PyObject *resultobj = 0; |
4404 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4405 | ptrdiff_t arg2 ; |
4406 | void *argp1 = 0 ; |
4407 | int res1 = 0 ; |
4408 | ptrdiff_t val2 ; |
4409 | int ecode2 = 0 ; |
4410 | PyObject * obj0 = 0 ; |
4411 | PyObject * obj1 = 0 ; |
4412 | swig::SwigPyIterator *result = 0 ; |
4413 | |
4414 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail; |
4415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
4416 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4417 | 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); |
4418 | } |
4419 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4420 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4421 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4422 | 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); |
4423 | } |
4424 | arg2 = static_cast< ptrdiff_t >(val2); |
4425 | try { |
4426 | result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); |
4427 | } |
4428 | catch(swig::stop_iteration &_e) { |
4429 | { |
4430 | (void)_e; |
4431 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4432 | SWIG_failgoto fail; |
4433 | } |
4434 | } |
4435 | |
4436 | 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[11], 0x1 | 0); |
4437 | return resultobj; |
4438 | fail: |
4439 | return NULL__null; |
4440 | } |
4441 | |
4442 | |
4443 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4444 | PyObject *resultobj = 0; |
4445 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4446 | ptrdiff_t arg2 ; |
4447 | void *argp1 = 0 ; |
4448 | int res1 = 0 ; |
4449 | ptrdiff_t val2 ; |
4450 | int ecode2 = 0 ; |
4451 | PyObject * obj0 = 0 ; |
4452 | PyObject * obj1 = 0 ; |
4453 | swig::SwigPyIterator *result = 0 ; |
4454 | |
4455 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail; |
4456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
4457 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4458 | 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); |
4459 | } |
4460 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4461 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4462 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4463 | 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); |
4464 | } |
4465 | arg2 = static_cast< ptrdiff_t >(val2); |
4466 | try { |
4467 | result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); |
4468 | } |
4469 | catch(swig::stop_iteration &_e) { |
4470 | { |
4471 | (void)_e; |
4472 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4473 | SWIG_failgoto fail; |
4474 | } |
4475 | } |
4476 | |
4477 | 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[11], 0x1 | 0); |
4478 | return resultobj; |
4479 | fail: |
4480 | return NULL__null; |
4481 | } |
4482 | |
4483 | |
4484 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4485 | PyObject *resultobj = 0; |
4486 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4487 | ptrdiff_t arg2 ; |
4488 | void *argp1 = 0 ; |
4489 | int res1 = 0 ; |
4490 | ptrdiff_t val2 ; |
4491 | int ecode2 = 0 ; |
4492 | PyObject * obj0 = 0 ; |
4493 | PyObject * obj1 = 0 ; |
4494 | swig::SwigPyIterator *result = 0 ; |
4495 | |
4496 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail; |
4497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4498 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4499 | 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); |
4500 | } |
4501 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4502 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4503 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4504 | 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); |
4505 | } |
4506 | arg2 = static_cast< ptrdiff_t >(val2); |
4507 | try { |
4508 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); |
4509 | } |
4510 | catch(swig::stop_iteration &_e) { |
4511 | { |
4512 | (void)_e; |
4513 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4514 | SWIG_failgoto fail; |
4515 | } |
4516 | } |
4517 | |
4518 | 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[11], 0x1 | 0); |
4519 | return resultobj; |
4520 | fail: |
4521 | return NULL__null; |
4522 | } |
4523 | |
4524 | |
4525 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4526 | PyObject *resultobj = 0; |
4527 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4528 | ptrdiff_t arg2 ; |
4529 | void *argp1 = 0 ; |
4530 | int res1 = 0 ; |
4531 | ptrdiff_t val2 ; |
4532 | int ecode2 = 0 ; |
4533 | PyObject * obj0 = 0 ; |
4534 | PyObject * obj1 = 0 ; |
4535 | swig::SwigPyIterator *result = 0 ; |
4536 | |
4537 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4539 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4540 | 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); |
4541 | } |
4542 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4543 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4544 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4545 | 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); |
4546 | } |
4547 | arg2 = static_cast< ptrdiff_t >(val2); |
4548 | try { |
4549 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); |
4550 | } |
4551 | catch(swig::stop_iteration &_e) { |
4552 | { |
4553 | (void)_e; |
4554 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4555 | SWIG_failgoto fail; |
4556 | } |
4557 | } |
4558 | |
4559 | 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[11], 0x1 | 0); |
4560 | return resultobj; |
4561 | fail: |
4562 | return NULL__null; |
4563 | } |
4564 | |
4565 | |
4566 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4567 | PyObject *resultobj = 0; |
4568 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4569 | swig::SwigPyIterator *arg2 = 0 ; |
4570 | void *argp1 = 0 ; |
4571 | int res1 = 0 ; |
4572 | void *argp2 = 0 ; |
4573 | int res2 = 0 ; |
4574 | PyObject * obj0 = 0 ; |
4575 | PyObject * obj1 = 0 ; |
4576 | ptrdiff_t result; |
4577 | |
4578 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
4580 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4581 | 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); |
4582 | } |
4583 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4584 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
4585 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4586 | 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); |
4587 | } |
4588 | if (!argp2) { |
4589 | 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 ); |
4590 | } |
4591 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4592 | result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); |
4593 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4594 | return resultobj; |
4595 | fail: |
4596 | return NULL__null; |
4597 | } |
4598 | |
4599 | |
4600 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { |
4601 | int argc; |
4602 | PyObject *argv[3]; |
4603 | int ii; |
4604 | |
4605 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4606 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4607 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4608 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4609 | } |
4610 | if (argc == 2) { |
4611 | int _v; |
4612 | void *vptr = 0; |
4613 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4614 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4615 | if (_v) { |
4616 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[11], 0, 0 ); |
4617 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4618 | if (_v) { |
4619 | return _wrap_SwigPyIterator___sub____SWIG_1(self, args); |
4620 | } |
4621 | } |
4622 | } |
4623 | if (argc == 2) { |
4624 | int _v; |
4625 | void *vptr = 0; |
4626 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
4627 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4628 | if (_v) { |
4629 | { |
4630 | int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null); |
4631 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4632 | } |
4633 | if (_v) { |
4634 | return _wrap_SwigPyIterator___sub____SWIG_0(self, args); |
4635 | } |
4636 | } |
4637 | } |
4638 | |
4639 | fail: |
4640 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
4641 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
4642 | } |
4643 | |
4644 | |
4645 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4646 | PyObject *obj; |
4647 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4648 | SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4649 | return SWIG_Py_Void(); |
4650 | } |
4651 | |
4652 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GApplication__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4653 | PyObject *resultobj = 0; |
4654 | GApplication *result = 0 ; |
4655 | |
4656 | if (!PyArg_ParseTuple(args,(char *)":new_GApplication")) SWIG_failgoto fail; |
4657 | { |
4658 | try { |
4659 | result = (GApplication *)new GApplication(); |
4660 | } |
4661 | catch (const GException::out_of_range& e) { |
4662 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4663 | } |
4664 | catch (const GExceptionHandler& e) { |
4665 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4666 | } |
4667 | catch (const std::exception& e) { |
4668 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4669 | } |
4670 | } |
4671 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GApplication, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[0], (( 0x1 << 1) | 0x1) | 0); |
4672 | return resultobj; |
4673 | fail: |
4674 | return NULL__null; |
4675 | } |
4676 | |
4677 | |
4678 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GApplication__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4679 | PyObject *resultobj = 0; |
4680 | std::string *arg1 = 0 ; |
4681 | std::string *arg2 = 0 ; |
4682 | int res1 = SWIG_OLDOBJ((0)) ; |
4683 | int res2 = SWIG_OLDOBJ((0)) ; |
4684 | PyObject * obj0 = 0 ; |
4685 | PyObject * obj1 = 0 ; |
4686 | GApplication *result = 0 ; |
4687 | |
4688 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GApplication",&obj0,&obj1)) SWIG_failgoto fail; |
4689 | { |
4690 | std::string *ptr = (std::string *)0; |
4691 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4692 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
4694 | } |
4695 | if (!ptr) { |
4696 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
4697 | } |
4698 | arg1 = ptr; |
4699 | } |
4700 | { |
4701 | std::string *ptr = (std::string *)0; |
4702 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
4703 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4704 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
4705 | } |
4706 | if (!ptr) { |
4707 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
4708 | } |
4709 | arg2 = ptr; |
4710 | } |
4711 | { |
4712 | try { |
4713 | result = (GApplication *)new GApplication((std::string const &)*arg1,(std::string const &)*arg2); |
4714 | } |
4715 | catch (const GException::out_of_range& e) { |
4716 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4717 | } |
4718 | catch (const GExceptionHandler& e) { |
4719 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4720 | } |
4721 | catch (const std::exception& e) { |
4722 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4723 | } |
4724 | } |
4725 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GApplication, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[0], (( 0x1 << 1) | 0x1) | 0); |
4726 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4727 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
4728 | return resultobj; |
4729 | fail: |
4730 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4731 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
4732 | return NULL__null; |
4733 | } |
4734 | |
4735 | |
4736 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GApplication__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4737 | PyObject *resultobj = 0; |
4738 | std::string *arg1 = 0 ; |
4739 | std::string *arg2 = 0 ; |
4740 | int arg3 ; |
4741 | char **arg4 = (char **) 0 ; |
4742 | int res1 = SWIG_OLDOBJ((0)) ; |
4743 | int res2 = SWIG_OLDOBJ((0)) ; |
4744 | int res3 ; |
4745 | char **argv3 = 0 ; |
4746 | size_t argc3 = 0 ; |
4747 | int owner3 = 0 ; |
4748 | PyObject * obj0 = 0 ; |
4749 | PyObject * obj1 = 0 ; |
4750 | PyObject * obj2 = 0 ; |
4751 | GApplication *result = 0 ; |
4752 | |
4753 | if (!PyArg_ParseTuple(args,(char *)"OOO:new_GApplication",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
4754 | { |
4755 | std::string *ptr = (std::string *)0; |
4756 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4757 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
4759 | } |
4760 | if (!ptr) { |
4761 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GApplication" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
4762 | } |
4763 | arg1 = ptr; |
4764 | } |
4765 | { |
4766 | std::string *ptr = (std::string *)0; |
4767 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
4768 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4769 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
4770 | } |
4771 | if (!ptr) { |
4772 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GApplication" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
4773 | } |
4774 | arg2 = ptr; |
4775 | } |
4776 | res3 = SWIG_AsArgcArgv(obj2, SWIGTYPE_p_p_charswig_types[8], &argc3, &argv3, &owner3); |
4777 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
4778 | arg3 = 0; arg4 = 0; |
Value stored to 'arg3' is never read | |
4779 | SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "new_GApplication" "', argument " "3"" of type '" "int ARGC, char **ARGV""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((-5 != (- 1)) ? -5 : -5)), "in method '" "new_GApplication" "', argument " "3"" of type '" "int ARGC, char **ARGV""'"); goto fail; } while (0); |
4780 | } else { |
4781 | arg3 = static_cast< int >(argc3); |
4782 | arg4 = static_cast< char ** >(argv3); |
4783 | } |
4784 | { |
4785 | try { |
4786 | result = (GApplication *)new GApplication((std::string const &)*arg1,(std::string const &)*arg2,arg3,arg4); |
4787 | } |
4788 | catch (const GException::out_of_range& e) { |
4789 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4790 | } |
4791 | catch (const GExceptionHandler& e) { |
4792 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4793 | } |
4794 | catch (const std::exception& e) { |
4795 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4796 | } |
4797 | } |
4798 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GApplication, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[0], (( 0x1 << 1) | 0x1) | 0); |
4799 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4800 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
4801 | if (owner3) { |
4802 | size_t i = argc3; |
4803 | while (i) { |
4804 | delete[] argv3[--i]; |
4805 | } |
4806 | delete[] argv3; |
4807 | } |
4808 | return resultobj; |
4809 | fail: |
4810 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4811 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
4812 | if (owner3) { |
4813 | size_t i = argc3; |
4814 | while (i) { |
4815 | delete[] argv3[--i]; |
4816 | } |
4817 | delete[] argv3; |
4818 | } |
4819 | return NULL__null; |
4820 | } |
4821 | |
4822 | |
4823 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GApplication__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4824 | PyObject *resultobj = 0; |
4825 | GApplication *arg1 = 0 ; |
4826 | void *argp1 = 0 ; |
4827 | int res1 = 0 ; |
4828 | PyObject * obj0 = 0 ; |
4829 | GApplication *result = 0 ; |
4830 | |
4831 | if (!PyArg_ParseTuple(args,(char *)"O:new_GApplication",&obj0)) SWIG_failgoto fail; |
4832 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GApplication, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
4833 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GApplication" "', argument " "1"" of type '" "GApplication const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GApplication" "', argument " "1"" of type '" "GApplication const &""'"); goto fail; } while(0); |
4835 | } |
4836 | if (!argp1) { |
4837 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GApplication" "', argument " "1"" of type '" "GApplication const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GApplication" "', argument " "1"" of type '" "GApplication const &""'"); goto fail; } while(0); |
4838 | } |
4839 | arg1 = reinterpret_cast< GApplication * >(argp1); |
4840 | { |
4841 | try { |
4842 | result = (GApplication *)new GApplication((GApplication const &)*arg1); |
4843 | } |
4844 | catch (const GException::out_of_range& e) { |
4845 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4846 | } |
4847 | catch (const GExceptionHandler& e) { |
4848 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4849 | } |
4850 | catch (const std::exception& e) { |
4851 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4852 | } |
4853 | } |
4854 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GApplication, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[0], (( 0x1 << 1) | 0x1) | 0); |
4855 | return resultobj; |
4856 | fail: |
4857 | return NULL__null; |
4858 | } |
4859 | |
4860 | |
4861 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GApplication(PyObject *self, PyObject *args) { |
4862 | int argc; |
4863 | PyObject *argv[4]; |
4864 | int ii; |
4865 | |
4866 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4867 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4868 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
4869 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4870 | } |
4871 | if (argc == 0) { |
4872 | return _wrap_new_GApplication__SWIG_0(self, args); |
4873 | } |
4874 | if (argc == 1) { |
4875 | int _v; |
4876 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GApplication, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[0], 0, 0); |
4877 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4878 | if (_v) { |
4879 | return _wrap_new_GApplication__SWIG_3(self, args); |
4880 | } |
4881 | } |
4882 | if (argc == 2) { |
4883 | int _v; |
4884 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
4885 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4886 | if (_v) { |
4887 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
4888 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4889 | if (_v) { |
4890 | return _wrap_new_GApplication__SWIG_1(self, args); |
4891 | } |
4892 | } |
4893 | } |
4894 | if (argc == 3) { |
4895 | int _v; |
4896 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
4897 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4898 | if (_v) { |
4899 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
4900 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4901 | if (_v) { |
4902 | { |
4903 | int res = SWIG_AsArgcArgv(argv[2], SWIGTYPE_p_p_charswig_types[8], 0, 0, 0); |
4904 | _v = SWIG_IsOK(res)(res >= 0); |
4905 | } |
4906 | if (_v) { |
4907 | if (argc <= 3) { |
4908 | return _wrap_new_GApplication__SWIG_2(self, args); |
4909 | } |
4910 | return _wrap_new_GApplication__SWIG_2(self, args); |
4911 | } |
4912 | } |
4913 | } |
4914 | } |
4915 | |
4916 | fail: |
4917 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GApplication'.\n" |
4918 | " Possible C/C++ prototypes are:\n" |
4919 | " GApplication::GApplication()\n" |
4920 | " GApplication::GApplication(std::string const &,std::string const &)\n" |
4921 | " GApplication::GApplication(std::string const &,std::string const &,int,char **)\n" |
4922 | " GApplication::GApplication(GApplication const &)\n"); |
4923 | return 0; |
4924 | } |
4925 | |
4926 | |
4927 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GApplication(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4928 | PyObject *resultobj = 0; |
4929 | GApplication *arg1 = (GApplication *) 0 ; |
4930 | void *argp1 = 0 ; |
4931 | int res1 = 0 ; |
4932 | PyObject * obj0 = 0 ; |
4933 | |
4934 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GApplication",&obj0)) SWIG_failgoto fail; |
4935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0x1 | 0, 0); |
4936 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GApplication" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GApplication" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
4938 | } |
4939 | arg1 = reinterpret_cast< GApplication * >(argp1); |
4940 | { |
4941 | try { |
4942 | delete arg1; |
4943 | } |
4944 | catch (const GException::out_of_range& e) { |
4945 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4946 | } |
4947 | catch (const GExceptionHandler& e) { |
4948 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4949 | } |
4950 | catch (const std::exception& e) { |
4951 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4952 | } |
4953 | } |
4954 | resultobj = SWIG_Py_Void(); |
4955 | return resultobj; |
4956 | fail: |
4957 | return NULL__null; |
4958 | } |
4959 | |
4960 | |
4961 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4962 | PyObject *resultobj = 0; |
4963 | GApplication *arg1 = (GApplication *) 0 ; |
4964 | void *argp1 = 0 ; |
4965 | int res1 = 0 ; |
4966 | PyObject * obj0 = 0 ; |
4967 | |
4968 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_clear",&obj0)) SWIG_failgoto fail; |
4969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
4970 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_clear" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_clear" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
4972 | } |
4973 | arg1 = reinterpret_cast< GApplication * >(argp1); |
4974 | { |
4975 | try { |
4976 | (arg1)->clear(); |
4977 | } |
4978 | catch (const GException::out_of_range& e) { |
4979 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4980 | } |
4981 | catch (const GExceptionHandler& e) { |
4982 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4983 | } |
4984 | catch (const std::exception& e) { |
4985 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4986 | } |
4987 | } |
4988 | resultobj = SWIG_Py_Void(); |
4989 | return resultobj; |
4990 | fail: |
4991 | return NULL__null; |
4992 | } |
4993 | |
4994 | |
4995 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4996 | PyObject *resultobj = 0; |
4997 | GApplication *arg1 = (GApplication *) 0 ; |
4998 | void *argp1 = 0 ; |
4999 | int res1 = 0 ; |
5000 | PyObject * obj0 = 0 ; |
5001 | GApplication *result = 0 ; |
5002 | |
5003 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_clone",&obj0)) SWIG_failgoto fail; |
5004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5005 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_clone" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_clone" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5007 | } |
5008 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5009 | { |
5010 | try { |
5011 | result = (GApplication *)((GApplication const *)arg1)->clone(); |
5012 | } |
5013 | catch (const GException::out_of_range& e) { |
5014 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5015 | } |
5016 | catch (const GExceptionHandler& e) { |
5017 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5018 | } |
5019 | catch (const std::exception& e) { |
5020 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5021 | } |
5022 | } |
5023 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[0], 0 | 0); |
5024 | return resultobj; |
5025 | fail: |
5026 | return NULL__null; |
5027 | } |
5028 | |
5029 | |
5030 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5031 | PyObject *resultobj = 0; |
5032 | GApplication *arg1 = (GApplication *) 0 ; |
5033 | void *argp1 = 0 ; |
5034 | int res1 = 0 ; |
5035 | PyObject * obj0 = 0 ; |
5036 | std::string *result = 0 ; |
5037 | |
5038 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_name",&obj0)) SWIG_failgoto fail; |
5039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5040 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_name" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_name" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5042 | } |
5043 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5044 | { |
5045 | try { |
5046 | result = (std::string *) &((GApplication const *)arg1)->name(); |
5047 | } |
5048 | catch (const GException::out_of_range& e) { |
5049 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5050 | } |
5051 | catch (const GExceptionHandler& e) { |
5052 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5053 | } |
5054 | catch (const std::exception& e) { |
5055 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5056 | } |
5057 | } |
5058 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
5059 | return resultobj; |
5060 | fail: |
5061 | return NULL__null; |
5062 | } |
5063 | |
5064 | |
5065 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5066 | PyObject *resultobj = 0; |
5067 | GApplication *arg1 = (GApplication *) 0 ; |
5068 | void *argp1 = 0 ; |
5069 | int res1 = 0 ; |
5070 | PyObject * obj0 = 0 ; |
5071 | std::string *result = 0 ; |
5072 | |
5073 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_version",&obj0)) SWIG_failgoto fail; |
5074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5075 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_version" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_version" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5077 | } |
5078 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5079 | { |
5080 | try { |
5081 | result = (std::string *) &((GApplication const *)arg1)->version(); |
5082 | } |
5083 | catch (const GException::out_of_range& e) { |
5084 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5085 | } |
5086 | catch (const GExceptionHandler& e) { |
5087 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5088 | } |
5089 | catch (const std::exception& e) { |
5090 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5091 | } |
5092 | } |
5093 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
5094 | return resultobj; |
5095 | fail: |
5096 | return NULL__null; |
5097 | } |
5098 | |
5099 | |
5100 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_telapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5101 | PyObject *resultobj = 0; |
5102 | GApplication *arg1 = (GApplication *) 0 ; |
5103 | void *argp1 = 0 ; |
5104 | int res1 = 0 ; |
5105 | PyObject * obj0 = 0 ; |
5106 | double result; |
5107 | |
5108 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_telapse",&obj0)) SWIG_failgoto fail; |
5109 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5110 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_telapse" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_telapse" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5112 | } |
5113 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5114 | { |
5115 | try { |
5116 | result = (double)((GApplication const *)arg1)->telapse(); |
5117 | } |
5118 | catch (const GException::out_of_range& e) { |
5119 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5120 | } |
5121 | catch (const GExceptionHandler& e) { |
5122 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5123 | } |
5124 | catch (const std::exception& e) { |
5125 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5126 | } |
5127 | } |
5128 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5129 | return resultobj; |
5130 | fail: |
5131 | return NULL__null; |
5132 | } |
5133 | |
5134 | |
5135 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_celapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5136 | PyObject *resultobj = 0; |
5137 | GApplication *arg1 = (GApplication *) 0 ; |
5138 | void *argp1 = 0 ; |
5139 | int res1 = 0 ; |
5140 | PyObject * obj0 = 0 ; |
5141 | double result; |
5142 | |
5143 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_celapse",&obj0)) SWIG_failgoto fail; |
5144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5145 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_celapse" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_celapse" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5147 | } |
5148 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5149 | { |
5150 | try { |
5151 | result = (double)((GApplication const *)arg1)->celapse(); |
5152 | } |
5153 | catch (const GException::out_of_range& e) { |
5154 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5155 | } |
5156 | catch (const GExceptionHandler& e) { |
5157 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5158 | } |
5159 | catch (const std::exception& e) { |
5160 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5161 | } |
5162 | } |
5163 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5164 | return resultobj; |
5165 | fail: |
5166 | return NULL__null; |
5167 | } |
5168 | |
5169 | |
5170 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logFileOpen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5171 | PyObject *resultobj = 0; |
5172 | GApplication *arg1 = (GApplication *) 0 ; |
5173 | bool *arg2 = 0 ; |
5174 | void *argp1 = 0 ; |
5175 | int res1 = 0 ; |
5176 | bool temp2 ; |
5177 | bool val2 ; |
5178 | int ecode2 = 0 ; |
5179 | PyObject * obj0 = 0 ; |
5180 | PyObject * obj1 = 0 ; |
5181 | |
5182 | if (!PyArg_ParseTuple(args,(char *)"OO:GApplication_logFileOpen",&obj0,&obj1)) SWIG_failgoto fail; |
5183 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5184 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_logFileOpen" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_logFileOpen" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5186 | } |
5187 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5188 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
5189 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5190 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GApplication_logFileOpen" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GApplication_logFileOpen" "', argument " "2"" of type '" "bool""'"); goto fail; } while (0); |
5191 | } |
5192 | temp2 = static_cast< bool >(val2); |
5193 | arg2 = &temp2; |
5194 | { |
5195 | try { |
5196 | (arg1)->logFileOpen((bool const &)*arg2); |
5197 | } |
5198 | catch (const GException::out_of_range& e) { |
5199 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5200 | } |
5201 | catch (const GExceptionHandler& e) { |
5202 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5203 | } |
5204 | catch (const std::exception& e) { |
5205 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5206 | } |
5207 | } |
5208 | resultobj = SWIG_Py_Void(); |
5209 | return resultobj; |
5210 | fail: |
5211 | return NULL__null; |
5212 | } |
5213 | |
5214 | |
5215 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logFileOpen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5216 | PyObject *resultobj = 0; |
5217 | GApplication *arg1 = (GApplication *) 0 ; |
5218 | void *argp1 = 0 ; |
5219 | int res1 = 0 ; |
5220 | PyObject * obj0 = 0 ; |
5221 | |
5222 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_logFileOpen",&obj0)) SWIG_failgoto fail; |
5223 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5224 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_logFileOpen" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_logFileOpen" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5226 | } |
5227 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5228 | { |
5229 | try { |
5230 | (arg1)->logFileOpen(); |
5231 | } |
5232 | catch (const GException::out_of_range& e) { |
5233 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5234 | } |
5235 | catch (const GExceptionHandler& e) { |
5236 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5237 | } |
5238 | catch (const std::exception& e) { |
5239 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5240 | } |
5241 | } |
5242 | resultobj = SWIG_Py_Void(); |
5243 | return resultobj; |
5244 | fail: |
5245 | return NULL__null; |
5246 | } |
5247 | |
5248 | |
5249 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logFileOpen(PyObject *self, PyObject *args) { |
5250 | int argc; |
5251 | PyObject *argv[3]; |
5252 | int ii; |
5253 | |
5254 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5255 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5256 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5257 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5258 | } |
5259 | if (argc == 1) { |
5260 | int _v; |
5261 | void *vptr = 0; |
5262 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GApplication, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0 ], 0, 0); |
5263 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5264 | if (_v) { |
5265 | return _wrap_GApplication_logFileOpen__SWIG_1(self, args); |
5266 | } |
5267 | } |
5268 | if (argc == 2) { |
5269 | int _v; |
5270 | void *vptr = 0; |
5271 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GApplication, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0 ], 0, 0); |
5272 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5273 | if (_v) { |
5274 | { |
5275 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
5276 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5277 | } |
5278 | if (_v) { |
5279 | return _wrap_GApplication_logFileOpen__SWIG_0(self, args); |
5280 | } |
5281 | } |
5282 | } |
5283 | |
5284 | fail: |
5285 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GApplication_logFileOpen'.\n" |
5286 | " Possible C/C++ prototypes are:\n" |
5287 | " GApplication::logFileOpen(bool const &)\n" |
5288 | " GApplication::logFileOpen()\n"); |
5289 | return 0; |
5290 | } |
5291 | |
5292 | |
5293 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logTerse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5294 | PyObject *resultobj = 0; |
5295 | GApplication *arg1 = (GApplication *) 0 ; |
5296 | void *argp1 = 0 ; |
5297 | int res1 = 0 ; |
5298 | PyObject * obj0 = 0 ; |
5299 | bool result; |
5300 | |
5301 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_logTerse",&obj0)) SWIG_failgoto fail; |
5302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5303 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_logTerse" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_logTerse" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5305 | } |
5306 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5307 | { |
5308 | try { |
5309 | result = (bool)((GApplication const *)arg1)->logTerse(); |
5310 | } |
5311 | catch (const GException::out_of_range& e) { |
5312 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5313 | } |
5314 | catch (const GExceptionHandler& e) { |
5315 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5316 | } |
5317 | catch (const std::exception& e) { |
5318 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5319 | } |
5320 | } |
5321 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5322 | return resultobj; |
5323 | fail: |
5324 | return NULL__null; |
5325 | } |
5326 | |
5327 | |
5328 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logNormal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5329 | PyObject *resultobj = 0; |
5330 | GApplication *arg1 = (GApplication *) 0 ; |
5331 | void *argp1 = 0 ; |
5332 | int res1 = 0 ; |
5333 | PyObject * obj0 = 0 ; |
5334 | bool result; |
5335 | |
5336 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_logNormal",&obj0)) SWIG_failgoto fail; |
5337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5338 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_logNormal" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_logNormal" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5340 | } |
5341 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5342 | { |
5343 | try { |
5344 | result = (bool)((GApplication const *)arg1)->logNormal(); |
5345 | } |
5346 | catch (const GException::out_of_range& e) { |
5347 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5348 | } |
5349 | catch (const GExceptionHandler& e) { |
5350 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5351 | } |
5352 | catch (const std::exception& e) { |
5353 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5354 | } |
5355 | } |
5356 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5357 | return resultobj; |
5358 | fail: |
5359 | return NULL__null; |
5360 | } |
5361 | |
5362 | |
5363 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logExplicit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5364 | PyObject *resultobj = 0; |
5365 | GApplication *arg1 = (GApplication *) 0 ; |
5366 | void *argp1 = 0 ; |
5367 | int res1 = 0 ; |
5368 | PyObject * obj0 = 0 ; |
5369 | bool result; |
5370 | |
5371 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_logExplicit",&obj0)) SWIG_failgoto fail; |
5372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5373 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_logExplicit" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_logExplicit" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5375 | } |
5376 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5377 | { |
5378 | try { |
5379 | result = (bool)((GApplication const *)arg1)->logExplicit(); |
5380 | } |
5381 | catch (const GException::out_of_range& e) { |
5382 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5383 | } |
5384 | catch (const GExceptionHandler& e) { |
5385 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5386 | } |
5387 | catch (const std::exception& e) { |
5388 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5389 | } |
5390 | } |
5391 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5392 | return resultobj; |
5393 | fail: |
5394 | return NULL__null; |
5395 | } |
5396 | |
5397 | |
5398 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logVerbose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5399 | PyObject *resultobj = 0; |
5400 | GApplication *arg1 = (GApplication *) 0 ; |
5401 | void *argp1 = 0 ; |
5402 | int res1 = 0 ; |
5403 | PyObject * obj0 = 0 ; |
5404 | bool result; |
5405 | |
5406 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_logVerbose",&obj0)) SWIG_failgoto fail; |
5407 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5408 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5409 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_logVerbose" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_logVerbose" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5410 | } |
5411 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5412 | { |
5413 | try { |
5414 | result = (bool)((GApplication const *)arg1)->logVerbose(); |
5415 | } |
5416 | catch (const GException::out_of_range& e) { |
5417 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5418 | } |
5419 | catch (const GExceptionHandler& e) { |
5420 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5421 | } |
5422 | catch (const std::exception& e) { |
5423 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5424 | } |
5425 | } |
5426 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5427 | return resultobj; |
5428 | fail: |
5429 | return NULL__null; |
5430 | } |
5431 | |
5432 | |
5433 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_logDebug(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5434 | PyObject *resultobj = 0; |
5435 | GApplication *arg1 = (GApplication *) 0 ; |
5436 | void *argp1 = 0 ; |
5437 | int res1 = 0 ; |
5438 | PyObject * obj0 = 0 ; |
5439 | bool result; |
5440 | |
5441 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_logDebug",&obj0)) SWIG_failgoto fail; |
5442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5443 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_logDebug" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_logDebug" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5445 | } |
5446 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5447 | { |
5448 | try { |
5449 | result = (bool)((GApplication const *)arg1)->logDebug(); |
5450 | } |
5451 | catch (const GException::out_of_range& e) { |
5452 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5453 | } |
5454 | catch (const GExceptionHandler& e) { |
5455 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5456 | } |
5457 | catch (const std::exception& e) { |
5458 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5459 | } |
5460 | } |
5461 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5462 | return resultobj; |
5463 | fail: |
5464 | return NULL__null; |
5465 | } |
5466 | |
5467 | |
5468 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_clobber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5469 | PyObject *resultobj = 0; |
5470 | GApplication *arg1 = (GApplication *) 0 ; |
5471 | void *argp1 = 0 ; |
5472 | int res1 = 0 ; |
5473 | PyObject * obj0 = 0 ; |
5474 | bool result; |
5475 | |
5476 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_clobber",&obj0)) SWIG_failgoto fail; |
5477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5478 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_clobber" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_clobber" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5480 | } |
5481 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5482 | { |
5483 | try { |
5484 | result = (bool)((GApplication const *)arg1)->clobber(); |
5485 | } |
5486 | catch (const GException::out_of_range& e) { |
5487 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5488 | } |
5489 | catch (const GExceptionHandler& e) { |
5490 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5491 | } |
5492 | catch (const std::exception& e) { |
5493 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5494 | } |
5495 | } |
5496 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5497 | return resultobj; |
5498 | fail: |
5499 | return NULL__null; |
5500 | } |
5501 | |
5502 | |
5503 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_haspar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5504 | PyObject *resultobj = 0; |
5505 | GApplication *arg1 = (GApplication *) 0 ; |
5506 | std::string *arg2 = 0 ; |
5507 | void *argp1 = 0 ; |
5508 | int res1 = 0 ; |
5509 | int res2 = SWIG_OLDOBJ((0)) ; |
5510 | PyObject * obj0 = 0 ; |
5511 | PyObject * obj1 = 0 ; |
5512 | bool result; |
5513 | |
5514 | if (!PyArg_ParseTuple(args,(char *)"OO:GApplication_haspar",&obj0,&obj1)) SWIG_failgoto fail; |
5515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5516 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_haspar" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_haspar" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while (0); |
5518 | } |
5519 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5520 | { |
5521 | std::string *ptr = (std::string *)0; |
5522 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5523 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5524 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GApplication_haspar" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GApplication_haspar" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5525 | } |
5526 | if (!ptr) { |
5527 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication_haspar" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication_haspar" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5528 | } |
5529 | arg2 = ptr; |
5530 | } |
5531 | { |
5532 | try { |
5533 | result = (bool)((GApplication const *)arg1)->haspar((std::string const &)*arg2); |
5534 | } |
5535 | catch (const GException::out_of_range& e) { |
5536 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5537 | } |
5538 | catch (const GExceptionHandler& e) { |
5539 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5540 | } |
5541 | catch (const std::exception& e) { |
5542 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5543 | } |
5544 | } |
5545 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5546 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5547 | return resultobj; |
5548 | fail: |
5549 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5550 | return NULL__null; |
5551 | } |
5552 | |
5553 | |
5554 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_par_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5555 | PyObject *resultobj = 0; |
5556 | GApplication *arg1 = (GApplication *) 0 ; |
5557 | void *argp1 = 0 ; |
5558 | int res1 = 0 ; |
5559 | PyObject * obj0 = 0 ; |
5560 | std::string *result = 0 ; |
5561 | |
5562 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_par_filename",&obj0)) SWIG_failgoto fail; |
5563 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5564 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_par_filename" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_par_filename" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while(0); |
5566 | } |
5567 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5568 | { |
5569 | try { |
5570 | result = (std::string *) &((GApplication const *)arg1)->par_filename(); |
5571 | } |
5572 | catch (const GException::out_of_range& e) { |
5573 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5574 | } |
5575 | catch (const GExceptionHandler& e) { |
5576 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5577 | } |
5578 | catch (const std::exception& e) { |
5579 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5580 | } |
5581 | } |
5582 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
5583 | return resultobj; |
5584 | fail: |
5585 | return NULL__null; |
5586 | } |
5587 | |
5588 | |
5589 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_log_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5590 | PyObject *resultobj = 0; |
5591 | GApplication *arg1 = (GApplication *) 0 ; |
5592 | void *argp1 = 0 ; |
5593 | int res1 = 0 ; |
5594 | PyObject * obj0 = 0 ; |
5595 | std::string *result = 0 ; |
5596 | |
5597 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_log_filename",&obj0)) SWIG_failgoto fail; |
5598 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5599 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_log_filename" "', argument " "1"" of type '" "GApplication const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_log_filename" "', argument " "1"" of type '" "GApplication const *""'"); goto fail; } while(0); |
5601 | } |
5602 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5603 | { |
5604 | try { |
5605 | result = (std::string *) &((GApplication const *)arg1)->log_filename(); |
5606 | } |
5607 | catch (const GException::out_of_range& e) { |
5608 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5609 | } |
5610 | catch (const GExceptionHandler& e) { |
5611 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5612 | } |
5613 | catch (const std::exception& e) { |
5614 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5615 | } |
5616 | } |
5617 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
5618 | return resultobj; |
5619 | fail: |
5620 | return NULL__null; |
5621 | } |
5622 | |
5623 | |
5624 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_log_header(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5625 | PyObject *resultobj = 0; |
5626 | GApplication *arg1 = (GApplication *) 0 ; |
5627 | void *argp1 = 0 ; |
5628 | int res1 = 0 ; |
5629 | PyObject * obj0 = 0 ; |
5630 | |
5631 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_log_header",&obj0)) SWIG_failgoto fail; |
5632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5633 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_log_header" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_log_header" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5635 | } |
5636 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5637 | { |
5638 | try { |
5639 | (arg1)->log_header(); |
5640 | } |
5641 | catch (const GException::out_of_range& e) { |
5642 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5643 | } |
5644 | catch (const GExceptionHandler& e) { |
5645 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5646 | } |
5647 | catch (const std::exception& e) { |
5648 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5649 | } |
5650 | } |
5651 | resultobj = SWIG_Py_Void(); |
5652 | return resultobj; |
5653 | fail: |
5654 | return NULL__null; |
5655 | } |
5656 | |
5657 | |
5658 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_log_trailer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5659 | PyObject *resultobj = 0; |
5660 | GApplication *arg1 = (GApplication *) 0 ; |
5661 | void *argp1 = 0 ; |
5662 | int res1 = 0 ; |
5663 | PyObject * obj0 = 0 ; |
5664 | |
5665 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_log_trailer",&obj0)) SWIG_failgoto fail; |
5666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5667 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_log_trailer" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_log_trailer" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5669 | } |
5670 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5671 | { |
5672 | try { |
5673 | (arg1)->log_trailer(); |
5674 | } |
5675 | catch (const GException::out_of_range& e) { |
5676 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5677 | } |
5678 | catch (const GExceptionHandler& e) { |
5679 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5680 | } |
5681 | catch (const std::exception& e) { |
5682 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5683 | } |
5684 | } |
5685 | resultobj = SWIG_Py_Void(); |
5686 | return resultobj; |
5687 | fail: |
5688 | return NULL__null; |
5689 | } |
5690 | |
5691 | |
5692 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_log_parameters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5693 | PyObject *resultobj = 0; |
5694 | GApplication *arg1 = (GApplication *) 0 ; |
5695 | void *argp1 = 0 ; |
5696 | int res1 = 0 ; |
5697 | PyObject * obj0 = 0 ; |
5698 | |
5699 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_log_parameters",&obj0)) SWIG_failgoto fail; |
5700 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5701 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_log_parameters" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_log_parameters" "', argument " "1"" of type '" "GApplication *""'"); goto fail ; } while(0); |
5703 | } |
5704 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5705 | { |
5706 | try { |
5707 | (arg1)->log_parameters(); |
5708 | } |
5709 | catch (const GException::out_of_range& e) { |
5710 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5711 | } |
5712 | catch (const GExceptionHandler& e) { |
5713 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5714 | } |
5715 | catch (const std::exception& e) { |
5716 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5717 | } |
5718 | } |
5719 | resultobj = SWIG_Py_Void(); |
5720 | return resultobj; |
5721 | fail: |
5722 | return NULL__null; |
5723 | } |
5724 | |
5725 | |
5726 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_log_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5727 | PyObject *resultobj = 0; |
5728 | GApplication *arg1 = (GApplication *) 0 ; |
5729 | GLog *arg2 = (GLog *) 0 ; |
5730 | void *argp1 = 0 ; |
5731 | int res1 = 0 ; |
5732 | void *argp2 = 0 ; |
5733 | int res2 = 0 ; |
5734 | PyObject * obj0 = 0 ; |
5735 | PyObject * obj1 = 0 ; |
5736 | |
5737 | if (!PyArg_ParseTuple(args,(char *)"OO:GApplication_log_set",&obj0,&obj1)) SWIG_failgoto fail; |
5738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5739 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_log_set" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_log_set" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5741 | } |
5742 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5743 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4], 0 | 0, 0); |
5744 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5745 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GApplication_log_set" "', argument " "2"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GApplication_log_set" "', argument " "2"" of type '" "GLog *""'"); goto fail; } while(0); |
5746 | } |
5747 | arg2 = reinterpret_cast< GLog * >(argp2); |
5748 | if (arg1) (arg1)->log = *arg2; |
5749 | resultobj = SWIG_Py_Void(); |
5750 | return resultobj; |
5751 | fail: |
5752 | return NULL__null; |
5753 | } |
5754 | |
5755 | |
5756 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_log_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5757 | PyObject *resultobj = 0; |
5758 | GApplication *arg1 = (GApplication *) 0 ; |
5759 | void *argp1 = 0 ; |
5760 | int res1 = 0 ; |
5761 | PyObject * obj0 = 0 ; |
5762 | GLog *result = 0 ; |
5763 | |
5764 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_log_get",&obj0)) SWIG_failgoto fail; |
5765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5766 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_log_get" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_log_get" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5768 | } |
5769 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5770 | result = (GLog *)& ((arg1)->log); |
5771 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], 0 | 0); |
5772 | return resultobj; |
5773 | fail: |
5774 | return NULL__null; |
5775 | } |
5776 | |
5777 | |
5778 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5779 | PyObject *resultobj = 0; |
5780 | GApplication *arg1 = (GApplication *) 0 ; |
5781 | std::string *arg2 = 0 ; |
5782 | void *argp1 = 0 ; |
5783 | int res1 = 0 ; |
5784 | int res2 = SWIG_OLDOBJ((0)) ; |
5785 | PyObject * obj0 = 0 ; |
5786 | PyObject * obj1 = 0 ; |
5787 | GPar *result = 0 ; |
5788 | |
5789 | if (!PyArg_ParseTuple(args,(char *)"OO:GApplication___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
5790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5791 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication___getitem__" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication___getitem__" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5793 | } |
5794 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5795 | { |
5796 | std::string *ptr = (std::string *)0; |
5797 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5798 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5799 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GApplication___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GApplication___getitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5800 | } |
5801 | if (!ptr) { |
5802 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication___getitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5803 | } |
5804 | arg2 = ptr; |
5805 | } |
5806 | { |
5807 | try { |
5808 | result = (GPar *) &GApplication___getitem__(arg1,(std::string const &)*arg2); |
5809 | } |
5810 | catch (const GException::out_of_range& e) { |
5811 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5812 | } |
5813 | catch (const GExceptionHandler& e) { |
5814 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5815 | } |
5816 | catch (const std::exception& e) { |
5817 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5818 | } |
5819 | } |
5820 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
5821 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5822 | return resultobj; |
5823 | fail: |
5824 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5825 | return NULL__null; |
5826 | } |
5827 | |
5828 | |
5829 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5830 | PyObject *resultobj = 0; |
5831 | GApplication *arg1 = (GApplication *) 0 ; |
5832 | std::string *arg2 = 0 ; |
5833 | GPar *arg3 = 0 ; |
5834 | void *argp1 = 0 ; |
5835 | int res1 = 0 ; |
5836 | int res2 = SWIG_OLDOBJ((0)) ; |
5837 | void *argp3 = 0 ; |
5838 | int res3 = 0 ; |
5839 | PyObject * obj0 = 0 ; |
5840 | PyObject * obj1 = 0 ; |
5841 | PyObject * obj2 = 0 ; |
5842 | |
5843 | if (!PyArg_ParseTuple(args,(char *)"OOO:GApplication___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5845 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5847 | } |
5848 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5849 | { |
5850 | std::string *ptr = (std::string *)0; |
5851 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5852 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5853 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5854 | } |
5855 | if (!ptr) { |
5856 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5857 | } |
5858 | arg2 = ptr; |
5859 | } |
5860 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5], 0 | 0, 0); |
5861 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
5862 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0 ); |
5863 | } |
5864 | if (!argp3) { |
5865 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0); |
5866 | } |
5867 | arg3 = reinterpret_cast< GPar * >(argp3); |
5868 | { |
5869 | try { |
5870 | GApplication___setitem____SWIG_0(arg1,(std::string const &)*arg2,(GPar const &)*arg3); |
5871 | } |
5872 | catch (const GException::out_of_range& e) { |
5873 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5874 | } |
5875 | catch (const GExceptionHandler& e) { |
5876 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5877 | } |
5878 | catch (const std::exception& e) { |
5879 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5880 | } |
5881 | } |
5882 | resultobj = SWIG_Py_Void(); |
5883 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5884 | return resultobj; |
5885 | fail: |
5886 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5887 | return NULL__null; |
5888 | } |
5889 | |
5890 | |
5891 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5892 | PyObject *resultobj = 0; |
5893 | GApplication *arg1 = (GApplication *) 0 ; |
5894 | std::string *arg2 = 0 ; |
5895 | int *arg3 = 0 ; |
5896 | void *argp1 = 0 ; |
5897 | int res1 = 0 ; |
5898 | int res2 = SWIG_OLDOBJ((0)) ; |
5899 | int temp3 ; |
5900 | int val3 ; |
5901 | int ecode3 = 0 ; |
5902 | PyObject * obj0 = 0 ; |
5903 | PyObject * obj1 = 0 ; |
5904 | PyObject * obj2 = 0 ; |
5905 | |
5906 | if (!PyArg_ParseTuple(args,(char *)"OOO:GApplication___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5908 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5910 | } |
5911 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5912 | { |
5913 | std::string *ptr = (std::string *)0; |
5914 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5915 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5916 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5917 | } |
5918 | if (!ptr) { |
5919 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5920 | } |
5921 | arg2 = ptr; |
5922 | } |
5923 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
5924 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5925 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "int""'"); goto fail; } while (0); |
5926 | } |
5927 | temp3 = static_cast< int >(val3); |
5928 | arg3 = &temp3; |
5929 | { |
5930 | try { |
5931 | GApplication___setitem____SWIG_1(arg1,(std::string const &)*arg2,(int const &)*arg3); |
5932 | } |
5933 | catch (const GException::out_of_range& e) { |
5934 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5935 | } |
5936 | catch (const GExceptionHandler& e) { |
5937 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5938 | } |
5939 | catch (const std::exception& e) { |
5940 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5941 | } |
5942 | } |
5943 | resultobj = SWIG_Py_Void(); |
5944 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5945 | return resultobj; |
5946 | fail: |
5947 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5948 | return NULL__null; |
5949 | } |
5950 | |
5951 | |
5952 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5953 | PyObject *resultobj = 0; |
5954 | GApplication *arg1 = (GApplication *) 0 ; |
5955 | std::string *arg2 = 0 ; |
5956 | double *arg3 = 0 ; |
5957 | void *argp1 = 0 ; |
5958 | int res1 = 0 ; |
5959 | int res2 = SWIG_OLDOBJ((0)) ; |
5960 | double temp3 ; |
5961 | double val3 ; |
5962 | int ecode3 = 0 ; |
5963 | PyObject * obj0 = 0 ; |
5964 | PyObject * obj1 = 0 ; |
5965 | PyObject * obj2 = 0 ; |
5966 | |
5967 | if (!PyArg_ParseTuple(args,(char *)"OOO:GApplication___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5968 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
5969 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
5971 | } |
5972 | arg1 = reinterpret_cast< GApplication * >(argp1); |
5973 | { |
5974 | std::string *ptr = (std::string *)0; |
5975 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5976 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5977 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5978 | } |
5979 | if (!ptr) { |
5980 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5981 | } |
5982 | arg2 = ptr; |
5983 | } |
5984 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
5985 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5986 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
5987 | } |
5988 | temp3 = static_cast< double >(val3); |
5989 | arg3 = &temp3; |
5990 | { |
5991 | try { |
5992 | GApplication___setitem____SWIG_2(arg1,(std::string const &)*arg2,(double const &)*arg3); |
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_Py_Void(); |
6005 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6006 | return resultobj; |
6007 | fail: |
6008 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6009 | return NULL__null; |
6010 | } |
6011 | |
6012 | |
6013 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication___setitem____SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6014 | PyObject *resultobj = 0; |
6015 | GApplication *arg1 = (GApplication *) 0 ; |
6016 | std::string *arg2 = 0 ; |
6017 | std::string *arg3 = 0 ; |
6018 | void *argp1 = 0 ; |
6019 | int res1 = 0 ; |
6020 | int res2 = SWIG_OLDOBJ((0)) ; |
6021 | int res3 = SWIG_OLDOBJ((0)) ; |
6022 | PyObject * obj0 = 0 ; |
6023 | PyObject * obj1 = 0 ; |
6024 | PyObject * obj2 = 0 ; |
6025 | |
6026 | if (!PyArg_ParseTuple(args,(char *)"OOO:GApplication___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6027 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
6028 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication___setitem__" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
6030 | } |
6031 | arg1 = reinterpret_cast< GApplication * >(argp1); |
6032 | { |
6033 | std::string *ptr = (std::string *)0; |
6034 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
6035 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6036 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
6037 | } |
6038 | if (!ptr) { |
6039 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
6040 | } |
6041 | arg2 = ptr; |
6042 | } |
6043 | { |
6044 | std::string *ptr = (std::string *)0; |
6045 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
6046 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
6047 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
6048 | } |
6049 | if (!ptr) { |
6050 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GApplication___setitem__" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
6051 | } |
6052 | arg3 = ptr; |
6053 | } |
6054 | { |
6055 | try { |
6056 | GApplication___setitem____SWIG_3(arg1,(std::string const &)*arg2,(std::string const &)*arg3); |
6057 | } |
6058 | catch (const GException::out_of_range& e) { |
6059 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6060 | } |
6061 | catch (const GExceptionHandler& e) { |
6062 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6063 | } |
6064 | catch (const std::exception& e) { |
6065 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6066 | } |
6067 | } |
6068 | resultobj = SWIG_Py_Void(); |
6069 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6070 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
6071 | return resultobj; |
6072 | fail: |
6073 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6074 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
6075 | return NULL__null; |
6076 | } |
6077 | |
6078 | |
6079 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication___setitem__(PyObject *self, PyObject *args) { |
6080 | int argc; |
6081 | PyObject *argv[4]; |
6082 | int ii; |
6083 | |
6084 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6085 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6086 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
6087 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6088 | } |
6089 | if (argc == 3) { |
6090 | int _v; |
6091 | void *vptr = 0; |
6092 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GApplication, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0 ], 0, 0); |
6093 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6094 | if (_v) { |
6095 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6096 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6097 | if (_v) { |
6098 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0); |
6099 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6100 | if (_v) { |
6101 | return _wrap_GApplication___setitem____SWIG_0(self, args); |
6102 | } |
6103 | } |
6104 | } |
6105 | } |
6106 | if (argc == 3) { |
6107 | int _v; |
6108 | void *vptr = 0; |
6109 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GApplication, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0 ], 0, 0); |
6110 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6111 | if (_v) { |
6112 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6113 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6114 | if (_v) { |
6115 | { |
6116 | int res = SWIG_AsVal_int(argv[2], NULL__null); |
6117 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6118 | } |
6119 | if (_v) { |
6120 | return _wrap_GApplication___setitem____SWIG_1(self, args); |
6121 | } |
6122 | } |
6123 | } |
6124 | } |
6125 | if (argc == 3) { |
6126 | int _v; |
6127 | void *vptr = 0; |
6128 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GApplication, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0 ], 0, 0); |
6129 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6130 | if (_v) { |
6131 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6132 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6133 | if (_v) { |
6134 | { |
6135 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
6136 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6137 | } |
6138 | if (_v) { |
6139 | return _wrap_GApplication___setitem____SWIG_2(self, args); |
6140 | } |
6141 | } |
6142 | } |
6143 | } |
6144 | if (argc == 3) { |
6145 | int _v; |
6146 | void *vptr = 0; |
6147 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GApplication, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[0 ], 0, 0); |
6148 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6149 | if (_v) { |
6150 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6151 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6152 | if (_v) { |
6153 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
6154 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6155 | if (_v) { |
6156 | return _wrap_GApplication___setitem____SWIG_3(self, args); |
6157 | } |
6158 | } |
6159 | } |
6160 | } |
6161 | |
6162 | fail: |
6163 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GApplication___setitem__'.\n" |
6164 | " Possible C/C++ prototypes are:\n" |
6165 | " GApplication::__setitem__(std::string const &,GPar const &)\n" |
6166 | " GApplication::__setitem__(std::string const &,int const &)\n" |
6167 | " GApplication::__setitem__(std::string const &,double const &)\n" |
6168 | " GApplication::__setitem__(std::string const &,std::string const &)\n"); |
6169 | return 0; |
6170 | } |
6171 | |
6172 | |
6173 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GApplication_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6174 | PyObject *resultobj = 0; |
6175 | GApplication *arg1 = (GApplication *) 0 ; |
6176 | void *argp1 = 0 ; |
6177 | int res1 = 0 ; |
6178 | PyObject * obj0 = 0 ; |
6179 | GApplication result; |
6180 | |
6181 | if (!PyArg_ParseTuple(args,(char *)"O:GApplication_copy",&obj0)) SWIG_failgoto fail; |
6182 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GApplication, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[0], 0 | 0, 0); |
6183 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GApplication_copy" "', argument " "1"" of type '" "GApplication *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GApplication_copy" "', argument " "1"" of type '" "GApplication *""'"); goto fail; } while(0); |
6185 | } |
6186 | arg1 = reinterpret_cast< GApplication * >(argp1); |
6187 | { |
6188 | try { |
6189 | result = GApplication_copy(arg1); |
6190 | } |
6191 | catch (const GException::out_of_range& e) { |
6192 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6193 | } |
6194 | catch (const GExceptionHandler& e) { |
6195 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6196 | } |
6197 | catch (const std::exception& e) { |
6198 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6199 | } |
6200 | } |
6201 | resultobj = SWIG_NewPointerObj((new GApplication(static_cast< const GApplication& >(result))), SWIGTYPE_p_GApplication, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GApplication(static_cast < const GApplication& >(result))), swig_types[0], 0x1 | 0); |
6202 | return resultobj; |
6203 | fail: |
6204 | return NULL__null; |
6205 | } |
6206 | |
6207 | |
6208 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GApplication_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6209 | PyObject *obj; |
6210 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
6211 | SWIG_TypeNewClientData(SWIGTYPE_p_GApplicationswig_types[0], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
6212 | return SWIG_Py_Void(); |
6213 | } |
6214 | |
6215 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLog__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6216 | PyObject *resultobj = 0; |
6217 | GLog *result = 0 ; |
6218 | |
6219 | if (!PyArg_ParseTuple(args,(char *)":new_GLog")) SWIG_failgoto fail; |
6220 | { |
6221 | try { |
6222 | result = (GLog *)new GLog(); |
6223 | } |
6224 | catch (const GException::out_of_range& e) { |
6225 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6226 | } |
6227 | catch (const GExceptionHandler& e) { |
6228 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6229 | } |
6230 | catch (const std::exception& e) { |
6231 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6232 | } |
6233 | } |
6234 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLog, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
6235 | return resultobj; |
6236 | fail: |
6237 | return NULL__null; |
6238 | } |
6239 | |
6240 | |
6241 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLog__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6242 | PyObject *resultobj = 0; |
6243 | std::string *arg1 = 0 ; |
6244 | bool *arg2 = 0 ; |
6245 | int res1 = SWIG_OLDOBJ((0)) ; |
6246 | bool temp2 ; |
6247 | bool val2 ; |
6248 | int ecode2 = 0 ; |
6249 | PyObject * obj0 = 0 ; |
6250 | PyObject * obj1 = 0 ; |
6251 | GLog *result = 0 ; |
6252 | |
6253 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GLog",&obj0,&obj1)) SWIG_failgoto fail; |
6254 | { |
6255 | std::string *ptr = (std::string *)0; |
6256 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
6257 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6258 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLog" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLog" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
6259 | } |
6260 | if (!ptr) { |
6261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLog" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLog" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
6262 | } |
6263 | arg1 = ptr; |
6264 | } |
6265 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6266 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6267 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GLog" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GLog" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
6268 | } |
6269 | temp2 = static_cast< bool >(val2); |
6270 | arg2 = &temp2; |
6271 | { |
6272 | try { |
6273 | result = (GLog *)new GLog((std::string const &)*arg1,(bool const &)*arg2); |
6274 | } |
6275 | catch (const GException::out_of_range& e) { |
6276 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6277 | } |
6278 | catch (const GExceptionHandler& e) { |
6279 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6280 | } |
6281 | catch (const std::exception& e) { |
6282 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6283 | } |
6284 | } |
6285 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLog, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
6286 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6287 | return resultobj; |
6288 | fail: |
6289 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6290 | return NULL__null; |
6291 | } |
6292 | |
6293 | |
6294 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLog__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6295 | PyObject *resultobj = 0; |
6296 | std::string *arg1 = 0 ; |
6297 | int res1 = SWIG_OLDOBJ((0)) ; |
6298 | PyObject * obj0 = 0 ; |
6299 | GLog *result = 0 ; |
6300 | |
6301 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLog",&obj0)) SWIG_failgoto fail; |
6302 | { |
6303 | std::string *ptr = (std::string *)0; |
6304 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
6305 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLog" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLog" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
6307 | } |
6308 | if (!ptr) { |
6309 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLog" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLog" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
6310 | } |
6311 | arg1 = ptr; |
6312 | } |
6313 | { |
6314 | try { |
6315 | result = (GLog *)new GLog((std::string const &)*arg1); |
6316 | } |
6317 | catch (const GException::out_of_range& e) { |
6318 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6319 | } |
6320 | catch (const GExceptionHandler& e) { |
6321 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6322 | } |
6323 | catch (const std::exception& e) { |
6324 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6325 | } |
6326 | } |
6327 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLog, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
6328 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6329 | return resultobj; |
6330 | fail: |
6331 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6332 | return NULL__null; |
6333 | } |
6334 | |
6335 | |
6336 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLog__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6337 | PyObject *resultobj = 0; |
6338 | GLog *arg1 = 0 ; |
6339 | void *argp1 = 0 ; |
6340 | int res1 = 0 ; |
6341 | PyObject * obj0 = 0 ; |
6342 | GLog *result = 0 ; |
6343 | |
6344 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLog",&obj0)) SWIG_failgoto fail; |
6345 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLog, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6346 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLog" "', argument " "1"" of type '" "GLog const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLog" "', argument " "1" " of type '" "GLog const &""'"); goto fail; } while(0); |
6348 | } |
6349 | if (!argp1) { |
6350 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLog" "', argument " "1"" of type '" "GLog const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLog" "', argument " "1"" of type '" "GLog const &" "'"); goto fail; } while(0); |
6351 | } |
6352 | arg1 = reinterpret_cast< GLog * >(argp1); |
6353 | { |
6354 | try { |
6355 | result = (GLog *)new GLog((GLog const &)*arg1); |
6356 | } |
6357 | catch (const GException::out_of_range& e) { |
6358 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6359 | } |
6360 | catch (const GExceptionHandler& e) { |
6361 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6362 | } |
6363 | catch (const std::exception& e) { |
6364 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6365 | } |
6366 | } |
6367 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLog, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
6368 | return resultobj; |
6369 | fail: |
6370 | return NULL__null; |
6371 | } |
6372 | |
6373 | |
6374 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLog(PyObject *self, PyObject *args) { |
6375 | int argc; |
6376 | PyObject *argv[3]; |
6377 | int ii; |
6378 | |
6379 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6380 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6381 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6382 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6383 | } |
6384 | if (argc == 0) { |
6385 | return _wrap_new_GLog__SWIG_0(self, args); |
6386 | } |
6387 | if (argc == 1) { |
6388 | int _v; |
6389 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0); |
6390 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6391 | if (_v) { |
6392 | return _wrap_new_GLog__SWIG_3(self, args); |
6393 | } |
6394 | } |
6395 | if (argc == 1) { |
6396 | int _v; |
6397 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
6398 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6399 | if (_v) { |
6400 | return _wrap_new_GLog__SWIG_2(self, args); |
6401 | } |
6402 | } |
6403 | if (argc == 2) { |
6404 | int _v; |
6405 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
6406 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6407 | if (_v) { |
6408 | { |
6409 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
6410 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6411 | } |
6412 | if (_v) { |
6413 | return _wrap_new_GLog__SWIG_1(self, args); |
6414 | } |
6415 | } |
6416 | } |
6417 | |
6418 | fail: |
6419 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLog'.\n" |
6420 | " Possible C/C++ prototypes are:\n" |
6421 | " GLog::GLog()\n" |
6422 | " GLog::GLog(std::string const &,bool const &)\n" |
6423 | " GLog::GLog(std::string const &)\n" |
6424 | " GLog::GLog(GLog const &)\n"); |
6425 | return 0; |
6426 | } |
6427 | |
6428 | |
6429 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6430 | PyObject *resultobj = 0; |
6431 | GLog *arg1 = (GLog *) 0 ; |
6432 | void *argp1 = 0 ; |
6433 | int res1 = 0 ; |
6434 | PyObject * obj0 = 0 ; |
6435 | |
6436 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLog",&obj0)) SWIG_failgoto fail; |
6437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0x1 | 0, 0); |
6438 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLog" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLog" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
6440 | } |
6441 | arg1 = reinterpret_cast< GLog * >(argp1); |
6442 | { |
6443 | try { |
6444 | delete arg1; |
6445 | } |
6446 | catch (const GException::out_of_range& e) { |
6447 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6448 | } |
6449 | catch (const GExceptionHandler& e) { |
6450 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6451 | } |
6452 | catch (const std::exception& e) { |
6453 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6454 | } |
6455 | } |
6456 | resultobj = SWIG_Py_Void(); |
6457 | return resultobj; |
6458 | fail: |
6459 | return NULL__null; |
6460 | } |
6461 | |
6462 | |
6463 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6464 | PyObject *resultobj = 0; |
6465 | GLog *arg1 = (GLog *) 0 ; |
6466 | void *argp1 = 0 ; |
6467 | int res1 = 0 ; |
6468 | PyObject * obj0 = 0 ; |
6469 | |
6470 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_clear",&obj0)) SWIG_failgoto fail; |
6471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6472 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_clear" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_clear" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
6474 | } |
6475 | arg1 = reinterpret_cast< GLog * >(argp1); |
6476 | { |
6477 | try { |
6478 | (arg1)->clear(); |
6479 | } |
6480 | catch (const GException::out_of_range& e) { |
6481 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6482 | } |
6483 | catch (const GExceptionHandler& e) { |
6484 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6485 | } |
6486 | catch (const std::exception& e) { |
6487 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6488 | } |
6489 | } |
6490 | resultobj = SWIG_Py_Void(); |
6491 | return resultobj; |
6492 | fail: |
6493 | return NULL__null; |
6494 | } |
6495 | |
6496 | |
6497 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6498 | PyObject *resultobj = 0; |
6499 | GLog *arg1 = (GLog *) 0 ; |
6500 | void *argp1 = 0 ; |
6501 | int res1 = 0 ; |
6502 | PyObject * obj0 = 0 ; |
6503 | int result; |
6504 | |
6505 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_size",&obj0)) SWIG_failgoto fail; |
6506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6507 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_size" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_size" "', argument " "1" " of type '" "GLog const *""'"); goto fail; } while(0); |
6509 | } |
6510 | arg1 = reinterpret_cast< GLog * >(argp1); |
6511 | { |
6512 | try { |
6513 | result = (int)((GLog const *)arg1)->size(); |
6514 | } |
6515 | catch (const GException::out_of_range& e) { |
6516 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6517 | } |
6518 | catch (const GExceptionHandler& e) { |
6519 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6520 | } |
6521 | catch (const std::exception& e) { |
6522 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6523 | } |
6524 | } |
6525 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6526 | return resultobj; |
6527 | fail: |
6528 | return NULL__null; |
6529 | } |
6530 | |
6531 | |
6532 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6533 | PyObject *resultobj = 0; |
6534 | GLog *arg1 = (GLog *) 0 ; |
6535 | std::string *arg2 = 0 ; |
6536 | bool *arg3 = 0 ; |
6537 | void *argp1 = 0 ; |
6538 | int res1 = 0 ; |
6539 | int res2 = SWIG_OLDOBJ((0)) ; |
6540 | bool temp3 ; |
6541 | bool val3 ; |
6542 | int ecode3 = 0 ; |
6543 | PyObject * obj0 = 0 ; |
6544 | PyObject * obj1 = 0 ; |
6545 | PyObject * obj2 = 0 ; |
6546 | |
6547 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLog_open",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6548 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6549 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6550 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_open" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_open" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
6551 | } |
6552 | arg1 = reinterpret_cast< GLog * >(argp1); |
6553 | { |
6554 | std::string *ptr = (std::string *)0; |
6555 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
6556 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6557 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_open" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
6558 | } |
6559 | if (!ptr) { |
6560 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_open" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
6561 | } |
6562 | arg2 = ptr; |
6563 | } |
6564 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
6565 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6566 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLog_open" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLog_open" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
6567 | } |
6568 | temp3 = static_cast< bool >(val3); |
6569 | arg3 = &temp3; |
6570 | { |
6571 | try { |
6572 | (arg1)->open((std::string const &)*arg2,(bool const &)*arg3); |
6573 | } |
6574 | catch (const GException::out_of_range& e) { |
6575 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6576 | } |
6577 | catch (const GExceptionHandler& e) { |
6578 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6579 | } |
6580 | catch (const std::exception& e) { |
6581 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6582 | } |
6583 | } |
6584 | resultobj = SWIG_Py_Void(); |
6585 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6586 | return resultobj; |
6587 | fail: |
6588 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6589 | return NULL__null; |
6590 | } |
6591 | |
6592 | |
6593 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6594 | PyObject *resultobj = 0; |
6595 | GLog *arg1 = (GLog *) 0 ; |
6596 | std::string *arg2 = 0 ; |
6597 | void *argp1 = 0 ; |
6598 | int res1 = 0 ; |
6599 | int res2 = SWIG_OLDOBJ((0)) ; |
6600 | PyObject * obj0 = 0 ; |
6601 | PyObject * obj1 = 0 ; |
6602 | |
6603 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_open",&obj0,&obj1)) SWIG_failgoto fail; |
6604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6605 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_open" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_open" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
6607 | } |
6608 | arg1 = reinterpret_cast< GLog * >(argp1); |
6609 | { |
6610 | std::string *ptr = (std::string *)0; |
6611 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
6612 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6613 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_open" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
6614 | } |
6615 | if (!ptr) { |
6616 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_open" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
6617 | } |
6618 | arg2 = ptr; |
6619 | } |
6620 | { |
6621 | try { |
6622 | (arg1)->open((std::string const &)*arg2); |
6623 | } |
6624 | catch (const GException::out_of_range& e) { |
6625 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6626 | } |
6627 | catch (const GExceptionHandler& e) { |
6628 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6629 | } |
6630 | catch (const std::exception& e) { |
6631 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6632 | } |
6633 | } |
6634 | resultobj = SWIG_Py_Void(); |
6635 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6636 | return resultobj; |
6637 | fail: |
6638 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
6639 | return NULL__null; |
6640 | } |
6641 | |
6642 | |
6643 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_open(PyObject *self, PyObject *args) { |
6644 | int argc; |
6645 | PyObject *argv[4]; |
6646 | int ii; |
6647 | |
6648 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6649 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6650 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
6651 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6652 | } |
6653 | if (argc == 2) { |
6654 | int _v; |
6655 | void *vptr = 0; |
6656 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
6657 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6658 | if (_v) { |
6659 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6660 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6661 | if (_v) { |
6662 | return _wrap_GLog_open__SWIG_1(self, args); |
6663 | } |
6664 | } |
6665 | } |
6666 | if (argc == 3) { |
6667 | int _v; |
6668 | void *vptr = 0; |
6669 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
6670 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6671 | if (_v) { |
6672 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6673 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6674 | if (_v) { |
6675 | { |
6676 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
6677 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6678 | } |
6679 | if (_v) { |
6680 | return _wrap_GLog_open__SWIG_0(self, args); |
6681 | } |
6682 | } |
6683 | } |
6684 | } |
6685 | |
6686 | fail: |
6687 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_open'.\n" |
6688 | " Possible C/C++ prototypes are:\n" |
6689 | " GLog::open(std::string const &,bool const &)\n" |
6690 | " GLog::open(std::string const &)\n"); |
6691 | return 0; |
6692 | } |
6693 | |
6694 | |
6695 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6696 | PyObject *resultobj = 0; |
6697 | GLog *arg1 = (GLog *) 0 ; |
6698 | void *argp1 = 0 ; |
6699 | int res1 = 0 ; |
6700 | PyObject * obj0 = 0 ; |
6701 | |
6702 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_close",&obj0)) SWIG_failgoto fail; |
6703 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6704 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_close" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_close" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
6706 | } |
6707 | arg1 = reinterpret_cast< GLog * >(argp1); |
6708 | { |
6709 | try { |
6710 | (arg1)->close(); |
6711 | } |
6712 | catch (const GException::out_of_range& e) { |
6713 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6714 | } |
6715 | catch (const GExceptionHandler& e) { |
6716 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6717 | } |
6718 | catch (const std::exception& e) { |
6719 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6720 | } |
6721 | } |
6722 | resultobj = SWIG_Py_Void(); |
6723 | return resultobj; |
6724 | fail: |
6725 | return NULL__null; |
6726 | } |
6727 | |
6728 | |
6729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_flush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6730 | PyObject *resultobj = 0; |
6731 | GLog *arg1 = (GLog *) 0 ; |
6732 | bool *arg2 = 0 ; |
6733 | void *argp1 = 0 ; |
6734 | int res1 = 0 ; |
6735 | bool temp2 ; |
6736 | bool val2 ; |
6737 | int ecode2 = 0 ; |
6738 | PyObject * obj0 = 0 ; |
6739 | PyObject * obj1 = 0 ; |
6740 | |
6741 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_flush",&obj0,&obj1)) SWIG_failgoto fail; |
6742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6743 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_flush" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_flush" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
6745 | } |
6746 | arg1 = reinterpret_cast< GLog * >(argp1); |
6747 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6748 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6749 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog_flush" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog_flush" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
6750 | } |
6751 | temp2 = static_cast< bool >(val2); |
6752 | arg2 = &temp2; |
6753 | { |
6754 | try { |
6755 | (arg1)->flush((bool const &)*arg2); |
6756 | } |
6757 | catch (const GException::out_of_range& e) { |
6758 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6759 | } |
6760 | catch (const GExceptionHandler& e) { |
6761 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6762 | } |
6763 | catch (const std::exception& e) { |
6764 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6765 | } |
6766 | } |
6767 | resultobj = SWIG_Py_Void(); |
6768 | return resultobj; |
6769 | fail: |
6770 | return NULL__null; |
6771 | } |
6772 | |
6773 | |
6774 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_flush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6775 | PyObject *resultobj = 0; |
6776 | GLog *arg1 = (GLog *) 0 ; |
6777 | void *argp1 = 0 ; |
6778 | int res1 = 0 ; |
6779 | PyObject * obj0 = 0 ; |
6780 | |
6781 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_flush",&obj0)) SWIG_failgoto fail; |
6782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6783 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_flush" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_flush" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
6785 | } |
6786 | arg1 = reinterpret_cast< GLog * >(argp1); |
6787 | { |
6788 | try { |
6789 | (arg1)->flush(); |
6790 | } |
6791 | catch (const GException::out_of_range& e) { |
6792 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6793 | } |
6794 | catch (const GExceptionHandler& e) { |
6795 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6796 | } |
6797 | catch (const std::exception& e) { |
6798 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6799 | } |
6800 | } |
6801 | resultobj = SWIG_Py_Void(); |
6802 | return resultobj; |
6803 | fail: |
6804 | return NULL__null; |
6805 | } |
6806 | |
6807 | |
6808 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_flush(PyObject *self, PyObject *args) { |
6809 | int argc; |
6810 | PyObject *argv[3]; |
6811 | int ii; |
6812 | |
6813 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6814 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6815 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6816 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6817 | } |
6818 | if (argc == 1) { |
6819 | int _v; |
6820 | void *vptr = 0; |
6821 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
6822 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6823 | if (_v) { |
6824 | return _wrap_GLog_flush__SWIG_1(self, args); |
6825 | } |
6826 | } |
6827 | if (argc == 2) { |
6828 | int _v; |
6829 | void *vptr = 0; |
6830 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
6831 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6832 | if (_v) { |
6833 | { |
6834 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
6835 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6836 | } |
6837 | if (_v) { |
6838 | return _wrap_GLog_flush__SWIG_0(self, args); |
6839 | } |
6840 | } |
6841 | } |
6842 | |
6843 | fail: |
6844 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_flush'.\n" |
6845 | " Possible C/C++ prototypes are:\n" |
6846 | " GLog::flush(bool const &)\n" |
6847 | " GLog::flush()\n"); |
6848 | return 0; |
6849 | } |
6850 | |
6851 | |
6852 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_date__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6853 | PyObject *resultobj = 0; |
6854 | GLog *arg1 = (GLog *) 0 ; |
6855 | bool *arg2 = 0 ; |
6856 | void *argp1 = 0 ; |
6857 | int res1 = 0 ; |
6858 | bool temp2 ; |
6859 | bool val2 ; |
6860 | int ecode2 = 0 ; |
6861 | PyObject * obj0 = 0 ; |
6862 | PyObject * obj1 = 0 ; |
6863 | |
6864 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_date",&obj0,&obj1)) SWIG_failgoto fail; |
6865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6866 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_date" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_date" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
6868 | } |
6869 | arg1 = reinterpret_cast< GLog * >(argp1); |
6870 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6871 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6872 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog_date" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog_date" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
6873 | } |
6874 | temp2 = static_cast< bool >(val2); |
6875 | arg2 = &temp2; |
6876 | { |
6877 | try { |
6878 | (arg1)->date((bool const &)*arg2); |
6879 | } |
6880 | catch (const GException::out_of_range& e) { |
6881 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6882 | } |
6883 | catch (const GExceptionHandler& e) { |
6884 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6885 | } |
6886 | catch (const std::exception& e) { |
6887 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6888 | } |
6889 | } |
6890 | resultobj = SWIG_Py_Void(); |
6891 | return resultobj; |
6892 | fail: |
6893 | return NULL__null; |
6894 | } |
6895 | |
6896 | |
6897 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_cout__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6898 | PyObject *resultobj = 0; |
6899 | GLog *arg1 = (GLog *) 0 ; |
6900 | bool *arg2 = 0 ; |
6901 | void *argp1 = 0 ; |
6902 | int res1 = 0 ; |
6903 | bool temp2 ; |
6904 | bool val2 ; |
6905 | int ecode2 = 0 ; |
6906 | PyObject * obj0 = 0 ; |
6907 | PyObject * obj1 = 0 ; |
6908 | |
6909 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_cout",&obj0,&obj1)) SWIG_failgoto fail; |
6910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6911 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_cout" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_cout" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
6913 | } |
6914 | arg1 = reinterpret_cast< GLog * >(argp1); |
6915 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6916 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6917 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog_cout" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog_cout" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
6918 | } |
6919 | temp2 = static_cast< bool >(val2); |
6920 | arg2 = &temp2; |
6921 | { |
6922 | try { |
6923 | (arg1)->cout((bool const &)*arg2); |
6924 | } |
6925 | catch (const GException::out_of_range& e) { |
6926 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6927 | } |
6928 | catch (const GExceptionHandler& e) { |
6929 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6930 | } |
6931 | catch (const std::exception& e) { |
6932 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6933 | } |
6934 | } |
6935 | resultobj = SWIG_Py_Void(); |
6936 | return resultobj; |
6937 | fail: |
6938 | return NULL__null; |
6939 | } |
6940 | |
6941 | |
6942 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_cerr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6943 | PyObject *resultobj = 0; |
6944 | GLog *arg1 = (GLog *) 0 ; |
6945 | bool *arg2 = 0 ; |
6946 | void *argp1 = 0 ; |
6947 | int res1 = 0 ; |
6948 | bool temp2 ; |
6949 | bool val2 ; |
6950 | int ecode2 = 0 ; |
6951 | PyObject * obj0 = 0 ; |
6952 | PyObject * obj1 = 0 ; |
6953 | |
6954 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_cerr",&obj0,&obj1)) SWIG_failgoto fail; |
6955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6956 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_cerr" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_cerr" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
6958 | } |
6959 | arg1 = reinterpret_cast< GLog * >(argp1); |
6960 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
6961 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6962 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog_cerr" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog_cerr" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
6963 | } |
6964 | temp2 = static_cast< bool >(val2); |
6965 | arg2 = &temp2; |
6966 | { |
6967 | try { |
6968 | (arg1)->cerr((bool const &)*arg2); |
6969 | } |
6970 | catch (const GException::out_of_range& e) { |
6971 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6972 | } |
6973 | catch (const GExceptionHandler& e) { |
6974 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6975 | } |
6976 | catch (const std::exception& e) { |
6977 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6978 | } |
6979 | } |
6980 | resultobj = SWIG_Py_Void(); |
6981 | return resultobj; |
6982 | fail: |
6983 | return NULL__null; |
6984 | } |
6985 | |
6986 | |
6987 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6988 | PyObject *resultobj = 0; |
6989 | GLog *arg1 = (GLog *) 0 ; |
6990 | std::string *arg2 = 0 ; |
6991 | void *argp1 = 0 ; |
6992 | int res1 = 0 ; |
6993 | int res2 = SWIG_OLDOBJ((0)) ; |
6994 | PyObject * obj0 = 0 ; |
6995 | PyObject * obj1 = 0 ; |
6996 | |
6997 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_name",&obj0,&obj1)) SWIG_failgoto fail; |
6998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
6999 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_name" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_name" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
7001 | } |
7002 | arg1 = reinterpret_cast< GLog * >(argp1); |
7003 | { |
7004 | std::string *ptr = (std::string *)0; |
7005 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7006 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7007 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_name" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
7008 | } |
7009 | if (!ptr) { |
7010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_name" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7011 | } |
7012 | arg2 = ptr; |
7013 | } |
7014 | { |
7015 | try { |
7016 | (arg1)->name((std::string const &)*arg2); |
7017 | } |
7018 | catch (const GException::out_of_range& e) { |
7019 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7020 | } |
7021 | catch (const GExceptionHandler& e) { |
7022 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7023 | } |
7024 | catch (const std::exception& e) { |
7025 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7026 | } |
7027 | } |
7028 | resultobj = SWIG_Py_Void(); |
7029 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7030 | return resultobj; |
7031 | fail: |
7032 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7033 | return NULL__null; |
7034 | } |
7035 | |
7036 | |
7037 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_max_size__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7038 | PyObject *resultobj = 0; |
7039 | GLog *arg1 = (GLog *) 0 ; |
7040 | int *arg2 = 0 ; |
7041 | void *argp1 = 0 ; |
7042 | int res1 = 0 ; |
7043 | int temp2 ; |
7044 | int val2 ; |
7045 | int ecode2 = 0 ; |
7046 | PyObject * obj0 = 0 ; |
7047 | PyObject * obj1 = 0 ; |
7048 | |
7049 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_max_size",&obj0,&obj1)) SWIG_failgoto fail; |
7050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7051 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_max_size" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_max_size" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
7053 | } |
7054 | arg1 = reinterpret_cast< GLog * >(argp1); |
7055 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7056 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7057 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog_max_size" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog_max_size" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7058 | } |
7059 | temp2 = static_cast< int >(val2); |
7060 | arg2 = &temp2; |
7061 | { |
7062 | try { |
7063 | (arg1)->max_size((int const &)*arg2); |
7064 | } |
7065 | catch (const GException::out_of_range& e) { |
7066 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7067 | } |
7068 | catch (const GExceptionHandler& e) { |
7069 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7070 | } |
7071 | catch (const std::exception& e) { |
7072 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7073 | } |
7074 | } |
7075 | resultobj = SWIG_Py_Void(); |
7076 | return resultobj; |
7077 | fail: |
7078 | return NULL__null; |
7079 | } |
7080 | |
7081 | |
7082 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_indent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7083 | PyObject *resultobj = 0; |
7084 | GLog *arg1 = (GLog *) 0 ; |
7085 | int *arg2 = 0 ; |
7086 | void *argp1 = 0 ; |
7087 | int res1 = 0 ; |
7088 | int temp2 ; |
7089 | int val2 ; |
7090 | int ecode2 = 0 ; |
7091 | PyObject * obj0 = 0 ; |
7092 | PyObject * obj1 = 0 ; |
7093 | |
7094 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_indent",&obj0,&obj1)) SWIG_failgoto fail; |
7095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7096 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_indent" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_indent" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
7098 | } |
7099 | arg1 = reinterpret_cast< GLog * >(argp1); |
7100 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7101 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7102 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog_indent" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog_indent" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7103 | } |
7104 | temp2 = static_cast< int >(val2); |
7105 | arg2 = &temp2; |
7106 | { |
7107 | try { |
7108 | (arg1)->indent((int const &)*arg2); |
7109 | } |
7110 | catch (const GException::out_of_range& e) { |
7111 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7112 | } |
7113 | catch (const GExceptionHandler& e) { |
7114 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7115 | } |
7116 | catch (const std::exception& e) { |
7117 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7118 | } |
7119 | } |
7120 | resultobj = SWIG_Py_Void(); |
7121 | return resultobj; |
7122 | fail: |
7123 | return NULL__null; |
7124 | } |
7125 | |
7126 | |
7127 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_chatter__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7128 | PyObject *resultobj = 0; |
7129 | GLog *arg1 = (GLog *) 0 ; |
7130 | GChatter *arg2 = 0 ; |
7131 | void *argp1 = 0 ; |
7132 | int res1 = 0 ; |
7133 | void *argp2 = 0 ; |
7134 | int res2 = 0 ; |
7135 | PyObject * obj0 = 0 ; |
7136 | PyObject * obj1 = 0 ; |
7137 | |
7138 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_chatter",&obj0,&obj1)) SWIG_failgoto fail; |
7139 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7140 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_chatter" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_chatter" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
7142 | } |
7143 | arg1 = reinterpret_cast< GLog * >(argp1); |
7144 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GChatter, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2], 0 | 0, 0); |
7145 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7146 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_chatter" "', argument " "2"" of type '" "GChatter const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_chatter" "', argument " "2"" of type '" "GChatter const &""'"); goto fail; } while (0); |
7147 | } |
7148 | if (!argp2) { |
7149 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_chatter" "', argument " "2"" of type '" "GChatter const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_chatter" "', argument " "2"" of type '" "GChatter const &" "'"); goto fail; } while(0); |
7150 | } |
7151 | arg2 = reinterpret_cast< GChatter * >(argp2); |
7152 | { |
7153 | try { |
7154 | (arg1)->chatter((GChatter const &)*arg2); |
7155 | } |
7156 | catch (const GException::out_of_range& e) { |
7157 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7158 | } |
7159 | catch (const GExceptionHandler& e) { |
7160 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7161 | } |
7162 | catch (const std::exception& e) { |
7163 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7164 | } |
7165 | } |
7166 | resultobj = SWIG_Py_Void(); |
7167 | return resultobj; |
7168 | fail: |
7169 | return NULL__null; |
7170 | } |
7171 | |
7172 | |
7173 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_header0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7174 | PyObject *resultobj = 0; |
7175 | GLog *arg1 = (GLog *) 0 ; |
7176 | std::string *arg2 = 0 ; |
7177 | void *argp1 = 0 ; |
7178 | int res1 = 0 ; |
7179 | int res2 = SWIG_OLDOBJ((0)) ; |
7180 | PyObject * obj0 = 0 ; |
7181 | PyObject * obj1 = 0 ; |
7182 | |
7183 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_header0",&obj0,&obj1)) SWIG_failgoto fail; |
7184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7185 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_header0" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_header0" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
7187 | } |
7188 | arg1 = reinterpret_cast< GLog * >(argp1); |
7189 | { |
7190 | std::string *ptr = (std::string *)0; |
7191 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7192 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7193 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_header0" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_header0" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7194 | } |
7195 | if (!ptr) { |
7196 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_header0" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_header0" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7197 | } |
7198 | arg2 = ptr; |
7199 | } |
7200 | { |
7201 | try { |
7202 | (arg1)->header0((std::string const &)*arg2); |
7203 | } |
7204 | catch (const GException::out_of_range& e) { |
7205 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7206 | } |
7207 | catch (const GExceptionHandler& e) { |
7208 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7209 | } |
7210 | catch (const std::exception& e) { |
7211 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7212 | } |
7213 | } |
7214 | resultobj = SWIG_Py_Void(); |
7215 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7216 | return resultobj; |
7217 | fail: |
7218 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7219 | return NULL__null; |
7220 | } |
7221 | |
7222 | |
7223 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_header1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7224 | PyObject *resultobj = 0; |
7225 | GLog *arg1 = (GLog *) 0 ; |
7226 | std::string *arg2 = 0 ; |
7227 | void *argp1 = 0 ; |
7228 | int res1 = 0 ; |
7229 | int res2 = SWIG_OLDOBJ((0)) ; |
7230 | PyObject * obj0 = 0 ; |
7231 | PyObject * obj1 = 0 ; |
7232 | |
7233 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_header1",&obj0,&obj1)) SWIG_failgoto fail; |
7234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7235 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_header1" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_header1" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
7237 | } |
7238 | arg1 = reinterpret_cast< GLog * >(argp1); |
7239 | { |
7240 | std::string *ptr = (std::string *)0; |
7241 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7242 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7243 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_header1" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_header1" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7244 | } |
7245 | if (!ptr) { |
7246 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_header1" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_header1" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7247 | } |
7248 | arg2 = ptr; |
7249 | } |
7250 | { |
7251 | try { |
7252 | (arg1)->header1((std::string const &)*arg2); |
7253 | } |
7254 | catch (const GException::out_of_range& e) { |
7255 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7256 | } |
7257 | catch (const GExceptionHandler& e) { |
7258 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7259 | } |
7260 | catch (const std::exception& e) { |
7261 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7262 | } |
7263 | } |
7264 | resultobj = SWIG_Py_Void(); |
7265 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7266 | return resultobj; |
7267 | fail: |
7268 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7269 | return NULL__null; |
7270 | } |
7271 | |
7272 | |
7273 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_header2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7274 | PyObject *resultobj = 0; |
7275 | GLog *arg1 = (GLog *) 0 ; |
7276 | std::string *arg2 = 0 ; |
7277 | void *argp1 = 0 ; |
7278 | int res1 = 0 ; |
7279 | int res2 = SWIG_OLDOBJ((0)) ; |
7280 | PyObject * obj0 = 0 ; |
7281 | PyObject * obj1 = 0 ; |
7282 | |
7283 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_header2",&obj0,&obj1)) SWIG_failgoto fail; |
7284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7285 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_header2" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_header2" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
7287 | } |
7288 | arg1 = reinterpret_cast< GLog * >(argp1); |
7289 | { |
7290 | std::string *ptr = (std::string *)0; |
7291 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7292 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7293 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_header2" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_header2" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7294 | } |
7295 | if (!ptr) { |
7296 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_header2" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_header2" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7297 | } |
7298 | arg2 = ptr; |
7299 | } |
7300 | { |
7301 | try { |
7302 | (arg1)->header2((std::string const &)*arg2); |
7303 | } |
7304 | catch (const GException::out_of_range& e) { |
7305 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7306 | } |
7307 | catch (const GExceptionHandler& e) { |
7308 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7309 | } |
7310 | catch (const std::exception& e) { |
7311 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7312 | } |
7313 | } |
7314 | resultobj = SWIG_Py_Void(); |
7315 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7316 | return resultobj; |
7317 | fail: |
7318 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7319 | return NULL__null; |
7320 | } |
7321 | |
7322 | |
7323 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_header3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7324 | PyObject *resultobj = 0; |
7325 | GLog *arg1 = (GLog *) 0 ; |
7326 | std::string *arg2 = 0 ; |
7327 | void *argp1 = 0 ; |
7328 | int res1 = 0 ; |
7329 | int res2 = SWIG_OLDOBJ((0)) ; |
7330 | PyObject * obj0 = 0 ; |
7331 | PyObject * obj1 = 0 ; |
7332 | |
7333 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_header3",&obj0,&obj1)) SWIG_failgoto fail; |
7334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7335 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_header3" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_header3" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
7337 | } |
7338 | arg1 = reinterpret_cast< GLog * >(argp1); |
7339 | { |
7340 | std::string *ptr = (std::string *)0; |
7341 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7342 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7343 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_header3" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_header3" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7344 | } |
7345 | if (!ptr) { |
7346 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_header3" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_header3" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7347 | } |
7348 | arg2 = ptr; |
7349 | } |
7350 | { |
7351 | try { |
7352 | (arg1)->header3((std::string const &)*arg2); |
7353 | } |
7354 | catch (const GException::out_of_range& e) { |
7355 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7356 | } |
7357 | catch (const GExceptionHandler& e) { |
7358 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7359 | } |
7360 | catch (const std::exception& e) { |
7361 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7362 | } |
7363 | } |
7364 | resultobj = SWIG_Py_Void(); |
7365 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7366 | return resultobj; |
7367 | fail: |
7368 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7369 | return NULL__null; |
7370 | } |
7371 | |
7372 | |
7373 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_date__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7374 | PyObject *resultobj = 0; |
7375 | GLog *arg1 = (GLog *) 0 ; |
7376 | void *argp1 = 0 ; |
7377 | int res1 = 0 ; |
7378 | PyObject * obj0 = 0 ; |
7379 | bool *result = 0 ; |
7380 | |
7381 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_date",&obj0)) SWIG_failgoto fail; |
7382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7383 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_date" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_date" "', argument " "1" " of type '" "GLog const *""'"); goto fail; } while(0); |
7385 | } |
7386 | arg1 = reinterpret_cast< GLog * >(argp1); |
7387 | { |
7388 | try { |
7389 | result = (bool *) &((GLog const *)arg1)->date(); |
7390 | } |
7391 | catch (const GException::out_of_range& e) { |
7392 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7393 | } |
7394 | catch (const GExceptionHandler& e) { |
7395 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7396 | } |
7397 | catch (const std::exception& e) { |
7398 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7399 | } |
7400 | } |
7401 | resultobj = SWIG_From_bool(static_cast< bool >(*result)); |
7402 | return resultobj; |
7403 | fail: |
7404 | return NULL__null; |
7405 | } |
7406 | |
7407 | |
7408 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_date(PyObject *self, PyObject *args) { |
7409 | int argc; |
7410 | PyObject *argv[3]; |
7411 | int ii; |
7412 | |
7413 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7414 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7415 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7416 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7417 | } |
7418 | if (argc == 1) { |
7419 | int _v; |
7420 | void *vptr = 0; |
7421 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7422 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7423 | if (_v) { |
7424 | return _wrap_GLog_date__SWIG_1(self, args); |
7425 | } |
7426 | } |
7427 | if (argc == 2) { |
7428 | int _v; |
7429 | void *vptr = 0; |
7430 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7431 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7432 | if (_v) { |
7433 | { |
7434 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
7435 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7436 | } |
7437 | if (_v) { |
7438 | return _wrap_GLog_date__SWIG_0(self, args); |
7439 | } |
7440 | } |
7441 | } |
7442 | |
7443 | fail: |
7444 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_date'.\n" |
7445 | " Possible C/C++ prototypes are:\n" |
7446 | " GLog::date(bool const &)\n" |
7447 | " GLog::date() const\n"); |
7448 | return 0; |
7449 | } |
7450 | |
7451 | |
7452 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_cout__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7453 | PyObject *resultobj = 0; |
7454 | GLog *arg1 = (GLog *) 0 ; |
7455 | void *argp1 = 0 ; |
7456 | int res1 = 0 ; |
7457 | PyObject * obj0 = 0 ; |
7458 | bool *result = 0 ; |
7459 | |
7460 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_cout",&obj0)) SWIG_failgoto fail; |
7461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7462 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_cout" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_cout" "', argument " "1" " of type '" "GLog const *""'"); goto fail; } while(0); |
7464 | } |
7465 | arg1 = reinterpret_cast< GLog * >(argp1); |
7466 | { |
7467 | try { |
7468 | result = (bool *) &((GLog const *)arg1)->cout(); |
7469 | } |
7470 | catch (const GException::out_of_range& e) { |
7471 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7472 | } |
7473 | catch (const GExceptionHandler& e) { |
7474 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7475 | } |
7476 | catch (const std::exception& e) { |
7477 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7478 | } |
7479 | } |
7480 | resultobj = SWIG_From_bool(static_cast< bool >(*result)); |
7481 | return resultobj; |
7482 | fail: |
7483 | return NULL__null; |
7484 | } |
7485 | |
7486 | |
7487 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_cout(PyObject *self, PyObject *args) { |
7488 | int argc; |
7489 | PyObject *argv[3]; |
7490 | int ii; |
7491 | |
7492 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7493 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7494 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7495 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7496 | } |
7497 | if (argc == 1) { |
7498 | int _v; |
7499 | void *vptr = 0; |
7500 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7501 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7502 | if (_v) { |
7503 | return _wrap_GLog_cout__SWIG_1(self, args); |
7504 | } |
7505 | } |
7506 | if (argc == 2) { |
7507 | int _v; |
7508 | void *vptr = 0; |
7509 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7510 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7511 | if (_v) { |
7512 | { |
7513 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
7514 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7515 | } |
7516 | if (_v) { |
7517 | return _wrap_GLog_cout__SWIG_0(self, args); |
7518 | } |
7519 | } |
7520 | } |
7521 | |
7522 | fail: |
7523 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_cout'.\n" |
7524 | " Possible C/C++ prototypes are:\n" |
7525 | " GLog::cout(bool const &)\n" |
7526 | " GLog::cout() const\n"); |
7527 | return 0; |
7528 | } |
7529 | |
7530 | |
7531 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_cerr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7532 | PyObject *resultobj = 0; |
7533 | GLog *arg1 = (GLog *) 0 ; |
7534 | void *argp1 = 0 ; |
7535 | int res1 = 0 ; |
7536 | PyObject * obj0 = 0 ; |
7537 | bool *result = 0 ; |
7538 | |
7539 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_cerr",&obj0)) SWIG_failgoto fail; |
7540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7541 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_cerr" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_cerr" "', argument " "1" " of type '" "GLog const *""'"); goto fail; } while(0); |
7543 | } |
7544 | arg1 = reinterpret_cast< GLog * >(argp1); |
7545 | { |
7546 | try { |
7547 | result = (bool *) &((GLog const *)arg1)->cerr(); |
7548 | } |
7549 | catch (const GException::out_of_range& e) { |
7550 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7551 | } |
7552 | catch (const GExceptionHandler& e) { |
7553 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7554 | } |
7555 | catch (const std::exception& e) { |
7556 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7557 | } |
7558 | } |
7559 | resultobj = SWIG_From_bool(static_cast< bool >(*result)); |
7560 | return resultobj; |
7561 | fail: |
7562 | return NULL__null; |
7563 | } |
7564 | |
7565 | |
7566 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_cerr(PyObject *self, PyObject *args) { |
7567 | int argc; |
7568 | PyObject *argv[3]; |
7569 | int ii; |
7570 | |
7571 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7572 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7573 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7574 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7575 | } |
7576 | if (argc == 1) { |
7577 | int _v; |
7578 | void *vptr = 0; |
7579 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7580 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7581 | if (_v) { |
7582 | return _wrap_GLog_cerr__SWIG_1(self, args); |
7583 | } |
7584 | } |
7585 | if (argc == 2) { |
7586 | int _v; |
7587 | void *vptr = 0; |
7588 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7589 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7590 | if (_v) { |
7591 | { |
7592 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
7593 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7594 | } |
7595 | if (_v) { |
7596 | return _wrap_GLog_cerr__SWIG_0(self, args); |
7597 | } |
7598 | } |
7599 | } |
7600 | |
7601 | fail: |
7602 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_cerr'.\n" |
7603 | " Possible C/C++ prototypes are:\n" |
7604 | " GLog::cerr(bool const &)\n" |
7605 | " GLog::cerr() const\n"); |
7606 | return 0; |
7607 | } |
7608 | |
7609 | |
7610 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7611 | PyObject *resultobj = 0; |
7612 | GLog *arg1 = (GLog *) 0 ; |
7613 | void *argp1 = 0 ; |
7614 | int res1 = 0 ; |
7615 | PyObject * obj0 = 0 ; |
7616 | std::string *result = 0 ; |
7617 | |
7618 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_name",&obj0)) SWIG_failgoto fail; |
7619 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7620 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_name" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_name" "', argument " "1" " of type '" "GLog const *""'"); goto fail; } while(0); |
7622 | } |
7623 | arg1 = reinterpret_cast< GLog * >(argp1); |
7624 | { |
7625 | try { |
7626 | result = (std::string *) &((GLog const *)arg1)->name(); |
7627 | } |
7628 | catch (const GException::out_of_range& e) { |
7629 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7630 | } |
7631 | catch (const GExceptionHandler& e) { |
7632 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7633 | } |
7634 | catch (const std::exception& e) { |
7635 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7636 | } |
7637 | } |
7638 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
7639 | return resultobj; |
7640 | fail: |
7641 | return NULL__null; |
7642 | } |
7643 | |
7644 | |
7645 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_name(PyObject *self, PyObject *args) { |
7646 | int argc; |
7647 | PyObject *argv[3]; |
7648 | int ii; |
7649 | |
7650 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7651 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7652 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7653 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7654 | } |
7655 | if (argc == 1) { |
7656 | int _v; |
7657 | void *vptr = 0; |
7658 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7659 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7660 | if (_v) { |
7661 | return _wrap_GLog_name__SWIG_1(self, args); |
7662 | } |
7663 | } |
7664 | if (argc == 2) { |
7665 | int _v; |
7666 | void *vptr = 0; |
7667 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7668 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7669 | if (_v) { |
7670 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
7671 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7672 | if (_v) { |
7673 | return _wrap_GLog_name__SWIG_0(self, args); |
7674 | } |
7675 | } |
7676 | } |
7677 | |
7678 | fail: |
7679 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_name'.\n" |
7680 | " Possible C/C++ prototypes are:\n" |
7681 | " GLog::name(std::string const &)\n" |
7682 | " GLog::name() const\n"); |
7683 | return 0; |
7684 | } |
7685 | |
7686 | |
7687 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_max_size__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7688 | PyObject *resultobj = 0; |
7689 | GLog *arg1 = (GLog *) 0 ; |
7690 | void *argp1 = 0 ; |
7691 | int res1 = 0 ; |
7692 | PyObject * obj0 = 0 ; |
7693 | int *result = 0 ; |
7694 | |
7695 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_max_size",&obj0)) SWIG_failgoto fail; |
7696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7697 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_max_size" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_max_size" "', argument " "1"" of type '" "GLog const *""'"); goto fail; } while(0); |
7699 | } |
7700 | arg1 = reinterpret_cast< GLog * >(argp1); |
7701 | { |
7702 | try { |
7703 | result = (int *) &((GLog const *)arg1)->max_size(); |
7704 | } |
7705 | catch (const GException::out_of_range& e) { |
7706 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7707 | } |
7708 | catch (const GExceptionHandler& e) { |
7709 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7710 | } |
7711 | catch (const std::exception& e) { |
7712 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7713 | } |
7714 | } |
7715 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7716 | return resultobj; |
7717 | fail: |
7718 | return NULL__null; |
7719 | } |
7720 | |
7721 | |
7722 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_max_size(PyObject *self, PyObject *args) { |
7723 | int argc; |
7724 | PyObject *argv[3]; |
7725 | int ii; |
7726 | |
7727 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7728 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7729 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7730 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7731 | } |
7732 | if (argc == 1) { |
7733 | int _v; |
7734 | void *vptr = 0; |
7735 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7736 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7737 | if (_v) { |
7738 | return _wrap_GLog_max_size__SWIG_1(self, args); |
7739 | } |
7740 | } |
7741 | if (argc == 2) { |
7742 | int _v; |
7743 | void *vptr = 0; |
7744 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7745 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7746 | if (_v) { |
7747 | { |
7748 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
7749 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7750 | } |
7751 | if (_v) { |
7752 | return _wrap_GLog_max_size__SWIG_0(self, args); |
7753 | } |
7754 | } |
7755 | } |
7756 | |
7757 | fail: |
7758 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_max_size'.\n" |
7759 | " Possible C/C++ prototypes are:\n" |
7760 | " GLog::max_size(int const &)\n" |
7761 | " GLog::max_size() const\n"); |
7762 | return 0; |
7763 | } |
7764 | |
7765 | |
7766 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_indent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7767 | PyObject *resultobj = 0; |
7768 | GLog *arg1 = (GLog *) 0 ; |
7769 | void *argp1 = 0 ; |
7770 | int res1 = 0 ; |
7771 | PyObject * obj0 = 0 ; |
7772 | int *result = 0 ; |
7773 | |
7774 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_indent",&obj0)) SWIG_failgoto fail; |
7775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7776 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_indent" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_indent" "', argument " "1"" of type '" "GLog const *""'"); goto fail; } while(0); |
7778 | } |
7779 | arg1 = reinterpret_cast< GLog * >(argp1); |
7780 | { |
7781 | try { |
7782 | result = (int *) &((GLog const *)arg1)->indent(); |
7783 | } |
7784 | catch (const GException::out_of_range& e) { |
7785 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7786 | } |
7787 | catch (const GExceptionHandler& e) { |
7788 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7789 | } |
7790 | catch (const std::exception& e) { |
7791 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7792 | } |
7793 | } |
7794 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7795 | return resultobj; |
7796 | fail: |
7797 | return NULL__null; |
7798 | } |
7799 | |
7800 | |
7801 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_indent(PyObject *self, PyObject *args) { |
7802 | int argc; |
7803 | PyObject *argv[3]; |
7804 | int ii; |
7805 | |
7806 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7807 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7808 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7809 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7810 | } |
7811 | if (argc == 1) { |
7812 | int _v; |
7813 | void *vptr = 0; |
7814 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7815 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7816 | if (_v) { |
7817 | return _wrap_GLog_indent__SWIG_1(self, args); |
7818 | } |
7819 | } |
7820 | if (argc == 2) { |
7821 | int _v; |
7822 | void *vptr = 0; |
7823 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7824 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7825 | if (_v) { |
7826 | { |
7827 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
7828 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7829 | } |
7830 | if (_v) { |
7831 | return _wrap_GLog_indent__SWIG_0(self, args); |
7832 | } |
7833 | } |
7834 | } |
7835 | |
7836 | fail: |
7837 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_indent'.\n" |
7838 | " Possible C/C++ prototypes are:\n" |
7839 | " GLog::indent(int const &)\n" |
7840 | " GLog::indent() const\n"); |
7841 | return 0; |
7842 | } |
7843 | |
7844 | |
7845 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_chatter__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7846 | PyObject *resultobj = 0; |
7847 | GLog *arg1 = (GLog *) 0 ; |
7848 | void *argp1 = 0 ; |
7849 | int res1 = 0 ; |
7850 | PyObject * obj0 = 0 ; |
7851 | GChatter *result = 0 ; |
7852 | |
7853 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_chatter",&obj0)) SWIG_failgoto fail; |
7854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7855 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_chatter" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_chatter" "', argument " "1"" of type '" "GLog const *""'"); goto fail; } while(0); |
7857 | } |
7858 | arg1 = reinterpret_cast< GLog * >(argp1); |
7859 | { |
7860 | try { |
7861 | result = (GChatter *) &((GLog const *)arg1)->chatter(); |
7862 | } |
7863 | catch (const GException::out_of_range& e) { |
7864 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7865 | } |
7866 | catch (const GExceptionHandler& e) { |
7867 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7868 | } |
7869 | catch (const std::exception& e) { |
7870 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7871 | } |
7872 | } |
7873 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GChatter, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], 0 | 0); |
7874 | return resultobj; |
7875 | fail: |
7876 | return NULL__null; |
7877 | } |
7878 | |
7879 | |
7880 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_chatter(PyObject *self, PyObject *args) { |
7881 | int argc; |
7882 | PyObject *argv[3]; |
7883 | int ii; |
7884 | |
7885 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7886 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7887 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7888 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7889 | } |
7890 | if (argc == 1) { |
7891 | int _v; |
7892 | void *vptr = 0; |
7893 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7894 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7895 | if (_v) { |
7896 | return _wrap_GLog_chatter__SWIG_1(self, args); |
7897 | } |
7898 | } |
7899 | if (argc == 2) { |
7900 | int _v; |
7901 | void *vptr = 0; |
7902 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
7903 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7904 | if (_v) { |
7905 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GChatter, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[2], 0, 0); |
7906 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7907 | if (_v) { |
7908 | return _wrap_GLog_chatter__SWIG_0(self, args); |
7909 | } |
7910 | } |
7911 | } |
7912 | |
7913 | fail: |
7914 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog_chatter'.\n" |
7915 | " Possible C/C++ prototypes are:\n" |
7916 | " GLog::chatter(GChatter const &)\n" |
7917 | " GLog::chatter() const\n"); |
7918 | return 0; |
7919 | } |
7920 | |
7921 | |
7922 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_filename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7923 | PyObject *resultobj = 0; |
7924 | GLog *arg1 = (GLog *) 0 ; |
7925 | void *argp1 = 0 ; |
7926 | int res1 = 0 ; |
7927 | PyObject * obj0 = 0 ; |
7928 | std::string *result = 0 ; |
7929 | |
7930 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_filename",&obj0)) SWIG_failgoto fail; |
7931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7932 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_filename" "', argument " "1"" of type '" "GLog const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_filename" "', argument " "1"" of type '" "GLog const *""'"); goto fail; } while(0); |
7934 | } |
7935 | arg1 = reinterpret_cast< GLog * >(argp1); |
7936 | { |
7937 | try { |
7938 | result = (std::string *) &((GLog const *)arg1)->filename(); |
7939 | } |
7940 | catch (const GException::out_of_range& e) { |
7941 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7942 | } |
7943 | catch (const GExceptionHandler& e) { |
7944 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7945 | } |
7946 | catch (const std::exception& e) { |
7947 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7948 | } |
7949 | } |
7950 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
7951 | return resultobj; |
7952 | fail: |
7953 | return NULL__null; |
7954 | } |
7955 | |
7956 | |
7957 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7958 | PyObject *resultobj = 0; |
7959 | GLog *arg1 = (GLog *) 0 ; |
7960 | void *argp1 = 0 ; |
7961 | int res1 = 0 ; |
7962 | PyObject * obj0 = 0 ; |
7963 | GLog result; |
7964 | |
7965 | if (!PyArg_ParseTuple(args,(char *)"O:GLog_copy",&obj0)) SWIG_failgoto fail; |
7966 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7967 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_copy" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_copy" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
7969 | } |
7970 | arg1 = reinterpret_cast< GLog * >(argp1); |
7971 | { |
7972 | try { |
7973 | result = GLog_copy(arg1); |
7974 | } |
7975 | catch (const GException::out_of_range& e) { |
7976 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7977 | } |
7978 | catch (const GExceptionHandler& e) { |
7979 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7980 | } |
7981 | catch (const std::exception& e) { |
7982 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7983 | } |
7984 | } |
7985 | resultobj = SWIG_NewPointerObj((new GLog(static_cast< const GLog& >(result))), SWIGTYPE_p_GLog, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLog(static_cast< const GLog& >(result))), swig_types[4], 0x1 | 0); |
7986 | return resultobj; |
7987 | fail: |
7988 | return NULL__null; |
7989 | } |
7990 | |
7991 | |
7992 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7993 | PyObject *resultobj = 0; |
7994 | GLog *arg1 = (GLog *) 0 ; |
7995 | GLog *arg2 = 0 ; |
7996 | void *argp1 = 0 ; |
7997 | int res1 = 0 ; |
7998 | void *argp2 = 0 ; |
7999 | int res2 = 0 ; |
8000 | PyObject * obj0 = 0 ; |
8001 | PyObject * obj1 = 0 ; |
8002 | |
8003 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog___call__",&obj0,&obj1)) SWIG_failgoto fail; |
8004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8005 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8007 | } |
8008 | arg1 = reinterpret_cast< GLog * >(argp1); |
8009 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLog, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4], 0, 0); |
8010 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8011 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog___call__" "', argument " "2"" of type '" "GLog &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog___call__" "', argument " "2"" of type '" "GLog &""'"); goto fail; } while(0); |
8012 | } |
8013 | if (!argp2) { |
8014 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog___call__" "', argument " "2"" of type '" "GLog &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog___call__" "', argument " "2"" of type '" "GLog &""'"); goto fail; } while(0); |
8015 | } |
8016 | arg2 = reinterpret_cast< GLog * >(argp2); |
8017 | { |
8018 | try { |
8019 | GLog___call____SWIG_0(arg1,*arg2); |
8020 | } |
8021 | catch (const GException::out_of_range& e) { |
8022 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8023 | } |
8024 | catch (const GExceptionHandler& e) { |
8025 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8026 | } |
8027 | catch (const std::exception& e) { |
8028 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8029 | } |
8030 | } |
8031 | resultobj = SWIG_Py_Void(); |
8032 | return resultobj; |
8033 | fail: |
8034 | return NULL__null; |
8035 | } |
8036 | |
8037 | |
8038 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8039 | PyObject *resultobj = 0; |
8040 | GLog *arg1 = (GLog *) 0 ; |
8041 | std::string *arg2 = 0 ; |
8042 | void *argp1 = 0 ; |
8043 | int res1 = 0 ; |
8044 | int res2 = SWIG_OLDOBJ((0)) ; |
8045 | PyObject * obj0 = 0 ; |
8046 | PyObject * obj1 = 0 ; |
8047 | |
8048 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog___call__",&obj0,&obj1)) SWIG_failgoto fail; |
8049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8050 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8052 | } |
8053 | arg1 = reinterpret_cast< GLog * >(argp1); |
8054 | { |
8055 | std::string *ptr = (std::string *)0; |
8056 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8057 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8058 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog___call__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8059 | } |
8060 | if (!ptr) { |
8061 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog___call__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog___call__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8062 | } |
8063 | arg2 = ptr; |
8064 | } |
8065 | { |
8066 | try { |
8067 | GLog___call____SWIG_1(arg1,(std::string const &)*arg2); |
8068 | } |
8069 | catch (const GException::out_of_range& e) { |
8070 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8071 | } |
8072 | catch (const GExceptionHandler& e) { |
8073 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8074 | } |
8075 | catch (const std::exception& e) { |
8076 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8077 | } |
8078 | } |
8079 | resultobj = SWIG_Py_Void(); |
8080 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8081 | return resultobj; |
8082 | fail: |
8083 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8084 | return NULL__null; |
8085 | } |
8086 | |
8087 | |
8088 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog___call____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8089 | PyObject *resultobj = 0; |
8090 | GLog *arg1 = (GLog *) 0 ; |
8091 | bool *arg2 = 0 ; |
8092 | void *argp1 = 0 ; |
8093 | int res1 = 0 ; |
8094 | bool temp2 ; |
8095 | bool val2 ; |
8096 | int ecode2 = 0 ; |
8097 | PyObject * obj0 = 0 ; |
8098 | PyObject * obj1 = 0 ; |
8099 | |
8100 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog___call__",&obj0,&obj1)) SWIG_failgoto fail; |
8101 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8102 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8104 | } |
8105 | arg1 = reinterpret_cast< GLog * >(argp1); |
8106 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
8107 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8108 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog___call__" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog___call__" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
8109 | } |
8110 | temp2 = static_cast< bool >(val2); |
8111 | arg2 = &temp2; |
8112 | { |
8113 | try { |
8114 | GLog___call____SWIG_2(arg1,(bool const &)*arg2); |
8115 | } |
8116 | catch (const GException::out_of_range& e) { |
8117 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8118 | } |
8119 | catch (const GExceptionHandler& e) { |
8120 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8121 | } |
8122 | catch (const std::exception& e) { |
8123 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8124 | } |
8125 | } |
8126 | resultobj = SWIG_Py_Void(); |
8127 | return resultobj; |
8128 | fail: |
8129 | return NULL__null; |
8130 | } |
8131 | |
8132 | |
8133 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog___call____SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8134 | PyObject *resultobj = 0; |
8135 | GLog *arg1 = (GLog *) 0 ; |
8136 | int *arg2 = 0 ; |
8137 | void *argp1 = 0 ; |
8138 | int res1 = 0 ; |
8139 | int temp2 ; |
8140 | int val2 ; |
8141 | int ecode2 = 0 ; |
8142 | PyObject * obj0 = 0 ; |
8143 | PyObject * obj1 = 0 ; |
8144 | |
8145 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog___call__",&obj0,&obj1)) SWIG_failgoto fail; |
8146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8147 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8149 | } |
8150 | arg1 = reinterpret_cast< GLog * >(argp1); |
8151 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
8152 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8153 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog___call__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog___call__" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
8154 | } |
8155 | temp2 = static_cast< int >(val2); |
8156 | arg2 = &temp2; |
8157 | { |
8158 | try { |
8159 | GLog___call____SWIG_3(arg1,(int const &)*arg2); |
8160 | } |
8161 | catch (const GException::out_of_range& e) { |
8162 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8163 | } |
8164 | catch (const GExceptionHandler& e) { |
8165 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8166 | } |
8167 | catch (const std::exception& e) { |
8168 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8169 | } |
8170 | } |
8171 | resultobj = SWIG_Py_Void(); |
8172 | return resultobj; |
8173 | fail: |
8174 | return NULL__null; |
8175 | } |
8176 | |
8177 | |
8178 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog___call____SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8179 | PyObject *resultobj = 0; |
8180 | GLog *arg1 = (GLog *) 0 ; |
8181 | double *arg2 = 0 ; |
8182 | void *argp1 = 0 ; |
8183 | int res1 = 0 ; |
8184 | double temp2 ; |
8185 | double val2 ; |
8186 | int ecode2 = 0 ; |
8187 | PyObject * obj0 = 0 ; |
8188 | PyObject * obj1 = 0 ; |
8189 | |
8190 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog___call__",&obj0,&obj1)) SWIG_failgoto fail; |
8191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8192 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog___call__" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8194 | } |
8195 | arg1 = reinterpret_cast< GLog * >(argp1); |
8196 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8197 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLog___call__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLog___call__" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
8199 | } |
8200 | temp2 = static_cast< double >(val2); |
8201 | arg2 = &temp2; |
8202 | { |
8203 | try { |
8204 | GLog___call____SWIG_4(arg1,(double const &)*arg2); |
8205 | } |
8206 | catch (const GException::out_of_range& e) { |
8207 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8208 | } |
8209 | catch (const GExceptionHandler& e) { |
8210 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8211 | } |
8212 | catch (const std::exception& e) { |
8213 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8214 | } |
8215 | } |
8216 | resultobj = SWIG_Py_Void(); |
8217 | return resultobj; |
8218 | fail: |
8219 | return NULL__null; |
8220 | } |
8221 | |
8222 | |
8223 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog___call__(PyObject *self, PyObject *args) { |
8224 | int argc; |
8225 | PyObject *argv[3]; |
8226 | int ii; |
8227 | |
8228 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8229 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8230 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8231 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8232 | } |
8233 | if (argc == 2) { |
8234 | int _v; |
8235 | void *vptr = 0; |
8236 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
8237 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8238 | if (_v) { |
8239 | void *vptr = 0; |
8240 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[4 ], 0, 0); |
8241 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8242 | if (_v) { |
8243 | return _wrap_GLog___call____SWIG_0(self, args); |
8244 | } |
8245 | } |
8246 | } |
8247 | if (argc == 2) { |
8248 | int _v; |
8249 | void *vptr = 0; |
8250 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
8251 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8252 | if (_v) { |
8253 | { |
8254 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
8255 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8256 | } |
8257 | if (_v) { |
8258 | return _wrap_GLog___call____SWIG_3(self, args); |
8259 | } |
8260 | } |
8261 | } |
8262 | if (argc == 2) { |
8263 | int _v; |
8264 | void *vptr = 0; |
8265 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
8266 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8267 | if (_v) { |
8268 | { |
8269 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
8270 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8271 | } |
8272 | if (_v) { |
8273 | return _wrap_GLog___call____SWIG_4(self, args); |
8274 | } |
8275 | } |
8276 | } |
8277 | if (argc == 2) { |
8278 | int _v; |
8279 | void *vptr = 0; |
8280 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
8281 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8282 | if (_v) { |
8283 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8284 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8285 | if (_v) { |
8286 | return _wrap_GLog___call____SWIG_1(self, args); |
8287 | } |
8288 | } |
8289 | } |
8290 | if (argc == 2) { |
8291 | int _v; |
8292 | void *vptr = 0; |
8293 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLog, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
8294 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8295 | if (_v) { |
8296 | { |
8297 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
8298 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8299 | } |
8300 | if (_v) { |
8301 | return _wrap_GLog___call____SWIG_2(self, args); |
8302 | } |
8303 | } |
8304 | } |
8305 | |
8306 | fail: |
8307 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLog___call__'.\n" |
8308 | " Possible C/C++ prototypes are:\n" |
8309 | " GLog::__call__(GLog &)\n" |
8310 | " GLog::__call__(std::string const &)\n" |
8311 | " GLog::__call__(bool const &)\n" |
8312 | " GLog::__call__(int const &)\n" |
8313 | " GLog::__call__(double const &)\n"); |
8314 | return 0; |
8315 | } |
8316 | |
8317 | |
8318 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_parformat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8319 | PyObject *resultobj = 0; |
8320 | GLog *arg1 = (GLog *) 0 ; |
8321 | std::string *arg2 = 0 ; |
8322 | void *argp1 = 0 ; |
8323 | int res1 = 0 ; |
8324 | int res2 = SWIG_OLDOBJ((0)) ; |
8325 | PyObject * obj0 = 0 ; |
8326 | PyObject * obj1 = 0 ; |
8327 | |
8328 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_parformat",&obj0,&obj1)) SWIG_failgoto fail; |
8329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8330 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_parformat" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_parformat" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8332 | } |
8333 | arg1 = reinterpret_cast< GLog * >(argp1); |
8334 | { |
8335 | std::string *ptr = (std::string *)0; |
8336 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8337 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8338 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_parformat" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_parformat" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8339 | } |
8340 | if (!ptr) { |
8341 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_parformat" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_parformat" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8342 | } |
8343 | arg2 = ptr; |
8344 | } |
8345 | { |
8346 | try { |
8347 | GLog_parformat(arg1,(std::string const &)*arg2); |
8348 | } |
8349 | catch (const GException::out_of_range& e) { |
8350 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8351 | } |
8352 | catch (const GExceptionHandler& e) { |
8353 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8354 | } |
8355 | catch (const std::exception& e) { |
8356 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8357 | } |
8358 | } |
8359 | resultobj = SWIG_Py_Void(); |
8360 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8361 | return resultobj; |
8362 | fail: |
8363 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8364 | return NULL__null; |
8365 | } |
8366 | |
8367 | |
8368 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_toupper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8369 | PyObject *resultobj = 0; |
8370 | GLog *arg1 = (GLog *) 0 ; |
8371 | std::string *arg2 = 0 ; |
8372 | void *argp1 = 0 ; |
8373 | int res1 = 0 ; |
8374 | int res2 = SWIG_OLDOBJ((0)) ; |
8375 | PyObject * obj0 = 0 ; |
8376 | PyObject * obj1 = 0 ; |
8377 | |
8378 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_toupper",&obj0,&obj1)) SWIG_failgoto fail; |
8379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8380 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_toupper" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_toupper" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8382 | } |
8383 | arg1 = reinterpret_cast< GLog * >(argp1); |
8384 | { |
8385 | std::string *ptr = (std::string *)0; |
8386 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8387 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8388 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_toupper" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_toupper" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8389 | } |
8390 | if (!ptr) { |
8391 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_toupper" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_toupper" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8392 | } |
8393 | arg2 = ptr; |
8394 | } |
8395 | { |
8396 | try { |
8397 | GLog_toupper(arg1,(std::string const &)*arg2); |
8398 | } |
8399 | catch (const GException::out_of_range& e) { |
8400 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8401 | } |
8402 | catch (const GExceptionHandler& e) { |
8403 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8404 | } |
8405 | catch (const std::exception& e) { |
8406 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8407 | } |
8408 | } |
8409 | resultobj = SWIG_Py_Void(); |
8410 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8411 | return resultobj; |
8412 | fail: |
8413 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8414 | return NULL__null; |
8415 | } |
8416 | |
8417 | |
8418 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_tolower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8419 | PyObject *resultobj = 0; |
8420 | GLog *arg1 = (GLog *) 0 ; |
8421 | std::string *arg2 = 0 ; |
8422 | void *argp1 = 0 ; |
8423 | int res1 = 0 ; |
8424 | int res2 = SWIG_OLDOBJ((0)) ; |
8425 | PyObject * obj0 = 0 ; |
8426 | PyObject * obj1 = 0 ; |
8427 | |
8428 | if (!PyArg_ParseTuple(args,(char *)"OO:GLog_tolower",&obj0,&obj1)) SWIG_failgoto fail; |
8429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8430 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_tolower" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_tolower" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8432 | } |
8433 | arg1 = reinterpret_cast< GLog * >(argp1); |
8434 | { |
8435 | std::string *ptr = (std::string *)0; |
8436 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8437 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8438 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_tolower" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_tolower" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8439 | } |
8440 | if (!ptr) { |
8441 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_tolower" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_tolower" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8442 | } |
8443 | arg2 = ptr; |
8444 | } |
8445 | { |
8446 | try { |
8447 | GLog_tolower(arg1,(std::string const &)*arg2); |
8448 | } |
8449 | catch (const GException::out_of_range& e) { |
8450 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8451 | } |
8452 | catch (const GExceptionHandler& e) { |
8453 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8454 | } |
8455 | catch (const std::exception& e) { |
8456 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8457 | } |
8458 | } |
8459 | resultobj = SWIG_Py_Void(); |
8460 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8461 | return resultobj; |
8462 | fail: |
8463 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8464 | return NULL__null; |
8465 | } |
8466 | |
8467 | |
8468 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_fill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8469 | PyObject *resultobj = 0; |
8470 | GLog *arg1 = (GLog *) 0 ; |
8471 | std::string *arg2 = 0 ; |
8472 | int *arg3 = 0 ; |
8473 | void *argp1 = 0 ; |
8474 | int res1 = 0 ; |
8475 | int res2 = SWIG_OLDOBJ((0)) ; |
8476 | int temp3 ; |
8477 | int val3 ; |
8478 | int ecode3 = 0 ; |
8479 | PyObject * obj0 = 0 ; |
8480 | PyObject * obj1 = 0 ; |
8481 | PyObject * obj2 = 0 ; |
8482 | |
8483 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLog_fill",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8485 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_fill" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_fill" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
8487 | } |
8488 | arg1 = reinterpret_cast< GLog * >(argp1); |
8489 | { |
8490 | std::string *ptr = (std::string *)0; |
8491 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8492 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8493 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_fill" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_fill" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
8494 | } |
8495 | if (!ptr) { |
8496 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_fill" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_fill" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8497 | } |
8498 | arg2 = ptr; |
8499 | } |
8500 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
8501 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
8502 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLog_fill" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLog_fill" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
8503 | } |
8504 | temp3 = static_cast< int >(val3); |
8505 | arg3 = &temp3; |
8506 | { |
8507 | try { |
8508 | GLog_fill(arg1,(std::string const &)*arg2,(int const &)*arg3); |
8509 | } |
8510 | catch (const GException::out_of_range& e) { |
8511 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8512 | } |
8513 | catch (const GExceptionHandler& e) { |
8514 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8515 | } |
8516 | catch (const std::exception& e) { |
8517 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8518 | } |
8519 | } |
8520 | resultobj = SWIG_Py_Void(); |
8521 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8522 | return resultobj; |
8523 | fail: |
8524 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8525 | return NULL__null; |
8526 | } |
8527 | |
8528 | |
8529 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_left(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8530 | PyObject *resultobj = 0; |
8531 | GLog *arg1 = (GLog *) 0 ; |
8532 | std::string *arg2 = 0 ; |
8533 | int *arg3 = 0 ; |
8534 | void *argp1 = 0 ; |
8535 | int res1 = 0 ; |
8536 | int res2 = SWIG_OLDOBJ((0)) ; |
8537 | int temp3 ; |
8538 | int val3 ; |
8539 | int ecode3 = 0 ; |
8540 | PyObject * obj0 = 0 ; |
8541 | PyObject * obj1 = 0 ; |
8542 | PyObject * obj2 = 0 ; |
8543 | |
8544 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLog_left",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8546 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_left" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_left" "', argument " "1" " of type '" "GLog *""'"); goto fail; } while(0); |
8548 | } |
8549 | arg1 = reinterpret_cast< GLog * >(argp1); |
8550 | { |
8551 | std::string *ptr = (std::string *)0; |
8552 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8553 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8554 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_left" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_left" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
8555 | } |
8556 | if (!ptr) { |
8557 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_left" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_left" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8558 | } |
8559 | arg2 = ptr; |
8560 | } |
8561 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
8562 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
8563 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLog_left" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLog_left" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
8564 | } |
8565 | temp3 = static_cast< int >(val3); |
8566 | arg3 = &temp3; |
8567 | { |
8568 | try { |
8569 | GLog_left(arg1,(std::string const &)*arg2,(int const &)*arg3); |
8570 | } |
8571 | catch (const GException::out_of_range& e) { |
8572 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8573 | } |
8574 | catch (const GExceptionHandler& e) { |
8575 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8576 | } |
8577 | catch (const std::exception& e) { |
8578 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8579 | } |
8580 | } |
8581 | resultobj = SWIG_Py_Void(); |
8582 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8583 | return resultobj; |
8584 | fail: |
8585 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8586 | return NULL__null; |
8587 | } |
8588 | |
8589 | |
8590 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_right(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8591 | PyObject *resultobj = 0; |
8592 | GLog *arg1 = (GLog *) 0 ; |
8593 | std::string *arg2 = 0 ; |
8594 | int *arg3 = 0 ; |
8595 | void *argp1 = 0 ; |
8596 | int res1 = 0 ; |
8597 | int res2 = SWIG_OLDOBJ((0)) ; |
8598 | int temp3 ; |
8599 | int val3 ; |
8600 | int ecode3 = 0 ; |
8601 | PyObject * obj0 = 0 ; |
8602 | PyObject * obj1 = 0 ; |
8603 | PyObject * obj2 = 0 ; |
8604 | |
8605 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLog_right",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8607 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_right" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_right" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8609 | } |
8610 | arg1 = reinterpret_cast< GLog * >(argp1); |
8611 | { |
8612 | std::string *ptr = (std::string *)0; |
8613 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8614 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8615 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_right" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_right" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8616 | } |
8617 | if (!ptr) { |
8618 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_right" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_right" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8619 | } |
8620 | arg2 = ptr; |
8621 | } |
8622 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
8623 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
8624 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLog_right" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLog_right" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
8625 | } |
8626 | temp3 = static_cast< int >(val3); |
8627 | arg3 = &temp3; |
8628 | { |
8629 | try { |
8630 | GLog_right(arg1,(std::string const &)*arg2,(int const &)*arg3); |
8631 | } |
8632 | catch (const GException::out_of_range& e) { |
8633 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8634 | } |
8635 | catch (const GExceptionHandler& e) { |
8636 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8637 | } |
8638 | catch (const std::exception& e) { |
8639 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8640 | } |
8641 | } |
8642 | resultobj = SWIG_Py_Void(); |
8643 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8644 | return resultobj; |
8645 | fail: |
8646 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8647 | return NULL__null; |
8648 | } |
8649 | |
8650 | |
8651 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLog_center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8652 | PyObject *resultobj = 0; |
8653 | GLog *arg1 = (GLog *) 0 ; |
8654 | std::string *arg2 = 0 ; |
8655 | int *arg3 = 0 ; |
8656 | void *argp1 = 0 ; |
8657 | int res1 = 0 ; |
8658 | int res2 = SWIG_OLDOBJ((0)) ; |
8659 | int temp3 ; |
8660 | int val3 ; |
8661 | int ecode3 = 0 ; |
8662 | PyObject * obj0 = 0 ; |
8663 | PyObject * obj1 = 0 ; |
8664 | PyObject * obj2 = 0 ; |
8665 | |
8666 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLog_center",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLog, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
8668 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLog_center" "', argument " "1"" of type '" "GLog *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLog_center" "', argument " "1"" of type '" "GLog *""'"); goto fail; } while(0); |
8670 | } |
8671 | arg1 = reinterpret_cast< GLog * >(argp1); |
8672 | { |
8673 | std::string *ptr = (std::string *)0; |
8674 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8675 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8676 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLog_center" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLog_center" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8677 | } |
8678 | if (!ptr) { |
8679 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLog_center" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLog_center" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8680 | } |
8681 | arg2 = ptr; |
8682 | } |
8683 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
8684 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
8685 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLog_center" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLog_center" "', argument " "3"" of type '" "int""'"); goto fail; } while(0); |
8686 | } |
8687 | temp3 = static_cast< int >(val3); |
8688 | arg3 = &temp3; |
8689 | { |
8690 | try { |
8691 | GLog_center(arg1,(std::string const &)*arg2,(int const &)*arg3); |
8692 | } |
8693 | catch (const GException::out_of_range& e) { |
8694 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8695 | } |
8696 | catch (const GExceptionHandler& e) { |
8697 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8698 | } |
8699 | catch (const std::exception& e) { |
8700 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8701 | } |
8702 | } |
8703 | resultobj = SWIG_Py_Void(); |
8704 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8705 | return resultobj; |
8706 | fail: |
8707 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8708 | return NULL__null; |
8709 | } |
8710 | |
8711 | |
8712 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8713 | PyObject *obj; |
8714 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
8715 | SWIG_TypeNewClientData(SWIGTYPE_p_GLogswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
8716 | return SWIG_Py_Void(); |
8717 | } |
8718 | |
8719 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPars__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8720 | PyObject *resultobj = 0; |
8721 | GPars *result = 0 ; |
8722 | |
8723 | if (!PyArg_ParseTuple(args,(char *)":new_GPars")) SWIG_failgoto fail; |
8724 | { |
8725 | try { |
8726 | result = (GPars *)new GPars(); |
8727 | } |
8728 | catch (const GException::out_of_range& e) { |
8729 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8730 | } |
8731 | catch (const GExceptionHandler& e) { |
8732 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8733 | } |
8734 | catch (const std::exception& e) { |
8735 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8736 | } |
8737 | } |
8738 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPars, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
8739 | return resultobj; |
8740 | fail: |
8741 | return NULL__null; |
8742 | } |
8743 | |
8744 | |
8745 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPars__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8746 | PyObject *resultobj = 0; |
8747 | std::string *arg1 = 0 ; |
8748 | int res1 = SWIG_OLDOBJ((0)) ; |
8749 | PyObject * obj0 = 0 ; |
8750 | GPars *result = 0 ; |
8751 | |
8752 | if (!PyArg_ParseTuple(args,(char *)"O:new_GPars",&obj0)) SWIG_failgoto fail; |
8753 | { |
8754 | std::string *ptr = (std::string *)0; |
8755 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
8756 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8757 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPars" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GPars" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
8758 | } |
8759 | if (!ptr) { |
8760 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPars" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPars" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8761 | } |
8762 | arg1 = ptr; |
8763 | } |
8764 | { |
8765 | try { |
8766 | result = (GPars *)new GPars((std::string const &)*arg1); |
8767 | } |
8768 | catch (const GException::out_of_range& e) { |
8769 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8770 | } |
8771 | catch (const GExceptionHandler& e) { |
8772 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8773 | } |
8774 | catch (const std::exception& e) { |
8775 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8776 | } |
8777 | } |
8778 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPars, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
8779 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
8780 | return resultobj; |
8781 | fail: |
8782 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
8783 | return NULL__null; |
8784 | } |
8785 | |
8786 | |
8787 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPars__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8788 | PyObject *resultobj = 0; |
8789 | std::string *arg1 = 0 ; |
8790 | std::vector< std::string,std::allocator< std::string > > *arg2 = 0 ; |
8791 | int res1 = SWIG_OLDOBJ((0)) ; |
8792 | void *argp2 = 0 ; |
8793 | int res2 = 0 ; |
8794 | PyObject * obj0 = 0 ; |
8795 | PyObject * obj1 = 0 ; |
8796 | GPars *result = 0 ; |
8797 | |
8798 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GPars",&obj0,&obj1)) SWIG_failgoto fail; |
8799 | { |
8800 | std::string *ptr = (std::string *)0; |
8801 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
8802 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPars" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GPars" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
8804 | } |
8805 | if (!ptr) { |
8806 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPars" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPars" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8807 | } |
8808 | arg1 = ptr; |
8809 | } |
8810 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[10] , 0 | 0, 0); |
8811 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8812 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GPars" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GPars" "', argument " "2" " of type '" "std::vector< std::string,std::allocator< std::string > > const &" "'"); goto fail; } while(0); |
8813 | } |
8814 | if (!argp2) { |
8815 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPars" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPars" "', argument " "2"" of type '" "std::vector< std::string,std::allocator< std::string > > const &" "'"); goto fail; } while(0); |
8816 | } |
8817 | arg2 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp2); |
8818 | { |
8819 | try { |
8820 | result = (GPars *)new GPars((std::string const &)*arg1,(std::vector< std::string,std::allocator< std::string > > const &)*arg2); |
8821 | } |
8822 | catch (const GException::out_of_range& e) { |
8823 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8824 | } |
8825 | catch (const GExceptionHandler& e) { |
8826 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8827 | } |
8828 | catch (const std::exception& e) { |
8829 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8830 | } |
8831 | } |
8832 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPars, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
8833 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
8834 | return resultobj; |
8835 | fail: |
8836 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
8837 | return NULL__null; |
8838 | } |
8839 | |
8840 | |
8841 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPars__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8842 | PyObject *resultobj = 0; |
8843 | GPars *arg1 = 0 ; |
8844 | void *argp1 = 0 ; |
8845 | int res1 = 0 ; |
8846 | PyObject * obj0 = 0 ; |
8847 | GPars *result = 0 ; |
8848 | |
8849 | if (!PyArg_ParseTuple(args,(char *)"O:new_GPars",&obj0)) SWIG_failgoto fail; |
8850 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GPars, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8851 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPars" "', argument " "1"" of type '" "GPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GPars" "', argument " "1" " of type '" "GPars const &""'"); goto fail; } while(0); |
8853 | } |
8854 | if (!argp1) { |
8855 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPars" "', argument " "1"" of type '" "GPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPars" "', argument " "1"" of type '" "GPars const &" "'"); goto fail; } while(0); |
8856 | } |
8857 | arg1 = reinterpret_cast< GPars * >(argp1); |
8858 | { |
8859 | try { |
8860 | result = (GPars *)new GPars((GPars const &)*arg1); |
8861 | } |
8862 | catch (const GException::out_of_range& e) { |
8863 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8864 | } |
8865 | catch (const GExceptionHandler& e) { |
8866 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8867 | } |
8868 | catch (const std::exception& e) { |
8869 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8870 | } |
8871 | } |
8872 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPars, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
8873 | return resultobj; |
8874 | fail: |
8875 | return NULL__null; |
8876 | } |
8877 | |
8878 | |
8879 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPars(PyObject *self, PyObject *args) { |
8880 | int argc; |
8881 | PyObject *argv[3]; |
8882 | int ii; |
8883 | |
8884 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8885 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8886 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8887 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8888 | } |
8889 | if (argc == 0) { |
8890 | return _wrap_new_GPars__SWIG_0(self, args); |
8891 | } |
8892 | if (argc == 1) { |
8893 | int _v; |
8894 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[6], 0, 0); |
8895 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8896 | if (_v) { |
8897 | return _wrap_new_GPars__SWIG_3(self, args); |
8898 | } |
8899 | } |
8900 | if (argc == 1) { |
8901 | int _v; |
8902 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
8903 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8904 | if (_v) { |
8905 | return _wrap_new_GPars__SWIG_1(self, args); |
8906 | } |
8907 | } |
8908 | if (argc == 2) { |
8909 | int _v; |
8910 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
8911 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8912 | if (_v) { |
8913 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[10], 0, 0 ); |
8914 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8915 | if (_v) { |
8916 | return _wrap_new_GPars__SWIG_2(self, args); |
8917 | } |
8918 | } |
8919 | } |
8920 | |
8921 | fail: |
8922 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GPars'.\n" |
8923 | " Possible C/C++ prototypes are:\n" |
8924 | " GPars::GPars()\n" |
8925 | " GPars::GPars(std::string const &)\n" |
8926 | " GPars::GPars(std::string const &,std::vector< std::string,std::allocator< std::string > > const &)\n" |
8927 | " GPars::GPars(GPars const &)\n"); |
8928 | return 0; |
8929 | } |
8930 | |
8931 | |
8932 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GPars(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8933 | PyObject *resultobj = 0; |
8934 | GPars *arg1 = (GPars *) 0 ; |
8935 | void *argp1 = 0 ; |
8936 | int res1 = 0 ; |
8937 | PyObject * obj0 = 0 ; |
8938 | |
8939 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GPars",&obj0)) SWIG_failgoto fail; |
8940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0x1 | 0, 0); |
8941 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GPars" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GPars" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
8943 | } |
8944 | arg1 = reinterpret_cast< GPars * >(argp1); |
8945 | { |
8946 | try { |
8947 | delete arg1; |
8948 | } |
8949 | catch (const GException::out_of_range& e) { |
8950 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8951 | } |
8952 | catch (const GExceptionHandler& e) { |
8953 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8954 | } |
8955 | catch (const std::exception& e) { |
8956 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8957 | } |
8958 | } |
8959 | resultobj = SWIG_Py_Void(); |
8960 | return resultobj; |
8961 | fail: |
8962 | return NULL__null; |
8963 | } |
8964 | |
8965 | |
8966 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8967 | PyObject *resultobj = 0; |
8968 | GPars *arg1 = (GPars *) 0 ; |
8969 | void *argp1 = 0 ; |
8970 | int res1 = 0 ; |
8971 | PyObject * obj0 = 0 ; |
8972 | |
8973 | if (!PyArg_ParseTuple(args,(char *)"O:GPars_clear",&obj0)) SWIG_failgoto fail; |
8974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
8975 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_clear" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_clear" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
8977 | } |
8978 | arg1 = reinterpret_cast< GPars * >(argp1); |
8979 | { |
8980 | try { |
8981 | (arg1)->clear(); |
8982 | } |
8983 | catch (const GException::out_of_range& e) { |
8984 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8985 | } |
8986 | catch (const GExceptionHandler& e) { |
8987 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8988 | } |
8989 | catch (const std::exception& e) { |
8990 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8991 | } |
8992 | } |
8993 | resultobj = SWIG_Py_Void(); |
8994 | return resultobj; |
8995 | fail: |
8996 | return NULL__null; |
8997 | } |
8998 | |
8999 | |
9000 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9001 | PyObject *resultobj = 0; |
9002 | GPars *arg1 = (GPars *) 0 ; |
9003 | void *argp1 = 0 ; |
9004 | int res1 = 0 ; |
9005 | PyObject * obj0 = 0 ; |
9006 | GPars *result = 0 ; |
9007 | |
9008 | if (!PyArg_ParseTuple(args,(char *)"O:GPars_clone",&obj0)) SWIG_failgoto fail; |
9009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9010 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_clone" "', argument " "1"" of type '" "GPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_clone" "', argument " "1"" of type '" "GPars const *""'"); goto fail; } while(0); |
9012 | } |
9013 | arg1 = reinterpret_cast< GPars * >(argp1); |
9014 | { |
9015 | try { |
9016 | result = (GPars *)((GPars const *)arg1)->clone(); |
9017 | } |
9018 | catch (const GException::out_of_range& e) { |
9019 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9020 | } |
9021 | catch (const GExceptionHandler& e) { |
9022 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9023 | } |
9024 | catch (const std::exception& e) { |
9025 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9026 | } |
9027 | } |
9028 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9029 | return resultobj; |
9030 | fail: |
9031 | return NULL__null; |
9032 | } |
9033 | |
9034 | |
9035 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_at__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9036 | PyObject *resultobj = 0; |
9037 | GPars *arg1 = (GPars *) 0 ; |
9038 | int *arg2 = 0 ; |
9039 | void *argp1 = 0 ; |
9040 | int res1 = 0 ; |
9041 | int temp2 ; |
9042 | int val2 ; |
9043 | int ecode2 = 0 ; |
9044 | PyObject * obj0 = 0 ; |
9045 | PyObject * obj1 = 0 ; |
9046 | GPar *result = 0 ; |
9047 | |
9048 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_at",&obj0,&obj1)) SWIG_failgoto fail; |
9049 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9050 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_at" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_at" "', argument " "1" " of type '" "GPars *""'"); goto fail; } while(0); |
9052 | } |
9053 | arg1 = reinterpret_cast< GPars * >(argp1); |
9054 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9055 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9056 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPars_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPars_at" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9057 | } |
9058 | temp2 = static_cast< int >(val2); |
9059 | arg2 = &temp2; |
9060 | { |
9061 | try { |
9062 | result = (GPar *) &(arg1)->at((int const &)*arg2); |
9063 | } |
9064 | catch (const GException::out_of_range& e) { |
9065 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9066 | } |
9067 | catch (const GExceptionHandler& e) { |
9068 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9069 | } |
9070 | catch (const std::exception& e) { |
9071 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9072 | } |
9073 | } |
9074 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
9075 | return resultobj; |
9076 | fail: |
9077 | return NULL__null; |
9078 | } |
9079 | |
9080 | |
9081 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_at__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9082 | PyObject *resultobj = 0; |
9083 | GPars *arg1 = (GPars *) 0 ; |
9084 | int *arg2 = 0 ; |
9085 | void *argp1 = 0 ; |
9086 | int res1 = 0 ; |
9087 | int temp2 ; |
9088 | int val2 ; |
9089 | int ecode2 = 0 ; |
9090 | PyObject * obj0 = 0 ; |
9091 | PyObject * obj1 = 0 ; |
9092 | GPar *result = 0 ; |
9093 | |
9094 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_at",&obj0,&obj1)) SWIG_failgoto fail; |
9095 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9096 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9097 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_at" "', argument " "1"" of type '" "GPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_at" "', argument " "1" " of type '" "GPars const *""'"); goto fail; } while(0); |
9098 | } |
9099 | arg1 = reinterpret_cast< GPars * >(argp1); |
9100 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9101 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9102 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPars_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPars_at" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9103 | } |
9104 | temp2 = static_cast< int >(val2); |
9105 | arg2 = &temp2; |
9106 | { |
9107 | try { |
9108 | result = (GPar *) &((GPars const *)arg1)->at((int const &)*arg2); |
9109 | } |
9110 | catch (const GException::out_of_range& e) { |
9111 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9112 | } |
9113 | catch (const GExceptionHandler& e) { |
9114 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9115 | } |
9116 | catch (const std::exception& e) { |
9117 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9118 | } |
9119 | } |
9120 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
9121 | return resultobj; |
9122 | fail: |
9123 | return NULL__null; |
9124 | } |
9125 | |
9126 | |
9127 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_at(PyObject *self, PyObject *args) { |
9128 | int argc; |
9129 | PyObject *argv[3]; |
9130 | int ii; |
9131 | |
9132 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9133 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9134 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9135 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9136 | } |
9137 | if (argc == 2) { |
9138 | int _v; |
9139 | void *vptr = 0; |
9140 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9141 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9142 | if (_v) { |
9143 | { |
9144 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9145 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9146 | } |
9147 | if (_v) { |
9148 | return _wrap_GPars_at__SWIG_0(self, args); |
9149 | } |
9150 | } |
9151 | } |
9152 | if (argc == 2) { |
9153 | int _v; |
9154 | void *vptr = 0; |
9155 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9156 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9157 | if (_v) { |
9158 | { |
9159 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9160 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9161 | } |
9162 | if (_v) { |
9163 | return _wrap_GPars_at__SWIG_1(self, args); |
9164 | } |
9165 | } |
9166 | } |
9167 | |
9168 | fail: |
9169 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPars_at'.\n" |
9170 | " Possible C/C++ prototypes are:\n" |
9171 | " GPars::at(int const &)\n" |
9172 | " GPars::at(int const &) const\n"); |
9173 | return 0; |
9174 | } |
9175 | |
9176 | |
9177 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9178 | PyObject *resultobj = 0; |
9179 | GPars *arg1 = (GPars *) 0 ; |
9180 | void *argp1 = 0 ; |
9181 | int res1 = 0 ; |
9182 | PyObject * obj0 = 0 ; |
9183 | int result; |
9184 | |
9185 | if (!PyArg_ParseTuple(args,(char *)"O:GPars_size",&obj0)) SWIG_failgoto fail; |
9186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9187 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_size" "', argument " "1"" of type '" "GPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_size" "', argument " "1"" of type '" "GPars const *""'"); goto fail; } while(0); |
9189 | } |
9190 | arg1 = reinterpret_cast< GPars * >(argp1); |
9191 | { |
9192 | try { |
9193 | result = (int)((GPars const *)arg1)->size(); |
9194 | } |
9195 | catch (const GException::out_of_range& e) { |
9196 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9197 | } |
9198 | catch (const GExceptionHandler& e) { |
9199 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9200 | } |
9201 | catch (const std::exception& e) { |
9202 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9203 | } |
9204 | } |
9205 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9206 | return resultobj; |
9207 | fail: |
9208 | return NULL__null; |
9209 | } |
9210 | |
9211 | |
9212 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9213 | PyObject *resultobj = 0; |
9214 | GPars *arg1 = (GPars *) 0 ; |
9215 | void *argp1 = 0 ; |
9216 | int res1 = 0 ; |
9217 | PyObject * obj0 = 0 ; |
9218 | bool result; |
9219 | |
9220 | if (!PyArg_ParseTuple(args,(char *)"O:GPars_isempty",&obj0)) SWIG_failgoto fail; |
9221 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9222 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9223 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_isempty" "', argument " "1"" of type '" "GPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_isempty" "', argument " "1"" of type '" "GPars const *""'"); goto fail; } while(0); |
9224 | } |
9225 | arg1 = reinterpret_cast< GPars * >(argp1); |
9226 | { |
9227 | try { |
9228 | result = (bool)((GPars const *)arg1)->isempty(); |
9229 | } |
9230 | catch (const GException::out_of_range& e) { |
9231 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9232 | } |
9233 | catch (const GExceptionHandler& e) { |
9234 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9235 | } |
9236 | catch (const std::exception& e) { |
9237 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9238 | } |
9239 | } |
9240 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
9241 | return resultobj; |
9242 | fail: |
9243 | return NULL__null; |
9244 | } |
9245 | |
9246 | |
9247 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9248 | PyObject *resultobj = 0; |
9249 | GPars *arg1 = (GPars *) 0 ; |
9250 | GPar *arg2 = 0 ; |
9251 | void *argp1 = 0 ; |
9252 | int res1 = 0 ; |
9253 | void *argp2 = 0 ; |
9254 | int res2 = 0 ; |
9255 | PyObject * obj0 = 0 ; |
9256 | PyObject * obj1 = 0 ; |
9257 | GPar *result = 0 ; |
9258 | |
9259 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_append",&obj0,&obj1)) SWIG_failgoto fail; |
9260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9261 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_append" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_append" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9263 | } |
9264 | arg1 = reinterpret_cast< GPars * >(argp1); |
9265 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5], 0 | 0, 0); |
9266 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9267 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_append" "', argument " "2"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_append" "', argument " "2"" of type '" "GPar const &""'"); goto fail; } while(0 ); |
9268 | } |
9269 | if (!argp2) { |
9270 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_append" "', argument " "2"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_append" "', argument " "2"" of type '" "GPar const &" "'"); goto fail; } while(0); |
9271 | } |
9272 | arg2 = reinterpret_cast< GPar * >(argp2); |
9273 | { |
9274 | try { |
9275 | result = (GPar *) &(arg1)->append((GPar const &)*arg2); |
9276 | } |
9277 | catch (const GException::out_of_range& e) { |
9278 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9279 | } |
9280 | catch (const GExceptionHandler& e) { |
9281 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9282 | } |
9283 | catch (const std::exception& e) { |
9284 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9285 | } |
9286 | } |
9287 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
9288 | return resultobj; |
9289 | fail: |
9290 | return NULL__null; |
9291 | } |
9292 | |
9293 | |
9294 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_append_standard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9295 | PyObject *resultobj = 0; |
9296 | GPars *arg1 = (GPars *) 0 ; |
9297 | void *argp1 = 0 ; |
9298 | int res1 = 0 ; |
9299 | PyObject * obj0 = 0 ; |
9300 | |
9301 | if (!PyArg_ParseTuple(args,(char *)"O:GPars_append_standard",&obj0)) SWIG_failgoto fail; |
9302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9303 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_append_standard" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_append_standard" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9305 | } |
9306 | arg1 = reinterpret_cast< GPars * >(argp1); |
9307 | { |
9308 | try { |
9309 | (arg1)->append_standard(); |
9310 | } |
9311 | catch (const GException::out_of_range& e) { |
9312 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9313 | } |
9314 | catch (const GExceptionHandler& e) { |
9315 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9316 | } |
9317 | catch (const std::exception& e) { |
9318 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9319 | } |
9320 | } |
9321 | resultobj = SWIG_Py_Void(); |
9322 | return resultobj; |
9323 | fail: |
9324 | return NULL__null; |
9325 | } |
9326 | |
9327 | |
9328 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9329 | PyObject *resultobj = 0; |
9330 | GPars *arg1 = (GPars *) 0 ; |
9331 | int *arg2 = 0 ; |
9332 | GPar *arg3 = 0 ; |
9333 | void *argp1 = 0 ; |
9334 | int res1 = 0 ; |
9335 | int temp2 ; |
9336 | int val2 ; |
9337 | int ecode2 = 0 ; |
9338 | void *argp3 = 0 ; |
9339 | int res3 = 0 ; |
9340 | PyObject * obj0 = 0 ; |
9341 | PyObject * obj1 = 0 ; |
9342 | PyObject * obj2 = 0 ; |
9343 | GPar *result = 0 ; |
9344 | |
9345 | if (!PyArg_ParseTuple(args,(char *)"OOO:GPars_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9346 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9347 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9348 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_insert" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_insert" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9349 | } |
9350 | arg1 = reinterpret_cast< GPars * >(argp1); |
9351 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9352 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9353 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPars_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPars_insert" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9354 | } |
9355 | temp2 = static_cast< int >(val2); |
9356 | arg2 = &temp2; |
9357 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5], 0 | 0, 0); |
9358 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9359 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0 ); |
9360 | } |
9361 | if (!argp3) { |
9362 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &" "'"); goto fail; } while(0); |
9363 | } |
9364 | arg3 = reinterpret_cast< GPar * >(argp3); |
9365 | { |
9366 | try { |
9367 | result = (GPar *) &(arg1)->insert((int const &)*arg2,(GPar const &)*arg3); |
9368 | } |
9369 | catch (const GException::out_of_range& e) { |
9370 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9371 | } |
9372 | catch (const GExceptionHandler& e) { |
9373 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9374 | } |
9375 | catch (const std::exception& e) { |
9376 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9377 | } |
9378 | } |
9379 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
9380 | return resultobj; |
9381 | fail: |
9382 | return NULL__null; |
9383 | } |
9384 | |
9385 | |
9386 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9387 | PyObject *resultobj = 0; |
9388 | GPars *arg1 = (GPars *) 0 ; |
9389 | std::string *arg2 = 0 ; |
9390 | GPar *arg3 = 0 ; |
9391 | void *argp1 = 0 ; |
9392 | int res1 = 0 ; |
9393 | int res2 = SWIG_OLDOBJ((0)) ; |
9394 | void *argp3 = 0 ; |
9395 | int res3 = 0 ; |
9396 | PyObject * obj0 = 0 ; |
9397 | PyObject * obj1 = 0 ; |
9398 | PyObject * obj2 = 0 ; |
9399 | GPar *result = 0 ; |
9400 | |
9401 | if (!PyArg_ParseTuple(args,(char *)"OOO:GPars_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9403 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_insert" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_insert" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9405 | } |
9406 | arg1 = reinterpret_cast< GPars * >(argp1); |
9407 | { |
9408 | std::string *ptr = (std::string *)0; |
9409 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9410 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9411 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_insert" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9412 | } |
9413 | if (!ptr) { |
9414 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_insert" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9415 | } |
9416 | arg2 = ptr; |
9417 | } |
9418 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5], 0 | 0, 0); |
9419 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9420 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0 ); |
9421 | } |
9422 | if (!argp3) { |
9423 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_insert" "', argument " "3"" of type '" "GPar const &" "'"); goto fail; } while(0); |
9424 | } |
9425 | arg3 = reinterpret_cast< GPar * >(argp3); |
9426 | { |
9427 | try { |
9428 | result = (GPar *) &(arg1)->insert((std::string const &)*arg2,(GPar const &)*arg3); |
9429 | } |
9430 | catch (const GException::out_of_range& e) { |
9431 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9432 | } |
9433 | catch (const GExceptionHandler& e) { |
9434 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9435 | } |
9436 | catch (const std::exception& e) { |
9437 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9438 | } |
9439 | } |
9440 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
9441 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9442 | return resultobj; |
9443 | fail: |
9444 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9445 | return NULL__null; |
9446 | } |
9447 | |
9448 | |
9449 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_insert(PyObject *self, PyObject *args) { |
9450 | int argc; |
9451 | PyObject *argv[4]; |
9452 | int ii; |
9453 | |
9454 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9455 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9456 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9457 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9458 | } |
9459 | if (argc == 3) { |
9460 | int _v; |
9461 | void *vptr = 0; |
9462 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9463 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9464 | if (_v) { |
9465 | { |
9466 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9467 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9468 | } |
9469 | if (_v) { |
9470 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0); |
9471 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9472 | if (_v) { |
9473 | return _wrap_GPars_insert__SWIG_0(self, args); |
9474 | } |
9475 | } |
9476 | } |
9477 | } |
9478 | if (argc == 3) { |
9479 | int _v; |
9480 | void *vptr = 0; |
9481 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9482 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9483 | if (_v) { |
9484 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9485 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9486 | if (_v) { |
9487 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0); |
9488 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9489 | if (_v) { |
9490 | return _wrap_GPars_insert__SWIG_1(self, args); |
9491 | } |
9492 | } |
9493 | } |
9494 | } |
9495 | |
9496 | fail: |
9497 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPars_insert'.\n" |
9498 | " Possible C/C++ prototypes are:\n" |
9499 | " GPars::insert(int const &,GPar const &)\n" |
9500 | " GPars::insert(std::string const &,GPar const &)\n"); |
9501 | return 0; |
9502 | } |
9503 | |
9504 | |
9505 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_remove__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9506 | PyObject *resultobj = 0; |
9507 | GPars *arg1 = (GPars *) 0 ; |
9508 | int *arg2 = 0 ; |
9509 | void *argp1 = 0 ; |
9510 | int res1 = 0 ; |
9511 | int temp2 ; |
9512 | int val2 ; |
9513 | int ecode2 = 0 ; |
9514 | PyObject * obj0 = 0 ; |
9515 | PyObject * obj1 = 0 ; |
9516 | |
9517 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_remove",&obj0,&obj1)) SWIG_failgoto fail; |
9518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9519 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_remove" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_remove" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9521 | } |
9522 | arg1 = reinterpret_cast< GPars * >(argp1); |
9523 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9524 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9525 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPars_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPars_remove" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9526 | } |
9527 | temp2 = static_cast< int >(val2); |
9528 | arg2 = &temp2; |
9529 | { |
9530 | try { |
9531 | (arg1)->remove((int const &)*arg2); |
9532 | } |
9533 | catch (const GException::out_of_range& e) { |
9534 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9535 | } |
9536 | catch (const GExceptionHandler& e) { |
9537 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9538 | } |
9539 | catch (const std::exception& e) { |
9540 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9541 | } |
9542 | } |
9543 | resultobj = SWIG_Py_Void(); |
9544 | return resultobj; |
9545 | fail: |
9546 | return NULL__null; |
9547 | } |
9548 | |
9549 | |
9550 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9551 | PyObject *resultobj = 0; |
9552 | GPars *arg1 = (GPars *) 0 ; |
9553 | std::string *arg2 = 0 ; |
9554 | void *argp1 = 0 ; |
9555 | int res1 = 0 ; |
9556 | int res2 = SWIG_OLDOBJ((0)) ; |
9557 | PyObject * obj0 = 0 ; |
9558 | PyObject * obj1 = 0 ; |
9559 | |
9560 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_remove",&obj0,&obj1)) SWIG_failgoto fail; |
9561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9562 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_remove" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_remove" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9564 | } |
9565 | arg1 = reinterpret_cast< GPars * >(argp1); |
9566 | { |
9567 | std::string *ptr = (std::string *)0; |
9568 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9569 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9570 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_remove" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9571 | } |
9572 | if (!ptr) { |
9573 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_remove" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9574 | } |
9575 | arg2 = ptr; |
9576 | } |
9577 | { |
9578 | try { |
9579 | (arg1)->remove((std::string const &)*arg2); |
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 | return resultobj; |
9594 | fail: |
9595 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9596 | return NULL__null; |
9597 | } |
9598 | |
9599 | |
9600 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_remove(PyObject *self, PyObject *args) { |
9601 | int argc; |
9602 | PyObject *argv[3]; |
9603 | int ii; |
9604 | |
9605 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9606 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9607 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9608 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9609 | } |
9610 | if (argc == 2) { |
9611 | int _v; |
9612 | void *vptr = 0; |
9613 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9614 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9615 | if (_v) { |
9616 | { |
9617 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9618 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9619 | } |
9620 | if (_v) { |
9621 | return _wrap_GPars_remove__SWIG_0(self, args); |
9622 | } |
9623 | } |
9624 | } |
9625 | if (argc == 2) { |
9626 | int _v; |
9627 | void *vptr = 0; |
9628 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9629 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9630 | if (_v) { |
9631 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9632 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9633 | if (_v) { |
9634 | return _wrap_GPars_remove__SWIG_1(self, args); |
9635 | } |
9636 | } |
9637 | } |
9638 | |
9639 | fail: |
9640 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPars_remove'.\n" |
9641 | " Possible C/C++ prototypes are:\n" |
9642 | " GPars::remove(int const &)\n" |
9643 | " GPars::remove(std::string const &)\n"); |
9644 | return 0; |
9645 | } |
9646 | |
9647 | |
9648 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9649 | PyObject *resultobj = 0; |
9650 | GPars *arg1 = (GPars *) 0 ; |
9651 | int *arg2 = 0 ; |
9652 | void *argp1 = 0 ; |
9653 | int res1 = 0 ; |
9654 | int temp2 ; |
9655 | int val2 ; |
9656 | int ecode2 = 0 ; |
9657 | PyObject * obj0 = 0 ; |
9658 | PyObject * obj1 = 0 ; |
9659 | |
9660 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_reserve",&obj0,&obj1)) SWIG_failgoto fail; |
9661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9662 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_reserve" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_reserve" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9664 | } |
9665 | arg1 = reinterpret_cast< GPars * >(argp1); |
9666 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9667 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9668 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPars_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPars_reserve" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9669 | } |
9670 | temp2 = static_cast< int >(val2); |
9671 | arg2 = &temp2; |
9672 | { |
9673 | try { |
9674 | (arg1)->reserve((int const &)*arg2); |
9675 | } |
9676 | catch (const GException::out_of_range& e) { |
9677 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9678 | } |
9679 | catch (const GExceptionHandler& e) { |
9680 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9681 | } |
9682 | catch (const std::exception& e) { |
9683 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9684 | } |
9685 | } |
9686 | resultobj = SWIG_Py_Void(); |
9687 | return resultobj; |
9688 | fail: |
9689 | return NULL__null; |
9690 | } |
9691 | |
9692 | |
9693 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9694 | PyObject *resultobj = 0; |
9695 | GPars *arg1 = (GPars *) 0 ; |
9696 | GPars *arg2 = 0 ; |
9697 | void *argp1 = 0 ; |
9698 | int res1 = 0 ; |
9699 | void *argp2 = 0 ; |
9700 | int res2 = 0 ; |
9701 | PyObject * obj0 = 0 ; |
9702 | PyObject * obj1 = 0 ; |
9703 | |
9704 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_extend",&obj0,&obj1)) SWIG_failgoto fail; |
9705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9706 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_extend" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_extend" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9708 | } |
9709 | arg1 = reinterpret_cast< GPars * >(argp1); |
9710 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPars, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
9711 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9712 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_extend" "', argument " "2"" of type '" "GPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_extend" "', argument " "2"" of type '" "GPars const &""'"); goto fail; } while( 0); |
9713 | } |
9714 | if (!argp2) { |
9715 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_extend" "', argument " "2"" of type '" "GPars const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_extend" "', argument " "2"" of type '" "GPars const &" "'"); goto fail; } while(0); |
9716 | } |
9717 | arg2 = reinterpret_cast< GPars * >(argp2); |
9718 | { |
9719 | try { |
9720 | (arg1)->extend((GPars const &)*arg2); |
9721 | } |
9722 | catch (const GException::out_of_range& e) { |
9723 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9724 | } |
9725 | catch (const GExceptionHandler& e) { |
9726 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9727 | } |
9728 | catch (const std::exception& e) { |
9729 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9730 | } |
9731 | } |
9732 | resultobj = SWIG_Py_Void(); |
9733 | return resultobj; |
9734 | fail: |
9735 | return NULL__null; |
9736 | } |
9737 | |
9738 | |
9739 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9740 | PyObject *resultobj = 0; |
9741 | GPars *arg1 = (GPars *) 0 ; |
9742 | std::string *arg2 = 0 ; |
9743 | void *argp1 = 0 ; |
9744 | int res1 = 0 ; |
9745 | int res2 = SWIG_OLDOBJ((0)) ; |
9746 | PyObject * obj0 = 0 ; |
9747 | PyObject * obj1 = 0 ; |
9748 | bool result; |
9749 | |
9750 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_contains",&obj0,&obj1)) SWIG_failgoto fail; |
9751 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9752 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_contains" "', argument " "1"" of type '" "GPars const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_contains" "', argument " "1"" of type '" "GPars const *""'"); goto fail; } while(0); |
9754 | } |
9755 | arg1 = reinterpret_cast< GPars * >(argp1); |
9756 | { |
9757 | std::string *ptr = (std::string *)0; |
9758 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9759 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9760 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_contains" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9761 | } |
9762 | if (!ptr) { |
9763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_contains" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9764 | } |
9765 | arg2 = ptr; |
9766 | } |
9767 | { |
9768 | try { |
9769 | result = (bool)((GPars const *)arg1)->contains((std::string const &)*arg2); |
9770 | } |
9771 | catch (const GException::out_of_range& e) { |
9772 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9773 | } |
9774 | catch (const GExceptionHandler& e) { |
9775 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9776 | } |
9777 | catch (const std::exception& e) { |
9778 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9779 | } |
9780 | } |
9781 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
9782 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9783 | return resultobj; |
9784 | fail: |
9785 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9786 | return NULL__null; |
9787 | } |
9788 | |
9789 | |
9790 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9791 | PyObject *resultobj = 0; |
9792 | GPars *arg1 = (GPars *) 0 ; |
9793 | std::string *arg2 = 0 ; |
9794 | void *argp1 = 0 ; |
9795 | int res1 = 0 ; |
9796 | int res2 = SWIG_OLDOBJ((0)) ; |
9797 | PyObject * obj0 = 0 ; |
9798 | PyObject * obj1 = 0 ; |
9799 | |
9800 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_load",&obj0,&obj1)) SWIG_failgoto fail; |
9801 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9802 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9803 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_load" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_load" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9804 | } |
9805 | arg1 = reinterpret_cast< GPars * >(argp1); |
9806 | { |
9807 | std::string *ptr = (std::string *)0; |
9808 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9809 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9810 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9811 | } |
9812 | if (!ptr) { |
9813 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9814 | } |
9815 | arg2 = ptr; |
9816 | } |
9817 | { |
9818 | try { |
9819 | (arg1)->load((std::string const &)*arg2); |
9820 | } |
9821 | catch (const GException::out_of_range& e) { |
9822 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9823 | } |
9824 | catch (const GExceptionHandler& e) { |
9825 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9826 | } |
9827 | catch (const std::exception& e) { |
9828 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9829 | } |
9830 | } |
9831 | resultobj = SWIG_Py_Void(); |
9832 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9833 | return resultobj; |
9834 | fail: |
9835 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9836 | return NULL__null; |
9837 | } |
9838 | |
9839 | |
9840 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9841 | PyObject *resultobj = 0; |
9842 | GPars *arg1 = (GPars *) 0 ; |
9843 | std::string *arg2 = 0 ; |
9844 | std::vector< std::string,std::allocator< std::string > > *arg3 = 0 ; |
9845 | void *argp1 = 0 ; |
9846 | int res1 = 0 ; |
9847 | int res2 = SWIG_OLDOBJ((0)) ; |
9848 | void *argp3 = 0 ; |
9849 | int res3 = 0 ; |
9850 | PyObject * obj0 = 0 ; |
9851 | PyObject * obj1 = 0 ; |
9852 | PyObject * obj2 = 0 ; |
9853 | |
9854 | if (!PyArg_ParseTuple(args,(char *)"OOO:GPars_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9855 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9856 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_load" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_load" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9858 | } |
9859 | arg1 = reinterpret_cast< GPars * >(argp1); |
9860 | { |
9861 | std::string *ptr = (std::string *)0; |
9862 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9863 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9864 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9865 | } |
9866 | if (!ptr) { |
9867 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_load" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9868 | } |
9869 | arg2 = ptr; |
9870 | } |
9871 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[10] , 0 | 0, 0); |
9872 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9873 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPars_load" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GPars_load" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &" "'"); goto fail; } while(0); |
9874 | } |
9875 | if (!argp3) { |
9876 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_load" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_load" "', argument " "3"" of type '" "std::vector< std::string,std::allocator< std::string > > const &" "'"); goto fail; } while(0); |
9877 | } |
9878 | arg3 = reinterpret_cast< std::vector< std::string,std::allocator< std::string > > * >(argp3); |
9879 | { |
9880 | try { |
9881 | (arg1)->load((std::string const &)*arg2,(std::vector< std::string,std::allocator< std::string > > const &)*arg3); |
9882 | } |
9883 | catch (const GException::out_of_range& e) { |
9884 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9885 | } |
9886 | catch (const GExceptionHandler& e) { |
9887 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9888 | } |
9889 | catch (const std::exception& e) { |
9890 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9891 | } |
9892 | } |
9893 | resultobj = SWIG_Py_Void(); |
9894 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9895 | return resultobj; |
9896 | fail: |
9897 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9898 | return NULL__null; |
9899 | } |
9900 | |
9901 | |
9902 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_load(PyObject *self, PyObject *args) { |
9903 | int argc; |
9904 | PyObject *argv[4]; |
9905 | int ii; |
9906 | |
9907 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9908 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9909 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9910 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9911 | } |
9912 | if (argc == 2) { |
9913 | int _v; |
9914 | void *vptr = 0; |
9915 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9916 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9917 | if (_v) { |
9918 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9919 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9920 | if (_v) { |
9921 | return _wrap_GPars_load__SWIG_0(self, args); |
9922 | } |
9923 | } |
9924 | } |
9925 | if (argc == 3) { |
9926 | int _v; |
9927 | void *vptr = 0; |
9928 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9929 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9930 | if (_v) { |
9931 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9932 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9933 | if (_v) { |
9934 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[10], 0, 0 ); |
9935 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9936 | if (_v) { |
9937 | return _wrap_GPars_load__SWIG_1(self, args); |
9938 | } |
9939 | } |
9940 | } |
9941 | } |
9942 | |
9943 | fail: |
9944 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPars_load'.\n" |
9945 | " Possible C/C++ prototypes are:\n" |
9946 | " GPars::load(std::string const &)\n" |
9947 | " GPars::load(std::string const &,std::vector< std::string,std::allocator< std::string > > const &)\n"); |
9948 | return 0; |
9949 | } |
9950 | |
9951 | |
9952 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9953 | PyObject *resultobj = 0; |
9954 | GPars *arg1 = (GPars *) 0 ; |
9955 | std::string *arg2 = 0 ; |
9956 | void *argp1 = 0 ; |
9957 | int res1 = 0 ; |
9958 | int res2 = SWIG_OLDOBJ((0)) ; |
9959 | PyObject * obj0 = 0 ; |
9960 | PyObject * obj1 = 0 ; |
9961 | |
9962 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars_save",&obj0,&obj1)) SWIG_failgoto fail; |
9963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9964 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_save" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_save" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
9966 | } |
9967 | arg1 = reinterpret_cast< GPars * >(argp1); |
9968 | { |
9969 | std::string *ptr = (std::string *)0; |
9970 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9971 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9972 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9973 | } |
9974 | if (!ptr) { |
9975 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars_save" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
9976 | } |
9977 | arg2 = ptr; |
9978 | } |
9979 | { |
9980 | try { |
9981 | (arg1)->save((std::string const &)*arg2); |
9982 | } |
9983 | catch (const GException::out_of_range& e) { |
9984 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9985 | } |
9986 | catch (const GExceptionHandler& e) { |
9987 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9988 | } |
9989 | catch (const std::exception& e) { |
9990 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9991 | } |
9992 | } |
9993 | resultobj = SWIG_Py_Void(); |
9994 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9995 | return resultobj; |
9996 | fail: |
9997 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9998 | return NULL__null; |
9999 | } |
10000 | |
10001 | |
10002 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10003 | PyObject *resultobj = 0; |
10004 | GPars *arg1 = (GPars *) 0 ; |
10005 | int *arg2 = 0 ; |
10006 | void *argp1 = 0 ; |
10007 | int res1 = 0 ; |
10008 | int temp2 ; |
10009 | int val2 ; |
10010 | int ecode2 = 0 ; |
10011 | PyObject * obj0 = 0 ; |
10012 | PyObject * obj1 = 0 ; |
10013 | GPar *result = 0 ; |
10014 | |
10015 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
10016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
10017 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars___getitem__" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars___getitem__" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
10019 | } |
10020 | arg1 = reinterpret_cast< GPars * >(argp1); |
10021 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
10022 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPars___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPars___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
10024 | } |
10025 | temp2 = static_cast< int >(val2); |
10026 | arg2 = &temp2; |
10027 | { |
10028 | try { |
10029 | result = (GPar *) &GPars___getitem____SWIG_0(arg1,(int const &)*arg2); |
10030 | } |
10031 | catch (const GException::out_of_range& e) { |
10032 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10033 | } |
10034 | catch (const GExceptionHandler& e) { |
10035 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10036 | } |
10037 | catch (const std::exception& e) { |
10038 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10039 | } |
10040 | } |
10041 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
10042 | return resultobj; |
10043 | fail: |
10044 | return NULL__null; |
10045 | } |
10046 | |
10047 | |
10048 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10049 | PyObject *resultobj = 0; |
10050 | GPars *arg1 = (GPars *) 0 ; |
10051 | std::string *arg2 = 0 ; |
10052 | void *argp1 = 0 ; |
10053 | int res1 = 0 ; |
10054 | int res2 = SWIG_OLDOBJ((0)) ; |
10055 | PyObject * obj0 = 0 ; |
10056 | PyObject * obj1 = 0 ; |
10057 | GPar *result = 0 ; |
10058 | |
10059 | if (!PyArg_ParseTuple(args,(char *)"OO:GPars___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
10060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
10061 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars___getitem__" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars___getitem__" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
10063 | } |
10064 | arg1 = reinterpret_cast< GPars * >(argp1); |
10065 | { |
10066 | std::string *ptr = (std::string *)0; |
10067 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10068 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars___getitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10070 | } |
10071 | if (!ptr) { |
10072 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars___getitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars___getitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10073 | } |
10074 | arg2 = ptr; |
10075 | } |
10076 | { |
10077 | try { |
10078 | result = (GPar *) &GPars___getitem____SWIG_1(arg1,(std::string const &)*arg2); |
10079 | } |
10080 | catch (const GException::out_of_range& e) { |
10081 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10082 | } |
10083 | catch (const GExceptionHandler& e) { |
10084 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10085 | } |
10086 | catch (const std::exception& e) { |
10087 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10088 | } |
10089 | } |
10090 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
10091 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10092 | return resultobj; |
10093 | fail: |
10094 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10095 | return NULL__null; |
10096 | } |
10097 | |
10098 | |
10099 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars___getitem__(PyObject *self, PyObject *args) { |
10100 | int argc; |
10101 | PyObject *argv[3]; |
10102 | int ii; |
10103 | |
10104 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10105 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10106 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
10107 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10108 | } |
10109 | if (argc == 2) { |
10110 | int _v; |
10111 | void *vptr = 0; |
10112 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
10113 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10114 | if (_v) { |
10115 | { |
10116 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
10117 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10118 | } |
10119 | if (_v) { |
10120 | return _wrap_GPars___getitem____SWIG_0(self, args); |
10121 | } |
10122 | } |
10123 | } |
10124 | if (argc == 2) { |
10125 | int _v; |
10126 | void *vptr = 0; |
10127 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
10128 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10129 | if (_v) { |
10130 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
10131 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10132 | if (_v) { |
10133 | return _wrap_GPars___getitem____SWIG_1(self, args); |
10134 | } |
10135 | } |
10136 | } |
10137 | |
10138 | fail: |
10139 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPars___getitem__'.\n" |
10140 | " Possible C/C++ prototypes are:\n" |
10141 | " GPars::__getitem__(int const &)\n" |
10142 | " GPars::__getitem__(std::string const &)\n"); |
10143 | return 0; |
10144 | } |
10145 | |
10146 | |
10147 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10148 | PyObject *resultobj = 0; |
10149 | GPars *arg1 = (GPars *) 0 ; |
10150 | int *arg2 = 0 ; |
10151 | GPar *arg3 = 0 ; |
10152 | void *argp1 = 0 ; |
10153 | int res1 = 0 ; |
10154 | int temp2 ; |
10155 | int val2 ; |
10156 | int ecode2 = 0 ; |
10157 | void *argp3 = 0 ; |
10158 | int res3 = 0 ; |
10159 | PyObject * obj0 = 0 ; |
10160 | PyObject * obj1 = 0 ; |
10161 | PyObject * obj2 = 0 ; |
10162 | |
10163 | if (!PyArg_ParseTuple(args,(char *)"OOO:GPars___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
10164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
10165 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars___setitem__" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars___setitem__" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
10167 | } |
10168 | arg1 = reinterpret_cast< GPars * >(argp1); |
10169 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
10170 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10171 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPars___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPars___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
10172 | } |
10173 | temp2 = static_cast< int >(val2); |
10174 | arg2 = &temp2; |
10175 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5], 0 | 0, 0); |
10176 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10177 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0 ); |
10178 | } |
10179 | if (!argp3) { |
10180 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0); |
10181 | } |
10182 | arg3 = reinterpret_cast< GPar * >(argp3); |
10183 | { |
10184 | try { |
10185 | GPars___setitem____SWIG_0(arg1,(int const &)*arg2,(GPar const &)*arg3); |
10186 | } |
10187 | catch (const GException::out_of_range& e) { |
10188 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10189 | } |
10190 | catch (const GExceptionHandler& e) { |
10191 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10192 | } |
10193 | catch (const std::exception& e) { |
10194 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10195 | } |
10196 | } |
10197 | resultobj = SWIG_Py_Void(); |
10198 | return resultobj; |
10199 | fail: |
10200 | return NULL__null; |
10201 | } |
10202 | |
10203 | |
10204 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10205 | PyObject *resultobj = 0; |
10206 | GPars *arg1 = (GPars *) 0 ; |
10207 | std::string *arg2 = 0 ; |
10208 | GPar *arg3 = 0 ; |
10209 | void *argp1 = 0 ; |
10210 | int res1 = 0 ; |
10211 | int res2 = SWIG_OLDOBJ((0)) ; |
10212 | void *argp3 = 0 ; |
10213 | int res3 = 0 ; |
10214 | PyObject * obj0 = 0 ; |
10215 | PyObject * obj1 = 0 ; |
10216 | PyObject * obj2 = 0 ; |
10217 | |
10218 | if (!PyArg_ParseTuple(args,(char *)"OOO:GPars___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
10219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
10220 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars___setitem__" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars___setitem__" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
10222 | } |
10223 | arg1 = reinterpret_cast< GPars * >(argp1); |
10224 | { |
10225 | std::string *ptr = (std::string *)0; |
10226 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10227 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10228 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPars___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPars___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10229 | } |
10230 | if (!ptr) { |
10231 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars___setitem__" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars___setitem__" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10232 | } |
10233 | arg2 = ptr; |
10234 | } |
10235 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5], 0 | 0, 0); |
10236 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10237 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0 ); |
10238 | } |
10239 | if (!argp3) { |
10240 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPars___setitem__" "', argument " "3"" of type '" "GPar const &""'"); goto fail; } while(0); |
10241 | } |
10242 | arg3 = reinterpret_cast< GPar * >(argp3); |
10243 | { |
10244 | try { |
10245 | GPars___setitem____SWIG_1(arg1,(std::string const &)*arg2,(GPar const &)*arg3); |
10246 | } |
10247 | catch (const GException::out_of_range& e) { |
10248 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10249 | } |
10250 | catch (const GExceptionHandler& e) { |
10251 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10252 | } |
10253 | catch (const std::exception& e) { |
10254 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10255 | } |
10256 | } |
10257 | resultobj = SWIG_Py_Void(); |
10258 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10259 | return resultobj; |
10260 | fail: |
10261 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10262 | return NULL__null; |
10263 | } |
10264 | |
10265 | |
10266 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars___setitem__(PyObject *self, PyObject *args) { |
10267 | int argc; |
10268 | PyObject *argv[4]; |
10269 | int ii; |
10270 | |
10271 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10272 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10273 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
10274 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10275 | } |
10276 | if (argc == 3) { |
10277 | int _v; |
10278 | void *vptr = 0; |
10279 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
10280 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10281 | if (_v) { |
10282 | { |
10283 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
10284 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10285 | } |
10286 | if (_v) { |
10287 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0); |
10288 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10289 | if (_v) { |
10290 | return _wrap_GPars___setitem____SWIG_0(self, args); |
10291 | } |
10292 | } |
10293 | } |
10294 | } |
10295 | if (argc == 3) { |
10296 | int _v; |
10297 | void *vptr = 0; |
10298 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPars, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
10299 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10300 | if (_v) { |
10301 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
10302 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10303 | if (_v) { |
10304 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0); |
10305 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10306 | if (_v) { |
10307 | return _wrap_GPars___setitem____SWIG_1(self, args); |
10308 | } |
10309 | } |
10310 | } |
10311 | } |
10312 | |
10313 | fail: |
10314 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPars___setitem__'.\n" |
10315 | " Possible C/C++ prototypes are:\n" |
10316 | " GPars::__setitem__(int const &,GPar const &)\n" |
10317 | " GPars::__setitem__(std::string const &,GPar const &)\n"); |
10318 | return 0; |
10319 | } |
10320 | |
10321 | |
10322 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPars_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10323 | PyObject *resultobj = 0; |
10324 | GPars *arg1 = (GPars *) 0 ; |
10325 | void *argp1 = 0 ; |
10326 | int res1 = 0 ; |
10327 | PyObject * obj0 = 0 ; |
10328 | GPars result; |
10329 | |
10330 | if (!PyArg_ParseTuple(args,(char *)"O:GPars_copy",&obj0)) SWIG_failgoto fail; |
10331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPars, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
10332 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPars_copy" "', argument " "1"" of type '" "GPars *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPars_copy" "', argument " "1"" of type '" "GPars *""'"); goto fail; } while(0); |
10334 | } |
10335 | arg1 = reinterpret_cast< GPars * >(argp1); |
10336 | { |
10337 | try { |
10338 | result = GPars_copy(arg1); |
10339 | } |
10340 | catch (const GException::out_of_range& e) { |
10341 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10342 | } |
10343 | catch (const GExceptionHandler& e) { |
10344 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10345 | } |
10346 | catch (const std::exception& e) { |
10347 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10348 | } |
10349 | } |
10350 | resultobj = SWIG_NewPointerObj((new GPars(static_cast< const GPars& >(result))), SWIGTYPE_p_GPars, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GPars(static_cast< const GPars& >(result))), swig_types[6], 0x1 | 0); |
10351 | return resultobj; |
10352 | fail: |
10353 | return NULL__null; |
10354 | } |
10355 | |
10356 | |
10357 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GPars_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10358 | PyObject *obj; |
10359 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
10360 | SWIG_TypeNewClientData(SWIGTYPE_p_GParsswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
10361 | return SWIG_Py_Void(); |
10362 | } |
10363 | |
10364 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10365 | PyObject *resultobj = 0; |
10366 | GPar *result = 0 ; |
10367 | |
10368 | if (!PyArg_ParseTuple(args,(char *)":new_GPar")) SWIG_failgoto fail; |
10369 | { |
10370 | try { |
10371 | result = (GPar *)new GPar(); |
10372 | } |
10373 | catch (const GException::out_of_range& e) { |
10374 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10375 | } |
10376 | catch (const GExceptionHandler& e) { |
10377 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10378 | } |
10379 | catch (const std::exception& e) { |
10380 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10381 | } |
10382 | } |
10383 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
10384 | return resultobj; |
10385 | fail: |
10386 | return NULL__null; |
10387 | } |
10388 | |
10389 | |
10390 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10391 | PyObject *resultobj = 0; |
10392 | std::string *arg1 = 0 ; |
10393 | std::string *arg2 = 0 ; |
10394 | std::string *arg3 = 0 ; |
10395 | std::string *arg4 = 0 ; |
10396 | std::string *arg5 = 0 ; |
10397 | std::string *arg6 = 0 ; |
10398 | std::string *arg7 = 0 ; |
10399 | int res1 = SWIG_OLDOBJ((0)) ; |
10400 | int res2 = SWIG_OLDOBJ((0)) ; |
10401 | int res3 = SWIG_OLDOBJ((0)) ; |
10402 | int res4 = SWIG_OLDOBJ((0)) ; |
10403 | int res5 = SWIG_OLDOBJ((0)) ; |
10404 | int res6 = SWIG_OLDOBJ((0)) ; |
10405 | int res7 = SWIG_OLDOBJ((0)) ; |
10406 | PyObject * obj0 = 0 ; |
10407 | PyObject * obj1 = 0 ; |
10408 | PyObject * obj2 = 0 ; |
10409 | PyObject * obj3 = 0 ; |
10410 | PyObject * obj4 = 0 ; |
10411 | PyObject * obj5 = 0 ; |
10412 | PyObject * obj6 = 0 ; |
10413 | GPar *result = 0 ; |
10414 | |
10415 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_GPar",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_failgoto fail; |
10416 | { |
10417 | std::string *ptr = (std::string *)0; |
10418 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
10419 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GPar" "', argument " "1" " of type '" "std::string const &""'"); goto fail; } while (0); |
10421 | } |
10422 | if (!ptr) { |
10423 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10424 | } |
10425 | arg1 = ptr; |
10426 | } |
10427 | { |
10428 | std::string *ptr = (std::string *)0; |
10429 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10430 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10431 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GPar" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GPar" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
10432 | } |
10433 | if (!ptr) { |
10434 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10435 | } |
10436 | arg2 = ptr; |
10437 | } |
10438 | { |
10439 | std::string *ptr = (std::string *)0; |
10440 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
10441 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10442 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GPar" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "new_GPar" "', argument " "3" " of type '" "std::string const &""'"); goto fail; } while (0); |
10443 | } |
10444 | if (!ptr) { |
10445 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "3"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10446 | } |
10447 | arg3 = ptr; |
10448 | } |
10449 | { |
10450 | std::string *ptr = (std::string *)0; |
10451 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
10452 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
10453 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GPar" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "new_GPar" "', argument " "4" " of type '" "std::string const &""'"); goto fail; } while (0); |
10454 | } |
10455 | if (!ptr) { |
10456 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "4"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10457 | } |
10458 | arg4 = ptr; |
10459 | } |
10460 | { |
10461 | std::string *ptr = (std::string *)0; |
10462 | res5 = SWIG_AsPtr_std_string(obj4, &ptr); |
10463 | if (!SWIG_IsOK(res5)(res5 >= 0)) { |
10464 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_GPar" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != ( -1)) ? res5 : -5)), "in method '" "new_GPar" "', argument " "5" " of type '" "std::string const &""'"); goto fail; } while (0); |
10465 | } |
10466 | if (!ptr) { |
10467 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "5"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10468 | } |
10469 | arg5 = ptr; |
10470 | } |
10471 | { |
10472 | std::string *ptr = (std::string *)0; |
10473 | res6 = SWIG_AsPtr_std_string(obj5, &ptr); |
10474 | if (!SWIG_IsOK(res6)(res6 >= 0)) { |
10475 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_GPar" "', argument " "6"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != ( -1)) ? res6 : -5)), "in method '" "new_GPar" "', argument " "6" " of type '" "std::string const &""'"); goto fail; } while (0); |
10476 | } |
10477 | if (!ptr) { |
10478 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "6"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "6"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10479 | } |
10480 | arg6 = ptr; |
10481 | } |
10482 | { |
10483 | std::string *ptr = (std::string *)0; |
10484 | res7 = SWIG_AsPtr_std_string(obj6, &ptr); |
10485 | if (!SWIG_IsOK(res7)(res7 >= 0)) { |
10486 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_GPar" "', argument " "7"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res7 != ( -1)) ? res7 : -5)), "in method '" "new_GPar" "', argument " "7" " of type '" "std::string const &""'"); goto fail; } while (0); |
10487 | } |
10488 | if (!ptr) { |
10489 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "7"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "7"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10490 | } |
10491 | arg7 = ptr; |
10492 | } |
10493 | { |
10494 | try { |
10495 | result = (GPar *)new GPar((std::string const &)*arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(std::string const &)*arg6,(std::string const &)*arg7); |
10496 | } |
10497 | catch (const GException::out_of_range& e) { |
10498 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10499 | } |
10500 | catch (const GExceptionHandler& e) { |
10501 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10502 | } |
10503 | catch (const std::exception& e) { |
10504 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10505 | } |
10506 | } |
10507 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
10508 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
10509 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10510 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
10511 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
10512 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
10513 | if (SWIG_IsNewObj(res6)((res6 >= 0) && (res6 & ((1 << 8) << 1)))) delete arg6; |
10514 | if (SWIG_IsNewObj(res7)((res7 >= 0) && (res7 & ((1 << 8) << 1)))) delete arg7; |
10515 | return resultobj; |
10516 | fail: |
10517 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
10518 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10519 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
10520 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
10521 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
10522 | if (SWIG_IsNewObj(res6)((res6 >= 0) && (res6 & ((1 << 8) << 1)))) delete arg6; |
10523 | if (SWIG_IsNewObj(res7)((res7 >= 0) && (res7 & ((1 << 8) << 1)))) delete arg7; |
10524 | return NULL__null; |
10525 | } |
10526 | |
10527 | |
10528 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10529 | PyObject *resultobj = 0; |
10530 | GPar *arg1 = 0 ; |
10531 | void *argp1 = 0 ; |
10532 | int res1 = 0 ; |
10533 | PyObject * obj0 = 0 ; |
10534 | GPar *result = 0 ; |
10535 | |
10536 | if (!PyArg_ParseTuple(args,(char *)"O:new_GPar",&obj0)) SWIG_failgoto fail; |
10537 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GPar, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10538 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPar" "', argument " "1"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GPar" "', argument " "1" " of type '" "GPar const &""'"); goto fail; } while(0); |
10540 | } |
10541 | if (!argp1) { |
10542 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPar" "', argument " "1"" of type '" "GPar const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GPar" "', argument " "1"" of type '" "GPar const &" "'"); goto fail; } while(0); |
10543 | } |
10544 | arg1 = reinterpret_cast< GPar * >(argp1); |
10545 | { |
10546 | try { |
10547 | result = (GPar *)new GPar((GPar const &)*arg1); |
10548 | } |
10549 | catch (const GException::out_of_range& e) { |
10550 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10551 | } |
10552 | catch (const GExceptionHandler& e) { |
10553 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10554 | } |
10555 | catch (const std::exception& e) { |
10556 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10557 | } |
10558 | } |
10559 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
10560 | return resultobj; |
10561 | fail: |
10562 | return NULL__null; |
10563 | } |
10564 | |
10565 | |
10566 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPar(PyObject *self, PyObject *args) { |
10567 | int argc; |
10568 | PyObject *argv[8]; |
10569 | int ii; |
10570 | |
10571 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10572 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10573 | for (ii = 0; (ii < 7) && (ii < argc); ii++) { |
10574 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10575 | } |
10576 | if (argc == 0) { |
10577 | return _wrap_new_GPar__SWIG_0(self, args); |
10578 | } |
10579 | if (argc == 1) { |
10580 | int _v; |
10581 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[5], 0, 0); |
10582 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10583 | if (_v) { |
10584 | return _wrap_new_GPar__SWIG_2(self, args); |
10585 | } |
10586 | } |
10587 | if (argc == 7) { |
10588 | int _v; |
10589 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
10590 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10591 | if (_v) { |
10592 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
10593 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10594 | if (_v) { |
10595 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
10596 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10597 | if (_v) { |
10598 | int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); |
10599 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10600 | if (_v) { |
10601 | int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0)); |
10602 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10603 | if (_v) { |
10604 | int res = SWIG_AsPtr_std_string(argv[5], (std::string**)(0)); |
10605 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10606 | if (_v) { |
10607 | int res = SWIG_AsPtr_std_string(argv[6], (std::string**)(0)); |
10608 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10609 | if (_v) { |
10610 | return _wrap_new_GPar__SWIG_1(self, args); |
10611 | } |
10612 | } |
10613 | } |
10614 | } |
10615 | } |
10616 | } |
10617 | } |
10618 | } |
10619 | |
10620 | fail: |
10621 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GPar'.\n" |
10622 | " Possible C/C++ prototypes are:\n" |
10623 | " GPar::GPar()\n" |
10624 | " GPar::GPar(std::string const &,std::string const &,std::string const &,std::string const &,std::string const &,std::string const &,std::string const &)\n" |
10625 | " GPar::GPar(GPar const &)\n"); |
10626 | return 0; |
10627 | } |
10628 | |
10629 | |
10630 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GPar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10631 | PyObject *resultobj = 0; |
10632 | GPar *arg1 = (GPar *) 0 ; |
10633 | void *argp1 = 0 ; |
10634 | int res1 = 0 ; |
10635 | PyObject * obj0 = 0 ; |
10636 | |
10637 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GPar",&obj0)) SWIG_failgoto fail; |
10638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0x1 | 0, 0); |
10639 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GPar" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GPar" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
10641 | } |
10642 | arg1 = reinterpret_cast< GPar * >(argp1); |
10643 | { |
10644 | try { |
10645 | delete arg1; |
10646 | } |
10647 | catch (const GException::out_of_range& e) { |
10648 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10649 | } |
10650 | catch (const GExceptionHandler& e) { |
10651 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10652 | } |
10653 | catch (const std::exception& e) { |
10654 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10655 | } |
10656 | } |
10657 | resultobj = SWIG_Py_Void(); |
10658 | return resultobj; |
10659 | fail: |
10660 | return NULL__null; |
10661 | } |
10662 | |
10663 | |
10664 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10665 | PyObject *resultobj = 0; |
10666 | GPar *arg1 = (GPar *) 0 ; |
10667 | void *argp1 = 0 ; |
10668 | int res1 = 0 ; |
10669 | PyObject * obj0 = 0 ; |
10670 | |
10671 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_clear",&obj0)) SWIG_failgoto fail; |
10672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10673 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_clear" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_clear" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
10675 | } |
10676 | arg1 = reinterpret_cast< GPar * >(argp1); |
10677 | { |
10678 | try { |
10679 | (arg1)->clear(); |
10680 | } |
10681 | catch (const GException::out_of_range& e) { |
10682 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10683 | } |
10684 | catch (const GExceptionHandler& e) { |
10685 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10686 | } |
10687 | catch (const std::exception& e) { |
10688 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10689 | } |
10690 | } |
10691 | resultobj = SWIG_Py_Void(); |
10692 | return resultobj; |
10693 | fail: |
10694 | return NULL__null; |
10695 | } |
10696 | |
10697 | |
10698 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10699 | PyObject *resultobj = 0; |
10700 | GPar *arg1 = (GPar *) 0 ; |
10701 | void *argp1 = 0 ; |
10702 | int res1 = 0 ; |
10703 | PyObject * obj0 = 0 ; |
10704 | GPar *result = 0 ; |
10705 | |
10706 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_clone",&obj0)) SWIG_failgoto fail; |
10707 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10708 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10709 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_clone" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_clone" "', argument " "1"" of type '" "GPar const *""'"); goto fail; } while(0); |
10710 | } |
10711 | arg1 = reinterpret_cast< GPar * >(argp1); |
10712 | { |
10713 | try { |
10714 | result = (GPar *)((GPar const *)arg1)->clone(); |
10715 | } |
10716 | catch (const GException::out_of_range& e) { |
10717 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10718 | } |
10719 | catch (const GExceptionHandler& e) { |
10720 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10721 | } |
10722 | catch (const std::exception& e) { |
10723 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10724 | } |
10725 | } |
10726 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
10727 | return resultobj; |
10728 | fail: |
10729 | return NULL__null; |
10730 | } |
10731 | |
10732 | |
10733 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_type__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10734 | PyObject *resultobj = 0; |
10735 | GPar *arg1 = (GPar *) 0 ; |
10736 | std::string *arg2 = 0 ; |
10737 | void *argp1 = 0 ; |
10738 | int res1 = 0 ; |
10739 | int res2 = SWIG_OLDOBJ((0)) ; |
10740 | PyObject * obj0 = 0 ; |
10741 | PyObject * obj1 = 0 ; |
10742 | |
10743 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_type",&obj0,&obj1)) SWIG_failgoto fail; |
10744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10745 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_type" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_type" "', argument " "1" " of type '" "GPar *""'"); goto fail; } while(0); |
10747 | } |
10748 | arg1 = reinterpret_cast< GPar * >(argp1); |
10749 | { |
10750 | std::string *ptr = (std::string *)0; |
10751 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10752 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10753 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPar_type" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPar_type" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
10754 | } |
10755 | if (!ptr) { |
10756 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPar_type" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPar_type" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10757 | } |
10758 | arg2 = ptr; |
10759 | } |
10760 | { |
10761 | try { |
10762 | (arg1)->type((std::string const &)*arg2); |
10763 | } |
10764 | catch (const GException::out_of_range& e) { |
10765 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10766 | } |
10767 | catch (const GExceptionHandler& e) { |
10768 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10769 | } |
10770 | catch (const std::exception& e) { |
10771 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10772 | } |
10773 | } |
10774 | resultobj = SWIG_Py_Void(); |
10775 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10776 | return resultobj; |
10777 | fail: |
10778 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10779 | return NULL__null; |
10780 | } |
10781 | |
10782 | |
10783 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_mode__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10784 | PyObject *resultobj = 0; |
10785 | GPar *arg1 = (GPar *) 0 ; |
10786 | std::string *arg2 = 0 ; |
10787 | void *argp1 = 0 ; |
10788 | int res1 = 0 ; |
10789 | int res2 = SWIG_OLDOBJ((0)) ; |
10790 | PyObject * obj0 = 0 ; |
10791 | PyObject * obj1 = 0 ; |
10792 | |
10793 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_mode",&obj0,&obj1)) SWIG_failgoto fail; |
10794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10795 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_mode" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_mode" "', argument " "1" " of type '" "GPar *""'"); goto fail; } while(0); |
10797 | } |
10798 | arg1 = reinterpret_cast< GPar * >(argp1); |
10799 | { |
10800 | std::string *ptr = (std::string *)0; |
10801 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10802 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10803 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPar_mode" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPar_mode" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
10804 | } |
10805 | if (!ptr) { |
10806 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPar_mode" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPar_mode" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10807 | } |
10808 | arg2 = ptr; |
10809 | } |
10810 | { |
10811 | try { |
10812 | (arg1)->mode((std::string const &)*arg2); |
10813 | } |
10814 | catch (const GException::out_of_range& e) { |
10815 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10816 | } |
10817 | catch (const GExceptionHandler& e) { |
10818 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10819 | } |
10820 | catch (const std::exception& e) { |
10821 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10822 | } |
10823 | } |
10824 | resultobj = SWIG_Py_Void(); |
10825 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10826 | return resultobj; |
10827 | fail: |
10828 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10829 | return NULL__null; |
10830 | } |
10831 | |
10832 | |
10833 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10834 | PyObject *resultobj = 0; |
10835 | GPar *arg1 = (GPar *) 0 ; |
10836 | std::string *arg2 = 0 ; |
10837 | void *argp1 = 0 ; |
10838 | int res1 = 0 ; |
10839 | int res2 = SWIG_OLDOBJ((0)) ; |
10840 | PyObject * obj0 = 0 ; |
10841 | PyObject * obj1 = 0 ; |
10842 | |
10843 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_value",&obj0,&obj1)) SWIG_failgoto fail; |
10844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10845 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_value" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_value" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
10847 | } |
10848 | arg1 = reinterpret_cast< GPar * >(argp1); |
10849 | { |
10850 | std::string *ptr = (std::string *)0; |
10851 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10852 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10853 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPar_value" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPar_value" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10854 | } |
10855 | if (!ptr) { |
10856 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPar_value" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPar_value" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10857 | } |
10858 | arg2 = ptr; |
10859 | } |
10860 | { |
10861 | try { |
10862 | (arg1)->value((std::string const &)*arg2); |
10863 | } |
10864 | catch (const GException::out_of_range& e) { |
10865 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10866 | } |
10867 | catch (const GExceptionHandler& e) { |
10868 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10869 | } |
10870 | catch (const std::exception& e) { |
10871 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10872 | } |
10873 | } |
10874 | resultobj = SWIG_Py_Void(); |
10875 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10876 | return resultobj; |
10877 | fail: |
10878 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10879 | return NULL__null; |
10880 | } |
10881 | |
10882 | |
10883 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_string__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10884 | PyObject *resultobj = 0; |
10885 | GPar *arg1 = (GPar *) 0 ; |
10886 | std::string *arg2 = 0 ; |
10887 | void *argp1 = 0 ; |
10888 | int res1 = 0 ; |
10889 | int res2 = SWIG_OLDOBJ((0)) ; |
10890 | PyObject * obj0 = 0 ; |
10891 | PyObject * obj1 = 0 ; |
10892 | |
10893 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_string",&obj0,&obj1)) SWIG_failgoto fail; |
10894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10895 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_string" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_string" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
10897 | } |
10898 | arg1 = reinterpret_cast< GPar * >(argp1); |
10899 | { |
10900 | std::string *ptr = (std::string *)0; |
10901 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10902 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10903 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPar_string" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPar_string" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10904 | } |
10905 | if (!ptr) { |
10906 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPar_string" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPar_string" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
10907 | } |
10908 | arg2 = ptr; |
10909 | } |
10910 | { |
10911 | try { |
10912 | (arg1)->string((std::string const &)*arg2); |
10913 | } |
10914 | catch (const GException::out_of_range& e) { |
10915 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10916 | } |
10917 | catch (const GExceptionHandler& e) { |
10918 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10919 | } |
10920 | catch (const std::exception& e) { |
10921 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10922 | } |
10923 | } |
10924 | resultobj = SWIG_Py_Void(); |
10925 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10926 | return resultobj; |
10927 | fail: |
10928 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10929 | return NULL__null; |
10930 | } |
10931 | |
10932 | |
10933 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_filename__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10934 | PyObject *resultobj = 0; |
10935 | GPar *arg1 = (GPar *) 0 ; |
10936 | std::string *arg2 = 0 ; |
10937 | void *argp1 = 0 ; |
10938 | int res1 = 0 ; |
10939 | int res2 = SWIG_OLDOBJ((0)) ; |
10940 | PyObject * obj0 = 0 ; |
10941 | PyObject * obj1 = 0 ; |
10942 | |
10943 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_filename",&obj0,&obj1)) SWIG_failgoto fail; |
10944 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10945 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10946 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_filename" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_filename" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
10947 | } |
10948 | arg1 = reinterpret_cast< GPar * >(argp1); |
10949 | { |
10950 | std::string *ptr = (std::string *)0; |
10951 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10952 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10953 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPar_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GPar_filename" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10954 | } |
10955 | if (!ptr) { |
10956 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPar_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GPar_filename" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10957 | } |
10958 | arg2 = ptr; |
10959 | } |
10960 | { |
10961 | try { |
10962 | (arg1)->filename((std::string const &)*arg2); |
10963 | } |
10964 | catch (const GException::out_of_range& e) { |
10965 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10966 | } |
10967 | catch (const GExceptionHandler& e) { |
10968 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10969 | } |
10970 | catch (const std::exception& e) { |
10971 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10972 | } |
10973 | } |
10974 | resultobj = SWIG_Py_Void(); |
10975 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10976 | return resultobj; |
10977 | fail: |
10978 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10979 | return NULL__null; |
10980 | } |
10981 | |
10982 | |
10983 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_boolean__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10984 | PyObject *resultobj = 0; |
10985 | GPar *arg1 = (GPar *) 0 ; |
10986 | bool *arg2 = 0 ; |
10987 | void *argp1 = 0 ; |
10988 | int res1 = 0 ; |
10989 | bool temp2 ; |
10990 | bool val2 ; |
10991 | int ecode2 = 0 ; |
10992 | PyObject * obj0 = 0 ; |
10993 | PyObject * obj1 = 0 ; |
10994 | |
10995 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_boolean",&obj0,&obj1)) SWIG_failgoto fail; |
10996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
10997 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_boolean" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_boolean" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
10999 | } |
11000 | arg1 = reinterpret_cast< GPar * >(argp1); |
11001 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
11002 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11003 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPar_boolean" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPar_boolean" "', argument " "2"" of type '" "bool""'"); goto fail; } while(0); |
11004 | } |
11005 | temp2 = static_cast< bool >(val2); |
11006 | arg2 = &temp2; |
11007 | { |
11008 | try { |
11009 | (arg1)->boolean((bool const &)*arg2); |
11010 | } |
11011 | catch (const GException::out_of_range& e) { |
11012 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11013 | } |
11014 | catch (const GExceptionHandler& e) { |
11015 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11016 | } |
11017 | catch (const std::exception& e) { |
11018 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11019 | } |
11020 | } |
11021 | resultobj = SWIG_Py_Void(); |
11022 | return resultobj; |
11023 | fail: |
11024 | return NULL__null; |
11025 | } |
11026 | |
11027 | |
11028 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_integer__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11029 | PyObject *resultobj = 0; |
11030 | GPar *arg1 = (GPar *) 0 ; |
11031 | int *arg2 = 0 ; |
11032 | void *argp1 = 0 ; |
11033 | int res1 = 0 ; |
11034 | int temp2 ; |
11035 | int val2 ; |
11036 | int ecode2 = 0 ; |
11037 | PyObject * obj0 = 0 ; |
11038 | PyObject * obj1 = 0 ; |
11039 | |
11040 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_integer",&obj0,&obj1)) SWIG_failgoto fail; |
11041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11042 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_integer" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_integer" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
11044 | } |
11045 | arg1 = reinterpret_cast< GPar * >(argp1); |
11046 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
11047 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPar_integer" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPar_integer" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
11049 | } |
11050 | temp2 = static_cast< int >(val2); |
11051 | arg2 = &temp2; |
11052 | { |
11053 | try { |
11054 | (arg1)->integer((int const &)*arg2); |
11055 | } |
11056 | catch (const GException::out_of_range& e) { |
11057 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11058 | } |
11059 | catch (const GExceptionHandler& e) { |
11060 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11061 | } |
11062 | catch (const std::exception& e) { |
11063 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11064 | } |
11065 | } |
11066 | resultobj = SWIG_Py_Void(); |
11067 | return resultobj; |
11068 | fail: |
11069 | return NULL__null; |
11070 | } |
11071 | |
11072 | |
11073 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_real__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11074 | PyObject *resultobj = 0; |
11075 | GPar *arg1 = (GPar *) 0 ; |
11076 | double *arg2 = 0 ; |
11077 | void *argp1 = 0 ; |
11078 | int res1 = 0 ; |
11079 | double temp2 ; |
11080 | double val2 ; |
11081 | int ecode2 = 0 ; |
11082 | PyObject * obj0 = 0 ; |
11083 | PyObject * obj1 = 0 ; |
11084 | |
11085 | if (!PyArg_ParseTuple(args,(char *)"OO:GPar_real",&obj0,&obj1)) SWIG_failgoto fail; |
11086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11087 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_real" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_real" "', argument " "1" " of type '" "GPar *""'"); goto fail; } while(0); |
11089 | } |
11090 | arg1 = reinterpret_cast< GPar * >(argp1); |
11091 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
11092 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11093 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPar_real" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GPar_real" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
11094 | } |
11095 | temp2 = static_cast< double >(val2); |
11096 | arg2 = &temp2; |
11097 | { |
11098 | try { |
11099 | (arg1)->real((double const &)*arg2); |
11100 | } |
11101 | catch (const GException::out_of_range& e) { |
11102 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11103 | } |
11104 | catch (const GExceptionHandler& e) { |
11105 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11106 | } |
11107 | catch (const std::exception& e) { |
11108 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11109 | } |
11110 | } |
11111 | resultobj = SWIG_Py_Void(); |
11112 | return resultobj; |
11113 | fail: |
11114 | return NULL__null; |
11115 | } |
11116 | |
11117 | |
11118 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11119 | PyObject *resultobj = 0; |
11120 | GPar *arg1 = (GPar *) 0 ; |
11121 | void *argp1 = 0 ; |
11122 | int res1 = 0 ; |
11123 | PyObject * obj0 = 0 ; |
11124 | std::string *result = 0 ; |
11125 | |
11126 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_name",&obj0)) SWIG_failgoto fail; |
11127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11128 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_name" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_name" "', argument " "1" " of type '" "GPar const *""'"); goto fail; } while(0); |
11130 | } |
11131 | arg1 = reinterpret_cast< GPar * >(argp1); |
11132 | { |
11133 | try { |
11134 | result = (std::string *) &((GPar const *)arg1)->name(); |
11135 | } |
11136 | catch (const GException::out_of_range& e) { |
11137 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11138 | } |
11139 | catch (const GExceptionHandler& e) { |
11140 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11141 | } |
11142 | catch (const std::exception& e) { |
11143 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11144 | } |
11145 | } |
11146 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
11147 | return resultobj; |
11148 | fail: |
11149 | return NULL__null; |
11150 | } |
11151 | |
11152 | |
11153 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_type__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11154 | PyObject *resultobj = 0; |
11155 | GPar *arg1 = (GPar *) 0 ; |
11156 | void *argp1 = 0 ; |
11157 | int res1 = 0 ; |
11158 | PyObject * obj0 = 0 ; |
11159 | std::string *result = 0 ; |
11160 | |
11161 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_type",&obj0)) SWIG_failgoto fail; |
11162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11163 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_type" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_type" "', argument " "1" " of type '" "GPar const *""'"); goto fail; } while(0); |
11165 | } |
11166 | arg1 = reinterpret_cast< GPar * >(argp1); |
11167 | { |
11168 | try { |
11169 | result = (std::string *) &((GPar const *)arg1)->type(); |
11170 | } |
11171 | catch (const GException::out_of_range& e) { |
11172 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11173 | } |
11174 | catch (const GExceptionHandler& e) { |
11175 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11176 | } |
11177 | catch (const std::exception& e) { |
11178 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11179 | } |
11180 | } |
11181 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
11182 | return resultobj; |
11183 | fail: |
11184 | return NULL__null; |
11185 | } |
11186 | |
11187 | |
11188 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_type(PyObject *self, PyObject *args) { |
11189 | int argc; |
11190 | PyObject *argv[3]; |
11191 | int ii; |
11192 | |
11193 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11194 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11195 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11196 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11197 | } |
11198 | if (argc == 1) { |
11199 | int _v; |
11200 | void *vptr = 0; |
11201 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11202 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11203 | if (_v) { |
11204 | return _wrap_GPar_type__SWIG_1(self, args); |
11205 | } |
11206 | } |
11207 | if (argc == 2) { |
11208 | int _v; |
11209 | void *vptr = 0; |
11210 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11211 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11212 | if (_v) { |
11213 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
11214 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11215 | if (_v) { |
11216 | return _wrap_GPar_type__SWIG_0(self, args); |
11217 | } |
11218 | } |
11219 | } |
11220 | |
11221 | fail: |
11222 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_type'.\n" |
11223 | " Possible C/C++ prototypes are:\n" |
11224 | " GPar::type(std::string const &)\n" |
11225 | " GPar::type() const\n"); |
11226 | return 0; |
11227 | } |
11228 | |
11229 | |
11230 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_mode__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11231 | PyObject *resultobj = 0; |
11232 | GPar *arg1 = (GPar *) 0 ; |
11233 | void *argp1 = 0 ; |
11234 | int res1 = 0 ; |
11235 | PyObject * obj0 = 0 ; |
11236 | std::string *result = 0 ; |
11237 | |
11238 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_mode",&obj0)) SWIG_failgoto fail; |
11239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11240 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_mode" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_mode" "', argument " "1" " of type '" "GPar const *""'"); goto fail; } while(0); |
11242 | } |
11243 | arg1 = reinterpret_cast< GPar * >(argp1); |
11244 | { |
11245 | try { |
11246 | result = (std::string *) &((GPar const *)arg1)->mode(); |
11247 | } |
11248 | catch (const GException::out_of_range& e) { |
11249 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11250 | } |
11251 | catch (const GExceptionHandler& e) { |
11252 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11253 | } |
11254 | catch (const std::exception& e) { |
11255 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11256 | } |
11257 | } |
11258 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
11259 | return resultobj; |
11260 | fail: |
11261 | return NULL__null; |
11262 | } |
11263 | |
11264 | |
11265 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_mode(PyObject *self, PyObject *args) { |
11266 | int argc; |
11267 | PyObject *argv[3]; |
11268 | int ii; |
11269 | |
11270 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11271 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11272 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11273 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11274 | } |
11275 | if (argc == 1) { |
11276 | int _v; |
11277 | void *vptr = 0; |
11278 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11279 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11280 | if (_v) { |
11281 | return _wrap_GPar_mode__SWIG_1(self, args); |
11282 | } |
11283 | } |
11284 | if (argc == 2) { |
11285 | int _v; |
11286 | void *vptr = 0; |
11287 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11288 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11289 | if (_v) { |
11290 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
11291 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11292 | if (_v) { |
11293 | return _wrap_GPar_mode__SWIG_0(self, args); |
11294 | } |
11295 | } |
11296 | } |
11297 | |
11298 | fail: |
11299 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_mode'.\n" |
11300 | " Possible C/C++ prototypes are:\n" |
11301 | " GPar::mode(std::string const &)\n" |
11302 | " GPar::mode() const\n"); |
11303 | return 0; |
11304 | } |
11305 | |
11306 | |
11307 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11308 | PyObject *resultobj = 0; |
11309 | GPar *arg1 = (GPar *) 0 ; |
11310 | void *argp1 = 0 ; |
11311 | int res1 = 0 ; |
11312 | PyObject * obj0 = 0 ; |
11313 | std::string result; |
11314 | |
11315 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_value",&obj0)) SWIG_failgoto fail; |
11316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11317 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_value" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_value" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
11319 | } |
11320 | arg1 = reinterpret_cast< GPar * >(argp1); |
11321 | { |
11322 | try { |
11323 | result = (arg1)->value(); |
11324 | } |
11325 | catch (const GException::out_of_range& e) { |
11326 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11327 | } |
11328 | catch (const GExceptionHandler& e) { |
11329 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11330 | } |
11331 | catch (const std::exception& e) { |
11332 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11333 | } |
11334 | } |
11335 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
11336 | return resultobj; |
11337 | fail: |
11338 | return NULL__null; |
11339 | } |
11340 | |
11341 | |
11342 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_value(PyObject *self, PyObject *args) { |
11343 | int argc; |
11344 | PyObject *argv[3]; |
11345 | int ii; |
11346 | |
11347 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11348 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11349 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11350 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11351 | } |
11352 | if (argc == 1) { |
11353 | int _v; |
11354 | void *vptr = 0; |
11355 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11356 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11357 | if (_v) { |
11358 | return _wrap_GPar_value__SWIG_1(self, args); |
11359 | } |
11360 | } |
11361 | if (argc == 2) { |
11362 | int _v; |
11363 | void *vptr = 0; |
11364 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11365 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11366 | if (_v) { |
11367 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
11368 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11369 | if (_v) { |
11370 | return _wrap_GPar_value__SWIG_0(self, args); |
11371 | } |
11372 | } |
11373 | } |
11374 | |
11375 | fail: |
11376 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_value'.\n" |
11377 | " Possible C/C++ prototypes are:\n" |
11378 | " GPar::value(std::string const &)\n" |
11379 | " GPar::value()\n"); |
11380 | return 0; |
11381 | } |
11382 | |
11383 | |
11384 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_string__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11385 | PyObject *resultobj = 0; |
11386 | GPar *arg1 = (GPar *) 0 ; |
11387 | void *argp1 = 0 ; |
11388 | int res1 = 0 ; |
11389 | PyObject * obj0 = 0 ; |
11390 | std::string result; |
11391 | |
11392 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_string",&obj0)) SWIG_failgoto fail; |
11393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11394 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_string" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_string" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
11396 | } |
11397 | arg1 = reinterpret_cast< GPar * >(argp1); |
11398 | { |
11399 | try { |
11400 | result = (arg1)->string(); |
11401 | } |
11402 | catch (const GException::out_of_range& e) { |
11403 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11404 | } |
11405 | catch (const GExceptionHandler& e) { |
11406 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11407 | } |
11408 | catch (const std::exception& e) { |
11409 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11410 | } |
11411 | } |
11412 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
11413 | return resultobj; |
11414 | fail: |
11415 | return NULL__null; |
11416 | } |
11417 | |
11418 | |
11419 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_string(PyObject *self, PyObject *args) { |
11420 | int argc; |
11421 | PyObject *argv[3]; |
11422 | int ii; |
11423 | |
11424 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11425 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11426 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11427 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11428 | } |
11429 | if (argc == 1) { |
11430 | int _v; |
11431 | void *vptr = 0; |
11432 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11433 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11434 | if (_v) { |
11435 | return _wrap_GPar_string__SWIG_1(self, args); |
11436 | } |
11437 | } |
11438 | if (argc == 2) { |
11439 | int _v; |
11440 | void *vptr = 0; |
11441 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11442 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11443 | if (_v) { |
11444 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
11445 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11446 | if (_v) { |
11447 | return _wrap_GPar_string__SWIG_0(self, args); |
11448 | } |
11449 | } |
11450 | } |
11451 | |
11452 | fail: |
11453 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_string'.\n" |
11454 | " Possible C/C++ prototypes are:\n" |
11455 | " GPar::string(std::string const &)\n" |
11456 | " GPar::string()\n"); |
11457 | return 0; |
11458 | } |
11459 | |
11460 | |
11461 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_filename__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11462 | PyObject *resultobj = 0; |
11463 | GPar *arg1 = (GPar *) 0 ; |
11464 | void *argp1 = 0 ; |
11465 | int res1 = 0 ; |
11466 | PyObject * obj0 = 0 ; |
11467 | std::string result; |
11468 | |
11469 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_filename",&obj0)) SWIG_failgoto fail; |
11470 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11471 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11472 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_filename" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_filename" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
11473 | } |
11474 | arg1 = reinterpret_cast< GPar * >(argp1); |
11475 | { |
11476 | try { |
11477 | result = (arg1)->filename(); |
11478 | } |
11479 | catch (const GException::out_of_range& e) { |
11480 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11481 | } |
11482 | catch (const GExceptionHandler& e) { |
11483 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11484 | } |
11485 | catch (const std::exception& e) { |
11486 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11487 | } |
11488 | } |
11489 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
11490 | return resultobj; |
11491 | fail: |
11492 | return NULL__null; |
11493 | } |
11494 | |
11495 | |
11496 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_filename(PyObject *self, PyObject *args) { |
11497 | int argc; |
11498 | PyObject *argv[3]; |
11499 | int ii; |
11500 | |
11501 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11502 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11503 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11504 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11505 | } |
11506 | if (argc == 1) { |
11507 | int _v; |
11508 | void *vptr = 0; |
11509 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11510 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11511 | if (_v) { |
11512 | return _wrap_GPar_filename__SWIG_1(self, args); |
11513 | } |
11514 | } |
11515 | if (argc == 2) { |
11516 | int _v; |
11517 | void *vptr = 0; |
11518 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11519 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11520 | if (_v) { |
11521 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
11522 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11523 | if (_v) { |
11524 | return _wrap_GPar_filename__SWIG_0(self, args); |
11525 | } |
11526 | } |
11527 | } |
11528 | |
11529 | fail: |
11530 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_filename'.\n" |
11531 | " Possible C/C++ prototypes are:\n" |
11532 | " GPar::filename(std::string const &)\n" |
11533 | " GPar::filename()\n"); |
11534 | return 0; |
11535 | } |
11536 | |
11537 | |
11538 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_boolean__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11539 | PyObject *resultobj = 0; |
11540 | GPar *arg1 = (GPar *) 0 ; |
11541 | void *argp1 = 0 ; |
11542 | int res1 = 0 ; |
11543 | PyObject * obj0 = 0 ; |
11544 | bool result; |
11545 | |
11546 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_boolean",&obj0)) SWIG_failgoto fail; |
11547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11548 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_boolean" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_boolean" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
11550 | } |
11551 | arg1 = reinterpret_cast< GPar * >(argp1); |
11552 | { |
11553 | try { |
11554 | result = (bool)(arg1)->boolean(); |
11555 | } |
11556 | catch (const GException::out_of_range& e) { |
11557 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11558 | } |
11559 | catch (const GExceptionHandler& e) { |
11560 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11561 | } |
11562 | catch (const std::exception& e) { |
11563 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11564 | } |
11565 | } |
11566 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
11567 | return resultobj; |
11568 | fail: |
11569 | return NULL__null; |
11570 | } |
11571 | |
11572 | |
11573 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_boolean(PyObject *self, PyObject *args) { |
11574 | int argc; |
11575 | PyObject *argv[3]; |
11576 | int ii; |
11577 | |
11578 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11579 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11580 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11581 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11582 | } |
11583 | if (argc == 1) { |
11584 | int _v; |
11585 | void *vptr = 0; |
11586 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11587 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11588 | if (_v) { |
11589 | return _wrap_GPar_boolean__SWIG_1(self, args); |
11590 | } |
11591 | } |
11592 | if (argc == 2) { |
11593 | int _v; |
11594 | void *vptr = 0; |
11595 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11596 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11597 | if (_v) { |
11598 | { |
11599 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
11600 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11601 | } |
11602 | if (_v) { |
11603 | return _wrap_GPar_boolean__SWIG_0(self, args); |
11604 | } |
11605 | } |
11606 | } |
11607 | |
11608 | fail: |
11609 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_boolean'.\n" |
11610 | " Possible C/C++ prototypes are:\n" |
11611 | " GPar::boolean(bool const &)\n" |
11612 | " GPar::boolean()\n"); |
11613 | return 0; |
11614 | } |
11615 | |
11616 | |
11617 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_integer__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11618 | PyObject *resultobj = 0; |
11619 | GPar *arg1 = (GPar *) 0 ; |
11620 | void *argp1 = 0 ; |
11621 | int res1 = 0 ; |
11622 | PyObject * obj0 = 0 ; |
11623 | int result; |
11624 | |
11625 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_integer",&obj0)) SWIG_failgoto fail; |
11626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11627 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_integer" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_integer" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
11629 | } |
11630 | arg1 = reinterpret_cast< GPar * >(argp1); |
11631 | { |
11632 | try { |
11633 | result = (int)(arg1)->integer(); |
11634 | } |
11635 | catch (const GException::out_of_range& e) { |
11636 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11637 | } |
11638 | catch (const GExceptionHandler& e) { |
11639 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11640 | } |
11641 | catch (const std::exception& e) { |
11642 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11643 | } |
11644 | } |
11645 | resultobj = SWIG_From_int(static_cast< int >(result)); |
11646 | return resultobj; |
11647 | fail: |
11648 | return NULL__null; |
11649 | } |
11650 | |
11651 | |
11652 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_integer(PyObject *self, PyObject *args) { |
11653 | int argc; |
11654 | PyObject *argv[3]; |
11655 | int ii; |
11656 | |
11657 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11658 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11659 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11660 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11661 | } |
11662 | if (argc == 1) { |
11663 | int _v; |
11664 | void *vptr = 0; |
11665 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11666 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11667 | if (_v) { |
11668 | return _wrap_GPar_integer__SWIG_1(self, args); |
11669 | } |
11670 | } |
11671 | if (argc == 2) { |
11672 | int _v; |
11673 | void *vptr = 0; |
11674 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11675 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11676 | if (_v) { |
11677 | { |
11678 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
11679 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11680 | } |
11681 | if (_v) { |
11682 | return _wrap_GPar_integer__SWIG_0(self, args); |
11683 | } |
11684 | } |
11685 | } |
11686 | |
11687 | fail: |
11688 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_integer'.\n" |
11689 | " Possible C/C++ prototypes are:\n" |
11690 | " GPar::integer(int const &)\n" |
11691 | " GPar::integer()\n"); |
11692 | return 0; |
11693 | } |
11694 | |
11695 | |
11696 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_real__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11697 | PyObject *resultobj = 0; |
11698 | GPar *arg1 = (GPar *) 0 ; |
11699 | void *argp1 = 0 ; |
11700 | int res1 = 0 ; |
11701 | PyObject * obj0 = 0 ; |
11702 | double result; |
11703 | |
11704 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_real",&obj0)) SWIG_failgoto fail; |
11705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11706 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_real" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_real" "', argument " "1" " of type '" "GPar *""'"); goto fail; } while(0); |
11708 | } |
11709 | arg1 = reinterpret_cast< GPar * >(argp1); |
11710 | { |
11711 | try { |
11712 | result = (double)(arg1)->real(); |
11713 | } |
11714 | catch (const GException::out_of_range& e) { |
11715 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11716 | } |
11717 | catch (const GExceptionHandler& e) { |
11718 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11719 | } |
11720 | catch (const std::exception& e) { |
11721 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11722 | } |
11723 | } |
11724 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
11725 | return resultobj; |
11726 | fail: |
11727 | return NULL__null; |
11728 | } |
11729 | |
11730 | |
11731 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_real(PyObject *self, PyObject *args) { |
11732 | int argc; |
11733 | PyObject *argv[3]; |
11734 | int ii; |
11735 | |
11736 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11737 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11738 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11739 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11740 | } |
11741 | if (argc == 1) { |
11742 | int _v; |
11743 | void *vptr = 0; |
11744 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11745 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11746 | if (_v) { |
11747 | return _wrap_GPar_real__SWIG_1(self, args); |
11748 | } |
11749 | } |
11750 | if (argc == 2) { |
11751 | int _v; |
11752 | void *vptr = 0; |
11753 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPar, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
11754 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11755 | if (_v) { |
11756 | { |
11757 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
11758 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11759 | } |
11760 | if (_v) { |
11761 | return _wrap_GPar_real__SWIG_0(self, args); |
11762 | } |
11763 | } |
11764 | } |
11765 | |
11766 | fail: |
11767 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPar_real'.\n" |
11768 | " Possible C/C++ prototypes are:\n" |
11769 | " GPar::real(double const &)\n" |
11770 | " GPar::real()\n"); |
11771 | return 0; |
11772 | } |
11773 | |
11774 | |
11775 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_min(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11776 | PyObject *resultobj = 0; |
11777 | GPar *arg1 = (GPar *) 0 ; |
11778 | void *argp1 = 0 ; |
11779 | int res1 = 0 ; |
11780 | PyObject * obj0 = 0 ; |
11781 | std::string *result = 0 ; |
11782 | |
11783 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_min",&obj0)) SWIG_failgoto fail; |
11784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11785 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_min" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_min" "', argument " "1" " of type '" "GPar const *""'"); goto fail; } while(0); |
11787 | } |
11788 | arg1 = reinterpret_cast< GPar * >(argp1); |
11789 | { |
11790 | try { |
11791 | result = (std::string *) &((GPar const *)arg1)->min(); |
11792 | } |
11793 | catch (const GException::out_of_range& e) { |
11794 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11795 | } |
11796 | catch (const GExceptionHandler& e) { |
11797 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11798 | } |
11799 | catch (const std::exception& e) { |
11800 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11801 | } |
11802 | } |
11803 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
11804 | return resultobj; |
11805 | fail: |
11806 | return NULL__null; |
11807 | } |
11808 | |
11809 | |
11810 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_max(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11811 | PyObject *resultobj = 0; |
11812 | GPar *arg1 = (GPar *) 0 ; |
11813 | void *argp1 = 0 ; |
11814 | int res1 = 0 ; |
11815 | PyObject * obj0 = 0 ; |
11816 | std::string *result = 0 ; |
11817 | |
11818 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_max",&obj0)) SWIG_failgoto fail; |
11819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11820 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_max" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_max" "', argument " "1" " of type '" "GPar const *""'"); goto fail; } while(0); |
11822 | } |
11823 | arg1 = reinterpret_cast< GPar * >(argp1); |
11824 | { |
11825 | try { |
11826 | result = (std::string *) &((GPar const *)arg1)->max(); |
11827 | } |
11828 | catch (const GException::out_of_range& e) { |
11829 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11830 | } |
11831 | catch (const GExceptionHandler& e) { |
11832 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11833 | } |
11834 | catch (const std::exception& e) { |
11835 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11836 | } |
11837 | } |
11838 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
11839 | return resultobj; |
11840 | fail: |
11841 | return NULL__null; |
11842 | } |
11843 | |
11844 | |
11845 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_prompt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11846 | PyObject *resultobj = 0; |
11847 | GPar *arg1 = (GPar *) 0 ; |
11848 | void *argp1 = 0 ; |
11849 | int res1 = 0 ; |
11850 | PyObject * obj0 = 0 ; |
11851 | std::string *result = 0 ; |
11852 | |
11853 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_prompt",&obj0)) SWIG_failgoto fail; |
11854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11855 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_prompt" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_prompt" "', argument " "1"" of type '" "GPar const *""'"); goto fail; } while(0); |
11857 | } |
11858 | arg1 = reinterpret_cast< GPar * >(argp1); |
11859 | { |
11860 | try { |
11861 | result = (std::string *) &((GPar const *)arg1)->prompt(); |
11862 | } |
11863 | catch (const GException::out_of_range& e) { |
11864 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11865 | } |
11866 | catch (const GExceptionHandler& e) { |
11867 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11868 | } |
11869 | catch (const std::exception& e) { |
11870 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11871 | } |
11872 | } |
11873 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
11874 | return resultobj; |
11875 | fail: |
11876 | return NULL__null; |
11877 | } |
11878 | |
11879 | |
11880 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_islearn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11881 | PyObject *resultobj = 0; |
11882 | GPar *arg1 = (GPar *) 0 ; |
11883 | void *argp1 = 0 ; |
11884 | int res1 = 0 ; |
11885 | PyObject * obj0 = 0 ; |
11886 | bool result; |
11887 | |
11888 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_islearn",&obj0)) SWIG_failgoto fail; |
11889 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11890 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_islearn" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_islearn" "', argument " "1"" of type '" "GPar const *""'"); goto fail; } while(0); |
11892 | } |
11893 | arg1 = reinterpret_cast< GPar * >(argp1); |
11894 | { |
11895 | try { |
11896 | result = (bool)((GPar const *)arg1)->islearn(); |
11897 | } |
11898 | catch (const GException::out_of_range& e) { |
11899 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11900 | } |
11901 | catch (const GExceptionHandler& e) { |
11902 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11903 | } |
11904 | catch (const std::exception& e) { |
11905 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11906 | } |
11907 | } |
11908 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
11909 | return resultobj; |
11910 | fail: |
11911 | return NULL__null; |
11912 | } |
11913 | |
11914 | |
11915 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_isquery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11916 | PyObject *resultobj = 0; |
11917 | GPar *arg1 = (GPar *) 0 ; |
11918 | void *argp1 = 0 ; |
11919 | int res1 = 0 ; |
11920 | PyObject * obj0 = 0 ; |
11921 | bool result; |
11922 | |
11923 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_isquery",&obj0)) SWIG_failgoto fail; |
11924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11925 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_isquery" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_isquery" "', argument " "1"" of type '" "GPar const *""'"); goto fail; } while(0); |
11927 | } |
11928 | arg1 = reinterpret_cast< GPar * >(argp1); |
11929 | { |
11930 | try { |
11931 | result = (bool)((GPar const *)arg1)->isquery(); |
11932 | } |
11933 | catch (const GException::out_of_range& e) { |
11934 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11935 | } |
11936 | catch (const GExceptionHandler& e) { |
11937 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11938 | } |
11939 | catch (const std::exception& e) { |
11940 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11941 | } |
11942 | } |
11943 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
11944 | return resultobj; |
11945 | fail: |
11946 | return NULL__null; |
11947 | } |
11948 | |
11949 | |
11950 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_isfilename(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11951 | PyObject *resultobj = 0; |
11952 | GPar *arg1 = (GPar *) 0 ; |
11953 | void *argp1 = 0 ; |
11954 | int res1 = 0 ; |
11955 | PyObject * obj0 = 0 ; |
11956 | bool result; |
11957 | |
11958 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_isfilename",&obj0)) SWIG_failgoto fail; |
11959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11960 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_isfilename" "', argument " "1"" of type '" "GPar const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_isfilename" "', argument " "1"" of type '" "GPar const *""'"); goto fail; } while(0); |
11962 | } |
11963 | arg1 = reinterpret_cast< GPar * >(argp1); |
11964 | { |
11965 | try { |
11966 | result = (bool)((GPar const *)arg1)->isfilename(); |
11967 | } |
11968 | catch (const GException::out_of_range& e) { |
11969 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11970 | } |
11971 | catch (const GExceptionHandler& e) { |
11972 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11973 | } |
11974 | catch (const std::exception& e) { |
11975 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11976 | } |
11977 | } |
11978 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
11979 | return resultobj; |
11980 | fail: |
11981 | return NULL__null; |
11982 | } |
11983 | |
11984 | |
11985 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_isvalid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11986 | PyObject *resultobj = 0; |
11987 | GPar *arg1 = (GPar *) 0 ; |
11988 | void *argp1 = 0 ; |
11989 | int res1 = 0 ; |
11990 | PyObject * obj0 = 0 ; |
11991 | bool result; |
11992 | |
11993 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_isvalid",&obj0)) SWIG_failgoto fail; |
11994 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
11995 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_isvalid" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_isvalid" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
11997 | } |
11998 | arg1 = reinterpret_cast< GPar * >(argp1); |
11999 | { |
12000 | try { |
12001 | result = (bool)(arg1)->isvalid(); |
12002 | } |
12003 | catch (const GException::out_of_range& e) { |
12004 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12005 | } |
12006 | catch (const GExceptionHandler& e) { |
12007 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12008 | } |
12009 | catch (const std::exception& e) { |
12010 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12011 | } |
12012 | } |
12013 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
12014 | return resultobj; |
12015 | fail: |
12016 | return NULL__null; |
12017 | } |
12018 | |
12019 | |
12020 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_isundefined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12021 | PyObject *resultobj = 0; |
12022 | GPar *arg1 = (GPar *) 0 ; |
12023 | void *argp1 = 0 ; |
12024 | int res1 = 0 ; |
12025 | PyObject * obj0 = 0 ; |
12026 | bool result; |
12027 | |
12028 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_isundefined",&obj0)) SWIG_failgoto fail; |
12029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
12030 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_isundefined" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_isundefined" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
12032 | } |
12033 | arg1 = reinterpret_cast< GPar * >(argp1); |
12034 | { |
12035 | try { |
12036 | result = (bool)(arg1)->isundefined(); |
12037 | } |
12038 | catch (const GException::out_of_range& e) { |
12039 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12040 | } |
12041 | catch (const GExceptionHandler& e) { |
12042 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12043 | } |
12044 | catch (const std::exception& e) { |
12045 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12046 | } |
12047 | } |
12048 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
12049 | return resultobj; |
12050 | fail: |
12051 | return NULL__null; |
12052 | } |
12053 | |
12054 | |
12055 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_isnotanumber(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12056 | PyObject *resultobj = 0; |
12057 | GPar *arg1 = (GPar *) 0 ; |
12058 | void *argp1 = 0 ; |
12059 | int res1 = 0 ; |
12060 | PyObject * obj0 = 0 ; |
12061 | bool result; |
12062 | |
12063 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_isnotanumber",&obj0)) SWIG_failgoto fail; |
12064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
12065 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_isnotanumber" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_isnotanumber" "', argument " "1"" of type '" "GPar *""'"); goto fail; } while(0); |
12067 | } |
12068 | arg1 = reinterpret_cast< GPar * >(argp1); |
12069 | { |
12070 | try { |
12071 | result = (bool)(arg1)->isnotanumber(); |
12072 | } |
12073 | catch (const GException::out_of_range& e) { |
12074 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12075 | } |
12076 | catch (const GExceptionHandler& e) { |
12077 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12078 | } |
12079 | catch (const std::exception& e) { |
12080 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12081 | } |
12082 | } |
12083 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
12084 | return resultobj; |
12085 | fail: |
12086 | return NULL__null; |
12087 | } |
12088 | |
12089 | |
12090 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPar_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12091 | PyObject *resultobj = 0; |
12092 | GPar *arg1 = (GPar *) 0 ; |
12093 | void *argp1 = 0 ; |
12094 | int res1 = 0 ; |
12095 | PyObject * obj0 = 0 ; |
12096 | GPar result; |
12097 | |
12098 | if (!PyArg_ParseTuple(args,(char *)"O:GPar_copy",&obj0)) SWIG_failgoto fail; |
12099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPar, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
12100 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPar_copy" "', argument " "1"" of type '" "GPar *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GPar_copy" "', argument " "1" " of type '" "GPar *""'"); goto fail; } while(0); |
12102 | } |
12103 | arg1 = reinterpret_cast< GPar * >(argp1); |
12104 | { |
12105 | try { |
12106 | result = GPar_copy(arg1); |
12107 | } |
12108 | catch (const GException::out_of_range& e) { |
12109 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12110 | } |
12111 | catch (const GExceptionHandler& e) { |
12112 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12113 | } |
12114 | catch (const std::exception& e) { |
12115 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12116 | } |
12117 | } |
12118 | resultobj = SWIG_NewPointerObj((new GPar(static_cast< const GPar& >(result))), SWIGTYPE_p_GPar, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GPar(static_cast< const GPar& >(result))), swig_types[5], 0x1 | 0); |
12119 | return resultobj; |
12120 | fail: |
12121 | return NULL__null; |
12122 | } |
12123 | |
12124 | |
12125 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GPar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12126 | PyObject *obj; |
12127 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
12128 | SWIG_TypeNewClientData(SWIGTYPE_p_GParswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
12129 | return SWIG_Py_Void(); |
12130 | } |
12131 | |
12132 | static PyMethodDef SwigMethods[] = { |
12133 | { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null}, |
12134 | { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"}, |
12135 | { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"}, |
12136 | { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n" |
12137 | "incr(size_t n=1) -> SwigPyIterator\n" |
12138 | "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n" |
12139 | ""}, |
12140 | { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n" |
12141 | "decr(size_t n=1) -> SwigPyIterator\n" |
12142 | "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n" |
12143 | ""}, |
12144 | { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"}, |
12145 | { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
12146 | { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"}, |
12147 | { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"}, |
12148 | { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"}, |
12149 | { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"}, |
12150 | { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
12151 | { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
12152 | { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
12153 | { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
12154 | { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
12155 | { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
12156 | { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n" |
12157 | "__sub__(ptrdiff_t n) -> SwigPyIterator\n" |
12158 | "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n" |
12159 | ""}, |
12160 | { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null}, |
12161 | { (char *)"new_GApplication", _wrap_new_GApplication, METH_VARARGS0x0001, (char *)"\n" |
12162 | "GApplication()\n" |
12163 | "GApplication(std::string const & name, std::string const & version)\n" |
12164 | "GApplication(std::string const & name, std::string const & version, int ARGC)\n" |
12165 | "new_GApplication(GApplication app) -> GApplication\n" |
12166 | ""}, |
12167 | { (char *)"delete_GApplication", _wrap_delete_GApplication, METH_VARARGS0x0001, (char *)"delete_GApplication(GApplication self)"}, |
12168 | { (char *)"GApplication_clear", _wrap_GApplication_clear, METH_VARARGS0x0001, (char *)"GApplication_clear(GApplication self)"}, |
12169 | { (char *)"GApplication_clone", _wrap_GApplication_clone, METH_VARARGS0x0001, (char *)"GApplication_clone(GApplication self) -> GApplication"}, |
12170 | { (char *)"GApplication_name", _wrap_GApplication_name, METH_VARARGS0x0001, (char *)"GApplication_name(GApplication self) -> std::string const &"}, |
12171 | { (char *)"GApplication_version", _wrap_GApplication_version, METH_VARARGS0x0001, (char *)"GApplication_version(GApplication self) -> std::string const &"}, |
12172 | { (char *)"GApplication_telapse", _wrap_GApplication_telapse, METH_VARARGS0x0001, (char *)"GApplication_telapse(GApplication self) -> double"}, |
12173 | { (char *)"GApplication_celapse", _wrap_GApplication_celapse, METH_VARARGS0x0001, (char *)"GApplication_celapse(GApplication self) -> double"}, |
12174 | { (char *)"GApplication_logFileOpen", _wrap_GApplication_logFileOpen, METH_VARARGS0x0001, (char *)"\n" |
12175 | "logFileOpen(bool const & clobber=True)\n" |
12176 | "GApplication_logFileOpen(GApplication self)\n" |
12177 | ""}, |
12178 | { (char *)"GApplication_logTerse", _wrap_GApplication_logTerse, METH_VARARGS0x0001, (char *)"GApplication_logTerse(GApplication self) -> bool"}, |
12179 | { (char *)"GApplication_logNormal", _wrap_GApplication_logNormal, METH_VARARGS0x0001, (char *)"GApplication_logNormal(GApplication self) -> bool"}, |
12180 | { (char *)"GApplication_logExplicit", _wrap_GApplication_logExplicit, METH_VARARGS0x0001, (char *)"GApplication_logExplicit(GApplication self) -> bool"}, |
12181 | { (char *)"GApplication_logVerbose", _wrap_GApplication_logVerbose, METH_VARARGS0x0001, (char *)"GApplication_logVerbose(GApplication self) -> bool"}, |
12182 | { (char *)"GApplication_logDebug", _wrap_GApplication_logDebug, METH_VARARGS0x0001, (char *)"GApplication_logDebug(GApplication self) -> bool"}, |
12183 | { (char *)"GApplication_clobber", _wrap_GApplication_clobber, METH_VARARGS0x0001, (char *)"GApplication_clobber(GApplication self) -> bool"}, |
12184 | { (char *)"GApplication_haspar", _wrap_GApplication_haspar, METH_VARARGS0x0001, (char *)"GApplication_haspar(GApplication self, std::string const & name) -> bool"}, |
12185 | { (char *)"GApplication_par_filename", _wrap_GApplication_par_filename, METH_VARARGS0x0001, (char *)"GApplication_par_filename(GApplication self) -> std::string const &"}, |
12186 | { (char *)"GApplication_log_filename", _wrap_GApplication_log_filename, METH_VARARGS0x0001, (char *)"GApplication_log_filename(GApplication self) -> std::string const &"}, |
12187 | { (char *)"GApplication_log_header", _wrap_GApplication_log_header, METH_VARARGS0x0001, (char *)"GApplication_log_header(GApplication self)"}, |
12188 | { (char *)"GApplication_log_trailer", _wrap_GApplication_log_trailer, METH_VARARGS0x0001, (char *)"GApplication_log_trailer(GApplication self)"}, |
12189 | { (char *)"GApplication_log_parameters", _wrap_GApplication_log_parameters, METH_VARARGS0x0001, (char *)"GApplication_log_parameters(GApplication self)"}, |
12190 | { (char *)"GApplication_log_set", _wrap_GApplication_log_set, METH_VARARGS0x0001, (char *)"GApplication_log_set(GApplication self, GLog log)"}, |
12191 | { (char *)"GApplication_log_get", _wrap_GApplication_log_get, METH_VARARGS0x0001, (char *)"GApplication_log_get(GApplication self) -> GLog"}, |
12192 | { (char *)"GApplication___getitem__", _wrap_GApplication___getitem__, METH_VARARGS0x0001, (char *)"GApplication___getitem__(GApplication self, std::string const & name) -> GPar"}, |
12193 | { (char *)"GApplication___setitem__", _wrap_GApplication___setitem__, METH_VARARGS0x0001, (char *)"\n" |
12194 | "__setitem__(std::string const & name, GPar val)\n" |
12195 | "__setitem__(std::string const & name, int const & val)\n" |
12196 | "__setitem__(std::string const & name, double const & val)\n" |
12197 | "GApplication___setitem__(GApplication self, std::string const & name, std::string const & val)\n" |
12198 | ""}, |
12199 | { (char *)"GApplication_copy", _wrap_GApplication_copy, METH_VARARGS0x0001, (char *)"GApplication_copy(GApplication self) -> GApplication"}, |
12200 | { (char *)"GApplication_swigregister", GApplication_swigregister, METH_VARARGS0x0001, NULL__null}, |
12201 | { (char *)"new_GLog", _wrap_new_GLog, METH_VARARGS0x0001, (char *)"\n" |
12202 | "GLog()\n" |
12203 | "GLog(std::string const & filename, bool const & clobber=False)\n" |
12204 | "GLog(std::string const & filename)\n" |
12205 | "new_GLog(GLog log) -> GLog\n" |
12206 | ""}, |
12207 | { (char *)"delete_GLog", _wrap_delete_GLog, METH_VARARGS0x0001, (char *)"delete_GLog(GLog self)"}, |
12208 | { (char *)"GLog_clear", _wrap_GLog_clear, METH_VARARGS0x0001, (char *)"GLog_clear(GLog self)"}, |
12209 | { (char *)"GLog_size", _wrap_GLog_size, METH_VARARGS0x0001, (char *)"GLog_size(GLog self) -> int"}, |
12210 | { (char *)"GLog_open", _wrap_GLog_open, METH_VARARGS0x0001, (char *)"\n" |
12211 | "open(std::string const & filename, bool const & clobber=False)\n" |
12212 | "GLog_open(GLog self, std::string const & filename)\n" |
12213 | ""}, |
12214 | { (char *)"GLog_close", _wrap_GLog_close, METH_VARARGS0x0001, (char *)"GLog_close(GLog self)"}, |
12215 | { (char *)"GLog_flush", _wrap_GLog_flush, METH_VARARGS0x0001, (char *)"\n" |
12216 | "flush(bool const & force=False)\n" |
12217 | "GLog_flush(GLog self)\n" |
12218 | ""}, |
12219 | { (char *)"GLog_header0", _wrap_GLog_header0, METH_VARARGS0x0001, (char *)"GLog_header0(GLog self, std::string const & arg)"}, |
12220 | { (char *)"GLog_header1", _wrap_GLog_header1, METH_VARARGS0x0001, (char *)"GLog_header1(GLog self, std::string const & arg)"}, |
12221 | { (char *)"GLog_header2", _wrap_GLog_header2, METH_VARARGS0x0001, (char *)"GLog_header2(GLog self, std::string const & arg)"}, |
12222 | { (char *)"GLog_header3", _wrap_GLog_header3, METH_VARARGS0x0001, (char *)"GLog_header3(GLog self, std::string const & arg)"}, |
12223 | { (char *)"GLog_date", _wrap_GLog_date, METH_VARARGS0x0001, (char *)"\n" |
12224 | "date(bool const & flag)\n" |
12225 | "GLog_date(GLog self) -> bool const &\n" |
12226 | ""}, |
12227 | { (char *)"GLog_cout", _wrap_GLog_cout, METH_VARARGS0x0001, (char *)"\n" |
12228 | "cout(bool const & flag)\n" |
12229 | "GLog_cout(GLog self) -> bool const &\n" |
12230 | ""}, |
12231 | { (char *)"GLog_cerr", _wrap_GLog_cerr, METH_VARARGS0x0001, (char *)"\n" |
12232 | "cerr(bool const & flag)\n" |
12233 | "GLog_cerr(GLog self) -> bool const &\n" |
12234 | ""}, |
12235 | { (char *)"GLog_name", _wrap_GLog_name, METH_VARARGS0x0001, (char *)"\n" |
12236 | "name(std::string const & name)\n" |
12237 | "GLog_name(GLog self) -> std::string const &\n" |
12238 | ""}, |
12239 | { (char *)"GLog_max_size", _wrap_GLog_max_size, METH_VARARGS0x0001, (char *)"\n" |
12240 | "max_size(int const & size)\n" |
12241 | "GLog_max_size(GLog self) -> int const &\n" |
12242 | ""}, |
12243 | { (char *)"GLog_indent", _wrap_GLog_indent, METH_VARARGS0x0001, (char *)"\n" |
12244 | "indent(int const & indent)\n" |
12245 | "GLog_indent(GLog self) -> int const &\n" |
12246 | ""}, |
12247 | { (char *)"GLog_chatter", _wrap_GLog_chatter, METH_VARARGS0x0001, (char *)"\n" |
12248 | "chatter(GChatter const & chatter)\n" |
12249 | "GLog_chatter(GLog self) -> GChatter const &\n" |
12250 | ""}, |
12251 | { (char *)"GLog_filename", _wrap_GLog_filename, METH_VARARGS0x0001, (char *)"GLog_filename(GLog self) -> std::string const &"}, |
12252 | { (char *)"GLog_copy", _wrap_GLog_copy, METH_VARARGS0x0001, (char *)"GLog_copy(GLog self) -> GLog"}, |
12253 | { (char *)"GLog___call__", _wrap_GLog___call__, METH_VARARGS0x0001, (char *)"\n" |
12254 | "__call__(GLog log)\n" |
12255 | "__call__(std::string const & arg)\n" |
12256 | "__call__(bool const & value)\n" |
12257 | "__call__(int const & value)\n" |
12258 | "GLog___call__(GLog self, double const & value)\n" |
12259 | ""}, |
12260 | { (char *)"GLog_parformat", _wrap_GLog_parformat, METH_VARARGS0x0001, (char *)"GLog_parformat(GLog self, std::string const & arg)"}, |
12261 | { (char *)"GLog_toupper", _wrap_GLog_toupper, METH_VARARGS0x0001, (char *)"GLog_toupper(GLog self, std::string const & arg)"}, |
12262 | { (char *)"GLog_tolower", _wrap_GLog_tolower, METH_VARARGS0x0001, (char *)"GLog_tolower(GLog self, std::string const & arg)"}, |
12263 | { (char *)"GLog_fill", _wrap_GLog_fill, METH_VARARGS0x0001, (char *)"GLog_fill(GLog self, std::string const & arg, int const & n)"}, |
12264 | { (char *)"GLog_left", _wrap_GLog_left, METH_VARARGS0x0001, (char *)"GLog_left(GLog self, std::string const & arg, int const & n)"}, |
12265 | { (char *)"GLog_right", _wrap_GLog_right, METH_VARARGS0x0001, (char *)"GLog_right(GLog self, std::string const & arg, int const & n)"}, |
12266 | { (char *)"GLog_center", _wrap_GLog_center, METH_VARARGS0x0001, (char *)"GLog_center(GLog self, std::string const & arg, int const & n)"}, |
12267 | { (char *)"GLog_swigregister", GLog_swigregister, METH_VARARGS0x0001, NULL__null}, |
12268 | { (char *)"new_GPars", _wrap_new_GPars, METH_VARARGS0x0001, (char *)"\n" |
12269 | "GPars()\n" |
12270 | "GPars(std::string const & filename)\n" |
12271 | "GPars(std::string const & filename, std::vector< std::string,std::allocator< std::string > > const & args)\n" |
12272 | "new_GPars(GPars pars) -> GPars\n" |
12273 | ""}, |
12274 | { (char *)"delete_GPars", _wrap_delete_GPars, METH_VARARGS0x0001, (char *)"delete_GPars(GPars self)"}, |
12275 | { (char *)"GPars_clear", _wrap_GPars_clear, METH_VARARGS0x0001, (char *)"GPars_clear(GPars self)"}, |
12276 | { (char *)"GPars_clone", _wrap_GPars_clone, METH_VARARGS0x0001, (char *)"GPars_clone(GPars self) -> GPars"}, |
12277 | { (char *)"GPars_at", _wrap_GPars_at, METH_VARARGS0x0001, (char *)"\n" |
12278 | "at(int const & index) -> GPar\n" |
12279 | "GPars_at(GPars self, int const & index) -> GPar\n" |
12280 | ""}, |
12281 | { (char *)"GPars_size", _wrap_GPars_size, METH_VARARGS0x0001, (char *)"GPars_size(GPars self) -> int"}, |
12282 | { (char *)"GPars_isempty", _wrap_GPars_isempty, METH_VARARGS0x0001, (char *)"GPars_isempty(GPars self) -> bool"}, |
12283 | { (char *)"GPars_append", _wrap_GPars_append, METH_VARARGS0x0001, (char *)"GPars_append(GPars self, GPar par) -> GPar"}, |
12284 | { (char *)"GPars_append_standard", _wrap_GPars_append_standard, METH_VARARGS0x0001, (char *)"GPars_append_standard(GPars self)"}, |
12285 | { (char *)"GPars_insert", _wrap_GPars_insert, METH_VARARGS0x0001, (char *)"\n" |
12286 | "insert(int const & index, GPar par) -> GPar\n" |
12287 | "GPars_insert(GPars self, std::string const & name, GPar par) -> GPar\n" |
12288 | ""}, |
12289 | { (char *)"GPars_remove", _wrap_GPars_remove, METH_VARARGS0x0001, (char *)"\n" |
12290 | "remove(int const & index)\n" |
12291 | "GPars_remove(GPars self, std::string const & name)\n" |
12292 | ""}, |
12293 | { (char *)"GPars_reserve", _wrap_GPars_reserve, METH_VARARGS0x0001, (char *)"GPars_reserve(GPars self, int const & num)"}, |
12294 | { (char *)"GPars_extend", _wrap_GPars_extend, METH_VARARGS0x0001, (char *)"GPars_extend(GPars self, GPars pars)"}, |
12295 | { (char *)"GPars_contains", _wrap_GPars_contains, METH_VARARGS0x0001, (char *)"GPars_contains(GPars self, std::string const & name) -> bool"}, |
12296 | { (char *)"GPars_load", _wrap_GPars_load, METH_VARARGS0x0001, (char *)"\n" |
12297 | "load(std::string const & filename)\n" |
12298 | "GPars_load(GPars self, std::string const & filename, std::vector< std::string,std::allocator< std::string > > const & args)\n" |
12299 | ""}, |
12300 | { (char *)"GPars_save", _wrap_GPars_save, METH_VARARGS0x0001, (char *)"GPars_save(GPars self, std::string const & filename)"}, |
12301 | { (char *)"GPars___getitem__", _wrap_GPars___getitem__, METH_VARARGS0x0001, (char *)"\n" |
12302 | "__getitem__(int const & index) -> GPar\n" |
12303 | "GPars___getitem__(GPars self, std::string const & name) -> GPar\n" |
12304 | ""}, |
12305 | { (char *)"GPars___setitem__", _wrap_GPars___setitem__, METH_VARARGS0x0001, (char *)"\n" |
12306 | "__setitem__(int const & index, GPar par)\n" |
12307 | "GPars___setitem__(GPars self, std::string const & name, GPar par)\n" |
12308 | ""}, |
12309 | { (char *)"GPars_copy", _wrap_GPars_copy, METH_VARARGS0x0001, (char *)"GPars_copy(GPars self) -> GPars"}, |
12310 | { (char *)"GPars_swigregister", GPars_swigregister, METH_VARARGS0x0001, NULL__null}, |
12311 | { (char *)"new_GPar", _wrap_new_GPar, METH_VARARGS0x0001, (char *)"\n" |
12312 | "GPar()\n" |
12313 | "GPar(std::string const & name, std::string const & type, std::string const & mode, std::string const & value, \n" |
12314 | " std::string const & min, std::string const & max, std::string const & prompt)\n" |
12315 | "new_GPar(GPar par) -> GPar\n" |
12316 | ""}, |
12317 | { (char *)"delete_GPar", _wrap_delete_GPar, METH_VARARGS0x0001, (char *)"delete_GPar(GPar self)"}, |
12318 | { (char *)"GPar_clear", _wrap_GPar_clear, METH_VARARGS0x0001, (char *)"GPar_clear(GPar self)"}, |
12319 | { (char *)"GPar_clone", _wrap_GPar_clone, METH_VARARGS0x0001, (char *)"GPar_clone(GPar self) -> GPar"}, |
12320 | { (char *)"GPar_name", _wrap_GPar_name, METH_VARARGS0x0001, (char *)"GPar_name(GPar self) -> std::string const &"}, |
12321 | { (char *)"GPar_type", _wrap_GPar_type, METH_VARARGS0x0001, (char *)"\n" |
12322 | "type(std::string const & type)\n" |
12323 | "GPar_type(GPar self) -> std::string const &\n" |
12324 | ""}, |
12325 | { (char *)"GPar_mode", _wrap_GPar_mode, METH_VARARGS0x0001, (char *)"\n" |
12326 | "mode(std::string const & mode)\n" |
12327 | "GPar_mode(GPar self) -> std::string const &\n" |
12328 | ""}, |
12329 | { (char *)"GPar_value", _wrap_GPar_value, METH_VARARGS0x0001, (char *)"\n" |
12330 | "value(std::string const & value)\n" |
12331 | "GPar_value(GPar self) -> std::string\n" |
12332 | ""}, |
12333 | { (char *)"GPar_string", _wrap_GPar_string, METH_VARARGS0x0001, (char *)"\n" |
12334 | "string(std::string const & value)\n" |
12335 | "GPar_string(GPar self) -> std::string\n" |
12336 | ""}, |
12337 | { (char *)"GPar_filename", _wrap_GPar_filename, METH_VARARGS0x0001, (char *)"\n" |
12338 | "filename(std::string const & value)\n" |
12339 | "GPar_filename(GPar self) -> std::string\n" |
12340 | ""}, |
12341 | { (char *)"GPar_boolean", _wrap_GPar_boolean, METH_VARARGS0x0001, (char *)"\n" |
12342 | "boolean(bool const & value)\n" |
12343 | "GPar_boolean(GPar self) -> bool\n" |
12344 | ""}, |
12345 | { (char *)"GPar_integer", _wrap_GPar_integer, METH_VARARGS0x0001, (char *)"\n" |
12346 | "integer(int const & value)\n" |
12347 | "GPar_integer(GPar self) -> int\n" |
12348 | ""}, |
12349 | { (char *)"GPar_real", _wrap_GPar_real, METH_VARARGS0x0001, (char *)"\n" |
12350 | "real(double const & value)\n" |
12351 | "GPar_real(GPar self) -> double\n" |
12352 | ""}, |
12353 | { (char *)"GPar_min", _wrap_GPar_min, METH_VARARGS0x0001, (char *)"GPar_min(GPar self) -> std::string const &"}, |
12354 | { (char *)"GPar_max", _wrap_GPar_max, METH_VARARGS0x0001, (char *)"GPar_max(GPar self) -> std::string const &"}, |
12355 | { (char *)"GPar_prompt", _wrap_GPar_prompt, METH_VARARGS0x0001, (char *)"GPar_prompt(GPar self) -> std::string const &"}, |
12356 | { (char *)"GPar_islearn", _wrap_GPar_islearn, METH_VARARGS0x0001, (char *)"GPar_islearn(GPar self) -> bool"}, |
12357 | { (char *)"GPar_isquery", _wrap_GPar_isquery, METH_VARARGS0x0001, (char *)"GPar_isquery(GPar self) -> bool"}, |
12358 | { (char *)"GPar_isfilename", _wrap_GPar_isfilename, METH_VARARGS0x0001, (char *)"GPar_isfilename(GPar self) -> bool"}, |
12359 | { (char *)"GPar_isvalid", _wrap_GPar_isvalid, METH_VARARGS0x0001, (char *)"GPar_isvalid(GPar self) -> bool"}, |
12360 | { (char *)"GPar_isundefined", _wrap_GPar_isundefined, METH_VARARGS0x0001, (char *)"GPar_isundefined(GPar self) -> bool"}, |
12361 | { (char *)"GPar_isnotanumber", _wrap_GPar_isnotanumber, METH_VARARGS0x0001, (char *)"GPar_isnotanumber(GPar self) -> bool"}, |
12362 | { (char *)"GPar_copy", _wrap_GPar_copy, METH_VARARGS0x0001, (char *)"GPar_copy(GPar self) -> GPar"}, |
12363 | { (char *)"GPar_swigregister", GPar_swigregister, METH_VARARGS0x0001, NULL__null}, |
12364 | { NULL__null, NULL__null, 0, NULL__null } |
12365 | }; |
12366 | |
12367 | |
12368 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
12369 | |
12370 | static void *_p_GApplicationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
12371 | return (void *)((GBase *) ((GApplication *) x)); |
12372 | } |
12373 | static void *_p_GParsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
12374 | return (void *)((GBase *) ((GPars *) x)); |
12375 | } |
12376 | static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
12377 | return (void *)((GBase *) ((GContainer *) x)); |
12378 | } |
12379 | static void *_p_GParTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
12380 | return (void *)((GBase *) ((GPar *) x)); |
12381 | } |
12382 | static swig_type_info _swigt__p_GApplication = {"_p_GApplication", "GApplication *", 0, 0, (void*)0, 0}; |
12383 | static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0}; |
12384 | static swig_type_info _swigt__p_GContainer = {"_p_GContainer", 0, 0, 0, 0, 0}; |
12385 | static swig_type_info _swigt__p_GChatter = {"_p_GChatter", "GChatter *", 0, 0, (void*)0, 0}; |
12386 | static swig_type_info _swigt__p_GLog = {"_p_GLog", "GLog *", 0, 0, (void*)0, 0}; |
12387 | static swig_type_info _swigt__p_GPar = {"_p_GPar", "GPar *", 0, 0, (void*)0, 0}; |
12388 | static swig_type_info _swigt__p_GPars = {"_p_GPars", "GPars *", 0, 0, (void*)0, 0}; |
12389 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
12390 | static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0}; |
12391 | static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; |
12392 | 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}; |
12393 | static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; |
12394 | |
12395 | static swig_type_info *swig_type_initial[] = { |
12396 | &_swigt__p_GApplication, |
12397 | &_swigt__p_GBase, |
12398 | &_swigt__p_GChatter, |
12399 | &_swigt__p_GContainer, |
12400 | &_swigt__p_GLog, |
12401 | &_swigt__p_GPar, |
12402 | &_swigt__p_GPars, |
12403 | &_swigt__p_char, |
12404 | &_swigt__p_p_char, |
12405 | &_swigt__p_std__invalid_argument, |
12406 | &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, |
12407 | &_swigt__p_swig__SwigPyIterator, |
12408 | }; |
12409 | |
12410 | static swig_cast_info _swigc__p_GApplication[] = { {&_swigt__p_GApplication, 0, 0, 0},{0, 0, 0, 0}}; |
12411 | static swig_cast_info _swigc__p_GContainer[] = {{&_swigt__p_GContainer, 0, 0, 0},{0, 0, 0, 0}}; |
12412 | static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GApplication, _p_GApplicationTo_p_GBase, 0, 0}, {&_swigt__p_GPars, _p_GParsTo_p_GBase, 0, 0}, {&_swigt__p_GPar, _p_GParTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0},{0, 0, 0, 0}}; |
12413 | static swig_cast_info _swigc__p_GChatter[] = { {&_swigt__p_GChatter, 0, 0, 0},{0, 0, 0, 0}}; |
12414 | static swig_cast_info _swigc__p_GLog[] = { {&_swigt__p_GLog, 0, 0, 0},{0, 0, 0, 0}}; |
12415 | static swig_cast_info _swigc__p_GPar[] = { {&_swigt__p_GPar, 0, 0, 0},{0, 0, 0, 0}}; |
12416 | static swig_cast_info _swigc__p_GPars[] = { {&_swigt__p_GPars, 0, 0, 0},{0, 0, 0, 0}}; |
12417 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
12418 | static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}}; |
12419 | static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; |
12420 | 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}}; |
12421 | static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; |
12422 | |
12423 | static swig_cast_info *swig_cast_initial[] = { |
12424 | _swigc__p_GApplication, |
12425 | _swigc__p_GBase, |
12426 | _swigc__p_GChatter, |
12427 | _swigc__p_GContainer, |
12428 | _swigc__p_GLog, |
12429 | _swigc__p_GPar, |
12430 | _swigc__p_GPars, |
12431 | _swigc__p_char, |
12432 | _swigc__p_p_char, |
12433 | _swigc__p_std__invalid_argument, |
12434 | _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, |
12435 | _swigc__p_swig__SwigPyIterator, |
12436 | }; |
12437 | |
12438 | |
12439 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
12440 | |
12441 | static swig_const_info swig_const_table[] = { |
12442 | {0, 0, 0, 0.0, 0, 0}}; |
12443 | |
12444 | #ifdef __cplusplus199711L |
12445 | } |
12446 | #endif |
12447 | /* ----------------------------------------------------------------------------- |
12448 | * Type initialization: |
12449 | * This problem is tough by the requirement that no dynamic |
12450 | * memory is used. Also, since swig_type_info structures store pointers to |
12451 | * swig_cast_info structures and swig_cast_info structures store pointers back |
12452 | * to swig_type_info structures, we need some lookup code at initialization. |
12453 | * The idea is that swig generates all the structures that are needed. |
12454 | * The runtime then collects these partially filled structures. |
12455 | * The SWIG_InitializeModule function takes these initial arrays out of |
12456 | * swig_module, and does all the lookup, filling in the swig_module.types |
12457 | * array with the correct data and linking the correct swig_cast_info |
12458 | * structures together. |
12459 | * |
12460 | * The generated swig_type_info structures are assigned staticly to an initial |
12461 | * array. We just loop through that array, and handle each type individually. |
12462 | * First we lookup if this type has been already loaded, and if so, use the |
12463 | * loaded structure instead of the generated one. Then we have to fill in the |
12464 | * cast linked list. The cast data is initially stored in something like a |
12465 | * two-dimensional array. Each row corresponds to a type (there are the same |
12466 | * number of rows as there are in the swig_type_initial array). Each entry in |
12467 | * a column is one of the swig_cast_info structures for that type. |
12468 | * The cast_initial array is actually an array of arrays, because each row has |
12469 | * a variable number of columns. So to actually build the cast linked list, |
12470 | * we find the array of casts associated with the type, and loop through it |
12471 | * adding the casts to the list. The one last trick we need to do is making |
12472 | * sure the type pointer in the swig_cast_info struct is correct. |
12473 | * |
12474 | * First off, we lookup the cast->type name to see if it is already loaded. |
12475 | * There are three cases to handle: |
12476 | * 1) If the cast->type has already been loaded AND the type we are adding |
12477 | * casting info to has not been loaded (it is in this module), THEN we |
12478 | * replace the cast->type pointer with the type pointer that has already |
12479 | * been loaded. |
12480 | * 2) If BOTH types (the one we are adding casting info to, and the |
12481 | * cast->type) are loaded, THEN the cast info has already been loaded by |
12482 | * the previous module so we just ignore it. |
12483 | * 3) Finally, if cast->type has not already been loaded, then we add that |
12484 | * swig_cast_info to the linked list (because the cast->type) pointer will |
12485 | * be correct. |
12486 | * ----------------------------------------------------------------------------- */ |
12487 | |
12488 | #ifdef __cplusplus199711L |
12489 | extern "C" { |
12490 | #if 0 |
12491 | } /* c-mode */ |
12492 | #endif |
12493 | #endif |
12494 | |
12495 | #if 0 |
12496 | #define SWIGRUNTIME_DEBUG |
12497 | #endif |
12498 | |
12499 | |
12500 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
12501 | SWIG_InitializeModule(void *clientdata) { |
12502 | size_t i; |
12503 | swig_module_info *module_head, *iter; |
12504 | int found, init; |
12505 | |
12506 | /* check to see if the circular list has been setup, if not, set it up */ |
12507 | if (swig_module.next==0) { |
12508 | /* Initialize the swig_module */ |
12509 | swig_module.type_initial = swig_type_initial; |
12510 | swig_module.cast_initial = swig_cast_initial; |
12511 | swig_module.next = &swig_module; |
12512 | init = 1; |
12513 | } else { |
12514 | init = 0; |
12515 | } |
12516 | |
12517 | /* Try and load any already created modules */ |
12518 | module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata); |
12519 | if (!module_head) { |
12520 | /* This is the first module loaded for this interpreter */ |
12521 | /* so set the swig module into the interpreter */ |
12522 | SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module); |
12523 | module_head = &swig_module; |
12524 | } else { |
12525 | /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
12526 | found=0; |
12527 | iter=module_head; |
12528 | do { |
12529 | if (iter==&swig_module) { |
12530 | found=1; |
12531 | break; |
12532 | } |
12533 | iter=iter->next; |
12534 | } while (iter!= module_head); |
12535 | |
12536 | /* if the is found in the list, then all is done and we may leave */ |
12537 | if (found) return; |
12538 | /* otherwise we must add out module into the list */ |
12539 | swig_module.next = module_head->next; |
12540 | module_head->next = &swig_module; |
12541 | } |
12542 | |
12543 | /* When multiple interpreters are used, a module could have already been initialized in |
12544 | a different interpreter, but not yet have a pointer in this interpreter. |
12545 | In this case, we do not want to continue adding types... everything should be |
12546 | set up already */ |
12547 | if (init == 0) return; |
12548 | |
12549 | /* Now work on filling in swig_module.types */ |
12550 | #ifdef SWIGRUNTIME_DEBUG |
12551 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
12552 | #endif |
12553 | for (i = 0; i < swig_module.size; ++i) { |
12554 | swig_type_info *type = 0; |
12555 | swig_type_info *ret; |
12556 | swig_cast_info *cast; |
12557 | |
12558 | #ifdef SWIGRUNTIME_DEBUG |
12559 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
12560 | #endif |
12561 | |
12562 | /* if there is another module already loaded */ |
12563 | if (swig_module.next != &swig_module) { |
12564 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
12565 | } |
12566 | if (type) { |
12567 | /* Overwrite clientdata field */ |
12568 | #ifdef SWIGRUNTIME_DEBUG |
12569 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
12570 | #endif |
12571 | if (swig_module.type_initial[i]->clientdata) { |
12572 | type->clientdata = swig_module.type_initial[i]->clientdata; |
12573 | #ifdef SWIGRUNTIME_DEBUG |
12574 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
12575 | #endif |
12576 | } |
12577 | } else { |
12578 | type = swig_module.type_initial[i]; |
12579 | } |
12580 | |
12581 | /* Insert casting types */ |
12582 | cast = swig_module.cast_initial[i]; |
12583 | while (cast->type) { |
12584 | /* Don't need to add information already in the list */ |
12585 | ret = 0; |
12586 | #ifdef SWIGRUNTIME_DEBUG |
12587 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
12588 | #endif |
12589 | if (swig_module.next != &swig_module) { |
12590 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
12591 | #ifdef SWIGRUNTIME_DEBUG |
12592 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
12593 | #endif |
12594 | } |
12595 | if (ret) { |
12596 | if (type == swig_module.type_initial[i]) { |
12597 | #ifdef SWIGRUNTIME_DEBUG |
12598 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
12599 | #endif |
12600 | cast->type = ret; |
12601 | ret = 0; |
12602 | } else { |
12603 | /* Check for casting already in the list */ |
12604 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
12605 | #ifdef SWIGRUNTIME_DEBUG |
12606 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
12607 | #endif |
12608 | if (!ocast) ret = 0; |
12609 | } |
12610 | } |
12611 | |
12612 | if (!ret) { |
12613 | #ifdef SWIGRUNTIME_DEBUG |
12614 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
12615 | #endif |
12616 | if (type->cast) { |
12617 | type->cast->prev = cast; |
12618 | cast->next = type->cast; |
12619 | } |
12620 | type->cast = cast; |
12621 | } |
12622 | cast++; |
12623 | } |
12624 | /* Set entry in modules->types array equal to the type */ |
12625 | swig_module.types[i] = type; |
12626 | } |
12627 | swig_module.types[i] = 0; |
12628 | |
12629 | #ifdef SWIGRUNTIME_DEBUG |
12630 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
12631 | for (i = 0; i < swig_module.size; ++i) { |
12632 | int j = 0; |
12633 | swig_cast_info *cast = swig_module.cast_initial[i]; |
12634 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
12635 | while (cast->type) { |
12636 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
12637 | cast++; |
12638 | ++j; |
12639 | } |
12640 | printf("---- Total casts: %d\n",j); |
12641 | } |
12642 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
12643 | #endif |
12644 | } |
12645 | |
12646 | /* This function will propagate the clientdata field of type to |
12647 | * any new swig_type_info structures that have been added into the list |
12648 | * of equivalent types. It is like calling |
12649 | * SWIG_TypeClientData(type, clientdata) a second time. |
12650 | */ |
12651 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
12652 | SWIG_PropagateClientData(void) { |
12653 | size_t i; |
12654 | swig_cast_info *equiv; |
12655 | static int init_run = 0; |
12656 | |
12657 | if (init_run) return; |
12658 | init_run = 1; |
12659 | |
12660 | for (i = 0; i < swig_module.size; i++) { |
12661 | if (swig_module.types[i]->clientdata) { |
12662 | equiv = swig_module.types[i]->cast; |
12663 | while (equiv) { |
12664 | if (!equiv->converter) { |
12665 | if (equiv->type && !equiv->type->clientdata) |
12666 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
12667 | } |
12668 | equiv = equiv->next; |
12669 | } |
12670 | } |
12671 | } |
12672 | } |
12673 | |
12674 | #ifdef __cplusplus199711L |
12675 | #if 0 |
12676 | { |
12677 | /* c-mode */ |
12678 | #endif |
12679 | } |
12680 | #endif |
12681 | |
12682 | |
12683 | |
12684 | #ifdef __cplusplus199711L |
12685 | extern "C" { |
12686 | #endif |
12687 | |
12688 | /* Python-specific SWIG API */ |
12689 | #define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink() |
12690 | #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) |
12691 | #define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) |
12692 | |
12693 | /* ----------------------------------------------------------------------------- |
12694 | * global variable support code. |
12695 | * ----------------------------------------------------------------------------- */ |
12696 | |
12697 | typedef struct swig_globalvar { |
12698 | char *name; /* Name of global variable */ |
12699 | PyObject *(*get_attr)(void); /* Return the current value */ |
12700 | int (*set_attr)(PyObject *); /* Set the value */ |
12701 | struct swig_globalvar *next; |
12702 | } swig_globalvar; |
12703 | |
12704 | typedef struct swig_varlinkobject { |
12705 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
12706 | swig_globalvar *vars; |
12707 | } swig_varlinkobject; |
12708 | |
12709 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
12710 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { |
12711 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
12712 | return PyUnicode_InternFromString("<Swig global variables>"); |
12713 | #else |
12714 | return PyString_FromString("<Swig global variables>"); |
12715 | #endif |
12716 | } |
12717 | |
12718 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
12719 | swig_varlink_str(swig_varlinkobject *v) { |
12720 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
12721 | PyObject *str = PyUnicode_InternFromString("("); |
12722 | PyObject *tail; |
12723 | PyObject *joined; |
12724 | swig_globalvar *var; |
12725 | for (var = v->vars; var; var=var->next) { |
12726 | tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name); |
12727 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
12728 | Py_DecRef(str); |
12729 | Py_DecRef(tail); |
12730 | str = joined; |
12731 | if (var->next) { |
12732 | tail = PyUnicode_InternFromString(", "); |
12733 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
12734 | Py_DecRef(str); |
12735 | Py_DecRef(tail); |
12736 | str = joined; |
12737 | } |
12738 | } |
12739 | tail = PyUnicode_InternFromString(")"); |
12740 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
12741 | Py_DecRef(str); |
12742 | Py_DecRef(tail); |
12743 | str = joined; |
12744 | #else |
12745 | PyObject *str = PyString_FromString("("); |
12746 | swig_globalvar *var; |
12747 | for (var = v->vars; var; var=var->next) { |
12748 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); |
12749 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); |
12750 | } |
12751 | PyString_ConcatAndDel(&str,PyString_FromString(")")); |
12752 | #endif |
12753 | return str; |
12754 | } |
12755 | |
12756 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
12757 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { |
12758 | char *tmp; |
12759 | PyObject *str = swig_varlink_str(v); |
12760 | fprintf(fp,"Swig global variables "); |
12761 | fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); |
12762 | SWIG_Python_str_DelForPy3(tmp); |
12763 | Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(str)))); } while (0); |
12764 | return 0; |
12765 | } |
12766 | |
12767 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
12768 | swig_varlink_dealloc(swig_varlinkobject *v) { |
12769 | swig_globalvar *var = v->vars; |
12770 | while (var) { |
12771 | swig_globalvar *n = var->next; |
12772 | free(var->name); |
12773 | free(var); |
12774 | var = n; |
12775 | } |
12776 | } |
12777 | |
12778 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
12779 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
12780 | PyObject *res = NULL__null; |
12781 | swig_globalvar *var = v->vars; |
12782 | while (var) { |
12783 | if (strcmp(var->name,n) == 0) { |
12784 | res = (*var->get_attr)(); |
12785 | break; |
12786 | } |
12787 | var = var->next; |
12788 | } |
12789 | if (res == NULL__null && !PyErr_Occurred()) { |
12790 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
12791 | } |
12792 | return res; |
12793 | } |
12794 | |
12795 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
12796 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
12797 | int res = 1; |
12798 | swig_globalvar *var = v->vars; |
12799 | while (var) { |
12800 | if (strcmp(var->name,n) == 0) { |
12801 | res = (*var->set_attr)(p); |
12802 | break; |
12803 | } |
12804 | var = var->next; |
12805 | } |
12806 | if (res == 1 && !PyErr_Occurred()) { |
12807 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
12808 | } |
12809 | return res; |
12810 | } |
12811 | |
12812 | SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject* |
12813 | swig_varlink_type(void) { |
12814 | static char varlink__doc__[] = "Swig var link object"; |
12815 | static PyTypeObject varlink_type; |
12816 | static int type_init = 0; |
12817 | if (!type_init) { |
12818 | const PyTypeObject tmp = { |
12819 | /* PyObject header changed in Python 3 */ |
12820 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
12821 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
12822 | #else |
12823 | PyObject_HEAD_INIT(NULL)1, __null, |
12824 | 0, /* ob_size */ |
12825 | #endif |
12826 | (char *)"swigvarlink", /* tp_name */ |
12827 | sizeof(swig_varlinkobject), /* tp_basicsize */ |
12828 | 0, /* tp_itemsize */ |
12829 | (destructor) swig_varlink_dealloc, /* tp_dealloc */ |
12830 | (printfunc) swig_varlink_print, /* tp_print */ |
12831 | (getattrfunc) swig_varlink_getattr, /* tp_getattr */ |
12832 | (setattrfunc) swig_varlink_setattr, /* tp_setattr */ |
12833 | 0, /* tp_compare */ |
12834 | (reprfunc) swig_varlink_repr, /* tp_repr */ |
12835 | 0, /* tp_as_number */ |
12836 | 0, /* tp_as_sequence */ |
12837 | 0, /* tp_as_mapping */ |
12838 | 0, /* tp_hash */ |
12839 | 0, /* tp_call */ |
12840 | (reprfunc) swig_varlink_str, /* tp_str */ |
12841 | 0, /* tp_getattro */ |
12842 | 0, /* tp_setattro */ |
12843 | 0, /* tp_as_buffer */ |
12844 | 0, /* tp_flags */ |
12845 | varlink__doc__, /* tp_doc */ |
12846 | 0, /* tp_traverse */ |
12847 | 0, /* tp_clear */ |
12848 | 0, /* tp_richcompare */ |
12849 | 0, /* tp_weaklistoffset */ |
12850 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
12851 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
12852 | #endif |
12853 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
12854 | 0, /* tp_del */ |
12855 | #endif |
12856 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
12857 | 0, /* tp_version */ |
12858 | #endif |
12859 | #ifdef COUNT_ALLOCS |
12860 | 0,0,0,0 /* tp_alloc -> tp_next */ |
12861 | #endif |
12862 | }; |
12863 | varlink_type = tmp; |
12864 | type_init = 1; |
12865 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
12866 | varlink_type.ob_type = &PyType_Type; |
12867 | #else |
12868 | if (PyType_Ready(&varlink_type) < 0) |
12869 | return NULL__null; |
12870 | #endif |
12871 | } |
12872 | return &varlink_type; |
12873 | } |
12874 | |
12875 | /* Create a variable linking object for use later */ |
12876 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
12877 | SWIG_Python_newvarlink(void) { |
12878 | 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 ())) ); |
12879 | if (result) { |
12880 | result->vars = 0; |
12881 | } |
12882 | return ((PyObject*) result); |
12883 | } |
12884 | |
12885 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
12886 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
12887 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
12888 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); |
12889 | if (gv) { |
12890 | size_t size = strlen(name)+1; |
12891 | gv->name = (char *)malloc(size); |
12892 | if (gv->name) { |
12893 | strncpy(gv->name,name,size); |
12894 | gv->get_attr = get_attr; |
12895 | gv->set_attr = set_attr; |
12896 | gv->next = v->vars; |
12897 | } |
12898 | } |
12899 | v->vars = gv; |
12900 | } |
12901 | |
12902 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
12903 | SWIG_globals(void) { |
12904 | static PyObject *_SWIG_globals = 0; |
12905 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink(); |
12906 | return _SWIG_globals; |
12907 | } |
12908 | |
12909 | /* ----------------------------------------------------------------------------- |
12910 | * constants/methods manipulation |
12911 | * ----------------------------------------------------------------------------- */ |
12912 | |
12913 | /* Install Constants */ |
12914 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
12915 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
12916 | PyObject *obj = 0; |
12917 | size_t i; |
12918 | for (i = 0; constants[i].type; ++i) { |
12919 | switch(constants[i].type) { |
12920 | case SWIG_PY_POINTER4: |
12921 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants [i]).ptype, 0); |
12922 | break; |
12923 | case SWIG_PY_BINARY5: |
12924 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue , *(constants[i].ptype)); |
12925 | break; |
12926 | default: |
12927 | obj = 0; |
12928 | break; |
12929 | } |
12930 | if (obj) { |
12931 | PyDict_SetItemString(d, constants[i].name, obj); |
12932 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
12933 | } |
12934 | } |
12935 | } |
12936 | |
12937 | /* -----------------------------------------------------------------------------*/ |
12938 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
12939 | /* -----------------------------------------------------------------------------*/ |
12940 | |
12941 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
12942 | SWIG_Python_FixMethods(PyMethodDef *methods, |
12943 | swig_const_info *const_table, |
12944 | swig_type_info **types, |
12945 | swig_type_info **types_initial) { |
12946 | size_t i; |
12947 | for (i = 0; methods[i].ml_name; ++i) { |
12948 | const char *c = methods[i].ml_doc; |
12949 | if (c && (c = strstr(c, "swig_ptr: "))) { |
12950 | int j; |
12951 | swig_const_info *ci = 0; |
12952 | const char *name = c + 10; |
12953 | for (j = 0; const_table[j].type; ++j) { |
12954 | if (strncmp(const_table[j].name, name, |
12955 | strlen(const_table[j].name)) == 0) { |
12956 | ci = &(const_table[j]); |
12957 | break; |
12958 | } |
12959 | } |
12960 | if (ci) { |
12961 | void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0; |
12962 | if (ptr) { |
12963 | size_t shift = (ci->ptype) - types; |
12964 | swig_type_info *ty = types_initial[shift]; |
12965 | size_t ldoc = (c - methods[i].ml_doc); |
12966 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; |
12967 | char *ndoc = (char*)malloc(ldoc + lptr + 10); |
12968 | if (ndoc) { |
12969 | char *buff = ndoc; |
12970 | strncpy(buff, methods[i].ml_doc, ldoc); |
12971 | buff += ldoc; |
12972 | strncpy(buff, "swig_ptr: ", 10); |
12973 | buff += 10; |
12974 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); |
12975 | methods[i].ml_doc = ndoc; |
12976 | } |
12977 | } |
12978 | } |
12979 | } |
12980 | } |
12981 | } |
12982 | |
12983 | #ifdef __cplusplus199711L |
12984 | } |
12985 | #endif |
12986 | |
12987 | /* -----------------------------------------------------------------------------* |
12988 | * Partial Init method |
12989 | * -----------------------------------------------------------------------------*/ |
12990 | |
12991 | #ifdef __cplusplus199711L |
12992 | extern "C" |
12993 | #endif |
12994 | |
12995 | SWIGEXPORT__attribute__ ((visibility("default"))) |
12996 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
12997 | PyObject* |
12998 | #else |
12999 | void |
13000 | #endif |
13001 | SWIG_initinit_app(void) { |
13002 | PyObject *m, *d, *md; |
13003 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
13004 | static struct PyModuleDef SWIG_module = { |
13005 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
13006 | PyModuleDef_HEAD_INIT, |
13007 | # else |
13008 | { |
13009 | PyObject_HEAD_INIT(NULL)1, __null, |
13010 | NULL__null, /* m_init */ |
13011 | 0, /* m_index */ |
13012 | NULL__null, /* m_copy */ |
13013 | }, |
13014 | # endif |
13015 | (char *) SWIG_name"_app", |
13016 | NULL__null, |
13017 | -1, |
13018 | SwigMethods, |
13019 | NULL__null, |
13020 | NULL__null, |
13021 | NULL__null, |
13022 | NULL__null |
13023 | }; |
13024 | #endif |
13025 | |
13026 | #if defined(SWIGPYTHON_BUILTIN) |
13027 | static SwigPyClientData SwigPyObject_clientdata = { |
13028 | 0, 0, 0, 0, 0, 0, 0 |
13029 | }; |
13030 | static PyGetSetDef this_getset_def = { |
13031 | (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null |
13032 | }; |
13033 | static SwigPyGetSet thisown_getset_closure = { |
13034 | (PyCFunction) SwigPyObject_own, |
13035 | (PyCFunction) SwigPyObject_own |
13036 | }; |
13037 | static PyGetSetDef thisown_getset_def = { |
13038 | (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure |
13039 | }; |
13040 | PyObject *metatype_args; |
13041 | PyTypeObject *builtin_pytype; |
13042 | int builtin_base_count; |
13043 | swig_type_info *builtin_basetype; |
13044 | PyObject *tuple; |
13045 | PyGetSetDescrObject *static_getset; |
13046 | PyTypeObject *metatype; |
13047 | SwigPyClientData *cd; |
13048 | PyObject *public_interface, *public_symbol; |
13049 | PyObject *this_descr; |
13050 | PyObject *thisown_descr; |
13051 | int i; |
13052 | |
13053 | (void)builtin_pytype; |
13054 | (void)builtin_base_count; |
13055 | (void)builtin_basetype; |
13056 | (void)tuple; |
13057 | (void)static_getset; |
13058 | |
13059 | /* metatype is used to implement static member variables. */ |
13060 | metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); |
13061 | assert(metatype_args)((void)0); |
13062 | metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null); |
13063 | assert(metatype)((void)0); |
13064 | 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); |
13065 | metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; |
13066 | assert(PyType_Ready(metatype) >= 0)((void)0); |
13067 | #endif |
13068 | |
13069 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
13070 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
13071 | |
13072 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
13073 | m = PyModule_Create(&SWIG_module); |
13074 | #else |
13075 | m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_app", SwigMethods, (char *)__null , (PyObject *)__null, 1013); |
13076 | #endif |
13077 | md = d = PyModule_GetDict(m); |
13078 | (void)md; |
13079 | |
13080 | SWIG_InitializeModule(0); |
13081 | |
13082 | #ifdef SWIGPYTHON_BUILTIN |
13083 | SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module , "_p_SwigPyObject"); |
13084 | assert(SwigPyObject_stype)((void)0); |
13085 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
13086 | if (!cd) { |
13087 | SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; |
13088 | SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); |
13089 | } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { |
13090 | PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); |
13091 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
13092 | return NULL__null; |
13093 | # else |
13094 | return; |
13095 | # endif |
13096 | } |
13097 | |
13098 | /* All objects have a 'this' attribute */ |
13099 | this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); |
13100 | (void)this_descr; |
13101 | |
13102 | /* All objects have a 'thisown' attribute */ |
13103 | thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); |
13104 | (void)thisown_descr; |
13105 | |
13106 | public_interface = PyList_New(0); |
13107 | public_symbol = 0; |
13108 | (void)public_symbol; |
13109 | |
13110 | PyDict_SetItemString(md, "__all__", public_interface); |
13111 | 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); |
13112 | for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i) |
13113 | SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); |
13114 | for (i = 0; swig_const_table[i].name != 0; ++i) |
13115 | SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); |
13116 | #endif |
13117 | |
13118 | SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table); |
13119 | |
13120 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
13121 | return m; |
13122 | #else |
13123 | return; |
13124 | #endif |
13125 | } |
13126 |