File: | pyext/gammalib/com_wrap.cpp |
Location: | line 10576, column 5 |
Description: | Value stored to 'module_head' is never read |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). |
3 | * Version 2.0.11 |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of |
6 | * coding conventions designed to improve portability and efficiency. Do not make |
7 | * changes to this file unless you know what you are doing--modify the SWIG |
8 | * interface file instead. |
9 | * ----------------------------------------------------------------------------- */ |
10 | |
11 | #define SWIGPYTHON |
12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
13 | |
14 | |
15 | #ifdef __cplusplus199711L |
16 | /* SwigValueWrapper is described in swig.swg */ |
17 | template<typename T> class SwigValueWrapper { |
18 | struct SwigMovePointer { |
19 | T *ptr; |
20 | SwigMovePointer(T *p) : ptr(p) { } |
21 | ~SwigMovePointer() { delete ptr; } |
22 | SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } |
23 | } pointer; |
24 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); |
25 | SwigValueWrapper(const SwigValueWrapper<T>& rhs); |
26 | public: |
27 | SwigValueWrapper() : pointer(0) { } |
28 | SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } |
29 | operator T&() const { return *pointer.ptr; } |
30 | T *operator&() { return pointer.ptr; } |
31 | }; |
32 | |
33 | template <typename T> T SwigValueInit() { |
34 | return T(); |
35 | } |
36 | #endif |
37 | |
38 | /* ----------------------------------------------------------------------------- |
39 | * This section contains generic SWIG labels for method/variable |
40 | * declarations/attributes, and other compiler dependent labels. |
41 | * ----------------------------------------------------------------------------- */ |
42 | |
43 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
44 | #ifndef SWIGTEMPLATEDISAMBIGUATOR |
45 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
46 | # define SWIGTEMPLATEDISAMBIGUATOR template |
47 | # elif defined(__HP_aCC) |
48 | /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ |
49 | /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ |
50 | # define SWIGTEMPLATEDISAMBIGUATOR template |
51 | # else |
52 | # define SWIGTEMPLATEDISAMBIGUATOR |
53 | # endif |
54 | #endif |
55 | |
56 | /* inline attribute */ |
57 | #ifndef SWIGINLINEinline |
58 | # if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__)) |
59 | # define SWIGINLINEinline inline |
60 | # else |
61 | # define SWIGINLINEinline |
62 | # endif |
63 | #endif |
64 | |
65 | /* attribute recognised by some compilers to avoid 'unused' warnings */ |
66 | #ifndef SWIGUNUSED__attribute__ ((__unused__)) |
67 | # if defined(__GNUC__4) |
68 | # if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)) |
69 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
70 | # else |
71 | # define SWIGUNUSED__attribute__ ((__unused__)) |
72 | # endif |
73 | # elif defined(__ICC) |
74 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
75 | # else |
76 | # define SWIGUNUSED__attribute__ ((__unused__)) |
77 | # endif |
78 | #endif |
79 | |
80 | #ifndef SWIG_MSC_UNSUPPRESS_4505 |
81 | # if defined(_MSC_VER) |
82 | # pragma warning(disable : 4505) /* unreferenced local function has been removed */ |
83 | # endif |
84 | #endif |
85 | |
86 | #ifndef SWIGUNUSEDPARM |
87 | # ifdef __cplusplus199711L |
88 | # define SWIGUNUSEDPARM(p) |
89 | # else |
90 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__)) |
91 | # endif |
92 | #endif |
93 | |
94 | /* internal SWIG method */ |
95 | #ifndef SWIGINTERNstatic __attribute__ ((__unused__)) |
96 | # define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__)) |
97 | #endif |
98 | |
99 | /* internal inline SWIG method */ |
100 | #ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline |
101 | # define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline |
102 | #endif |
103 | |
104 | /* exporting methods */ |
105 | #if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4) |
106 | # ifndef GCC_HASCLASSVISIBILITY |
107 | # define GCC_HASCLASSVISIBILITY |
108 | # endif |
109 | #endif |
110 | |
111 | #ifndef SWIGEXPORT__attribute__ ((visibility("default"))) |
112 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
113 | # if defined(STATIC_LINKED) |
114 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
115 | # else |
116 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport) |
117 | # endif |
118 | # else |
119 | # if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY) |
120 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default"))) |
121 | # else |
122 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
123 | # endif |
124 | # endif |
125 | #endif |
126 | |
127 | /* calling conventions for Windows */ |
128 | #ifndef SWIGSTDCALL |
129 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
130 | # define SWIGSTDCALL __stdcall |
131 | # else |
132 | # define SWIGSTDCALL |
133 | # endif |
134 | #endif |
135 | |
136 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
137 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
138 | # define _CRT_SECURE_NO_DEPRECATE |
139 | #endif |
140 | |
141 | /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ |
142 | #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) |
143 | # define _SCL_SECURE_NO_DEPRECATE |
144 | #endif |
145 | |
146 | |
147 | |
148 | #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) |
149 | /* Use debug wrappers with the Python release dll */ |
150 | # undef _DEBUG |
151 | # include <Python.h> |
152 | # define _DEBUG |
153 | #else |
154 | # include <Python.h> |
155 | #endif |
156 | |
157 | /* ----------------------------------------------------------------------------- |
158 | * swigrun.swg |
159 | * |
160 | * This file contains generic C API SWIG runtime support for pointer |
161 | * type checking. |
162 | * ----------------------------------------------------------------------------- */ |
163 | |
164 | /* This should only be incremented when either the layout of swig_type_info changes, |
165 | or for whatever reason, the runtime changes incompatibly */ |
166 | #define SWIG_RUNTIME_VERSION"4" "4" |
167 | |
168 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
169 | #ifdef SWIG_TYPE_TABLE |
170 | # define SWIG_QUOTE_STRING(x) #x |
171 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) |
172 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) |
173 | #else |
174 | # define SWIG_TYPE_TABLE_NAME |
175 | #endif |
176 | |
177 | /* |
178 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for |
179 | creating a static or dynamic library from the SWIG runtime code. |
180 | In 99.9% of the cases, SWIG just needs to declare them as 'static'. |
181 | |
182 | But only do this if strictly necessary, ie, if you have problems |
183 | with your compiler or suchlike. |
184 | */ |
185 | |
186 | #ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__)) |
187 | # define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__)) |
188 | #endif |
189 | |
190 | #ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline |
191 | # define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline |
192 | #endif |
193 | |
194 | /* Generic buffer size */ |
195 | #ifndef SWIG_BUFFER_SIZE1024 |
196 | # define SWIG_BUFFER_SIZE1024 1024 |
197 | #endif |
198 | |
199 | /* Flags for pointer conversions */ |
200 | #define SWIG_POINTER_DISOWN0x1 0x1 |
201 | #define SWIG_CAST_NEW_MEMORY0x2 0x2 |
202 | |
203 | /* Flags for new pointer objects */ |
204 | #define SWIG_POINTER_OWN0x1 0x1 |
205 | |
206 | |
207 | /* |
208 | Flags/methods for returning states. |
209 | |
210 | The SWIG conversion methods, as ConvertPtr, return an integer |
211 | that tells if the conversion was successful or not. And if not, |
212 | an error code can be returned (see swigerrors.swg for the codes). |
213 | |
214 | Use the following macros/flags to set or process the returning |
215 | states. |
216 | |
217 | In old versions of SWIG, code such as the following was usually written: |
218 | |
219 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { |
220 | // success code |
221 | } else { |
222 | //fail code |
223 | } |
224 | |
225 | Now you can be more explicit: |
226 | |
227 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); |
228 | if (SWIG_IsOK(res)) { |
229 | // success code |
230 | } else { |
231 | // fail code |
232 | } |
233 | |
234 | which is the same really, but now you can also do |
235 | |
236 | Type *ptr; |
237 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); |
238 | if (SWIG_IsOK(res)) { |
239 | // success code |
240 | if (SWIG_IsNewObj(res) { |
241 | ... |
242 | delete *ptr; |
243 | } else { |
244 | ... |
245 | } |
246 | } else { |
247 | // fail code |
248 | } |
249 | |
250 | I.e., now SWIG_ConvertPtr can return new objects and you can |
251 | identify the case and take care of the deallocation. Of course that |
252 | also requires SWIG_ConvertPtr to return new result values, such as |
253 | |
254 | int SWIG_ConvertPtr(obj, ptr,...) { |
255 | if (<obj is ok>) { |
256 | if (<need new object>) { |
257 | *ptr = <ptr to new allocated object>; |
258 | return SWIG_NEWOBJ; |
259 | } else { |
260 | *ptr = <ptr to old object>; |
261 | return SWIG_OLDOBJ; |
262 | } |
263 | } else { |
264 | return SWIG_BADOBJ; |
265 | } |
266 | } |
267 | |
268 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be |
269 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the |
270 | SWIG errors code. |
271 | |
272 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code |
273 | allows to return the 'cast rank', for example, if you have this |
274 | |
275 | int food(double) |
276 | int fooi(int); |
277 | |
278 | and you call |
279 | |
280 | food(1) // cast rank '1' (1 -> 1.0) |
281 | fooi(1) // cast rank '0' |
282 | |
283 | just use the SWIG_AddCast()/SWIG_CheckState() |
284 | */ |
285 | |
286 | #define SWIG_OK(0) (0) |
287 | #define SWIG_ERROR(-1) (-1) |
288 | #define SWIG_IsOK(r)(r >= 0) (r >= 0) |
289 | #define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5) |
290 | |
291 | /* The CastRankLimit says how many bits are used for the cast rank */ |
292 | #define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8) |
293 | /* The NewMask denotes the object was created (using new/malloc) */ |
294 | #define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1) |
295 | /* The TmpMask is for in/out typemaps that use temporal objects */ |
296 | #define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1) |
297 | /* Simple returning values */ |
298 | #define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1)) |
299 | #define SWIG_OLDOBJ((0)) (SWIG_OK(0)) |
300 | #define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1)) |
301 | #define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) |
302 | /* Check, add and del mask methods */ |
303 | #define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
304 | #define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
305 | #define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1)) ) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1))) |
306 | #define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
307 | #define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
308 | #define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1) << 1))) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))) |
309 | |
310 | /* Cast-Rank Mode */ |
311 | #if defined(SWIG_CASTRANK_MODE) |
312 | # ifndef SWIG_TypeRank |
313 | # define SWIG_TypeRank unsigned long |
314 | # endif |
315 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ |
316 | # define SWIG_MAXCASTRANK (2) |
317 | # endif |
318 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1) |
319 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) |
320 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) { |
321 | return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r; |
322 | } |
323 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) { |
324 | return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0; |
325 | } |
326 | #else /* no cast-rank mode */ |
327 | # define SWIG_AddCast(r)(r) (r) |
328 | # define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0) |
329 | #endif |
330 | |
331 | |
332 | #include <string.h> |
333 | |
334 | #ifdef __cplusplus199711L |
335 | extern "C" { |
336 | #endif |
337 | |
338 | typedef void *(*swig_converter_func)(void *, int *); |
339 | typedef struct swig_type_info *(*swig_dycast_func)(void **); |
340 | |
341 | /* Structure to store information on one type */ |
342 | typedef struct swig_type_info { |
343 | const char *name; /* mangled name of this type */ |
344 | const char *str; /* human readable name of this type */ |
345 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ |
346 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ |
347 | void *clientdata; /* language specific type data */ |
348 | int owndata; /* flag if the structure owns the clientdata */ |
349 | } swig_type_info; |
350 | |
351 | /* Structure to store a type and conversion function used for casting */ |
352 | typedef struct swig_cast_info { |
353 | swig_type_info *type; /* pointer to type that is equivalent to this type */ |
354 | swig_converter_func converter; /* function to cast the void pointers */ |
355 | struct swig_cast_info *next; /* pointer to next cast in linked list */ |
356 | struct swig_cast_info *prev; /* pointer to the previous cast */ |
357 | } swig_cast_info; |
358 | |
359 | /* Structure used to store module information |
360 | * Each module generates one structure like this, and the runtime collects |
361 | * all of these structures and stores them in a circularly linked list.*/ |
362 | typedef struct swig_module_info { |
363 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ |
364 | size_t size; /* Number of types in this module */ |
365 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ |
366 | swig_type_info **type_initial; /* Array of initially generated type structures */ |
367 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ |
368 | void *clientdata; /* Language specific module data */ |
369 | } swig_module_info; |
370 | |
371 | /* |
372 | Compare two type names skipping the space characters, therefore |
373 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. |
374 | |
375 | Return 0 when the two name types are equivalent, as in |
376 | strncmp, but skipping ' '. |
377 | */ |
378 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
379 | SWIG_TypeNameComp(const char *f1, const char *l1, |
380 | const char *f2, const char *l2) { |
381 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
382 | while ((*f1 == ' ') && (f1 != l1)) ++f1; |
383 | while ((*f2 == ' ') && (f2 != l2)) ++f2; |
384 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
385 | } |
386 | return (int)((l1 - f1) - (l2 - f2)); |
387 | } |
388 | |
389 | /* |
390 | Check type equivalence in a name list like <name1>|<name2>|... |
391 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb |
392 | */ |
393 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
394 | SWIG_TypeCmp(const char *nb, const char *tb) { |
395 | int equiv = 1; |
396 | const char* te = tb + strlen(tb); |
397 | const char* ne = nb; |
398 | while (equiv != 0 && *ne) { |
399 | for (nb = ne; *ne; ++ne) { |
400 | if (*ne == '|') break; |
401 | } |
402 | equiv = SWIG_TypeNameComp(nb, ne, tb, te); |
403 | if (*ne) ++ne; |
404 | } |
405 | return equiv; |
406 | } |
407 | |
408 | /* |
409 | Check type equivalence in a name list like <name1>|<name2>|... |
410 | Return 0 if not equal, 1 if equal |
411 | */ |
412 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
413 | SWIG_TypeEquiv(const char *nb, const char *tb) { |
414 | return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
415 | } |
416 | |
417 | /* |
418 | Check the typename |
419 | */ |
420 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
421 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
422 | if (ty) { |
423 | swig_cast_info *iter = ty->cast; |
424 | while (iter) { |
425 | if (strcmp(iter->type->name, c) == 0) { |
426 | if (iter == ty->cast) |
427 | return iter; |
428 | /* Move iter to the top of the linked list */ |
429 | iter->prev->next = iter->next; |
430 | if (iter->next) |
431 | iter->next->prev = iter->prev; |
432 | iter->next = ty->cast; |
433 | iter->prev = 0; |
434 | if (ty->cast) ty->cast->prev = iter; |
435 | ty->cast = iter; |
436 | return iter; |
437 | } |
438 | iter = iter->next; |
439 | } |
440 | } |
441 | return 0; |
442 | } |
443 | |
444 | /* |
445 | Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison |
446 | */ |
447 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
448 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { |
449 | if (ty) { |
450 | swig_cast_info *iter = ty->cast; |
451 | while (iter) { |
452 | if (iter->type == from) { |
453 | if (iter == ty->cast) |
454 | return iter; |
455 | /* Move iter to the top of the linked list */ |
456 | iter->prev->next = iter->next; |
457 | if (iter->next) |
458 | iter->next->prev = iter->prev; |
459 | iter->next = ty->cast; |
460 | iter->prev = 0; |
461 | if (ty->cast) ty->cast->prev = iter; |
462 | ty->cast = iter; |
463 | return iter; |
464 | } |
465 | iter = iter->next; |
466 | } |
467 | } |
468 | return 0; |
469 | } |
470 | |
471 | /* |
472 | Cast a pointer up an inheritance hierarchy |
473 | */ |
474 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void * |
475 | SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { |
476 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
477 | } |
478 | |
479 | /* |
480 | Dynamic pointer casting. Down an inheritance hierarchy |
481 | */ |
482 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
483 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { |
484 | swig_type_info *lastty = ty; |
485 | if (!ty || !ty->dcast) return ty; |
486 | while (ty && (ty->dcast)) { |
487 | ty = (*ty->dcast)(ptr); |
488 | if (ty) lastty = ty; |
489 | } |
490 | return lastty; |
491 | } |
492 | |
493 | /* |
494 | Return the name associated with this type |
495 | */ |
496 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
497 | SWIG_TypeName(const swig_type_info *ty) { |
498 | return ty->name; |
499 | } |
500 | |
501 | /* |
502 | Return the pretty name associated with this type, |
503 | that is an unmangled type name in a form presentable to the user. |
504 | */ |
505 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
506 | SWIG_TypePrettyName(const swig_type_info *type) { |
507 | /* The "str" field contains the equivalent pretty names of the |
508 | type, separated by vertical-bar characters. We choose |
509 | to print the last name, as it is often (?) the most |
510 | specific. */ |
511 | if (!type) return NULL__null; |
512 | if (type->str != NULL__null) { |
513 | const char *last_name = type->str; |
514 | const char *s; |
515 | for (s = type->str; *s; s++) |
516 | if (*s == '|') last_name = s+1; |
517 | return last_name; |
518 | } |
519 | else |
520 | return type->name; |
521 | } |
522 | |
523 | /* |
524 | Set the clientdata field for a type |
525 | */ |
526 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
527 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
528 | swig_cast_info *cast = ti->cast; |
529 | /* if (ti->clientdata == clientdata) return; */ |
530 | ti->clientdata = clientdata; |
531 | |
532 | while (cast) { |
533 | if (!cast->converter) { |
534 | swig_type_info *tc = cast->type; |
535 | if (!tc->clientdata) { |
536 | SWIG_TypeClientData(tc, clientdata); |
537 | } |
538 | } |
539 | cast = cast->next; |
540 | } |
541 | } |
542 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
543 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { |
544 | SWIG_TypeClientData(ti, clientdata); |
545 | ti->owndata = 1; |
546 | } |
547 | |
548 | /* |
549 | Search for a swig_type_info structure only by mangled name |
550 | Search is a O(log #types) |
551 | |
552 | We start searching at module start, and finish searching when start == end. |
553 | Note: if start == end at the beginning of the function, we go all the way around |
554 | the circular list. |
555 | */ |
556 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
557 | SWIG_MangledTypeQueryModule(swig_module_info *start, |
558 | swig_module_info *end, |
559 | const char *name) { |
560 | swig_module_info *iter = start; |
561 | do { |
562 | if (iter->size) { |
563 | register size_t l = 0; |
564 | register size_t r = iter->size - 1; |
565 | do { |
566 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ |
567 | register size_t i = (l + r) >> 1; |
568 | const char *iname = iter->types[i]->name; |
569 | if (iname) { |
570 | register int compare = strcmp(name, iname); |
571 | if (compare == 0) { |
572 | return iter->types[i]; |
573 | } else if (compare < 0) { |
574 | if (i) { |
575 | r = i - 1; |
576 | } else { |
577 | break; |
578 | } |
579 | } else if (compare > 0) { |
580 | l = i + 1; |
581 | } |
582 | } else { |
583 | break; /* should never happen */ |
584 | } |
585 | } while (l <= r); |
586 | } |
587 | iter = iter->next; |
588 | } while (iter != end); |
589 | return 0; |
590 | } |
591 | |
592 | /* |
593 | Search for a swig_type_info structure for either a mangled name or a human readable name. |
594 | It first searches the mangled names of the types, which is a O(log #types) |
595 | If a type is not found it then searches the human readable names, which is O(#types). |
596 | |
597 | We start searching at module start, and finish searching when start == end. |
598 | Note: if start == end at the beginning of the function, we go all the way around |
599 | the circular list. |
600 | */ |
601 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
602 | SWIG_TypeQueryModule(swig_module_info *start, |
603 | swig_module_info *end, |
604 | const char *name) { |
605 | /* STEP 1: Search the name field using binary search */ |
606 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
607 | if (ret) { |
608 | return ret; |
609 | } else { |
610 | /* STEP 2: If the type hasn't been found, do a complete search |
611 | of the str field (the human readable name) */ |
612 | swig_module_info *iter = start; |
613 | do { |
614 | register size_t i = 0; |
615 | for (; i < iter->size; ++i) { |
616 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
617 | return iter->types[i]; |
618 | } |
619 | iter = iter->next; |
620 | } while (iter != end); |
621 | } |
622 | |
623 | /* neither found a match */ |
624 | return 0; |
625 | } |
626 | |
627 | /* |
628 | Pack binary data into a string |
629 | */ |
630 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
631 | SWIG_PackData(char *c, void *ptr, size_t sz) { |
632 | static const char hex[17] = "0123456789abcdef"; |
633 | register const unsigned char *u = (unsigned char *) ptr; |
634 | register const unsigned char *eu = u + sz; |
635 | for (; u != eu; ++u) { |
636 | register unsigned char uu = *u; |
637 | *(c++) = hex[(uu & 0xf0) >> 4]; |
638 | *(c++) = hex[uu & 0xf]; |
639 | } |
640 | return c; |
641 | } |
642 | |
643 | /* |
644 | Unpack binary data from a string |
645 | */ |
646 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
647 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { |
648 | register unsigned char *u = (unsigned char *) ptr; |
649 | register const unsigned char *eu = u + sz; |
650 | for (; u != eu; ++u) { |
651 | register char d = *(c++); |
652 | register unsigned char uu; |
653 | if ((d >= '0') && (d <= '9')) |
654 | uu = ((d - '0') << 4); |
655 | else if ((d >= 'a') && (d <= 'f')) |
656 | uu = ((d - ('a'-10)) << 4); |
657 | else |
658 | return (char *) 0; |
659 | d = *(c++); |
660 | if ((d >= '0') && (d <= '9')) |
661 | uu |= (d - '0'); |
662 | else if ((d >= 'a') && (d <= 'f')) |
663 | uu |= (d - ('a'-10)); |
664 | else |
665 | return (char *) 0; |
666 | *u = uu; |
667 | } |
668 | return c; |
669 | } |
670 | |
671 | /* |
672 | Pack 'void *' into a string buffer. |
673 | */ |
674 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
675 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { |
676 | char *r = buff; |
677 | if ((2*sizeof(void *) + 2) > bsz) return 0; |
678 | *(r++) = '_'; |
679 | r = SWIG_PackData(r,&ptr,sizeof(void *)); |
680 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
681 | strcpy(r,name); |
682 | return buff; |
683 | } |
684 | |
685 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
686 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { |
687 | if (*c != '_') { |
688 | if (strcmp(c,"NULL") == 0) { |
689 | *ptr = (void *) 0; |
690 | return name; |
691 | } else { |
692 | return 0; |
693 | } |
694 | } |
695 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); |
696 | } |
697 | |
698 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
699 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { |
700 | char *r = buff; |
701 | size_t lname = (name ? strlen(name) : 0); |
702 | if ((2*sz + 2 + lname) > bsz) return 0; |
703 | *(r++) = '_'; |
704 | r = SWIG_PackData(r,ptr,sz); |
705 | if (lname) { |
706 | strncpy(r,name,lname+1); |
707 | } else { |
708 | *r = 0; |
709 | } |
710 | return buff; |
711 | } |
712 | |
713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
714 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { |
715 | if (*c != '_') { |
716 | if (strcmp(c,"NULL") == 0) { |
717 | memset(ptr,0,sz); |
718 | return name; |
719 | } else { |
720 | return 0; |
721 | } |
722 | } |
723 | return SWIG_UnpackData(++c,ptr,sz); |
724 | } |
725 | |
726 | #ifdef __cplusplus199711L |
727 | } |
728 | #endif |
729 | |
730 | /* Errors in SWIG */ |
731 | #define SWIG_UnknownError-1 -1 |
732 | #define SWIG_IOError-2 -2 |
733 | #define SWIG_RuntimeError-3 -3 |
734 | #define SWIG_IndexError-4 -4 |
735 | #define SWIG_TypeError-5 -5 |
736 | #define SWIG_DivisionByZero-6 -6 |
737 | #define SWIG_OverflowError-7 -7 |
738 | #define SWIG_SyntaxError-8 -8 |
739 | #define SWIG_ValueError-9 -9 |
740 | #define SWIG_SystemError-10 -10 |
741 | #define SWIG_AttributeError-11 -11 |
742 | #define SWIG_MemoryError-12 -12 |
743 | #define SWIG_NullReferenceError-13 -13 |
744 | |
745 | |
746 | |
747 | /* Compatibility macros for Python 3 */ |
748 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
749 | |
750 | #define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) |
751 | #define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0 ) PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<< 24))) != 0) |
752 | #define PyInt_AsLong(x) PyLong_AsLong(x) |
753 | #define PyInt_FromLong(x) PyLong_FromLong(x) |
754 | #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) |
755 | #define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) |
756 | #define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x) |
757 | #define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args) |
758 | #define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str) |
759 | #define PyString_Size(str) PyBytes_SizePyString_Size(str) |
760 | #define PyString_InternFromString(key) PyUnicode_InternFromString(key) |
761 | #define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10) |
762 | #define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x) |
763 | #define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x) |
764 | |
765 | #endif |
766 | |
767 | #ifndef Py_TYPE |
768 | # define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type) |
769 | #endif |
770 | |
771 | /* SWIG APIs for compatibility of both Python 2 & 3 */ |
772 | |
773 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
774 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat |
775 | #else |
776 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat |
777 | #endif |
778 | |
779 | |
780 | /* Warning: This function will allocate a new string in Python 3, |
781 | * so please call SWIG_Python_str_DelForPy3(x) to free the space. |
782 | */ |
783 | SWIGINTERNstatic __attribute__ ((__unused__)) char* |
784 | SWIG_Python_str_AsChar(PyObject *str) |
785 | { |
786 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
787 | char *cstr; |
788 | char *newstr; |
789 | Py_ssize_t len; |
790 | str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str); |
791 | PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len); |
792 | newstr = (char *) malloc(len+1); |
793 | memcpy(newstr, cstr, len+1); |
794 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
795 | return newstr; |
796 | #else |
797 | return PyString_AsString(str); |
798 | #endif |
799 | } |
800 | |
801 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
802 | # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) |
803 | #else |
804 | # define SWIG_Python_str_DelForPy3(x) |
805 | #endif |
806 | |
807 | |
808 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
809 | SWIG_Python_str_FromChar(const char *c) |
810 | { |
811 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
812 | return PyUnicode_FromStringPyUnicodeUCS2_FromString(c); |
813 | #else |
814 | return PyString_FromString(c); |
815 | #endif |
816 | } |
817 | |
818 | /* Add PyOS_snprintf for old Pythons */ |
819 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
820 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) |
821 | # define PyOS_snprintf _snprintf |
822 | # else |
823 | # define PyOS_snprintf snprintf |
824 | # endif |
825 | #endif |
826 | |
827 | /* A crude PyString_FromFormat implementation for old Pythons */ |
828 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
829 | |
830 | #ifndef SWIG_PYBUFFER_SIZE |
831 | # define SWIG_PYBUFFER_SIZE 1024 |
832 | #endif |
833 | |
834 | static PyObject * |
835 | PyString_FromFormat(const char *fmt, ...) { |
836 | va_list ap; |
837 | char buf[SWIG_PYBUFFER_SIZE * 2]; |
838 | int res; |
839 | va_start(ap, fmt)__builtin_va_start(ap, fmt); |
840 | res = vsnprintf(buf, sizeof(buf), fmt, ap); |
841 | va_end(ap)__builtin_va_end(ap); |
842 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); |
843 | } |
844 | #endif |
845 | |
846 | /* Add PyObject_Del for old Pythons */ |
847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x01060000 |
848 | # define PyObject_DelPyObject_Free(op) PyMem_DELfree((op)) |
849 | #endif |
850 | #ifndef PyObject_DELPyObject_Free |
851 | # define PyObject_DELPyObject_Free PyObject_DelPyObject_Free |
852 | #endif |
853 | |
854 | /* A crude PyExc_StopIteration exception for old Pythons */ |
855 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
856 | # ifndef PyExc_StopIteration |
857 | # define PyExc_StopIteration PyExc_RuntimeError |
858 | # endif |
859 | # ifndef PyObject_GenericGetAttr |
860 | # define PyObject_GenericGetAttr 0 |
861 | # endif |
862 | #endif |
863 | |
864 | /* Py_NotImplemented is defined in 2.1 and up. */ |
865 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
866 | # ifndef Py_NotImplemented(&_Py_NotImplementedStruct) |
867 | # define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError |
868 | # endif |
869 | #endif |
870 | |
871 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ |
872 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
873 | # ifndef PyString_AsStringAndSize |
874 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} |
875 | # endif |
876 | #endif |
877 | |
878 | /* PySequence_Size for old Pythons */ |
879 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02000000 |
880 | # ifndef PySequence_Size |
881 | # define PySequence_Size PySequence_LengthPySequence_Size |
882 | # endif |
883 | #endif |
884 | |
885 | /* PyBool_FromLong for old Pythons */ |
886 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
887 | static |
888 | PyObject *PyBool_FromLong(long ok) |
889 | { |
890 | PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct); |
891 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
892 | return result; |
893 | } |
894 | #endif |
895 | |
896 | /* Py_ssize_t for old Pythons */ |
897 | /* This code is as recommended by: */ |
898 | /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ |
899 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1)) |
900 | typedef int Py_ssize_t; |
901 | # define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647 |
902 | # define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1) |
903 | typedef inquiry lenfunc; |
904 | typedef intargfunc ssizeargfunc; |
905 | typedef intintargfunc ssizessizeargfunc; |
906 | typedef intobjargproc ssizeobjargproc; |
907 | typedef intintobjargproc ssizessizeobjargproc; |
908 | typedef getreadbufferproc readbufferproc; |
909 | typedef getwritebufferproc writebufferproc; |
910 | typedef getsegcountproc segcountproc; |
911 | typedef getcharbufferproc charbufferproc; |
912 | static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) |
913 | { |
914 | long result = 0; |
915 | PyObject *i = PyNumber_Int(x); |
916 | if (i) { |
917 | result = PyInt_AsLong(i); |
918 | Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(i)))); } while (0); |
919 | } |
920 | return result; |
921 | } |
922 | #endif |
923 | |
924 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
925 | #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) |
926 | #endif |
927 | |
928 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02040000 |
929 | #define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret ) return vret; } } while (0) \ |
930 | do { \ |
931 | if (op) { \ |
932 | int vret = visit((op), arg); \ |
933 | if (vret) \ |
934 | return vret; \ |
935 | } \ |
936 | } while (0) |
937 | #endif |
938 | |
939 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
940 | typedef struct { |
941 | PyTypeObject type; |
942 | PyNumberMethods as_number; |
943 | PyMappingMethods as_mapping; |
944 | PySequenceMethods as_sequence; |
945 | PyBufferProcs as_buffer; |
946 | PyObject *name, *slots; |
947 | } PyHeapTypeObject; |
948 | #endif |
949 | |
950 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
951 | typedef destructor freefunc; |
952 | #endif |
953 | |
954 | #if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \ |
955 | (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \ |
956 | (PY_MAJOR_VERSION2 > 3)) |
957 | # define SWIGPY_USE_CAPSULE |
958 | # define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) |
959 | #endif |
960 | |
961 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03020000 |
962 | #define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type) |
963 | #define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name) |
964 | #endif |
965 | |
966 | /* ----------------------------------------------------------------------------- |
967 | * error manipulation |
968 | * ----------------------------------------------------------------------------- */ |
969 | |
970 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
971 | SWIG_Python_ErrorType(int code) { |
972 | PyObject* type = 0; |
973 | switch(code) { |
974 | case SWIG_MemoryError-12: |
975 | type = PyExc_MemoryError; |
976 | break; |
977 | case SWIG_IOError-2: |
978 | type = PyExc_IOError; |
979 | break; |
980 | case SWIG_RuntimeError-3: |
981 | type = PyExc_RuntimeError; |
982 | break; |
983 | case SWIG_IndexError-4: |
984 | type = PyExc_IndexError; |
985 | break; |
986 | case SWIG_TypeError-5: |
987 | type = PyExc_TypeError; |
988 | break; |
989 | case SWIG_DivisionByZero-6: |
990 | type = PyExc_ZeroDivisionError; |
991 | break; |
992 | case SWIG_OverflowError-7: |
993 | type = PyExc_OverflowError; |
994 | break; |
995 | case SWIG_SyntaxError-8: |
996 | type = PyExc_SyntaxError; |
997 | break; |
998 | case SWIG_ValueError-9: |
999 | type = PyExc_ValueError; |
1000 | break; |
1001 | case SWIG_SystemError-10: |
1002 | type = PyExc_SystemError; |
1003 | break; |
1004 | case SWIG_AttributeError-11: |
1005 | type = PyExc_AttributeError; |
1006 | break; |
1007 | default: |
1008 | type = PyExc_RuntimeError; |
1009 | } |
1010 | return type; |
1011 | } |
1012 | |
1013 | |
1014 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1015 | SWIG_Python_AddErrorMsg(const char* mesg) |
1016 | { |
1017 | PyObject *type = 0; |
1018 | PyObject *value = 0; |
1019 | PyObject *traceback = 0; |
1020 | |
1021 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); |
1022 | if (value) { |
1023 | char *tmp; |
1024 | PyObject *old_str = PyObject_Str(value); |
1025 | PyErr_Clear(); |
1026 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
1027 | |
1028 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
1029 | SWIG_Python_str_DelForPy3(tmp); |
1030 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
1031 | Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(value)))); } while (0); |
1032 | } else { |
1033 | PyErr_SetString(PyExc_RuntimeError, mesg); |
1034 | } |
1035 | } |
1036 | |
1037 | #if defined(SWIG_PYTHON_NO_THREADS) |
1038 | # if defined(SWIG_PYTHON_THREADS) |
1039 | # undef SWIG_PYTHON_THREADS |
1040 | # endif |
1041 | #endif |
1042 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ |
1043 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) |
1044 | # if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ |
1045 | # define SWIG_PYTHON_USE_GIL |
1046 | # endif |
1047 | # endif |
1048 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ |
1049 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS |
1050 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() |
1051 | # endif |
1052 | # ifdef __cplusplus199711L /* C++ code */ |
1053 | class SWIG_Python_Thread_Block { |
1054 | bool status; |
1055 | PyGILState_STATE state; |
1056 | public: |
1057 | void end() { if (status) { PyGILState_Release(state); status = false;} } |
1058 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} |
1059 | ~SWIG_Python_Thread_Block() { end(); } |
1060 | }; |
1061 | class SWIG_Python_Thread_Allow { |
1062 | bool status; |
1063 | PyThreadState *save; |
1064 | public: |
1065 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} |
1066 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} |
1067 | ~SWIG_Python_Thread_Allow() { end(); } |
1068 | }; |
1069 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block |
1070 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() |
1071 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow |
1072 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() |
1073 | # else /* C code */ |
1074 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() |
1075 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) |
1076 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() |
1077 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) |
1078 | # endif |
1079 | # else /* Old thread way, not implemented, user must provide it */ |
1080 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) |
1081 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1082 | # endif |
1083 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) |
1084 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1085 | # endif |
1086 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) |
1087 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1088 | # endif |
1089 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) |
1090 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1091 | # endif |
1092 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) |
1093 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1094 | # endif |
1095 | # endif |
1096 | #else /* No thread support */ |
1097 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1098 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1099 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1100 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1101 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1102 | #endif |
1103 | |
1104 | /* ----------------------------------------------------------------------------- |
1105 | * Python API portion that goes into the runtime |
1106 | * ----------------------------------------------------------------------------- */ |
1107 | |
1108 | #ifdef __cplusplus199711L |
1109 | extern "C" { |
1110 | #endif |
1111 | |
1112 | /* ----------------------------------------------------------------------------- |
1113 | * Constant declarations |
1114 | * ----------------------------------------------------------------------------- */ |
1115 | |
1116 | /* Constant Types */ |
1117 | #define SWIG_PY_POINTER4 4 |
1118 | #define SWIG_PY_BINARY5 5 |
1119 | |
1120 | /* Constant information structure */ |
1121 | typedef struct swig_const_info { |
1122 | int type; |
1123 | char *name; |
1124 | long lvalue; |
1125 | double dvalue; |
1126 | void *pvalue; |
1127 | swig_type_info **ptype; |
1128 | } swig_const_info; |
1129 | |
1130 | |
1131 | /* ----------------------------------------------------------------------------- |
1132 | * Wrapper of PyInstanceMethod_New() used in Python 3 |
1133 | * It is exported to the generated module, used for -fastproxy |
1134 | * ----------------------------------------------------------------------------- */ |
1135 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1136 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) |
1137 | { |
1138 | return PyInstanceMethod_New(func); |
1139 | } |
1140 | #else |
1141 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) |
1142 | { |
1143 | return NULL__null; |
1144 | } |
1145 | #endif |
1146 | |
1147 | #ifdef __cplusplus199711L |
1148 | } |
1149 | #endif |
1150 | |
1151 | |
1152 | /* ----------------------------------------------------------------------------- |
1153 | * pyrun.swg |
1154 | * |
1155 | * This file contains the runtime support for Python modules |
1156 | * and includes code for managing global variables and pointer |
1157 | * type checking. |
1158 | * |
1159 | * ----------------------------------------------------------------------------- */ |
1160 | |
1161 | /* Common SWIG API */ |
1162 | |
1163 | /* for raw pointers */ |
1164 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1165 | #define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1166 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) |
1167 | |
1168 | #ifdef SWIGPYTHON_BUILTIN |
1169 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) |
1170 | #else |
1171 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1172 | #endif |
1173 | |
1174 | #define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1175 | |
1176 | #define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) |
1177 | #define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) |
1178 | #define swig_owntypeint int |
1179 | |
1180 | /* for raw packed data */ |
1181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1182 | #define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1183 | |
1184 | /* for class or struct pointers */ |
1185 | #define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1186 | #define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) |
1187 | |
1188 | /* for C or C++ function pointers */ |
1189 | #define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) |
1190 | #define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0) |
1191 | |
1192 | /* for C++ member pointers, ie, member methods */ |
1193 | #define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1194 | #define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1195 | |
1196 | |
1197 | /* Runtime API */ |
1198 | |
1199 | #define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata) |
1200 | #define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer) |
1201 | #define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj) |
1202 | |
1203 | #define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj |
1204 | #define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg |
1205 | #define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code) |
1206 | #define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg) |
1207 | #define SWIG_failgoto fail goto fail |
1208 | |
1209 | |
1210 | /* Runtime API implementation */ |
1211 | |
1212 | /* Error manipulation */ |
1213 | |
1214 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1215 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { |
1216 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1217 | PyErr_SetObject(errtype, obj); |
1218 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1219 | SWIG_PYTHON_THREAD_END_BLOCK; |
1220 | } |
1221 | |
1222 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1223 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { |
1224 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1225 | PyErr_SetString(errtype, msg); |
1226 | SWIG_PYTHON_THREAD_END_BLOCK; |
1227 | } |
1228 | |
1229 | #define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
1230 | |
1231 | /* Set a constant value */ |
1232 | |
1233 | #if defined(SWIGPYTHON_BUILTIN) |
1234 | |
1235 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1236 | SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { |
1237 | PyObject *s = PyString_InternFromString(key); |
1238 | PyList_Append(seq, s); |
1239 | Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(s)))); } while (0); |
1240 | } |
1241 | |
1242 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1243 | SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { |
1244 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1245 | PyDict_SetItemString(d, (char *)name, obj); |
1246 | #else |
1247 | PyDict_SetItemString(d, name, obj); |
1248 | #endif |
1249 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1250 | if (public_interface) |
1251 | SwigPyBuiltin_AddPublicSymbol(public_interface, name); |
1252 | } |
1253 | |
1254 | #else |
1255 | |
1256 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1257 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { |
1258 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1259 | PyDict_SetItemString(d, (char *)name, obj); |
1260 | #else |
1261 | PyDict_SetItemString(d, name, obj); |
1262 | #endif |
1263 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1264 | } |
1265 | |
1266 | #endif |
1267 | |
1268 | /* Append a value to the result obj */ |
1269 | |
1270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1271 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { |
1272 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) |
1273 | if (!result) { |
1274 | result = obj; |
1275 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1276 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1277 | result = obj; |
1278 | } else { |
1279 | if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<25))) != 0)) { |
1280 | PyObject *o2 = result; |
1281 | result = PyList_New(1); |
1282 | PyList_SetItem(result, 0, o2); |
1283 | } |
1284 | PyList_Append(result,obj); |
1285 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1286 | } |
1287 | return result; |
1288 | #else |
1289 | PyObject* o2; |
1290 | PyObject* o3; |
1291 | if (!result) { |
1292 | result = obj; |
1293 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1294 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1295 | result = obj; |
1296 | } else { |
1297 | if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<26))) != 0)) { |
1298 | o2 = result; |
1299 | result = PyTuple_New(1); |
1300 | PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2); |
1301 | } |
1302 | o3 = PyTuple_New(1); |
1303 | PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj); |
1304 | o2 = result; |
1305 | result = PySequence_Concat(o2, o3); |
1306 | Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o2)))); } while (0); |
1307 | Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o3)))); } while (0); |
1308 | } |
1309 | return result; |
1310 | #endif |
1311 | } |
1312 | |
1313 | /* Unpack the argument tuple */ |
1314 | |
1315 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
1316 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) |
1317 | { |
1318 | if (!args) { |
1319 | if (!min && !max) { |
1320 | return 1; |
1321 | } else { |
1322 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", |
1323 | name, (min == max ? "" : "at least "), (int)min); |
1324 | return 0; |
1325 | } |
1326 | } |
1327 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
1328 | if (min <= 1 && max >= 1) { |
1329 | register int i; |
1330 | objs[0] = args; |
1331 | for (i = 1; i < max; ++i) { |
1332 | objs[i] = 0; |
1333 | } |
1334 | return 2; |
1335 | } |
1336 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); |
1337 | return 0; |
1338 | } else { |
1339 | register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size); |
1340 | if (l < min) { |
1341 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1342 | name, (min == max ? "" : "at least "), (int)min, (int)l); |
1343 | return 0; |
1344 | } else if (l > max) { |
1345 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1346 | name, (min == max ? "" : "at most "), (int)max, (int)l); |
1347 | return 0; |
1348 | } else { |
1349 | register int i; |
1350 | for (i = 0; i < l; ++i) { |
1351 | objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]); |
1352 | } |
1353 | for (; l < max; ++l) { |
1354 | objs[l] = 0; |
1355 | } |
1356 | return i + 1; |
1357 | } |
1358 | } |
1359 | } |
1360 | |
1361 | /* A functor is a function object with one single object argument */ |
1362 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1363 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null); |
1364 | #else |
1365 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj); |
1366 | #endif |
1367 | |
1368 | /* |
1369 | Helper for static pointer initialization for both C and C++ code, for example |
1370 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); |
1371 | */ |
1372 | #ifdef __cplusplus199711L |
1373 | #define SWIG_STATIC_POINTER(var)var var |
1374 | #else |
1375 | #define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var |
1376 | #endif |
1377 | |
1378 | /* ----------------------------------------------------------------------------- |
1379 | * Pointer declarations |
1380 | * ----------------------------------------------------------------------------- */ |
1381 | |
1382 | /* Flags for new pointer objects */ |
1383 | #define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1) |
1384 | #define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1) |
1385 | |
1386 | #define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1) |
1387 | |
1388 | #define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2) |
1389 | #define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1) |
1390 | |
1391 | #ifdef __cplusplus199711L |
1392 | extern "C" { |
1393 | #endif |
1394 | |
1395 | /* How to access Py_None */ |
1396 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
1397 | # ifndef SWIG_PYTHON_NO_BUILD_NONE |
1398 | # ifndef SWIG_PYTHON_BUILD_NONE |
1399 | # define SWIG_PYTHON_BUILD_NONE |
1400 | # endif |
1401 | # endif |
1402 | #endif |
1403 | |
1404 | #ifdef SWIG_PYTHON_BUILD_NONE |
1405 | # ifdef Py_None(&_Py_NoneStruct) |
1406 | # undef Py_None(&_Py_NoneStruct) |
1407 | # define Py_None(&_Py_NoneStruct) SWIG_Py_None() |
1408 | # endif |
1409 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1410 | _SWIG_Py_None(void) |
1411 | { |
1412 | PyObject *none = Py_BuildValue((char*)""); |
1413 | Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(none)))); } while (0); |
1414 | return none; |
1415 | } |
1416 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1417 | SWIG_Py_None(void) |
1418 | { |
1419 | static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None(); |
1420 | return none; |
1421 | } |
1422 | #endif |
1423 | |
1424 | /* The python void return value */ |
1425 | |
1426 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1427 | SWIG_Py_Void(void) |
1428 | { |
1429 | PyObject *none = Py_None(&_Py_NoneStruct); |
1430 | Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++); |
1431 | return none; |
1432 | } |
1433 | |
1434 | /* SwigPyClientData */ |
1435 | |
1436 | typedef struct { |
1437 | PyObject *klass; |
1438 | PyObject *newraw; |
1439 | PyObject *newargs; |
1440 | PyObject *destroy; |
1441 | int delargs; |
1442 | int implicitconv; |
1443 | PyTypeObject *pytype; |
1444 | } SwigPyClientData; |
1445 | |
1446 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1447 | SWIG_Python_CheckImplicit(swig_type_info *ty) |
1448 | { |
1449 | SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; |
1450 | return data ? data->implicitconv : 0; |
1451 | } |
1452 | |
1453 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1454 | SWIG_Python_ExceptionType(swig_type_info *desc) { |
1455 | SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; |
1456 | PyObject *klass = data ? data->klass : 0; |
1457 | return (klass ? klass : PyExc_RuntimeError); |
1458 | } |
1459 | |
1460 | |
1461 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData * |
1462 | SwigPyClientData_New(PyObject* obj) |
1463 | { |
1464 | if (!obj) { |
1465 | return 0; |
1466 | } else { |
1467 | SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); |
1468 | /* the klass element */ |
1469 | data->klass = obj; |
1470 | Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++); |
1471 | /* the newraw method and newargs arguments used to create a new raw instance */ |
1472 | if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) { |
1473 | data->newraw = 0; |
1474 | data->newargs = obj; |
1475 | Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++); |
1476 | } else { |
1477 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1478 | data->newraw = 0; |
1479 | #else |
1480 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); |
1481 | #endif |
1482 | if (data->newraw) { |
1483 | Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++); |
1484 | data->newargs = PyTuple_New(1); |
1485 | PyTuple_SetItem(data->newargs, 0, obj); |
1486 | } else { |
1487 | data->newargs = obj; |
1488 | } |
1489 | Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++); |
1490 | } |
1491 | /* the destroy method, aka as the C++ delete method */ |
1492 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); |
1493 | if (PyErr_Occurred()) { |
1494 | PyErr_Clear(); |
1495 | data->destroy = 0; |
1496 | } |
1497 | if (data->destroy) { |
1498 | int flags; |
1499 | Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++); |
1500 | flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags ); |
1501 | #ifdef METH_O0x0008 |
1502 | data->delargs = !(flags & (METH_O0x0008)); |
1503 | #else |
1504 | data->delargs = 0; |
1505 | #endif |
1506 | } else { |
1507 | data->delargs = 0; |
1508 | } |
1509 | data->implicitconv = 0; |
1510 | data->pytype = 0; |
1511 | return data; |
1512 | } |
1513 | } |
1514 | |
1515 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1516 | SwigPyClientData_Del(SwigPyClientData *data) { |
1517 | Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject *)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newraw)))); } while (0); } while (0); |
1518 | Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject *)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newargs)))); } while (0) ; } while (0); |
1519 | Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject *)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->destroy)))); } while (0) ; } while (0); |
1520 | } |
1521 | |
1522 | /* =============== SwigPyObject =====================*/ |
1523 | |
1524 | typedef struct { |
1525 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1526 | void *ptr; |
1527 | swig_type_info *ty; |
1528 | int own; |
1529 | PyObject *next; |
1530 | #ifdef SWIGPYTHON_BUILTIN |
1531 | PyObject *dict; |
1532 | #endif |
1533 | } SwigPyObject; |
1534 | |
1535 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1536 | SwigPyObject_long(SwigPyObject *v) |
1537 | { |
1538 | return PyLong_FromVoidPtr(v->ptr); |
1539 | } |
1540 | |
1541 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1542 | SwigPyObject_format(const char* fmt, SwigPyObject *v) |
1543 | { |
1544 | PyObject *res = NULL__null; |
1545 | PyObject *args = PyTuple_New(1); |
1546 | if (args) { |
1547 | if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { |
1548 | PyObject *ofmt = SWIG_Python_str_FromChar(fmt); |
1549 | if (ofmt) { |
1550 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1551 | res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args); |
1552 | #else |
1553 | res = PyString_Format(ofmt,args); |
1554 | #endif |
1555 | Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ofmt)))); } while (0); |
1556 | } |
1557 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
1558 | } |
1559 | } |
1560 | return res; |
1561 | } |
1562 | |
1563 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1564 | SwigPyObject_oct(SwigPyObject *v) |
1565 | { |
1566 | return SwigPyObject_format("%o",v); |
1567 | } |
1568 | |
1569 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1570 | SwigPyObject_hex(SwigPyObject *v) |
1571 | { |
1572 | return SwigPyObject_format("%x",v); |
1573 | } |
1574 | |
1575 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1576 | #ifdef METH_NOARGS0x0004 |
1577 | SwigPyObject_repr(SwigPyObject *v) |
1578 | #else |
1579 | SwigPyObject_repr(SwigPyObject *v, PyObject *args) |
1580 | #endif |
1581 | { |
1582 | const char *name = SWIG_TypePrettyName(v->ty); |
1583 | PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v); |
1584 | if (v->next) { |
1585 | # ifdef METH_NOARGS0x0004 |
1586 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); |
1587 | # else |
1588 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); |
1589 | # endif |
1590 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1591 | PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep); |
1592 | Py_DecRef(repr); |
1593 | Py_DecRef(nrep); |
1594 | repr = joined; |
1595 | # else |
1596 | PyString_ConcatAndDel(&repr,nrep); |
1597 | # endif |
1598 | } |
1599 | return repr; |
1600 | } |
1601 | |
1602 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1603 | SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) |
1604 | { |
1605 | void *i = v->ptr; |
1606 | void *j = w->ptr; |
1607 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
1608 | } |
1609 | |
1610 | /* Added for Python 3.x, would it also be useful for Python 2.x? */ |
1611 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1612 | SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) |
1613 | { |
1614 | PyObject* res; |
1615 | if( op != Py_EQ2 && op != Py_NE3 ) { |
1616 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
1617 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
1618 | } |
1619 | res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0); |
1620 | return res; |
1621 | } |
1622 | |
1623 | |
1624 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void); |
1625 | |
1626 | #ifdef SWIGPYTHON_BUILTIN |
1627 | static swig_type_info *SwigPyObject_stype = 0; |
1628 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1629 | SwigPyObject_type(void) { |
1630 | SwigPyClientData *cd; |
1631 | assert(SwigPyObject_stype)((void)0); |
1632 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
1633 | assert(cd)((void)0); |
1634 | assert(cd->pytype)((void)0); |
1635 | return cd->pytype; |
1636 | } |
1637 | #else |
1638 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1639 | SwigPyObject_type(void) { |
1640 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce(); |
1641 | return type; |
1642 | } |
1643 | #endif |
1644 | |
1645 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1646 | SwigPyObject_Check(PyObject *op) { |
1647 | #ifdef SWIGPYTHON_BUILTIN |
1648 | PyTypeObject *target_tp = SwigPyObject_type(); |
1649 | if (PyType_IsSubtype(op->ob_type, target_tp)) |
1650 | return 1; |
1651 | return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); |
1652 | #else |
1653 | return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type()) |
1654 | || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0); |
1655 | #endif |
1656 | } |
1657 | |
1658 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1659 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own); |
1660 | |
1661 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1662 | SwigPyObject_dealloc(PyObject *v) |
1663 | { |
1664 | SwigPyObject *sobj = (SwigPyObject *) v; |
1665 | PyObject *next = sobj->next; |
1666 | if (sobj->own == SWIG_POINTER_OWN0x1) { |
1667 | swig_type_info *ty = sobj->ty; |
1668 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
1669 | PyObject *destroy = data ? data->destroy : 0; |
1670 | if (destroy) { |
1671 | /* destroy is always a VARARGS method */ |
1672 | PyObject *res; |
1673 | if (data->delargs) { |
1674 | /* we need to create a temporary object to carry the destroy operation */ |
1675 | PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); |
1676 | res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);; |
1677 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
1678 | } else { |
1679 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth); |
1680 | PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self); |
1681 | res = ((*meth)(mself, v)); |
1682 | } |
1683 | Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (res)))); } while (0); } while (0); |
1684 | } |
1685 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) |
1686 | else { |
1687 | const char *name = SWIG_TypePrettyName(ty); |
1688 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); |
1689 | } |
1690 | #endif |
1691 | } |
1692 | Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(next)))); } while (0); } while (0); |
1693 | PyObject_DELPyObject_Free(v); |
1694 | } |
1695 | |
1696 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1697 | SwigPyObject_append(PyObject* v, PyObject* next) |
1698 | { |
1699 | SwigPyObject *sobj = (SwigPyObject *) v; |
1700 | #ifndef METH_O0x0008 |
1701 | PyObject *tmp = 0; |
1702 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null; |
1703 | next = tmp; |
1704 | #endif |
1705 | if (!SwigPyObject_Check(next)) { |
1706 | return NULL__null; |
1707 | } |
1708 | sobj->next = next; |
1709 | Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++); |
1710 | return SWIG_Py_Void(); |
1711 | } |
1712 | |
1713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1714 | #ifdef METH_NOARGS0x0004 |
1715 | SwigPyObject_next(PyObject* v) |
1716 | #else |
1717 | SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1718 | #endif |
1719 | { |
1720 | SwigPyObject *sobj = (SwigPyObject *) v; |
1721 | if (sobj->next) { |
1722 | Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++); |
1723 | return sobj->next; |
1724 | } else { |
1725 | return SWIG_Py_Void(); |
1726 | } |
1727 | } |
1728 | |
1729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1730 | #ifdef METH_NOARGS0x0004 |
1731 | SwigPyObject_disown(PyObject *v) |
1732 | #else |
1733 | SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1734 | #endif |
1735 | { |
1736 | SwigPyObject *sobj = (SwigPyObject *)v; |
1737 | sobj->own = 0; |
1738 | return SWIG_Py_Void(); |
1739 | } |
1740 | |
1741 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1742 | #ifdef METH_NOARGS0x0004 |
1743 | SwigPyObject_acquire(PyObject *v) |
1744 | #else |
1745 | SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1746 | #endif |
1747 | { |
1748 | SwigPyObject *sobj = (SwigPyObject *)v; |
1749 | sobj->own = SWIG_POINTER_OWN0x1; |
1750 | return SWIG_Py_Void(); |
1751 | } |
1752 | |
1753 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1754 | SwigPyObject_own(PyObject *v, PyObject *args) |
1755 | { |
1756 | PyObject *val = 0; |
1757 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1758 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) |
1759 | #elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000) |
1760 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) |
1761 | #else |
1762 | if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) |
1763 | #endif |
1764 | { |
1765 | return NULL__null; |
1766 | } |
1767 | else |
1768 | { |
1769 | SwigPyObject *sobj = (SwigPyObject *)v; |
1770 | PyObject *obj = PyBool_FromLong(sobj->own); |
1771 | if (val) { |
1772 | #ifdef METH_NOARGS0x0004 |
1773 | if (PyObject_IsTrue(val)) { |
1774 | SwigPyObject_acquire(v); |
1775 | } else { |
1776 | SwigPyObject_disown(v); |
1777 | } |
1778 | #else |
1779 | if (PyObject_IsTrue(val)) { |
1780 | SwigPyObject_acquire(v,args); |
1781 | } else { |
1782 | SwigPyObject_disown(v,args); |
1783 | } |
1784 | #endif |
1785 | } |
1786 | return obj; |
1787 | } |
1788 | } |
1789 | |
1790 | #ifdef METH_O0x0008 |
1791 | static PyMethodDef |
1792 | swigobject_methods[] = { |
1793 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"}, |
1794 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"}, |
1795 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1796 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"}, |
1797 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"}, |
1798 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"}, |
1799 | {0, 0, 0, 0} |
1800 | }; |
1801 | #else |
1802 | static PyMethodDef |
1803 | swigobject_methods[] = { |
1804 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"}, |
1805 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"}, |
1806 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1807 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"}, |
1808 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"}, |
1809 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"}, |
1810 | {0, 0, 0, 0} |
1811 | }; |
1812 | #endif |
1813 | |
1814 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1815 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
1816 | SwigPyObject_getattr(SwigPyObject *sobj,char *name) |
1817 | { |
1818 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); |
1819 | } |
1820 | #endif |
1821 | |
1822 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1823 | SwigPyObject_TypeOnce(void) { |
1824 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; |
1825 | |
1826 | static PyNumberMethods SwigPyObject_as_number = { |
1827 | (binaryfunc)0, /*nb_add*/ |
1828 | (binaryfunc)0, /*nb_subtract*/ |
1829 | (binaryfunc)0, /*nb_multiply*/ |
1830 | /* nb_divide removed in Python 3 */ |
1831 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1832 | (binaryfunc)0, /*nb_divide*/ |
1833 | #endif |
1834 | (binaryfunc)0, /*nb_remainder*/ |
1835 | (binaryfunc)0, /*nb_divmod*/ |
1836 | (ternaryfunc)0,/*nb_power*/ |
1837 | (unaryfunc)0, /*nb_negative*/ |
1838 | (unaryfunc)0, /*nb_positive*/ |
1839 | (unaryfunc)0, /*nb_absolute*/ |
1840 | (inquiry)0, /*nb_nonzero*/ |
1841 | 0, /*nb_invert*/ |
1842 | 0, /*nb_lshift*/ |
1843 | 0, /*nb_rshift*/ |
1844 | 0, /*nb_and*/ |
1845 | 0, /*nb_xor*/ |
1846 | 0, /*nb_or*/ |
1847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1848 | 0, /*nb_coerce*/ |
1849 | #endif |
1850 | (unaryfunc)SwigPyObject_long, /*nb_int*/ |
1851 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1852 | (unaryfunc)SwigPyObject_long, /*nb_long*/ |
1853 | #else |
1854 | 0, /*nb_reserved*/ |
1855 | #endif |
1856 | (unaryfunc)0, /*nb_float*/ |
1857 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1858 | (unaryfunc)SwigPyObject_oct, /*nb_oct*/ |
1859 | (unaryfunc)SwigPyObject_hex, /*nb_hex*/ |
1860 | #endif |
1861 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 /* 3.0 */ |
1862 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ |
1863 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 /* 2.5.0 */ |
1864 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ |
1865 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 /* 2.2.0 */ |
1866 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
1867 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02000000 /* 2.0.0 */ |
1868 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ |
1869 | #endif |
1870 | }; |
1871 | |
1872 | static PyTypeObject swigpyobject_type; |
1873 | static int type_init = 0; |
1874 | if (!type_init) { |
1875 | const PyTypeObject tmp = { |
1876 | /* PyObject header changed in Python 3 */ |
1877 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1878 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
1879 | #else |
1880 | PyObject_HEAD_INIT(NULL)1, __null, |
1881 | 0, /* ob_size */ |
1882 | #endif |
1883 | (char *)"SwigPyObject", /* tp_name */ |
1884 | sizeof(SwigPyObject), /* tp_basicsize */ |
1885 | 0, /* tp_itemsize */ |
1886 | (destructor)SwigPyObject_dealloc, /* tp_dealloc */ |
1887 | 0, /* tp_print */ |
1888 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1889 | (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ |
1890 | #else |
1891 | (getattrfunc)0, /* tp_getattr */ |
1892 | #endif |
1893 | (setattrfunc)0, /* tp_setattr */ |
1894 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1895 | 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ |
1896 | #else |
1897 | (cmpfunc)SwigPyObject_compare, /* tp_compare */ |
1898 | #endif |
1899 | (reprfunc)SwigPyObject_repr, /* tp_repr */ |
1900 | &SwigPyObject_as_number, /* tp_as_number */ |
1901 | 0, /* tp_as_sequence */ |
1902 | 0, /* tp_as_mapping */ |
1903 | (hashfunc)0, /* tp_hash */ |
1904 | (ternaryfunc)0, /* tp_call */ |
1905 | 0, /* tp_str */ |
1906 | PyObject_GenericGetAttr, /* tp_getattro */ |
1907 | 0, /* tp_setattro */ |
1908 | 0, /* tp_as_buffer */ |
1909 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
1910 | swigobject_doc, /* tp_doc */ |
1911 | 0, /* tp_traverse */ |
1912 | 0, /* tp_clear */ |
1913 | (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ |
1914 | 0, /* tp_weaklistoffset */ |
1915 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1916 | 0, /* tp_iter */ |
1917 | 0, /* tp_iternext */ |
1918 | swigobject_methods, /* tp_methods */ |
1919 | 0, /* tp_members */ |
1920 | 0, /* tp_getset */ |
1921 | 0, /* tp_base */ |
1922 | 0, /* tp_dict */ |
1923 | 0, /* tp_descr_get */ |
1924 | 0, /* tp_descr_set */ |
1925 | 0, /* tp_dictoffset */ |
1926 | 0, /* tp_init */ |
1927 | 0, /* tp_alloc */ |
1928 | 0, /* tp_new */ |
1929 | 0, /* tp_free */ |
1930 | 0, /* tp_is_gc */ |
1931 | 0, /* tp_bases */ |
1932 | 0, /* tp_mro */ |
1933 | 0, /* tp_cache */ |
1934 | 0, /* tp_subclasses */ |
1935 | 0, /* tp_weaklist */ |
1936 | #endif |
1937 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
1938 | 0, /* tp_del */ |
1939 | #endif |
1940 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
1941 | 0, /* tp_version */ |
1942 | #endif |
1943 | #ifdef COUNT_ALLOCS |
1944 | 0,0,0,0 /* tp_alloc -> tp_next */ |
1945 | #endif |
1946 | }; |
1947 | swigpyobject_type = tmp; |
1948 | type_init = 1; |
1949 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1950 | swigpyobject_type.ob_type = &PyType_Type; |
1951 | #else |
1952 | if (PyType_Ready(&swigpyobject_type) < 0) |
1953 | return NULL__null; |
1954 | #endif |
1955 | } |
1956 | return &swigpyobject_type; |
1957 | } |
1958 | |
1959 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1960 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own) |
1961 | { |
1962 | SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type ())) ); |
1963 | if (sobj) { |
1964 | sobj->ptr = ptr; |
1965 | sobj->ty = ty; |
1966 | sobj->own = own; |
1967 | sobj->next = 0; |
1968 | } |
1969 | return (PyObject *)sobj; |
1970 | } |
1971 | |
1972 | /* ----------------------------------------------------------------------------- |
1973 | * Implements a simple Swig Packed type, and use it instead of string |
1974 | * ----------------------------------------------------------------------------- */ |
1975 | |
1976 | typedef struct { |
1977 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1978 | void *pack; |
1979 | swig_type_info *ty; |
1980 | size_t size; |
1981 | } SwigPyPacked; |
1982 | |
1983 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1984 | SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
1985 | { |
1986 | char result[SWIG_BUFFER_SIZE1024]; |
1987 | fputs("<Swig Packed ", fp); |
1988 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
1989 | fputs("at ", fp); |
1990 | fputs(result, fp); |
1991 | } |
1992 | fputs(v->ty->name,fp); |
1993 | fputs(">", fp); |
1994 | return 0; |
1995 | } |
1996 | |
1997 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1998 | SwigPyPacked_repr(SwigPyPacked *v) |
1999 | { |
2000 | char result[SWIG_BUFFER_SIZE1024]; |
2001 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
2002 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
2003 | } else { |
2004 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name); |
2005 | } |
2006 | } |
2007 | |
2008 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2009 | SwigPyPacked_str(SwigPyPacked *v) |
2010 | { |
2011 | char result[SWIG_BUFFER_SIZE1024]; |
2012 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ |
2013 | return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name); |
2014 | } else { |
2015 | return SWIG_Python_str_FromChar(v->ty->name); |
2016 | } |
2017 | } |
2018 | |
2019 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2020 | SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) |
2021 | { |
2022 | size_t i = v->size; |
2023 | size_t j = w->size; |
2024 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
2025 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
2026 | } |
2027 | |
2028 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void); |
2029 | |
2030 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2031 | SwigPyPacked_type(void) { |
2032 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce(); |
2033 | return type; |
2034 | } |
2035 | |
2036 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
2037 | SwigPyPacked_Check(PyObject *op) { |
2038 | return ((op)->ob_type == SwigPyPacked_TypeOnce()) |
2039 | || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); |
2040 | } |
2041 | |
2042 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2043 | SwigPyPacked_dealloc(PyObject *v) |
2044 | { |
2045 | if (SwigPyPacked_Check(v)) { |
2046 | SwigPyPacked *sobj = (SwigPyPacked *) v; |
2047 | free(sobj->pack); |
2048 | } |
2049 | PyObject_DELPyObject_Free(v); |
2050 | } |
2051 | |
2052 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2053 | SwigPyPacked_TypeOnce(void) { |
2054 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; |
2055 | static PyTypeObject swigpypacked_type; |
2056 | static int type_init = 0; |
2057 | if (!type_init) { |
2058 | const PyTypeObject tmp = { |
2059 | /* PyObject header changed in Python 3 */ |
2060 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2061 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
2062 | #else |
2063 | PyObject_HEAD_INIT(NULL)1, __null, |
2064 | 0, /* ob_size */ |
2065 | #endif |
2066 | (char *)"SwigPyPacked", /* tp_name */ |
2067 | sizeof(SwigPyPacked), /* tp_basicsize */ |
2068 | 0, /* tp_itemsize */ |
2069 | (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ |
2070 | (printfunc)SwigPyPacked_print, /* tp_print */ |
2071 | (getattrfunc)0, /* tp_getattr */ |
2072 | (setattrfunc)0, /* tp_setattr */ |
2073 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2074 | 0, /* tp_reserved in 3.0.1 */ |
2075 | #else |
2076 | (cmpfunc)SwigPyPacked_compare, /* tp_compare */ |
2077 | #endif |
2078 | (reprfunc)SwigPyPacked_repr, /* tp_repr */ |
2079 | 0, /* tp_as_number */ |
2080 | 0, /* tp_as_sequence */ |
2081 | 0, /* tp_as_mapping */ |
2082 | (hashfunc)0, /* tp_hash */ |
2083 | (ternaryfunc)0, /* tp_call */ |
2084 | (reprfunc)SwigPyPacked_str, /* tp_str */ |
2085 | PyObject_GenericGetAttr, /* tp_getattro */ |
2086 | 0, /* tp_setattro */ |
2087 | 0, /* tp_as_buffer */ |
2088 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
2089 | swigpacked_doc, /* tp_doc */ |
2090 | 0, /* tp_traverse */ |
2091 | 0, /* tp_clear */ |
2092 | 0, /* tp_richcompare */ |
2093 | 0, /* tp_weaklistoffset */ |
2094 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
2095 | 0, /* tp_iter */ |
2096 | 0, /* tp_iternext */ |
2097 | 0, /* tp_methods */ |
2098 | 0, /* tp_members */ |
2099 | 0, /* tp_getset */ |
2100 | 0, /* tp_base */ |
2101 | 0, /* tp_dict */ |
2102 | 0, /* tp_descr_get */ |
2103 | 0, /* tp_descr_set */ |
2104 | 0, /* tp_dictoffset */ |
2105 | 0, /* tp_init */ |
2106 | 0, /* tp_alloc */ |
2107 | 0, /* tp_new */ |
2108 | 0, /* tp_free */ |
2109 | 0, /* tp_is_gc */ |
2110 | 0, /* tp_bases */ |
2111 | 0, /* tp_mro */ |
2112 | 0, /* tp_cache */ |
2113 | 0, /* tp_subclasses */ |
2114 | 0, /* tp_weaklist */ |
2115 | #endif |
2116 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
2117 | 0, /* tp_del */ |
2118 | #endif |
2119 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
2120 | 0, /* tp_version */ |
2121 | #endif |
2122 | #ifdef COUNT_ALLOCS |
2123 | 0,0,0,0 /* tp_alloc -> tp_next */ |
2124 | #endif |
2125 | }; |
2126 | swigpypacked_type = tmp; |
2127 | type_init = 1; |
2128 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
2129 | swigpypacked_type.ob_type = &PyType_Type; |
2130 | #else |
2131 | if (PyType_Ready(&swigpypacked_type) < 0) |
2132 | return NULL__null; |
2133 | #endif |
2134 | } |
2135 | return &swigpypacked_type; |
2136 | } |
2137 | |
2138 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2139 | SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) |
2140 | { |
2141 | SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type ())) ); |
2142 | if (sobj) { |
2143 | void *pack = malloc(size); |
2144 | if (pack) { |
2145 | memcpy(pack, ptr, size); |
2146 | sobj->pack = pack; |
2147 | sobj->ty = ty; |
2148 | sobj->size = size; |
2149 | } else { |
2150 | PyObject_DELPyObject_Free((PyObject *) sobj); |
2151 | sobj = 0; |
2152 | } |
2153 | } |
2154 | return (PyObject *) sobj; |
2155 | } |
2156 | |
2157 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2158 | SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
2159 | { |
2160 | if (SwigPyPacked_Check(obj)) { |
2161 | SwigPyPacked *sobj = (SwigPyPacked *)obj; |
2162 | if (sobj->size != size) return 0; |
2163 | memcpy(ptr, sobj->pack, size); |
2164 | return sobj->ty; |
2165 | } else { |
2166 | return 0; |
2167 | } |
2168 | } |
2169 | |
2170 | /* ----------------------------------------------------------------------------- |
2171 | * pointers/data manipulation |
2172 | * ----------------------------------------------------------------------------- */ |
2173 | |
2174 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2175 | _SWIG_This(void) |
2176 | { |
2177 | return SWIG_Python_str_FromChar("this"); |
2178 | } |
2179 | |
2180 | static PyObject *swig_this = NULL__null; |
2181 | |
2182 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2183 | SWIG_This(void) |
2184 | { |
2185 | if (swig_this == NULL__null) |
2186 | swig_this = _SWIG_This(); |
2187 | return swig_this; |
2188 | } |
2189 | |
2190 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
2191 | |
2192 | /* TODO: I don't know how to implement the fast getset in Python 3 right now */ |
2193 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2194 | #define SWIG_PYTHON_SLOW_GETSET_THIS |
2195 | #endif |
2196 | |
2197 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject * |
2198 | SWIG_Python_GetSwigThis(PyObject *pyobj) |
2199 | { |
2200 | PyObject *obj; |
2201 | |
2202 | if (SwigPyObject_Check(pyobj)) |
2203 | return (SwigPyObject *) pyobj; |
2204 | |
2205 | #ifdef SWIGPYTHON_BUILTIN |
2206 | (void)obj; |
2207 | # ifdef PyWeakref_CheckProxy |
2208 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2209 | pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2210 | if (pyobj && SwigPyObject_Check(pyobj)) |
2211 | return (SwigPyObject*) pyobj; |
2212 | } |
2213 | # endif |
2214 | return NULL__null; |
2215 | #else |
2216 | |
2217 | obj = 0; |
2218 | |
2219 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000)) |
2220 | if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) { |
2221 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); |
2222 | } else { |
2223 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); |
2224 | if (dictptr != NULL__null) { |
2225 | PyObject *dict = *dictptr; |
2226 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; |
2227 | } else { |
2228 | #ifdef PyWeakref_CheckProxy |
2229 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2230 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2231 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; |
2232 | } |
2233 | #endif |
2234 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2235 | if (obj) { |
2236 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2237 | } else { |
2238 | if (PyErr_Occurred()) PyErr_Clear(); |
2239 | return 0; |
2240 | } |
2241 | } |
2242 | } |
2243 | #else |
2244 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2245 | if (obj) { |
2246 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2247 | } else { |
2248 | if (PyErr_Occurred()) PyErr_Clear(); |
2249 | return 0; |
2250 | } |
2251 | #endif |
2252 | if (obj && !SwigPyObject_Check(obj)) { |
2253 | /* a PyObject is called 'this', try to get the 'real this' |
2254 | SwigPyObject from it */ |
2255 | return SWIG_Python_GetSwigThis(obj); |
2256 | } |
2257 | return (SwigPyObject *)obj; |
2258 | #endif |
2259 | } |
2260 | |
2261 | /* Acquire a pointer value */ |
2262 | |
2263 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2264 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { |
2265 | if (own == SWIG_POINTER_OWN0x1) { |
2266 | SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); |
2267 | if (sobj) { |
2268 | int oldown = sobj->own; |
2269 | sobj->own = own; |
2270 | return oldown; |
2271 | } |
2272 | } |
2273 | return 0; |
2274 | } |
2275 | |
2276 | /* Convert a pointer value */ |
2277 | |
2278 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2279 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
2280 | int res; |
2281 | SwigPyObject *sobj; |
2282 | int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0; |
2283 | |
2284 | if (!obj) |
2285 | return SWIG_ERROR(-1); |
2286 | if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) { |
2287 | if (ptr) |
2288 | *ptr = 0; |
2289 | return SWIG_OK(0); |
2290 | } |
2291 | |
2292 | res = SWIG_ERROR(-1); |
2293 | |
2294 | sobj = SWIG_Python_GetSwigThis(obj); |
2295 | if (own) |
2296 | *own = 0; |
2297 | while (sobj) { |
2298 | void *vptr = sobj->ptr; |
2299 | if (ty) { |
2300 | swig_type_info *to = sobj->ty; |
2301 | if (to == ty) { |
2302 | /* no type cast needed */ |
2303 | if (ptr) *ptr = vptr; |
2304 | break; |
2305 | } else { |
2306 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2307 | if (!tc) { |
2308 | sobj = (SwigPyObject *)sobj->next; |
2309 | } else { |
2310 | if (ptr) { |
2311 | int newmemory = 0; |
2312 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2313 | if (newmemory == SWIG_CAST_NEW_MEMORY0x2) { |
2314 | assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ |
2315 | if (own) |
2316 | *own = *own | SWIG_CAST_NEW_MEMORY0x2; |
2317 | } |
2318 | } |
2319 | break; |
2320 | } |
2321 | } |
2322 | } else { |
2323 | if (ptr) *ptr = vptr; |
2324 | break; |
2325 | } |
2326 | } |
2327 | if (sobj) { |
2328 | if (own) |
2329 | *own = *own | sobj->own; |
2330 | if (flags & SWIG_POINTER_DISOWN0x1) { |
2331 | sobj->own = 0; |
2332 | } |
2333 | res = SWIG_OK(0); |
2334 | } else { |
2335 | if (implicit_conv) { |
2336 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
2337 | if (data && !data->implicitconv) { |
2338 | PyObject *klass = data->klass; |
2339 | if (klass) { |
2340 | PyObject *impconv; |
2341 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ |
2342 | impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);; |
2343 | data->implicitconv = 0; |
2344 | if (PyErr_Occurred()) { |
2345 | PyErr_Clear(); |
2346 | impconv = 0; |
2347 | } |
2348 | if (impconv) { |
2349 | SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); |
2350 | if (iobj) { |
2351 | void *vptr; |
2352 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); |
2353 | if (SWIG_IsOK(res)(res >= 0)) { |
2354 | if (ptr) { |
2355 | *ptr = vptr; |
2356 | /* transfer the ownership to 'ptr' */ |
2357 | iobj->own = 0; |
2358 | res = SWIG_AddCast(res)(res); |
2359 | res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res); |
2360 | } else { |
2361 | res = SWIG_AddCast(res)(res); |
2362 | } |
2363 | } |
2364 | } |
2365 | Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(impconv)))); } while (0); |
2366 | } |
2367 | } |
2368 | } |
2369 | } |
2370 | if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) { |
2371 | if (ptr) |
2372 | *ptr = 0; |
2373 | if (PyErr_Occurred()) |
2374 | PyErr_Clear(); |
2375 | res = SWIG_OK(0); |
2376 | } |
2377 | } |
2378 | return res; |
2379 | } |
2380 | |
2381 | /* Convert a function ptr value */ |
2382 | |
2383 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2384 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2385 | if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) { |
2386 | return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0); |
2387 | } else { |
2388 | void *vptr = 0; |
2389 | |
2390 | /* here we get the method pointer for callbacks */ |
2391 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
2392 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2393 | if (desc) |
2394 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; |
2395 | if (!desc) |
2396 | return SWIG_ERROR(-1); |
2397 | if (ty) { |
2398 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); |
2399 | if (tc) { |
2400 | int newmemory = 0; |
2401 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2402 | assert(!newmemory)((void)0); /* newmemory handling not yet implemented */ |
2403 | } else { |
2404 | return SWIG_ERROR(-1); |
2405 | } |
2406 | } else { |
2407 | *ptr = vptr; |
2408 | } |
2409 | return SWIG_OK(0); |
2410 | } |
2411 | } |
2412 | |
2413 | /* Convert a packed value value */ |
2414 | |
2415 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2416 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2417 | swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); |
2418 | if (!to) return SWIG_ERROR(-1); |
2419 | if (ty) { |
2420 | if (to != ty) { |
2421 | /* check type cast? */ |
2422 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2423 | if (!tc) return SWIG_ERROR(-1); |
2424 | } |
2425 | } |
2426 | return SWIG_OK(0); |
2427 | } |
2428 | |
2429 | /* ----------------------------------------------------------------------------- |
2430 | * Create a new pointer object |
2431 | * ----------------------------------------------------------------------------- */ |
2432 | |
2433 | /* |
2434 | Create a new instance object, without calling __init__, and set the |
2435 | 'this' attribute. |
2436 | */ |
2437 | |
2438 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
2439 | SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) |
2440 | { |
2441 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) |
2442 | PyObject *inst = 0; |
2443 | PyObject *newraw = data->newraw; |
2444 | if (newraw) { |
2445 | inst = PyObject_Call(newraw, data->newargs, NULL__null); |
2446 | if (inst) { |
2447 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2448 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2449 | if (dictptr != NULL__null) { |
2450 | PyObject *dict = *dictptr; |
2451 | if (dict == NULL__null) { |
2452 | dict = PyDict_New(); |
2453 | *dictptr = dict; |
2454 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2455 | } |
2456 | } |
2457 | #else |
2458 | PyObject *key = SWIG_This(); |
2459 | PyObject_SetAttr(inst, key, swig_this); |
2460 | #endif |
2461 | } |
2462 | } else { |
2463 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2464 | inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); |
2465 | if (inst) { |
2466 | PyObject_SetAttr(inst, SWIG_This(), swig_this); |
2467 | Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19); |
2468 | } |
2469 | #else |
2470 | PyObject *dict = PyDict_New(); |
2471 | if (dict) { |
2472 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2473 | inst = PyInstance_NewRaw(data->newargs, dict); |
2474 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2475 | } |
2476 | #endif |
2477 | } |
2478 | return inst; |
2479 | #else |
2480 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02010000) |
2481 | PyObject *inst = 0; |
2482 | PyObject *dict = PyDict_New(); |
2483 | if (dict) { |
2484 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2485 | inst = PyInstance_NewRaw(data->newargs, dict); |
2486 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2487 | } |
2488 | return (PyObject *) inst; |
2489 | #else |
2490 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type )) ); |
2491 | if (inst == NULL__null) { |
2492 | return NULL__null; |
2493 | } |
2494 | inst->in_class = (PyClassObject *)data->newargs; |
2495 | Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++); |
2496 | inst->in_dict = PyDict_New(); |
2497 | if (inst->in_dict == NULL__null) { |
2498 | Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(inst)))); } while (0); |
2499 | return NULL__null; |
2500 | } |
2501 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6) |
2502 | inst->in_weakreflist = NULL__null; |
2503 | #endif |
2504 | #ifdef Py_TPFLAGS_GC0 |
2505 | PyObject_GC_Init(inst); |
2506 | #endif |
2507 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); |
2508 | return (PyObject *) inst; |
2509 | #endif |
2510 | #endif |
2511 | } |
2512 | |
2513 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2514 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) |
2515 | { |
2516 | PyObject *dict; |
2517 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2518 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2519 | if (dictptr != NULL__null) { |
2520 | dict = *dictptr; |
2521 | if (dict == NULL__null) { |
2522 | dict = PyDict_New(); |
2523 | *dictptr = dict; |
2524 | } |
2525 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2526 | return; |
2527 | } |
2528 | #endif |
2529 | dict = PyObject_GetAttrString(inst, (char*)"__dict__"); |
2530 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2531 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2532 | } |
2533 | |
2534 | |
2535 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
2536 | SWIG_Python_InitShadowInstance(PyObject *args) { |
2537 | PyObject *obj[2]; |
2538 | if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { |
2539 | return NULL__null; |
2540 | } else { |
2541 | SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); |
2542 | if (sthis) { |
2543 | SwigPyObject_append((PyObject*) sthis, obj[1]); |
2544 | } else { |
2545 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
2546 | } |
2547 | return SWIG_Py_Void(); |
2548 | } |
2549 | } |
2550 | |
2551 | /* Create a new pointer object */ |
2552 | |
2553 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2554 | SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { |
2555 | SwigPyClientData *clientdata; |
2556 | PyObject * robj; |
2557 | int own; |
2558 | |
2559 | if (!ptr) |
2560 | return SWIG_Py_Void(); |
2561 | |
2562 | clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; |
2563 | own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0; |
2564 | if (clientdata && clientdata->pytype) { |
2565 | SwigPyObject *newobj; |
2566 | if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) { |
2567 | newobj = (SwigPyObject*) self; |
2568 | if (newobj->ptr) { |
2569 | PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); |
2570 | while (newobj->next) |
2571 | newobj = (SwigPyObject *) newobj->next; |
2572 | newobj->next = next_self; |
2573 | newobj = (SwigPyObject *)next_self; |
2574 | } |
2575 | } else { |
2576 | newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) ); |
2577 | } |
2578 | if (newobj) { |
2579 | newobj->ptr = ptr; |
2580 | newobj->ty = type; |
2581 | newobj->own = own; |
2582 | newobj->next = 0; |
2583 | #ifdef SWIGPYTHON_BUILTIN |
2584 | newobj->dict = 0; |
2585 | #endif |
2586 | return (PyObject*) newobj; |
2587 | } |
2588 | return SWIG_Py_Void(); |
2589 | } |
2590 | |
2591 | assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0); |
2592 | |
2593 | robj = SwigPyObject_New(ptr, type, own); |
2594 | if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) { |
2595 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); |
2596 | Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(robj)))); } while (0); |
2597 | robj = inst; |
2598 | } |
2599 | return robj; |
2600 | } |
2601 | |
2602 | /* Create a new packed object */ |
2603 | |
2604 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2605 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
2606 | return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
2607 | } |
2608 | |
2609 | /* -----------------------------------------------------------------------------* |
2610 | * Get type list |
2611 | * -----------------------------------------------------------------------------*/ |
2612 | |
2613 | #ifdef SWIG_LINK_RUNTIME |
2614 | void *SWIG_ReturnGlobalTypeList(void *); |
2615 | #endif |
2616 | |
2617 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info * |
2618 | SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { |
2619 | static void *type_pointer = (void *)0; |
2620 | /* first check if module already created */ |
2621 | if (!type_pointer) { |
2622 | #ifdef SWIG_LINK_RUNTIME |
2623 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); |
2624 | #else |
2625 | # ifdef SWIGPY_USE_CAPSULE |
2626 | type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0); |
2627 | # else |
2628 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4", |
2629 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); |
2630 | # endif |
2631 | if (PyErr_Occurred()) { |
2632 | PyErr_Clear(); |
2633 | type_pointer = (void *)0; |
2634 | } |
2635 | #endif |
2636 | } |
2637 | return (swig_module_info *) type_pointer; |
2638 | } |
2639 | |
2640 | #if PY_MAJOR_VERSION2 < 2 |
2641 | /* PyModule_AddObject function was introduced in Python 2.0. The following function |
2642 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
2643 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
2644 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) |
2645 | { |
2646 | PyObject *dict; |
2647 | if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype ((((PyObject*)(m))->ob_type), (&PyModule_Type)))) { |
2648 | PyErr_SetString(PyExc_TypeError, |
2649 | "PyModule_AddObject() needs module as first arg"); |
2650 | return SWIG_ERROR(-1); |
2651 | } |
2652 | if (!o) { |
2653 | PyErr_SetString(PyExc_TypeError, |
2654 | "PyModule_AddObject() needs non-NULL value"); |
2655 | return SWIG_ERROR(-1); |
2656 | } |
2657 | |
2658 | dict = PyModule_GetDict(m); |
2659 | if (dict == NULL__null) { |
2660 | /* Internal error -- modules must have a dict! */ |
2661 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", |
2662 | PyModule_GetName(m)); |
2663 | return SWIG_ERROR(-1); |
2664 | } |
2665 | if (PyDict_SetItemString(dict, name, o)) |
2666 | return SWIG_ERROR(-1); |
2667 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); |
2668 | return SWIG_OK(0); |
2669 | } |
2670 | #endif |
2671 | |
2672 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2673 | #ifdef SWIGPY_USE_CAPSULE |
2674 | SWIG_Python_DestroyModule(PyObject *obj) |
2675 | #else |
2676 | SWIG_Python_DestroyModule(void *vptr) |
2677 | #endif |
2678 | { |
2679 | #ifdef SWIGPY_USE_CAPSULE |
2680 | swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" )); |
2681 | #else |
2682 | swig_module_info *swig_module = (swig_module_info *) vptr; |
2683 | #endif |
2684 | swig_type_info **types = swig_module->types; |
2685 | size_t i; |
2686 | for (i =0; i < swig_module->size; ++i) { |
2687 | swig_type_info *ty = types[i]; |
2688 | if (ty->owndata) { |
2689 | SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; |
2690 | if (data) SwigPyClientData_Del(data); |
2691 | } |
2692 | } |
2693 | Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while (0); |
2694 | swig_this = NULL__null; |
2695 | } |
2696 | |
2697 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2698 | SWIG_Python_SetModule(swig_module_info *swig_module) { |
2699 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2700 | /* Add a dummy module object into sys.modules */ |
2701 | PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4"); |
2702 | #else |
2703 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */ |
2704 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table , (char *)__null, (PyObject *)__null, 1013); |
2705 | #endif |
2706 | #ifdef SWIGPY_USE_CAPSULE |
2707 | PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule); |
2708 | if (pointer && module) { |
2709 | PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); |
2710 | } else { |
2711 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2712 | } |
2713 | #else |
2714 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
2715 | if (pointer && module) { |
2716 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); |
2717 | } else { |
2718 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2719 | } |
2720 | #endif |
2721 | } |
2722 | |
2723 | /* The python cached type query */ |
2724 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2725 | SWIG_Python_TypeCache(void) { |
2726 | static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New(); |
2727 | return cache; |
2728 | } |
2729 | |
2730 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2731 | SWIG_Python_TypeQuery(const char *type) |
2732 | { |
2733 | PyObject *cache = SWIG_Python_TypeCache(); |
2734 | PyObject *key = SWIG_Python_str_FromChar(type); |
2735 | PyObject *obj = PyDict_GetItem(cache, key); |
2736 | swig_type_info *descriptor; |
2737 | if (obj) { |
2738 | #ifdef SWIGPY_USE_CAPSULE |
2739 | descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null); |
2740 | #else |
2741 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); |
2742 | #endif |
2743 | } else { |
2744 | swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0); |
2745 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); |
2746 | if (descriptor) { |
2747 | #ifdef SWIGPY_USE_CAPSULE |
2748 | obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null); |
2749 | #else |
2750 | obj = PyCObject_FromVoidPtr(descriptor, NULL__null); |
2751 | #endif |
2752 | PyDict_SetItem(cache, key, obj); |
2753 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2754 | } |
2755 | } |
2756 | Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(key)))); } while (0); |
2757 | return descriptor; |
2758 | } |
2759 | |
2760 | /* |
2761 | For backward compatibility only |
2762 | */ |
2763 | #define SWIG_POINTER_EXCEPTION0 0 |
2764 | #define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg) |
2765 | #define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) |
2766 | |
2767 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2768 | SWIG_Python_AddErrMesg(const char* mesg, int infront) |
2769 | { |
2770 | if (PyErr_Occurred()) { |
2771 | PyObject *type = 0; |
2772 | PyObject *value = 0; |
2773 | PyObject *traceback = 0; |
2774 | PyErr_Fetch(&type, &value, &traceback); |
2775 | if (value) { |
2776 | char *tmp; |
2777 | PyObject *old_str = PyObject_Str(value); |
2778 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
2779 | PyErr_Clear(); |
2780 | if (infront) { |
2781 | PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); |
2782 | } else { |
2783 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
2784 | } |
2785 | SWIG_Python_str_DelForPy3(tmp); |
2786 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
2787 | } |
2788 | return 1; |
2789 | } else { |
2790 | return 0; |
2791 | } |
2792 | } |
2793 | |
2794 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2795 | SWIG_Python_ArgFail(int argnum) |
2796 | { |
2797 | if (PyErr_Occurred()) { |
2798 | /* add information about failing argument */ |
2799 | char mesg[256]; |
2800 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
2801 | return SWIG_Python_AddErrMesg(mesg, 1); |
2802 | } else { |
2803 | return 0; |
2804 | } |
2805 | } |
2806 | |
2807 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
2808 | SwigPyObject_GetDesc(PyObject *self) |
2809 | { |
2810 | SwigPyObject *v = (SwigPyObject *)self; |
2811 | swig_type_info *ty = v ? v->ty : 0; |
2812 | return ty ? ty->str : ""; |
2813 | } |
2814 | |
2815 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2816 | SWIG_Python_TypeError(const char *type, PyObject *obj) |
2817 | { |
2818 | if (type) { |
2819 | #if defined(SWIG_COBJECT_TYPES) |
2820 | if (obj && SwigPyObject_Check(obj)) { |
2821 | const char *otype = (const char *) SwigPyObject_GetDesc(obj); |
2822 | if (otype) { |
2823 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", |
2824 | type, otype); |
2825 | return; |
2826 | } |
2827 | } else |
2828 | #endif |
2829 | { |
2830 | const char *otype = (obj ? obj->ob_type->tp_name : 0); |
2831 | if (otype) { |
2832 | PyObject *str = PyObject_Str(obj); |
2833 | const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; |
2834 | if (cstr) { |
2835 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", |
2836 | type, otype, cstr); |
2837 | SWIG_Python_str_DelForPy3(cstr); |
2838 | } else { |
2839 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", |
2840 | type, otype); |
2841 | } |
2842 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
2843 | return; |
2844 | } |
2845 | } |
2846 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); |
2847 | } else { |
2848 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); |
2849 | } |
2850 | } |
2851 | |
2852 | |
2853 | /* Convert a pointer value, signal an exception on a type mismatch */ |
2854 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void * |
2855 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { |
2856 | void *result; |
2857 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) { |
2858 | PyErr_Clear(); |
2859 | #if SWIG_POINTER_EXCEPTION0 |
2860 | if (flags) { |
2861 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); |
2862 | SWIG_Python_ArgFail(argnum); |
2863 | } |
2864 | #endif |
2865 | } |
2866 | return result; |
2867 | } |
2868 | |
2869 | #ifdef SWIGPYTHON_BUILTIN |
2870 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2871 | SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { |
2872 | PyTypeObject *tp = obj->ob_type; |
2873 | PyObject *descr; |
2874 | PyObject *encoded_name; |
2875 | descrsetfunc f; |
2876 | int res = -1; |
2877 | |
2878 | # ifdef Py_USING_UNICODE1 |
2879 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2880 | name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null); |
2881 | if (!name) |
2882 | return -1; |
2883 | } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<28))) != 0)) |
2884 | # else |
2885 | if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) |
2886 | # endif |
2887 | { |
2888 | PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); |
2889 | return -1; |
2890 | } else { |
2891 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2892 | } |
2893 | |
2894 | if (!tp->tp_dict) { |
2895 | if (PyType_Ready(tp) < 0) |
2896 | goto done; |
2897 | } |
2898 | |
2899 | descr = _PyType_Lookup(tp, name); |
2900 | f = NULL__null; |
2901 | if (descr != NULL__null) |
2902 | f = descr->ob_type->tp_descr_set; |
2903 | if (!f) { |
2904 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2905 | encoded_name = name; |
2906 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2907 | } else { |
2908 | encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name); |
2909 | } |
2910 | PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); |
2911 | Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(encoded_name)))); } while (0); |
2912 | } else { |
2913 | res = f(descr, obj, value); |
2914 | } |
2915 | |
2916 | done: |
2917 | Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(name)))); } while (0); |
2918 | return res; |
2919 | } |
2920 | #endif |
2921 | |
2922 | |
2923 | #ifdef __cplusplus199711L |
2924 | } |
2925 | #endif |
2926 | |
2927 | |
2928 | |
2929 | #define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0) |
2930 | |
2931 | #define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType( -3), msg); goto fail; } else if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else |
2932 | |
2933 | |
2934 | |
2935 | #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail;; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0) |
2936 | |
2937 | |
2938 | /* -------- TYPES TABLE (BEGIN) -------- */ |
2939 | |
2940 | #define SWIGTYPE_p_GBaseswig_types[0] swig_types[0] |
2941 | #define SWIGTYPE_p_GCOMEventBinswig_types[1] swig_types[1] |
2942 | #define SWIGTYPE_p_GCOMEventCubeswig_types[2] swig_types[2] |
2943 | #define SWIGTYPE_p_GCOMInstDirswig_types[3] swig_types[3] |
2944 | #define SWIGTYPE_p_GCOMModelDRBFittingswig_types[4] swig_types[4] |
2945 | #define SWIGTYPE_p_GCOMObservationswig_types[5] swig_types[5] |
2946 | #define SWIGTYPE_p_GCOMResponseswig_types[6] swig_types[6] |
2947 | #define SWIGTYPE_p_GEboundsswig_types[7] swig_types[7] |
2948 | #define SWIGTYPE_p_GEnergyswig_types[8] swig_types[8] |
2949 | #define SWIGTYPE_p_GEventswig_types[9] swig_types[9] |
2950 | #define SWIGTYPE_p_GEventBinswig_types[10] swig_types[10] |
2951 | #define SWIGTYPE_p_GEventCubeswig_types[11] swig_types[11] |
2952 | #define SWIGTYPE_p_GEventsswig_types[12] swig_types[12] |
2953 | #define SWIGTYPE_p_GFitsswig_types[13] swig_types[13] |
2954 | #define SWIGTYPE_p_GFitsImageswig_types[14] swig_types[14] |
2955 | #define SWIGTYPE_p_GGtiswig_types[15] swig_types[15] |
2956 | #define SWIGTYPE_p_GInstDirswig_types[16] swig_types[16] |
2957 | #define SWIGTYPE_p_GModelswig_types[17] swig_types[17] |
2958 | #define SWIGTYPE_p_GModelDataswig_types[18] swig_types[18] |
2959 | #define SWIGTYPE_p_GObservationswig_types[19] swig_types[19] |
2960 | #define SWIGTYPE_p_GPhotonswig_types[20] swig_types[20] |
2961 | #define SWIGTYPE_p_GRanswig_types[21] swig_types[21] |
2962 | #define SWIGTYPE_p_GResponseswig_types[22] swig_types[22] |
2963 | #define SWIGTYPE_p_GSkyDirswig_types[23] swig_types[23] |
2964 | #define SWIGTYPE_p_GSkymapswig_types[24] swig_types[24] |
2965 | #define SWIGTYPE_p_GTimeswig_types[25] swig_types[25] |
2966 | #define SWIGTYPE_p_GXmlElementswig_types[26] swig_types[26] |
2967 | #define SWIGTYPE_p_charswig_types[27] swig_types[27] |
2968 | #define SWIGTYPE_p_std__invalid_argumentswig_types[28] swig_types[28] |
2969 | #define SWIGTYPE_p_swig__SwigPyIteratorswig_types[29] swig_types[29] |
2970 | static swig_type_info *swig_types[31]; |
2971 | static swig_module_info swig_module = {swig_types, 30, 0, 0, 0, 0}; |
2972 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2973 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
2974 | |
2975 | /* -------- TYPES TABLE (END) -------- */ |
2976 | |
2977 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
2978 | # if !defined(SWIG_PYTHON_CLASSIC) |
2979 | # error "This python version requires swig to be run with the '-classic' option" |
2980 | # endif |
2981 | #endif |
2982 | |
2983 | /*----------------------------------------------- |
2984 | @(target):= _com.so |
2985 | ------------------------------------------------*/ |
2986 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2987 | # define SWIG_initinit_com PyInit__com |
2988 | |
2989 | #else |
2990 | # define SWIG_initinit_com init_com |
2991 | |
2992 | #endif |
2993 | #define SWIG_name"_com" "_com" |
2994 | |
2995 | #define SWIGVERSION0x020011 0x020011 |
2996 | #define SWIG_VERSION0x020011 SWIGVERSION0x020011 |
2997 | |
2998 | |
2999 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
3000 | #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)) |
3001 | |
3002 | |
3003 | #include <stdexcept> |
3004 | |
3005 | |
3006 | namespace swig { |
3007 | class SwigPtr_PyObject { |
3008 | protected: |
3009 | PyObject *_obj; |
3010 | |
3011 | public: |
3012 | SwigPtr_PyObject() :_obj(0) |
3013 | { |
3014 | } |
3015 | |
3016 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
3017 | { |
3018 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3019 | } |
3020 | |
3021 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3022 | { |
3023 | if (initial_ref) { |
3024 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3025 | } |
3026 | } |
3027 | |
3028 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3029 | { |
3030 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3031 | 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); |
3032 | _obj = item._obj; |
3033 | return *this; |
3034 | } |
3035 | |
3036 | ~SwigPtr_PyObject() |
3037 | { |
3038 | 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); |
3039 | } |
3040 | |
3041 | operator PyObject *() const |
3042 | { |
3043 | return _obj; |
3044 | } |
3045 | |
3046 | PyObject *operator->() const |
3047 | { |
3048 | return _obj; |
3049 | } |
3050 | }; |
3051 | } |
3052 | |
3053 | |
3054 | namespace swig { |
3055 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3056 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3057 | |
3058 | SwigVar_PyObject & operator = (PyObject* obj) |
3059 | { |
3060 | 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); |
3061 | _obj = obj; |
3062 | return *this; |
3063 | } |
3064 | }; |
3065 | } |
3066 | |
3067 | |
3068 | #include <stddef.h> |
3069 | #include "GException.hpp" |
3070 | #include "GTools.hpp" |
3071 | |
3072 | |
3073 | #include <stdexcept> |
3074 | |
3075 | |
3076 | #if defined(__GNUC__4) |
3077 | # if __GNUC__4 == 2 && __GNUC_MINOR <= 96 |
3078 | # define SWIG_STD_NOMODERN_STL |
3079 | # endif |
3080 | #endif |
3081 | |
3082 | |
3083 | #include <string> |
3084 | #include <stdexcept> |
3085 | #include <stddef.h> |
3086 | |
3087 | |
3088 | #include <string> |
3089 | |
3090 | |
3091 | #include <iostream> |
3092 | |
3093 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
3094 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj)) |
3095 | #else |
3096 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj)) |
3097 | #endif |
3098 | |
3099 | |
3100 | #include <stddef.h> |
3101 | |
3102 | |
3103 | namespace swig { |
3104 | struct stop_iteration { |
3105 | }; |
3106 | |
3107 | struct SwigPyIterator { |
3108 | private: |
3109 | SwigPtr_PyObject _seq; |
3110 | |
3111 | protected: |
3112 | SwigPyIterator(PyObject *seq) : _seq(seq) |
3113 | { |
3114 | } |
3115 | |
3116 | public: |
3117 | virtual ~SwigPyIterator() {} |
3118 | |
3119 | // Access iterator method, required by Python |
3120 | virtual PyObject *value() const = 0; |
3121 | |
3122 | // Forward iterator method, required by Python |
3123 | virtual SwigPyIterator *incr(size_t n = 1) = 0; |
3124 | |
3125 | // Backward iterator method, very common in C++, but not required in Python |
3126 | virtual SwigPyIterator *decr(size_t /*n*/ = 1) |
3127 | { |
3128 | throw stop_iteration(); |
3129 | } |
3130 | |
3131 | // Random access iterator methods, but not required in Python |
3132 | virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const |
3133 | { |
3134 | throw std::invalid_argument("operation not supported"); |
3135 | } |
3136 | |
3137 | virtual bool equal (const SwigPyIterator &/*x*/) const |
3138 | { |
3139 | throw std::invalid_argument("operation not supported"); |
3140 | } |
3141 | |
3142 | // C++ common/needed methods |
3143 | virtual SwigPyIterator *copy() const = 0; |
3144 | |
3145 | PyObject *next() |
3146 | { |
3147 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3148 | PyObject *obj = value(); |
3149 | incr(); |
3150 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3151 | return obj; |
3152 | } |
3153 | |
3154 | /* Make an alias for Python 3.x */ |
3155 | PyObject *__next__() |
3156 | { |
3157 | return next(); |
3158 | } |
3159 | |
3160 | PyObject *previous() |
3161 | { |
3162 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3163 | decr(); |
3164 | PyObject *obj = value(); |
3165 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3166 | return obj; |
3167 | } |
3168 | |
3169 | SwigPyIterator *advance(ptrdiff_t n) |
3170 | { |
3171 | return (n > 0) ? incr(n) : decr(-n); |
3172 | } |
3173 | |
3174 | bool operator == (const SwigPyIterator& x) const |
3175 | { |
3176 | return equal(x); |
3177 | } |
3178 | |
3179 | bool operator != (const SwigPyIterator& x) const |
3180 | { |
3181 | return ! operator==(x); |
3182 | } |
3183 | |
3184 | SwigPyIterator& operator += (ptrdiff_t n) |
3185 | { |
3186 | return *advance(n); |
3187 | } |
3188 | |
3189 | SwigPyIterator& operator -= (ptrdiff_t n) |
3190 | { |
3191 | return *advance(-n); |
3192 | } |
3193 | |
3194 | SwigPyIterator* operator + (ptrdiff_t n) const |
3195 | { |
3196 | return copy()->advance(n); |
3197 | } |
3198 | |
3199 | SwigPyIterator* operator - (ptrdiff_t n) const |
3200 | { |
3201 | return copy()->advance(-n); |
3202 | } |
3203 | |
3204 | ptrdiff_t operator - (const SwigPyIterator& x) const |
3205 | { |
3206 | return x.distance(*this); |
3207 | } |
3208 | |
3209 | static swig_type_info* descriptor() { |
3210 | static int init = 0; |
3211 | static swig_type_info* desc = 0; |
3212 | if (!init) { |
3213 | desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *" ); |
3214 | init = 1; |
3215 | } |
3216 | return desc; |
3217 | } |
3218 | }; |
3219 | |
3220 | #if defined(SWIGPYTHON_BUILTIN) |
3221 | inline PyObject* make_output_iterator_builtin (PyObject *pyself) |
3222 | { |
3223 | Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++); |
3224 | return pyself; |
3225 | } |
3226 | #endif |
3227 | } |
3228 | |
3229 | |
3230 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3231 | SWIG_AsVal_double (PyObject *obj, double *val) |
3232 | { |
3233 | int res = SWIG_TypeError-5; |
3234 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3235 | if (val) *val = PyFloat_AsDouble(obj); |
3236 | return SWIG_OK(0); |
3237 | } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3238 | if (val) *val = PyInt_AsLong(obj); |
3239 | return SWIG_OK(0); |
3240 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3241 | double v = PyLong_AsDouble(obj); |
3242 | if (!PyErr_Occurred()) { |
3243 | if (val) *val = v; |
3244 | return SWIG_OK(0); |
3245 | } else { |
3246 | PyErr_Clear(); |
3247 | } |
3248 | } |
3249 | #ifdef SWIG_PYTHON_CAST_MODE |
3250 | { |
3251 | int dispatch = 0; |
3252 | double d = PyFloat_AsDouble(obj); |
3253 | if (!PyErr_Occurred()) { |
3254 | if (val) *val = d; |
3255 | return SWIG_AddCast(SWIG_OK)((0)); |
3256 | } else { |
3257 | PyErr_Clear(); |
3258 | } |
3259 | if (!dispatch) { |
3260 | long v = PyLong_AsLong(obj); |
3261 | if (!PyErr_Occurred()) { |
3262 | if (val) *val = v; |
3263 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3264 | } else { |
3265 | PyErr_Clear(); |
3266 | } |
3267 | } |
3268 | } |
3269 | #endif |
3270 | return res; |
3271 | } |
3272 | |
3273 | |
3274 | #include <float.h> |
3275 | |
3276 | |
3277 | #include <math.h> |
3278 | |
3279 | |
3280 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3281 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3282 | double x = *d; |
3283 | if ((min <= x && x <= max)) { |
3284 | double fx = floor(x); |
3285 | double cx = ceil(x); |
3286 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3287 | if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) { |
3288 | errno(*__error()) = 0; |
3289 | } else { |
3290 | double summ, reps, diff; |
3291 | if (rd < x) { |
3292 | diff = x - rd; |
3293 | } else if (rd > x) { |
3294 | diff = rd - x; |
3295 | } else { |
3296 | return 1; |
3297 | } |
3298 | summ = rd + x; |
3299 | reps = diff/summ; |
3300 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3301 | *d = rd; |
3302 | return 1; |
3303 | } |
3304 | } |
3305 | } |
3306 | return 0; |
3307 | } |
3308 | |
3309 | |
3310 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3311 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3312 | { |
3313 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3314 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3315 | long v = PyInt_AsLong(obj); |
3316 | if (v >= 0) { |
3317 | if (val) *val = v; |
3318 | return SWIG_OK(0); |
3319 | } else { |
3320 | return SWIG_OverflowError-7; |
3321 | } |
3322 | } else |
3323 | #endif |
3324 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3325 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3326 | if (!PyErr_Occurred()) { |
3327 | if (val) *val = v; |
3328 | return SWIG_OK(0); |
3329 | } else { |
3330 | PyErr_Clear(); |
3331 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3332 | { |
3333 | long v = PyLong_AsLong(obj); |
3334 | if (!PyErr_Occurred()) { |
3335 | if (v < 0) { |
3336 | return SWIG_OverflowError-7; |
3337 | } |
3338 | } else { |
3339 | PyErr_Clear(); |
3340 | } |
3341 | } |
3342 | #endif |
3343 | } |
3344 | } |
3345 | #ifdef SWIG_PYTHON_CAST_MODE |
3346 | { |
3347 | int dispatch = 0; |
3348 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3349 | if (!PyErr_Occurred()) { |
3350 | if (val) *val = v; |
3351 | return SWIG_AddCast(SWIG_OK)((0)); |
3352 | } else { |
3353 | PyErr_Clear(); |
3354 | } |
3355 | if (!dispatch) { |
3356 | double d; |
3357 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3358 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3359 | if (val) *val = (unsigned long)(d); |
3360 | return res; |
3361 | } |
3362 | } |
3363 | } |
3364 | #endif |
3365 | return SWIG_TypeError-5; |
3366 | } |
3367 | |
3368 | |
3369 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3370 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
3371 | { |
3372 | unsigned long v; |
3373 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
3374 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
3375 | return res; |
3376 | } |
3377 | |
3378 | |
3379 | #define SWIG_From_longPyLong_FromLong PyLong_FromLong |
3380 | |
3381 | |
3382 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3383 | SWIG_From_ptrdiff_t (ptrdiff_t value) |
3384 | { |
3385 | return SWIG_From_longPyLong_FromLong (static_cast< long >(value)); |
3386 | } |
3387 | |
3388 | |
3389 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3390 | SWIG_From_bool (bool value) |
3391 | { |
3392 | return PyBool_FromLong(value ? 1 : 0); |
3393 | } |
3394 | |
3395 | |
3396 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3397 | SWIG_AsVal_long (PyObject *obj, long* val) |
3398 | { |
3399 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3400 | if (val) *val = PyInt_AsLong(obj); |
3401 | return SWIG_OK(0); |
3402 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3403 | long v = PyLong_AsLong(obj); |
3404 | if (!PyErr_Occurred()) { |
3405 | if (val) *val = v; |
3406 | return SWIG_OK(0); |
3407 | } else { |
3408 | PyErr_Clear(); |
3409 | } |
3410 | } |
3411 | #ifdef SWIG_PYTHON_CAST_MODE |
3412 | { |
3413 | int dispatch = 0; |
3414 | long v = PyInt_AsLong(obj); |
3415 | if (!PyErr_Occurred()) { |
3416 | if (val) *val = v; |
3417 | return SWIG_AddCast(SWIG_OK)((0)); |
3418 | } else { |
3419 | PyErr_Clear(); |
3420 | } |
3421 | if (!dispatch) { |
3422 | double d; |
3423 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3424 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3425 | if (val) *val = (long)(d); |
3426 | return res; |
3427 | } |
3428 | } |
3429 | } |
3430 | #endif |
3431 | return SWIG_TypeError-5; |
3432 | } |
3433 | |
3434 | |
3435 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3436 | SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) |
3437 | { |
3438 | long v; |
3439 | int res = SWIG_AsVal_long (obj, val ? &v : 0); |
3440 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v); |
3441 | return res; |
3442 | } |
3443 | |
3444 | |
3445 | #include <stdexcept> |
3446 | |
3447 | |
3448 | #include <algorithm> |
3449 | |
3450 | |
3451 | #include <vector> |
3452 | |
3453 | |
3454 | #include <utility> |
3455 | |
3456 | |
3457 | #include <map> |
3458 | #include <algorithm> |
3459 | #include <stdexcept> |
3460 | |
3461 | |
3462 | /* Put headers and other declarations here that are needed for compilation */ |
3463 | #include "GCOMEventBin.hpp" |
3464 | |
3465 | |
3466 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
3467 | |
3468 | |
3469 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3470 | SWIG_From_int (int value) |
3471 | { |
3472 | return PyInt_FromLong((long) value); |
3473 | } |
3474 | |
3475 | SWIGINTERNstatic __attribute__ ((__unused__)) GCOMEventBin GCOMEventBin_copy(GCOMEventBin *self){ |
3476 | return (*self); |
3477 | } |
3478 | |
3479 | /* Put headers and other declarations here that are needed for compilation */ |
3480 | #include "GCOMEventCube.hpp" |
3481 | |
3482 | |
3483 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3484 | SWIG_pchar_descriptor(void) |
3485 | { |
3486 | static int init = 0; |
3487 | static swig_type_info* info = 0; |
3488 | if (!init) { |
3489 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3490 | init = 1; |
3491 | } |
3492 | return info; |
3493 | } |
3494 | |
3495 | |
3496 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3497 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3498 | { |
3499 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3500 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3501 | #else |
3502 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3503 | #endif |
3504 | { |
3505 | char *cstr; Py_ssize_t len; |
3506 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3507 | if (!alloc && cptr) { |
3508 | /* We can't allow converting without allocation, since the internal |
3509 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3510 | a UTF-8 representation. |
3511 | TODO(bhy) More detailed explanation */ |
3512 | return SWIG_RuntimeError-3; |
3513 | } |
3514 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj); |
3515 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3516 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3517 | #else |
3518 | PyString_AsStringAndSize(obj, &cstr, &len); |
3519 | #endif |
3520 | if (cptr) { |
3521 | if (alloc) { |
3522 | /* |
3523 | In python the user should not be able to modify the inner |
3524 | string representation. To warranty that, if you define |
3525 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3526 | buffer is always returned. |
3527 | |
3528 | The default behavior is just to return the pointer value, |
3529 | so, be careful. |
3530 | */ |
3531 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3532 | if (*alloc != SWIG_OLDOBJ((0))) |
3533 | #else |
3534 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3535 | #endif |
3536 | { |
3537 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); |
3538 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3539 | } |
3540 | else { |
3541 | *cptr = cstr; |
3542 | *alloc = SWIG_OLDOBJ((0)); |
3543 | } |
3544 | } else { |
3545 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3546 | assert(0)((void)0); /* Should never reach here in Python 3 */ |
3547 | #endif |
3548 | *cptr = SWIG_Python_str_AsChar(obj); |
3549 | } |
3550 | } |
3551 | if (psize) *psize = len + 1; |
3552 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3553 | 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); |
3554 | #endif |
3555 | return SWIG_OK(0); |
3556 | } else { |
3557 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3558 | if (pchar_descriptor) { |
3559 | void* vptr = 0; |
3560 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3561 | if (cptr) *cptr = (char *) vptr; |
3562 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3563 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3564 | return SWIG_OK(0); |
3565 | } |
3566 | } |
3567 | } |
3568 | return SWIG_TypeError-5; |
3569 | } |
3570 | |
3571 | |
3572 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3573 | SWIG_AsPtr_std_string (PyObject * obj, std::string **val) |
3574 | { |
3575 | char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0)); |
3576 | if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc) ) >= 0)) { |
3577 | if (buf) { |
3578 | if (val) *val = new std::string(buf, size - 1); |
3579 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf; |
3580 | return SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3581 | } else { |
3582 | if (val) *val = 0; |
3583 | return SWIG_OLDOBJ((0)); |
3584 | } |
3585 | } else { |
3586 | static int init = 0; |
3587 | static swig_type_info* descriptor = 0; |
3588 | if (!init) { |
3589 | descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string" " *"); |
3590 | init = 1; |
3591 | } |
3592 | if (descriptor) { |
3593 | std::string *vptr; |
3594 | int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor , 0, 0); |
3595 | if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr; |
3596 | return res; |
3597 | } |
3598 | } |
3599 | return SWIG_ERROR(-1); |
3600 | } |
3601 | |
3602 | |
3603 | #include <limits.h> |
3604 | #if !defined(SWIG_NO_LLONG_MAX) |
3605 | # if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3606 | # define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL |
3607 | # define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL) |
3608 | # define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL) |
3609 | # endif |
3610 | #endif |
3611 | |
3612 | |
3613 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3614 | SWIG_AsVal_int (PyObject * obj, int *val) |
3615 | { |
3616 | long v; |
3617 | int res = SWIG_AsVal_long (obj, &v); |
3618 | if (SWIG_IsOK(res)(res >= 0)) { |
3619 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3620 | return SWIG_OverflowError-7; |
3621 | } else { |
3622 | if (val) *val = static_cast< int >(v); |
3623 | } |
3624 | } |
3625 | return res; |
3626 | } |
3627 | |
3628 | |
3629 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3630 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
3631 | { |
3632 | int r = PyObject_IsTrue(obj); |
3633 | if (r == -1) |
3634 | return SWIG_ERROR(-1); |
3635 | if (val) *val = r ? true : false; |
3636 | return SWIG_OK(0); |
3637 | } |
3638 | |
3639 | SWIGINTERNstatic __attribute__ ((__unused__)) GCOMEventCube GCOMEventCube_copy(GCOMEventCube *self){ |
3640 | return (*self); |
3641 | } |
3642 | SWIGINTERNstatic __attribute__ ((__unused__)) GCOMEventBin *GCOMEventCube___getitem__(GCOMEventCube *self,int index){ |
3643 | if (index >= 0 && index < self->size()) { |
3644 | return (*self)[index]; |
3645 | } |
3646 | else { |
3647 | throw GException::out_of_range("__getitem__(int)", index, self->size()); |
3648 | } |
3649 | } |
3650 | SWIGINTERNstatic __attribute__ ((__unused__)) void GCOMEventCube___setitem__(GCOMEventCube *self,int index,GCOMEventBin const &val){ |
3651 | if (index>=0 && index < self->size()) { |
3652 | *((*self)[index]) = val; |
3653 | } |
3654 | else { |
3655 | throw GException::out_of_range("__setitem__(int)", index, self->size()); |
3656 | } |
3657 | } |
3658 | |
3659 | /* Put headers and other declarations here that are needed for compilation */ |
3660 | #include "GCOMInstDir.hpp" |
3661 | |
3662 | SWIGINTERNstatic __attribute__ ((__unused__)) GCOMInstDir GCOMInstDir_copy(GCOMInstDir *self){ |
3663 | return (*self); |
3664 | } |
3665 | |
3666 | /* Put headers and other declarations here that are needed for compilation */ |
3667 | #include "GCOMModelDRBFitting.hpp" |
3668 | |
3669 | |
3670 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3671 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3672 | { |
3673 | if (carray) { |
3674 | if (size > INT_MAX2147483647) { |
3675 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3676 | return pchar_descriptor ? |
3677 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3678 | } else { |
3679 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3680 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size)); |
3681 | #else |
3682 | return PyString_FromStringAndSize(carray, static_cast< int >(size)); |
3683 | #endif |
3684 | } |
3685 | } else { |
3686 | return SWIG_Py_Void(); |
3687 | } |
3688 | } |
3689 | |
3690 | |
3691 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3692 | SWIG_From_std_string (const std::string& s) |
3693 | { |
3694 | return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
3695 | } |
3696 | |
3697 | SWIGINTERNstatic __attribute__ ((__unused__)) GCOMModelDRBFitting GCOMModelDRBFitting_copy(GCOMModelDRBFitting *self){ |
3698 | return (*self); |
3699 | } |
3700 | |
3701 | /* Put headers and other declarations here that are needed for compilation */ |
3702 | #include "GCOMObservation.hpp" |
3703 | |
3704 | SWIGINTERNstatic __attribute__ ((__unused__)) GCOMObservation GCOMObservation_copy(GCOMObservation *self){ |
3705 | return (*self); |
3706 | } |
3707 | |
3708 | /* Put headers and other declarations here that are needed for compilation */ |
3709 | #include "GCOMResponse.hpp" |
3710 | |
3711 | SWIGINTERNstatic __attribute__ ((__unused__)) GCOMResponse GCOMResponse_copy(GCOMResponse *self){ |
3712 | return (*self); |
3713 | } |
3714 | #ifdef __cplusplus199711L |
3715 | extern "C" { |
3716 | #endif |
3717 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3718 | PyObject *resultobj = 0; |
3719 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3720 | void *argp1 = 0 ; |
3721 | int res1 = 0 ; |
3722 | PyObject * obj0 = 0 ; |
3723 | |
3724 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail; |
3725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0x1 | 0, 0); |
3726 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3727 | 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); |
3728 | } |
3729 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3730 | delete arg1; |
3731 | resultobj = SWIG_Py_Void(); |
3732 | return resultobj; |
3733 | fail: |
3734 | return NULL__null; |
3735 | } |
3736 | |
3737 | |
3738 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3739 | PyObject *resultobj = 0; |
3740 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3741 | void *argp1 = 0 ; |
3742 | int res1 = 0 ; |
3743 | PyObject * obj0 = 0 ; |
3744 | PyObject *result = 0 ; |
3745 | |
3746 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail; |
3747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
3748 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3749 | 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); |
3750 | } |
3751 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3752 | try { |
3753 | result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); |
3754 | } |
3755 | catch(swig::stop_iteration &_e) { |
3756 | { |
3757 | (void)_e; |
3758 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3759 | SWIG_failgoto fail; |
3760 | } |
3761 | } |
3762 | |
3763 | resultobj = result; |
3764 | return resultobj; |
3765 | fail: |
3766 | return NULL__null; |
3767 | } |
3768 | |
3769 | |
3770 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3771 | PyObject *resultobj = 0; |
3772 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3773 | size_t arg2 ; |
3774 | void *argp1 = 0 ; |
3775 | int res1 = 0 ; |
3776 | size_t val2 ; |
3777 | int ecode2 = 0 ; |
3778 | PyObject * obj0 = 0 ; |
3779 | PyObject * obj1 = 0 ; |
3780 | swig::SwigPyIterator *result = 0 ; |
3781 | |
3782 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail; |
3783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
3784 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3785 | 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); |
3786 | } |
3787 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3788 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3789 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3790 | 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); |
3791 | } |
3792 | arg2 = static_cast< size_t >(val2); |
3793 | try { |
3794 | result = (swig::SwigPyIterator *)(arg1)->incr(arg2); |
3795 | } |
3796 | catch(swig::stop_iteration &_e) { |
3797 | { |
3798 | (void)_e; |
3799 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3800 | SWIG_failgoto fail; |
3801 | } |
3802 | } |
3803 | |
3804 | 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[29], 0 | 0); |
3805 | return resultobj; |
3806 | fail: |
3807 | return NULL__null; |
3808 | } |
3809 | |
3810 | |
3811 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3812 | PyObject *resultobj = 0; |
3813 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3814 | void *argp1 = 0 ; |
3815 | int res1 = 0 ; |
3816 | PyObject * obj0 = 0 ; |
3817 | swig::SwigPyIterator *result = 0 ; |
3818 | |
3819 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail; |
3820 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
3821 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3822 | 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); |
3823 | } |
3824 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3825 | try { |
3826 | result = (swig::SwigPyIterator *)(arg1)->incr(); |
3827 | } |
3828 | catch(swig::stop_iteration &_e) { |
3829 | { |
3830 | (void)_e; |
3831 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3832 | SWIG_failgoto fail; |
3833 | } |
3834 | } |
3835 | |
3836 | 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[29], 0 | 0); |
3837 | return resultobj; |
3838 | fail: |
3839 | return NULL__null; |
3840 | } |
3841 | |
3842 | |
3843 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { |
3844 | int argc; |
3845 | PyObject *argv[3]; |
3846 | int ii; |
3847 | |
3848 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3849 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3850 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3851 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3852 | } |
3853 | if (argc == 1) { |
3854 | int _v; |
3855 | void *vptr = 0; |
3856 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29 ], 0, 0); |
3857 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3858 | if (_v) { |
3859 | return _wrap_SwigPyIterator_incr__SWIG_1(self, args); |
3860 | } |
3861 | } |
3862 | if (argc == 2) { |
3863 | int _v; |
3864 | void *vptr = 0; |
3865 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29 ], 0, 0); |
3866 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3867 | if (_v) { |
3868 | { |
3869 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3870 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3871 | } |
3872 | if (_v) { |
3873 | return _wrap_SwigPyIterator_incr__SWIG_0(self, args); |
3874 | } |
3875 | } |
3876 | } |
3877 | |
3878 | fail: |
3879 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" |
3880 | " Possible C/C++ prototypes are:\n" |
3881 | " swig::SwigPyIterator::incr(size_t)\n" |
3882 | " swig::SwigPyIterator::incr()\n"); |
3883 | return 0; |
3884 | } |
3885 | |
3886 | |
3887 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3888 | PyObject *resultobj = 0; |
3889 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3890 | size_t arg2 ; |
3891 | void *argp1 = 0 ; |
3892 | int res1 = 0 ; |
3893 | size_t val2 ; |
3894 | int ecode2 = 0 ; |
3895 | PyObject * obj0 = 0 ; |
3896 | PyObject * obj1 = 0 ; |
3897 | swig::SwigPyIterator *result = 0 ; |
3898 | |
3899 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail; |
3900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
3901 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3902 | 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); |
3903 | } |
3904 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3905 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3906 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3907 | 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); |
3908 | } |
3909 | arg2 = static_cast< size_t >(val2); |
3910 | try { |
3911 | result = (swig::SwigPyIterator *)(arg1)->decr(arg2); |
3912 | } |
3913 | catch(swig::stop_iteration &_e) { |
3914 | { |
3915 | (void)_e; |
3916 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3917 | SWIG_failgoto fail; |
3918 | } |
3919 | } |
3920 | |
3921 | 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[29], 0 | 0); |
3922 | return resultobj; |
3923 | fail: |
3924 | return NULL__null; |
3925 | } |
3926 | |
3927 | |
3928 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3929 | PyObject *resultobj = 0; |
3930 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3931 | void *argp1 = 0 ; |
3932 | int res1 = 0 ; |
3933 | PyObject * obj0 = 0 ; |
3934 | swig::SwigPyIterator *result = 0 ; |
3935 | |
3936 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail; |
3937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
3938 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3939 | 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); |
3940 | } |
3941 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3942 | try { |
3943 | result = (swig::SwigPyIterator *)(arg1)->decr(); |
3944 | } |
3945 | catch(swig::stop_iteration &_e) { |
3946 | { |
3947 | (void)_e; |
3948 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3949 | SWIG_failgoto fail; |
3950 | } |
3951 | } |
3952 | |
3953 | 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[29], 0 | 0); |
3954 | return resultobj; |
3955 | fail: |
3956 | return NULL__null; |
3957 | } |
3958 | |
3959 | |
3960 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { |
3961 | int argc; |
3962 | PyObject *argv[3]; |
3963 | int ii; |
3964 | |
3965 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3966 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3967 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3968 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3969 | } |
3970 | if (argc == 1) { |
3971 | int _v; |
3972 | void *vptr = 0; |
3973 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29 ], 0, 0); |
3974 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3975 | if (_v) { |
3976 | return _wrap_SwigPyIterator_decr__SWIG_1(self, args); |
3977 | } |
3978 | } |
3979 | if (argc == 2) { |
3980 | int _v; |
3981 | void *vptr = 0; |
3982 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29 ], 0, 0); |
3983 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3984 | if (_v) { |
3985 | { |
3986 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3987 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3988 | } |
3989 | if (_v) { |
3990 | return _wrap_SwigPyIterator_decr__SWIG_0(self, args); |
3991 | } |
3992 | } |
3993 | } |
3994 | |
3995 | fail: |
3996 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" |
3997 | " Possible C/C++ prototypes are:\n" |
3998 | " swig::SwigPyIterator::decr(size_t)\n" |
3999 | " swig::SwigPyIterator::decr()\n"); |
4000 | return 0; |
4001 | } |
4002 | |
4003 | |
4004 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4005 | PyObject *resultobj = 0; |
4006 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4007 | swig::SwigPyIterator *arg2 = 0 ; |
4008 | void *argp1 = 0 ; |
4009 | int res1 = 0 ; |
4010 | void *argp2 = 0 ; |
4011 | int res2 = 0 ; |
4012 | PyObject * obj0 = 0 ; |
4013 | PyObject * obj1 = 0 ; |
4014 | ptrdiff_t result; |
4015 | |
4016 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail; |
4017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4018 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4019 | 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); |
4020 | } |
4021 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4022 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29] , 0 | 0, 0); |
4023 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4024 | 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); |
4025 | } |
4026 | if (!argp2) { |
4027 | 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 ); |
4028 | } |
4029 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4030 | try { |
4031 | result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); |
4032 | } |
4033 | catch(std::invalid_argument &_e) { |
4034 | 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[ 28]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[28], 0x1)); SWIG_failgoto fail; |
4035 | } |
4036 | |
4037 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4038 | return resultobj; |
4039 | fail: |
4040 | return NULL__null; |
4041 | } |
4042 | |
4043 | |
4044 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4045 | PyObject *resultobj = 0; |
4046 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4047 | swig::SwigPyIterator *arg2 = 0 ; |
4048 | void *argp1 = 0 ; |
4049 | int res1 = 0 ; |
4050 | void *argp2 = 0 ; |
4051 | int res2 = 0 ; |
4052 | PyObject * obj0 = 0 ; |
4053 | PyObject * obj1 = 0 ; |
4054 | bool result; |
4055 | |
4056 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail; |
4057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4058 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4059 | 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); |
4060 | } |
4061 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4062 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29] , 0 | 0, 0); |
4063 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4064 | 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); |
4065 | } |
4066 | if (!argp2) { |
4067 | 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 ); |
4068 | } |
4069 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4070 | try { |
4071 | result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); |
4072 | } |
4073 | catch(std::invalid_argument &_e) { |
4074 | 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[ 28]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[28], 0x1)); SWIG_failgoto fail; |
4075 | } |
4076 | |
4077 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4078 | return resultobj; |
4079 | fail: |
4080 | return NULL__null; |
4081 | } |
4082 | |
4083 | |
4084 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4085 | PyObject *resultobj = 0; |
4086 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4087 | void *argp1 = 0 ; |
4088 | int res1 = 0 ; |
4089 | PyObject * obj0 = 0 ; |
4090 | swig::SwigPyIterator *result = 0 ; |
4091 | |
4092 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail; |
4093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4094 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4095 | 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); |
4096 | } |
4097 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4098 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); |
4099 | 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[29], 0x1 | 0); |
4100 | return resultobj; |
4101 | fail: |
4102 | return NULL__null; |
4103 | } |
4104 | |
4105 | |
4106 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4107 | PyObject *resultobj = 0; |
4108 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4109 | void *argp1 = 0 ; |
4110 | int res1 = 0 ; |
4111 | PyObject * obj0 = 0 ; |
4112 | PyObject *result = 0 ; |
4113 | |
4114 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail; |
4115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4116 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4117 | 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); |
4118 | } |
4119 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4120 | try { |
4121 | result = (PyObject *)(arg1)->next(); |
4122 | } |
4123 | catch(swig::stop_iteration &_e) { |
4124 | { |
4125 | (void)_e; |
4126 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4127 | SWIG_failgoto fail; |
4128 | } |
4129 | } |
4130 | |
4131 | resultobj = result; |
4132 | return resultobj; |
4133 | fail: |
4134 | return NULL__null; |
4135 | } |
4136 | |
4137 | |
4138 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4139 | PyObject *resultobj = 0; |
4140 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4141 | void *argp1 = 0 ; |
4142 | int res1 = 0 ; |
4143 | PyObject * obj0 = 0 ; |
4144 | PyObject *result = 0 ; |
4145 | |
4146 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail; |
4147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4148 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4149 | 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); |
4150 | } |
4151 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4152 | try { |
4153 | result = (PyObject *)(arg1)->__next__(); |
4154 | } |
4155 | catch(swig::stop_iteration &_e) { |
4156 | { |
4157 | (void)_e; |
4158 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4159 | SWIG_failgoto fail; |
4160 | } |
4161 | } |
4162 | |
4163 | resultobj = result; |
4164 | return resultobj; |
4165 | fail: |
4166 | return NULL__null; |
4167 | } |
4168 | |
4169 | |
4170 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4171 | PyObject *resultobj = 0; |
4172 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4173 | void *argp1 = 0 ; |
4174 | int res1 = 0 ; |
4175 | PyObject * obj0 = 0 ; |
4176 | PyObject *result = 0 ; |
4177 | |
4178 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail; |
4179 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4180 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4181 | 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); |
4182 | } |
4183 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4184 | try { |
4185 | result = (PyObject *)(arg1)->previous(); |
4186 | } |
4187 | catch(swig::stop_iteration &_e) { |
4188 | { |
4189 | (void)_e; |
4190 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4191 | SWIG_failgoto fail; |
4192 | } |
4193 | } |
4194 | |
4195 | resultobj = result; |
4196 | return resultobj; |
4197 | fail: |
4198 | return NULL__null; |
4199 | } |
4200 | |
4201 | |
4202 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4203 | PyObject *resultobj = 0; |
4204 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4205 | ptrdiff_t arg2 ; |
4206 | void *argp1 = 0 ; |
4207 | int res1 = 0 ; |
4208 | ptrdiff_t val2 ; |
4209 | int ecode2 = 0 ; |
4210 | PyObject * obj0 = 0 ; |
4211 | PyObject * obj1 = 0 ; |
4212 | swig::SwigPyIterator *result = 0 ; |
4213 | |
4214 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail; |
4215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4216 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4217 | 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); |
4218 | } |
4219 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4220 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4221 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4222 | 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); |
4223 | } |
4224 | arg2 = static_cast< ptrdiff_t >(val2); |
4225 | try { |
4226 | result = (swig::SwigPyIterator *)(arg1)->advance(arg2); |
4227 | } |
4228 | catch(swig::stop_iteration &_e) { |
4229 | { |
4230 | (void)_e; |
4231 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4232 | SWIG_failgoto fail; |
4233 | } |
4234 | } |
4235 | |
4236 | 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[29], 0 | 0); |
4237 | return resultobj; |
4238 | fail: |
4239 | return NULL__null; |
4240 | } |
4241 | |
4242 | |
4243 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4244 | PyObject *resultobj = 0; |
4245 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4246 | swig::SwigPyIterator *arg2 = 0 ; |
4247 | void *argp1 = 0 ; |
4248 | int res1 = 0 ; |
4249 | void *argp2 = 0 ; |
4250 | int res2 = 0 ; |
4251 | PyObject * obj0 = 0 ; |
4252 | PyObject * obj1 = 0 ; |
4253 | bool result; |
4254 | |
4255 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
4256 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4257 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4258 | 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); |
4259 | } |
4260 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4261 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29] , 0 | 0, 0); |
4262 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4263 | 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); |
4264 | } |
4265 | if (!argp2) { |
4266 | 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 ); |
4267 | } |
4268 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4269 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); |
4270 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4271 | return resultobj; |
4272 | fail: |
4273 | return NULL__null; |
4274 | } |
4275 | |
4276 | |
4277 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4278 | PyObject *resultobj = 0; |
4279 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4280 | swig::SwigPyIterator *arg2 = 0 ; |
4281 | void *argp1 = 0 ; |
4282 | int res1 = 0 ; |
4283 | void *argp2 = 0 ; |
4284 | int res2 = 0 ; |
4285 | PyObject * obj0 = 0 ; |
4286 | PyObject * obj1 = 0 ; |
4287 | bool result; |
4288 | |
4289 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
4290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4291 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4292 | 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); |
4293 | } |
4294 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4295 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29] , 0 | 0, 0); |
4296 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4297 | 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); |
4298 | } |
4299 | if (!argp2) { |
4300 | 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 ); |
4301 | } |
4302 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4303 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); |
4304 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4305 | return resultobj; |
4306 | fail: |
4307 | return NULL__null; |
4308 | } |
4309 | |
4310 | |
4311 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4312 | PyObject *resultobj = 0; |
4313 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4314 | ptrdiff_t arg2 ; |
4315 | void *argp1 = 0 ; |
4316 | int res1 = 0 ; |
4317 | ptrdiff_t val2 ; |
4318 | int ecode2 = 0 ; |
4319 | PyObject * obj0 = 0 ; |
4320 | PyObject * obj1 = 0 ; |
4321 | swig::SwigPyIterator *result = 0 ; |
4322 | |
4323 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail; |
4324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0x1 | 0, 0); |
4325 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4326 | 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); |
4327 | } |
4328 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4329 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4330 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4331 | 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); |
4332 | } |
4333 | arg2 = static_cast< ptrdiff_t >(val2); |
4334 | try { |
4335 | result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); |
4336 | } |
4337 | catch(swig::stop_iteration &_e) { |
4338 | { |
4339 | (void)_e; |
4340 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4341 | SWIG_failgoto fail; |
4342 | } |
4343 | } |
4344 | |
4345 | 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[29], 0x1 | 0); |
4346 | return resultobj; |
4347 | fail: |
4348 | return NULL__null; |
4349 | } |
4350 | |
4351 | |
4352 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4353 | PyObject *resultobj = 0; |
4354 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4355 | ptrdiff_t arg2 ; |
4356 | void *argp1 = 0 ; |
4357 | int res1 = 0 ; |
4358 | ptrdiff_t val2 ; |
4359 | int ecode2 = 0 ; |
4360 | PyObject * obj0 = 0 ; |
4361 | PyObject * obj1 = 0 ; |
4362 | swig::SwigPyIterator *result = 0 ; |
4363 | |
4364 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail; |
4365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0x1 | 0, 0); |
4366 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4367 | 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); |
4368 | } |
4369 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4370 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4371 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4372 | 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); |
4373 | } |
4374 | arg2 = static_cast< ptrdiff_t >(val2); |
4375 | try { |
4376 | result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); |
4377 | } |
4378 | catch(swig::stop_iteration &_e) { |
4379 | { |
4380 | (void)_e; |
4381 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4382 | SWIG_failgoto fail; |
4383 | } |
4384 | } |
4385 | |
4386 | 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[29], 0x1 | 0); |
4387 | return resultobj; |
4388 | fail: |
4389 | return NULL__null; |
4390 | } |
4391 | |
4392 | |
4393 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4394 | PyObject *resultobj = 0; |
4395 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4396 | ptrdiff_t arg2 ; |
4397 | void *argp1 = 0 ; |
4398 | int res1 = 0 ; |
4399 | ptrdiff_t val2 ; |
4400 | int ecode2 = 0 ; |
4401 | PyObject * obj0 = 0 ; |
4402 | PyObject * obj1 = 0 ; |
4403 | swig::SwigPyIterator *result = 0 ; |
4404 | |
4405 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail; |
4406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4407 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4408 | 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); |
4409 | } |
4410 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4411 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4412 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4413 | 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); |
4414 | } |
4415 | arg2 = static_cast< ptrdiff_t >(val2); |
4416 | try { |
4417 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); |
4418 | } |
4419 | catch(swig::stop_iteration &_e) { |
4420 | { |
4421 | (void)_e; |
4422 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4423 | SWIG_failgoto fail; |
4424 | } |
4425 | } |
4426 | |
4427 | 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[29], 0x1 | 0); |
4428 | return resultobj; |
4429 | fail: |
4430 | return NULL__null; |
4431 | } |
4432 | |
4433 | |
4434 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4435 | PyObject *resultobj = 0; |
4436 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4437 | ptrdiff_t arg2 ; |
4438 | void *argp1 = 0 ; |
4439 | int res1 = 0 ; |
4440 | ptrdiff_t val2 ; |
4441 | int ecode2 = 0 ; |
4442 | PyObject * obj0 = 0 ; |
4443 | PyObject * obj1 = 0 ; |
4444 | swig::SwigPyIterator *result = 0 ; |
4445 | |
4446 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4448 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4449 | 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); |
4450 | } |
4451 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4452 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4453 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4454 | 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); |
4455 | } |
4456 | arg2 = static_cast< ptrdiff_t >(val2); |
4457 | try { |
4458 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); |
4459 | } |
4460 | catch(swig::stop_iteration &_e) { |
4461 | { |
4462 | (void)_e; |
4463 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4464 | SWIG_failgoto fail; |
4465 | } |
4466 | } |
4467 | |
4468 | 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[29], 0x1 | 0); |
4469 | return resultobj; |
4470 | fail: |
4471 | return NULL__null; |
4472 | } |
4473 | |
4474 | |
4475 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4476 | PyObject *resultobj = 0; |
4477 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4478 | swig::SwigPyIterator *arg2 = 0 ; |
4479 | void *argp1 = 0 ; |
4480 | int res1 = 0 ; |
4481 | void *argp2 = 0 ; |
4482 | int res2 = 0 ; |
4483 | PyObject * obj0 = 0 ; |
4484 | PyObject * obj1 = 0 ; |
4485 | ptrdiff_t result; |
4486 | |
4487 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4488 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29] , 0 | 0, 0); |
4489 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4490 | 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); |
4491 | } |
4492 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4493 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29] , 0 | 0, 0); |
4494 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4495 | 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); |
4496 | } |
4497 | if (!argp2) { |
4498 | 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 ); |
4499 | } |
4500 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4501 | result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); |
4502 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4503 | return resultobj; |
4504 | fail: |
4505 | return NULL__null; |
4506 | } |
4507 | |
4508 | |
4509 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { |
4510 | int argc; |
4511 | PyObject *argv[3]; |
4512 | int ii; |
4513 | |
4514 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4515 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4516 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4517 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4518 | } |
4519 | if (argc == 2) { |
4520 | int _v; |
4521 | void *vptr = 0; |
4522 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29 ], 0, 0); |
4523 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4524 | if (_v) { |
4525 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[29], 0, 0 ); |
4526 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4527 | if (_v) { |
4528 | return _wrap_SwigPyIterator___sub____SWIG_1(self, args); |
4529 | } |
4530 | } |
4531 | } |
4532 | if (argc == 2) { |
4533 | int _v; |
4534 | void *vptr = 0; |
4535 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[29 ], 0, 0); |
4536 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4537 | if (_v) { |
4538 | { |
4539 | int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null); |
4540 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4541 | } |
4542 | if (_v) { |
4543 | return _wrap_SwigPyIterator___sub____SWIG_0(self, args); |
4544 | } |
4545 | } |
4546 | } |
4547 | |
4548 | fail: |
4549 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
4550 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
4551 | } |
4552 | |
4553 | |
4554 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4555 | PyObject *obj; |
4556 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4557 | SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[29], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4558 | return SWIG_Py_Void(); |
4559 | } |
4560 | |
4561 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventBin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4562 | PyObject *resultobj = 0; |
4563 | GCOMEventBin *result = 0 ; |
4564 | |
4565 | if (!PyArg_ParseTuple(args,(char *)":new_GCOMEventBin")) SWIG_failgoto fail; |
4566 | { |
4567 | try { |
4568 | result = (GCOMEventBin *)new GCOMEventBin(); |
4569 | } |
4570 | catch (const GException::out_of_range& e) { |
4571 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4572 | } |
4573 | catch (const GExceptionHandler& e) { |
4574 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4575 | } |
4576 | catch (const std::exception& e) { |
4577 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4578 | } |
4579 | } |
4580 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventBin, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[1], (( 0x1 << 1) | 0x1) | 0); |
4581 | return resultobj; |
4582 | fail: |
4583 | return NULL__null; |
4584 | } |
4585 | |
4586 | |
4587 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventBin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4588 | PyObject *resultobj = 0; |
4589 | GCOMEventBin *arg1 = 0 ; |
4590 | void *argp1 = 0 ; |
4591 | int res1 = 0 ; |
4592 | PyObject * obj0 = 0 ; |
4593 | GCOMEventBin *result = 0 ; |
4594 | |
4595 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMEventBin",&obj0)) SWIG_failgoto fail; |
4596 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCOMEventBin, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4597 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMEventBin" "', argument " "1"" of type '" "GCOMEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMEventBin" "', argument " "1"" of type '" "GCOMEventBin const &""'"); goto fail; } while(0); |
4599 | } |
4600 | if (!argp1) { |
4601 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMEventBin" "', argument " "1"" of type '" "GCOMEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMEventBin" "', argument " "1"" of type '" "GCOMEventBin const &""'"); goto fail; } while(0); |
4602 | } |
4603 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4604 | { |
4605 | try { |
4606 | result = (GCOMEventBin *)new GCOMEventBin((GCOMEventBin const &)*arg1); |
4607 | } |
4608 | catch (const GException::out_of_range& e) { |
4609 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4610 | } |
4611 | catch (const GExceptionHandler& e) { |
4612 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4613 | } |
4614 | catch (const std::exception& e) { |
4615 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4616 | } |
4617 | } |
4618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventBin, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[1], (( 0x1 << 1) | 0x1) | 0); |
4619 | return resultobj; |
4620 | fail: |
4621 | return NULL__null; |
4622 | } |
4623 | |
4624 | |
4625 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventBin(PyObject *self, PyObject *args) { |
4626 | int argc; |
4627 | PyObject *argv[2]; |
4628 | int ii; |
4629 | |
4630 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4631 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4632 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
4633 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4634 | } |
4635 | if (argc == 0) { |
4636 | return _wrap_new_GCOMEventBin__SWIG_0(self, args); |
4637 | } |
4638 | if (argc == 1) { |
4639 | int _v; |
4640 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCOMEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[1], 0, 0); |
4641 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4642 | if (_v) { |
4643 | return _wrap_new_GCOMEventBin__SWIG_1(self, args); |
4644 | } |
4645 | } |
4646 | |
4647 | fail: |
4648 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCOMEventBin'.\n" |
4649 | " Possible C/C++ prototypes are:\n" |
4650 | " GCOMEventBin::GCOMEventBin()\n" |
4651 | " GCOMEventBin::GCOMEventBin(GCOMEventBin const &)\n"); |
4652 | return 0; |
4653 | } |
4654 | |
4655 | |
4656 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCOMEventBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4657 | PyObject *resultobj = 0; |
4658 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4659 | void *argp1 = 0 ; |
4660 | int res1 = 0 ; |
4661 | PyObject * obj0 = 0 ; |
4662 | |
4663 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GCOMEventBin",&obj0)) SWIG_failgoto fail; |
4664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0x1 | 0, 0); |
4665 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCOMEventBin" "', argument " "1"" of type '" "GCOMEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GCOMEventBin" "', argument " "1"" of type '" "GCOMEventBin *""'"); goto fail; } while(0); |
4667 | } |
4668 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4669 | { |
4670 | try { |
4671 | delete arg1; |
4672 | } |
4673 | catch (const GException::out_of_range& e) { |
4674 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4675 | } |
4676 | catch (const GExceptionHandler& e) { |
4677 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4678 | } |
4679 | catch (const std::exception& e) { |
4680 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4681 | } |
4682 | } |
4683 | resultobj = SWIG_Py_Void(); |
4684 | return resultobj; |
4685 | fail: |
4686 | return NULL__null; |
4687 | } |
4688 | |
4689 | |
4690 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4691 | PyObject *resultobj = 0; |
4692 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4693 | void *argp1 = 0 ; |
4694 | int res1 = 0 ; |
4695 | PyObject * obj0 = 0 ; |
4696 | |
4697 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_clear",&obj0)) SWIG_failgoto fail; |
4698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4699 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_clear" "', argument " "1"" of type '" "GCOMEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_clear" "', argument " "1"" of type '" "GCOMEventBin *""'"); goto fail; } while(0); |
4701 | } |
4702 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4703 | { |
4704 | try { |
4705 | (arg1)->clear(); |
4706 | } |
4707 | catch (const GException::out_of_range& e) { |
4708 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4709 | } |
4710 | catch (const GExceptionHandler& e) { |
4711 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4712 | } |
4713 | catch (const std::exception& e) { |
4714 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4715 | } |
4716 | } |
4717 | resultobj = SWIG_Py_Void(); |
4718 | return resultobj; |
4719 | fail: |
4720 | return NULL__null; |
4721 | } |
4722 | |
4723 | |
4724 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4725 | PyObject *resultobj = 0; |
4726 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4727 | void *argp1 = 0 ; |
4728 | int res1 = 0 ; |
4729 | PyObject * obj0 = 0 ; |
4730 | GCOMEventBin *result = 0 ; |
4731 | |
4732 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_clone",&obj0)) SWIG_failgoto fail; |
4733 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4734 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4735 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_clone" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_clone" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
4736 | } |
4737 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4738 | { |
4739 | try { |
4740 | result = (GCOMEventBin *)((GCOMEventBin const *)arg1)->clone(); |
4741 | } |
4742 | catch (const GException::out_of_range& e) { |
4743 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4744 | } |
4745 | catch (const GExceptionHandler& e) { |
4746 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4747 | } |
4748 | catch (const std::exception& e) { |
4749 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4750 | } |
4751 | } |
4752 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[1], 0 | 0); |
4753 | return resultobj; |
4754 | fail: |
4755 | return NULL__null; |
4756 | } |
4757 | |
4758 | |
4759 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4760 | PyObject *resultobj = 0; |
4761 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4762 | void *argp1 = 0 ; |
4763 | int res1 = 0 ; |
4764 | PyObject * obj0 = 0 ; |
4765 | double result; |
4766 | |
4767 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_size",&obj0)) SWIG_failgoto fail; |
4768 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4769 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_size" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_size" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
4771 | } |
4772 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4773 | { |
4774 | try { |
4775 | result = (double)((GCOMEventBin const *)arg1)->size(); |
4776 | } |
4777 | catch (const GException::out_of_range& e) { |
4778 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4779 | } |
4780 | catch (const GExceptionHandler& e) { |
4781 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4782 | } |
4783 | catch (const std::exception& e) { |
4784 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4785 | } |
4786 | } |
4787 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
4788 | return resultobj; |
4789 | fail: |
4790 | return NULL__null; |
4791 | } |
4792 | |
4793 | |
4794 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4795 | PyObject *resultobj = 0; |
4796 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4797 | void *argp1 = 0 ; |
4798 | int res1 = 0 ; |
4799 | PyObject * obj0 = 0 ; |
4800 | GCOMInstDir *result = 0 ; |
4801 | |
4802 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_dir",&obj0)) SWIG_failgoto fail; |
4803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4804 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_dir" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_dir" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
4806 | } |
4807 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4808 | { |
4809 | try { |
4810 | result = (GCOMInstDir *) &((GCOMEventBin const *)arg1)->dir(); |
4811 | } |
4812 | catch (const GException::out_of_range& e) { |
4813 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4814 | } |
4815 | catch (const GExceptionHandler& e) { |
4816 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4817 | } |
4818 | catch (const std::exception& e) { |
4819 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4820 | } |
4821 | } |
4822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], 0 | 0); |
4823 | return resultobj; |
4824 | fail: |
4825 | return NULL__null; |
4826 | } |
4827 | |
4828 | |
4829 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4830 | PyObject *resultobj = 0; |
4831 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4832 | void *argp1 = 0 ; |
4833 | int res1 = 0 ; |
4834 | PyObject * obj0 = 0 ; |
4835 | GEnergy *result = 0 ; |
4836 | |
4837 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_energy",&obj0)) SWIG_failgoto fail; |
4838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4839 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_energy" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_energy" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
4841 | } |
4842 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4843 | { |
4844 | try { |
4845 | result = (GEnergy *) &((GCOMEventBin const *)arg1)->energy(); |
4846 | } |
4847 | catch (const GException::out_of_range& e) { |
4848 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4849 | } |
4850 | catch (const GExceptionHandler& e) { |
4851 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4852 | } |
4853 | catch (const std::exception& e) { |
4854 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4855 | } |
4856 | } |
4857 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], 0 | 0); |
4858 | return resultobj; |
4859 | fail: |
4860 | return NULL__null; |
4861 | } |
4862 | |
4863 | |
4864 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4865 | PyObject *resultobj = 0; |
4866 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4867 | void *argp1 = 0 ; |
4868 | int res1 = 0 ; |
4869 | PyObject * obj0 = 0 ; |
4870 | GTime *result = 0 ; |
4871 | |
4872 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_time",&obj0)) SWIG_failgoto fail; |
4873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4874 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_time" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_time" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
4876 | } |
4877 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4878 | { |
4879 | try { |
4880 | result = (GTime *) &((GCOMEventBin const *)arg1)->time(); |
4881 | } |
4882 | catch (const GException::out_of_range& e) { |
4883 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4884 | } |
4885 | catch (const GExceptionHandler& e) { |
4886 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4887 | } |
4888 | catch (const std::exception& e) { |
4889 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4890 | } |
4891 | } |
4892 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[25], 0 | 0); |
4893 | return resultobj; |
4894 | fail: |
4895 | return NULL__null; |
4896 | } |
4897 | |
4898 | |
4899 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_counts__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4900 | PyObject *resultobj = 0; |
4901 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4902 | void *argp1 = 0 ; |
4903 | int res1 = 0 ; |
4904 | PyObject * obj0 = 0 ; |
4905 | double result; |
4906 | |
4907 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_counts",&obj0)) SWIG_failgoto fail; |
4908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4909 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_counts" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_counts" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
4911 | } |
4912 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4913 | { |
4914 | try { |
4915 | result = (double)((GCOMEventBin const *)arg1)->counts(); |
4916 | } |
4917 | catch (const GException::out_of_range& e) { |
4918 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4919 | } |
4920 | catch (const GExceptionHandler& e) { |
4921 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4922 | } |
4923 | catch (const std::exception& e) { |
4924 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4925 | } |
4926 | } |
4927 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
4928 | return resultobj; |
4929 | fail: |
4930 | return NULL__null; |
4931 | } |
4932 | |
4933 | |
4934 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4935 | PyObject *resultobj = 0; |
4936 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4937 | void *argp1 = 0 ; |
4938 | int res1 = 0 ; |
4939 | PyObject * obj0 = 0 ; |
4940 | double result; |
4941 | |
4942 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_error",&obj0)) SWIG_failgoto fail; |
4943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4944 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_error" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_error" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
4946 | } |
4947 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4948 | { |
4949 | try { |
4950 | result = (double)((GCOMEventBin const *)arg1)->error(); |
4951 | } |
4952 | catch (const GException::out_of_range& e) { |
4953 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4954 | } |
4955 | catch (const GExceptionHandler& e) { |
4956 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4957 | } |
4958 | catch (const std::exception& e) { |
4959 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4960 | } |
4961 | } |
4962 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
4963 | return resultobj; |
4964 | fail: |
4965 | return NULL__null; |
4966 | } |
4967 | |
4968 | |
4969 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_counts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4970 | PyObject *resultobj = 0; |
4971 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
4972 | double *arg2 = 0 ; |
4973 | void *argp1 = 0 ; |
4974 | int res1 = 0 ; |
4975 | double temp2 ; |
4976 | double val2 ; |
4977 | int ecode2 = 0 ; |
4978 | PyObject * obj0 = 0 ; |
4979 | PyObject * obj1 = 0 ; |
4980 | |
4981 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMEventBin_counts",&obj0,&obj1)) SWIG_failgoto fail; |
4982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
4983 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_counts" "', argument " "1"" of type '" "GCOMEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_counts" "', argument " "1"" of type '" "GCOMEventBin *""'"); goto fail; } while(0); |
4985 | } |
4986 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
4987 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
4988 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4989 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMEventBin_counts" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMEventBin_counts" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
4990 | } |
4991 | temp2 = static_cast< double >(val2); |
4992 | arg2 = &temp2; |
4993 | { |
4994 | try { |
4995 | (arg1)->counts((double const &)*arg2); |
4996 | } |
4997 | catch (const GException::out_of_range& e) { |
4998 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4999 | } |
5000 | catch (const GExceptionHandler& e) { |
5001 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5002 | } |
5003 | catch (const std::exception& e) { |
5004 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5005 | } |
5006 | } |
5007 | resultobj = SWIG_Py_Void(); |
5008 | return resultobj; |
5009 | fail: |
5010 | return NULL__null; |
5011 | } |
5012 | |
5013 | |
5014 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_counts(PyObject *self, PyObject *args) { |
5015 | int argc; |
5016 | PyObject *argv[3]; |
5017 | int ii; |
5018 | |
5019 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5020 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5021 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5022 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5023 | } |
5024 | if (argc == 1) { |
5025 | int _v; |
5026 | void *vptr = 0; |
5027 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1 ], 0, 0); |
5028 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5029 | if (_v) { |
5030 | return _wrap_GCOMEventBin_counts__SWIG_0(self, args); |
5031 | } |
5032 | } |
5033 | if (argc == 2) { |
5034 | int _v; |
5035 | void *vptr = 0; |
5036 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1 ], 0, 0); |
5037 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5038 | if (_v) { |
5039 | { |
5040 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
5041 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5042 | } |
5043 | if (_v) { |
5044 | return _wrap_GCOMEventBin_counts__SWIG_1(self, args); |
5045 | } |
5046 | } |
5047 | } |
5048 | |
5049 | fail: |
5050 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMEventBin_counts'.\n" |
5051 | " Possible C/C++ prototypes are:\n" |
5052 | " GCOMEventBin::counts() const\n" |
5053 | " GCOMEventBin::counts(double const &)\n"); |
5054 | return 0; |
5055 | } |
5056 | |
5057 | |
5058 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5059 | PyObject *resultobj = 0; |
5060 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
5061 | void *argp1 = 0 ; |
5062 | int res1 = 0 ; |
5063 | PyObject * obj0 = 0 ; |
5064 | int *result = 0 ; |
5065 | |
5066 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_index",&obj0)) SWIG_failgoto fail; |
5067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
5068 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_index" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_index" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
5070 | } |
5071 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
5072 | { |
5073 | try { |
5074 | result = (int *) &((GCOMEventBin const *)arg1)->index(); |
5075 | } |
5076 | catch (const GException::out_of_range& e) { |
5077 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5078 | } |
5079 | catch (const GExceptionHandler& e) { |
5080 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5081 | } |
5082 | catch (const std::exception& e) { |
5083 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5084 | } |
5085 | } |
5086 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
5087 | return resultobj; |
5088 | fail: |
5089 | return NULL__null; |
5090 | } |
5091 | |
5092 | |
5093 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_omega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5094 | PyObject *resultobj = 0; |
5095 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
5096 | void *argp1 = 0 ; |
5097 | int res1 = 0 ; |
5098 | PyObject * obj0 = 0 ; |
5099 | double *result = 0 ; |
5100 | |
5101 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_omega",&obj0)) SWIG_failgoto fail; |
5102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
5103 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_omega" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_omega" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
5105 | } |
5106 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
5107 | { |
5108 | try { |
5109 | result = (double *) &((GCOMEventBin const *)arg1)->omega(); |
5110 | } |
5111 | catch (const GException::out_of_range& e) { |
5112 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5113 | } |
5114 | catch (const GExceptionHandler& e) { |
5115 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5116 | } |
5117 | catch (const std::exception& e) { |
5118 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5119 | } |
5120 | } |
5121 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5122 | return resultobj; |
5123 | fail: |
5124 | return NULL__null; |
5125 | } |
5126 | |
5127 | |
5128 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_ewidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5129 | PyObject *resultobj = 0; |
5130 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
5131 | void *argp1 = 0 ; |
5132 | int res1 = 0 ; |
5133 | PyObject * obj0 = 0 ; |
5134 | GEnergy *result = 0 ; |
5135 | |
5136 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_ewidth",&obj0)) SWIG_failgoto fail; |
5137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
5138 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_ewidth" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_ewidth" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
5140 | } |
5141 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
5142 | { |
5143 | try { |
5144 | result = (GEnergy *) &((GCOMEventBin const *)arg1)->ewidth(); |
5145 | } |
5146 | catch (const GException::out_of_range& e) { |
5147 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5148 | } |
5149 | catch (const GExceptionHandler& e) { |
5150 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5151 | } |
5152 | catch (const std::exception& e) { |
5153 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5154 | } |
5155 | } |
5156 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], 0 | 0); |
5157 | return resultobj; |
5158 | fail: |
5159 | return NULL__null; |
5160 | } |
5161 | |
5162 | |
5163 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_ontime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5164 | PyObject *resultobj = 0; |
5165 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
5166 | void *argp1 = 0 ; |
5167 | int res1 = 0 ; |
5168 | PyObject * obj0 = 0 ; |
5169 | double *result = 0 ; |
5170 | |
5171 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_ontime",&obj0)) SWIG_failgoto fail; |
5172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
5173 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_ontime" "', argument " "1"" of type '" "GCOMEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_ontime" "', argument " "1"" of type '" "GCOMEventBin const *""'"); goto fail; } while (0); |
5175 | } |
5176 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
5177 | { |
5178 | try { |
5179 | result = (double *) &((GCOMEventBin const *)arg1)->ontime(); |
5180 | } |
5181 | catch (const GException::out_of_range& e) { |
5182 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5183 | } |
5184 | catch (const GExceptionHandler& e) { |
5185 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5186 | } |
5187 | catch (const std::exception& e) { |
5188 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5189 | } |
5190 | } |
5191 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5192 | return resultobj; |
5193 | fail: |
5194 | return NULL__null; |
5195 | } |
5196 | |
5197 | |
5198 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventBin_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5199 | PyObject *resultobj = 0; |
5200 | GCOMEventBin *arg1 = (GCOMEventBin *) 0 ; |
5201 | void *argp1 = 0 ; |
5202 | int res1 = 0 ; |
5203 | PyObject * obj0 = 0 ; |
5204 | GCOMEventBin result; |
5205 | |
5206 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventBin_copy",&obj0)) SWIG_failgoto fail; |
5207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1], 0 | 0, 0); |
5208 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventBin_copy" "', argument " "1"" of type '" "GCOMEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventBin_copy" "', argument " "1"" of type '" "GCOMEventBin *""'"); goto fail; } while(0); |
5210 | } |
5211 | arg1 = reinterpret_cast< GCOMEventBin * >(argp1); |
5212 | { |
5213 | try { |
5214 | result = GCOMEventBin_copy(arg1); |
5215 | } |
5216 | catch (const GException::out_of_range& e) { |
5217 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5218 | } |
5219 | catch (const GExceptionHandler& e) { |
5220 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5221 | } |
5222 | catch (const std::exception& e) { |
5223 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5224 | } |
5225 | } |
5226 | resultobj = SWIG_NewPointerObj((new GCOMEventBin(static_cast< const GCOMEventBin& >(result))), SWIGTYPE_p_GCOMEventBin, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCOMEventBin(static_cast < const GCOMEventBin& >(result))), swig_types[1], 0x1 | 0); |
5227 | return resultobj; |
5228 | fail: |
5229 | return NULL__null; |
5230 | } |
5231 | |
5232 | |
5233 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCOMEventBin_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5234 | PyObject *obj; |
5235 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
5236 | SWIG_TypeNewClientData(SWIGTYPE_p_GCOMEventBinswig_types[1], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
5237 | return SWIG_Py_Void(); |
5238 | } |
5239 | |
5240 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventCube__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5241 | PyObject *resultobj = 0; |
5242 | GCOMEventCube *result = 0 ; |
5243 | |
5244 | if (!PyArg_ParseTuple(args,(char *)":new_GCOMEventCube")) SWIG_failgoto fail; |
5245 | { |
5246 | try { |
5247 | result = (GCOMEventCube *)new GCOMEventCube(); |
5248 | } |
5249 | catch (const GException::out_of_range& e) { |
5250 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5251 | } |
5252 | catch (const GExceptionHandler& e) { |
5253 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5254 | } |
5255 | catch (const std::exception& e) { |
5256 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5257 | } |
5258 | } |
5259 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
5260 | return resultobj; |
5261 | fail: |
5262 | return NULL__null; |
5263 | } |
5264 | |
5265 | |
5266 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventCube__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5267 | PyObject *resultobj = 0; |
5268 | std::string *arg1 = 0 ; |
5269 | int res1 = SWIG_OLDOBJ((0)) ; |
5270 | PyObject * obj0 = 0 ; |
5271 | GCOMEventCube *result = 0 ; |
5272 | |
5273 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMEventCube",&obj0)) SWIG_failgoto fail; |
5274 | { |
5275 | std::string *ptr = (std::string *)0; |
5276 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
5277 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
5279 | } |
5280 | if (!ptr) { |
5281 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
5282 | } |
5283 | arg1 = ptr; |
5284 | } |
5285 | { |
5286 | try { |
5287 | result = (GCOMEventCube *)new GCOMEventCube((std::string const &)*arg1); |
5288 | } |
5289 | catch (const GException::out_of_range& e) { |
5290 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5291 | } |
5292 | catch (const GExceptionHandler& e) { |
5293 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5294 | } |
5295 | catch (const std::exception& e) { |
5296 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5297 | } |
5298 | } |
5299 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
5300 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5301 | return resultobj; |
5302 | fail: |
5303 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
5304 | return NULL__null; |
5305 | } |
5306 | |
5307 | |
5308 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventCube__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5309 | PyObject *resultobj = 0; |
5310 | GSkymap *arg1 = 0 ; |
5311 | GEbounds *arg2 = 0 ; |
5312 | GGti *arg3 = 0 ; |
5313 | double *arg4 = 0 ; |
5314 | double *arg5 = 0 ; |
5315 | void *argp1 = 0 ; |
5316 | int res1 = 0 ; |
5317 | void *argp2 = 0 ; |
5318 | int res2 = 0 ; |
5319 | void *argp3 = 0 ; |
5320 | int res3 = 0 ; |
5321 | double temp4 ; |
5322 | double val4 ; |
5323 | int ecode4 = 0 ; |
5324 | double temp5 ; |
5325 | double val5 ; |
5326 | int ecode5 = 0 ; |
5327 | PyObject * obj0 = 0 ; |
5328 | PyObject * obj1 = 0 ; |
5329 | PyObject * obj2 = 0 ; |
5330 | PyObject * obj3 = 0 ; |
5331 | PyObject * obj4 = 0 ; |
5332 | GCOMEventCube *result = 0 ; |
5333 | |
5334 | if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_GCOMEventCube",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail; |
5335 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[24] , 0 | 0, 0); |
5336 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GSkymap const &""'"); goto fail; } while (0); |
5338 | } |
5339 | if (!argp1) { |
5340 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GSkymap const &""'"); goto fail; } while(0); |
5341 | } |
5342 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
5343 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
5344 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5345 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GCOMEventCube" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GCOMEventCube" "', argument " "2"" of type '" "GEbounds const &""'"); goto fail; } while (0); |
5346 | } |
5347 | if (!argp2) { |
5348 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "2"" of type '" "GEbounds const &""'"); goto fail; } while(0); |
5349 | } |
5350 | arg2 = reinterpret_cast< GEbounds * >(argp2); |
5351 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GGti, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[15] , 0 | 0, 0); |
5352 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
5353 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GCOMEventCube" "', argument " "3"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "new_GCOMEventCube" "', argument " "3"" of type '" "GGti const &""'"); goto fail; } while(0 ); |
5354 | } |
5355 | if (!argp3) { |
5356 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "3"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "3"" of type '" "GGti const &""'"); goto fail; } while(0); |
5357 | } |
5358 | arg3 = reinterpret_cast< GGti * >(argp3); |
5359 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
5360 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
5361 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GCOMEventCube" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GCOMEventCube" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
5362 | } |
5363 | temp4 = static_cast< double >(val4); |
5364 | arg4 = &temp4; |
5365 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
5366 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
5367 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GCOMEventCube" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GCOMEventCube" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
5368 | } |
5369 | temp5 = static_cast< double >(val5); |
5370 | arg5 = &temp5; |
5371 | { |
5372 | try { |
5373 | result = (GCOMEventCube *)new GCOMEventCube((GSkymap const &)*arg1,(GEbounds const &)*arg2,(GGti const &)*arg3,(double const &)*arg4,(double const &)*arg5); |
5374 | } |
5375 | catch (const GException::out_of_range& e) { |
5376 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5377 | } |
5378 | catch (const GExceptionHandler& e) { |
5379 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5380 | } |
5381 | catch (const std::exception& e) { |
5382 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5383 | } |
5384 | } |
5385 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
5386 | return resultobj; |
5387 | fail: |
5388 | return NULL__null; |
5389 | } |
5390 | |
5391 | |
5392 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventCube__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5393 | PyObject *resultobj = 0; |
5394 | GCOMEventCube *arg1 = 0 ; |
5395 | void *argp1 = 0 ; |
5396 | int res1 = 0 ; |
5397 | PyObject * obj0 = 0 ; |
5398 | GCOMEventCube *result = 0 ; |
5399 | |
5400 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMEventCube",&obj0)) SWIG_failgoto fail; |
5401 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCOMEventCube, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5402 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GCOMEventCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GCOMEventCube const &""'"); goto fail; } while(0); |
5404 | } |
5405 | if (!argp1) { |
5406 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GCOMEventCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMEventCube" "', argument " "1"" of type '" "GCOMEventCube const &""'"); goto fail; } while(0); |
5407 | } |
5408 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5409 | { |
5410 | try { |
5411 | result = (GCOMEventCube *)new GCOMEventCube((GCOMEventCube const &)*arg1); |
5412 | } |
5413 | catch (const GException::out_of_range& e) { |
5414 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5415 | } |
5416 | catch (const GExceptionHandler& e) { |
5417 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5418 | } |
5419 | catch (const std::exception& e) { |
5420 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5421 | } |
5422 | } |
5423 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], (( 0x1 << 1) | 0x1) | 0); |
5424 | return resultobj; |
5425 | fail: |
5426 | return NULL__null; |
5427 | } |
5428 | |
5429 | |
5430 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMEventCube(PyObject *self, PyObject *args) { |
5431 | int argc; |
5432 | PyObject *argv[6]; |
5433 | int ii; |
5434 | |
5435 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5436 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5437 | for (ii = 0; (ii < 5) && (ii < argc); ii++) { |
5438 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5439 | } |
5440 | if (argc == 0) { |
5441 | return _wrap_new_GCOMEventCube__SWIG_0(self, args); |
5442 | } |
5443 | if (argc == 1) { |
5444 | int _v; |
5445 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCOMEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[2], 0, 0); |
5446 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5447 | if (_v) { |
5448 | return _wrap_new_GCOMEventCube__SWIG_3(self, args); |
5449 | } |
5450 | } |
5451 | if (argc == 1) { |
5452 | int _v; |
5453 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5454 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5455 | if (_v) { |
5456 | return _wrap_new_GCOMEventCube__SWIG_1(self, args); |
5457 | } |
5458 | } |
5459 | if (argc == 5) { |
5460 | int _v; |
5461 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[24], 0, 0 ); |
5462 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5463 | if (_v) { |
5464 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[7], 0, 0); |
5465 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5466 | if (_v) { |
5467 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[15], 0, 0 ); |
5468 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5469 | if (_v) { |
5470 | { |
5471 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
5472 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5473 | } |
5474 | if (_v) { |
5475 | { |
5476 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
5477 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5478 | } |
5479 | if (_v) { |
5480 | return _wrap_new_GCOMEventCube__SWIG_2(self, args); |
5481 | } |
5482 | } |
5483 | } |
5484 | } |
5485 | } |
5486 | } |
5487 | |
5488 | fail: |
5489 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCOMEventCube'.\n" |
5490 | " Possible C/C++ prototypes are:\n" |
5491 | " GCOMEventCube::GCOMEventCube()\n" |
5492 | " GCOMEventCube::GCOMEventCube(std::string const &)\n" |
5493 | " GCOMEventCube::GCOMEventCube(GSkymap const &,GEbounds const &,GGti const &,double const &,double const &)\n" |
5494 | " GCOMEventCube::GCOMEventCube(GCOMEventCube const &)\n"); |
5495 | return 0; |
5496 | } |
5497 | |
5498 | |
5499 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCOMEventCube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5500 | PyObject *resultobj = 0; |
5501 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5502 | void *argp1 = 0 ; |
5503 | int res1 = 0 ; |
5504 | PyObject * obj0 = 0 ; |
5505 | |
5506 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GCOMEventCube",&obj0)) SWIG_failgoto fail; |
5507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0x1 | 0, 0); |
5508 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCOMEventCube" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GCOMEventCube" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail; } while(0); |
5510 | } |
5511 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5512 | { |
5513 | try { |
5514 | delete arg1; |
5515 | } |
5516 | catch (const GException::out_of_range& e) { |
5517 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5518 | } |
5519 | catch (const GExceptionHandler& e) { |
5520 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5521 | } |
5522 | catch (const std::exception& e) { |
5523 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5524 | } |
5525 | } |
5526 | resultobj = SWIG_Py_Void(); |
5527 | return resultobj; |
5528 | fail: |
5529 | return NULL__null; |
5530 | } |
5531 | |
5532 | |
5533 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5534 | PyObject *resultobj = 0; |
5535 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5536 | void *argp1 = 0 ; |
5537 | int res1 = 0 ; |
5538 | PyObject * obj0 = 0 ; |
5539 | |
5540 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_clear",&obj0)) SWIG_failgoto fail; |
5541 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5542 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_clear" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_clear" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail; } while(0); |
5544 | } |
5545 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5546 | { |
5547 | try { |
5548 | (arg1)->clear(); |
5549 | } |
5550 | catch (const GException::out_of_range& e) { |
5551 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5552 | } |
5553 | catch (const GExceptionHandler& e) { |
5554 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5555 | } |
5556 | catch (const std::exception& e) { |
5557 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5558 | } |
5559 | } |
5560 | resultobj = SWIG_Py_Void(); |
5561 | return resultobj; |
5562 | fail: |
5563 | return NULL__null; |
5564 | } |
5565 | |
5566 | |
5567 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5568 | PyObject *resultobj = 0; |
5569 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5570 | void *argp1 = 0 ; |
5571 | int res1 = 0 ; |
5572 | PyObject * obj0 = 0 ; |
5573 | GCOMEventCube *result = 0 ; |
5574 | |
5575 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_clone",&obj0)) SWIG_failgoto fail; |
5576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5577 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_clone" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_clone" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
5579 | } |
5580 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5581 | { |
5582 | try { |
5583 | result = (GCOMEventCube *)((GCOMEventCube const *)arg1)->clone(); |
5584 | } |
5585 | catch (const GException::out_of_range& e) { |
5586 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5587 | } |
5588 | catch (const GExceptionHandler& e) { |
5589 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5590 | } |
5591 | catch (const std::exception& e) { |
5592 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5593 | } |
5594 | } |
5595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], 0 | 0); |
5596 | return resultobj; |
5597 | fail: |
5598 | return NULL__null; |
5599 | } |
5600 | |
5601 | |
5602 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5603 | PyObject *resultobj = 0; |
5604 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5605 | void *argp1 = 0 ; |
5606 | int res1 = 0 ; |
5607 | PyObject * obj0 = 0 ; |
5608 | int result; |
5609 | |
5610 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_size",&obj0)) SWIG_failgoto fail; |
5611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5612 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_size" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_size" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
5614 | } |
5615 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5616 | { |
5617 | try { |
5618 | result = (int)((GCOMEventCube const *)arg1)->size(); |
5619 | } |
5620 | catch (const GException::out_of_range& e) { |
5621 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5622 | } |
5623 | catch (const GExceptionHandler& e) { |
5624 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5625 | } |
5626 | catch (const std::exception& e) { |
5627 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5628 | } |
5629 | } |
5630 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5631 | return resultobj; |
5632 | fail: |
5633 | return NULL__null; |
5634 | } |
5635 | |
5636 | |
5637 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5638 | PyObject *resultobj = 0; |
5639 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5640 | void *argp1 = 0 ; |
5641 | int res1 = 0 ; |
5642 | PyObject * obj0 = 0 ; |
5643 | int result; |
5644 | |
5645 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_dim",&obj0)) SWIG_failgoto fail; |
5646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5647 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_dim" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_dim" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
5649 | } |
5650 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5651 | { |
5652 | try { |
5653 | result = (int)((GCOMEventCube const *)arg1)->dim(); |
5654 | } |
5655 | catch (const GException::out_of_range& e) { |
5656 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5657 | } |
5658 | catch (const GExceptionHandler& e) { |
5659 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5660 | } |
5661 | catch (const std::exception& e) { |
5662 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5663 | } |
5664 | } |
5665 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5666 | return resultobj; |
5667 | fail: |
5668 | return NULL__null; |
5669 | } |
5670 | |
5671 | |
5672 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_naxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5673 | PyObject *resultobj = 0; |
5674 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5675 | int *arg2 = 0 ; |
5676 | void *argp1 = 0 ; |
5677 | int res1 = 0 ; |
5678 | int temp2 ; |
5679 | int val2 ; |
5680 | int ecode2 = 0 ; |
5681 | PyObject * obj0 = 0 ; |
5682 | PyObject * obj1 = 0 ; |
5683 | int result; |
5684 | |
5685 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMEventCube_naxis",&obj0,&obj1)) SWIG_failgoto fail; |
5686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5687 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_naxis" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_naxis" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
5689 | } |
5690 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5691 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
5692 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5693 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMEventCube_naxis" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMEventCube_naxis" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
5694 | } |
5695 | temp2 = static_cast< int >(val2); |
5696 | arg2 = &temp2; |
5697 | { |
5698 | try { |
5699 | result = (int)((GCOMEventCube const *)arg1)->naxis((int const &)*arg2); |
5700 | } |
5701 | catch (const GException::out_of_range& e) { |
5702 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5703 | } |
5704 | catch (const GExceptionHandler& e) { |
5705 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5706 | } |
5707 | catch (const std::exception& e) { |
5708 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5709 | } |
5710 | } |
5711 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5712 | return resultobj; |
5713 | fail: |
5714 | return NULL__null; |
5715 | } |
5716 | |
5717 | |
5718 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5719 | PyObject *resultobj = 0; |
5720 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5721 | std::string *arg2 = 0 ; |
5722 | void *argp1 = 0 ; |
5723 | int res1 = 0 ; |
5724 | int res2 = SWIG_OLDOBJ((0)) ; |
5725 | PyObject * obj0 = 0 ; |
5726 | PyObject * obj1 = 0 ; |
5727 | |
5728 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMEventCube_load",&obj0,&obj1)) SWIG_failgoto fail; |
5729 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5730 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_load" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_load" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail; } while(0); |
5732 | } |
5733 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5734 | { |
5735 | std::string *ptr = (std::string *)0; |
5736 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5737 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5738 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMEventCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMEventCube_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5739 | } |
5740 | if (!ptr) { |
5741 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMEventCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMEventCube_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5742 | } |
5743 | arg2 = ptr; |
5744 | } |
5745 | { |
5746 | try { |
5747 | (arg1)->load((std::string const &)*arg2); |
5748 | } |
5749 | catch (const GException::out_of_range& e) { |
5750 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5751 | } |
5752 | catch (const GExceptionHandler& e) { |
5753 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5754 | } |
5755 | catch (const std::exception& e) { |
5756 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5757 | } |
5758 | } |
5759 | resultobj = SWIG_Py_Void(); |
5760 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5761 | return resultobj; |
5762 | fail: |
5763 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5764 | return NULL__null; |
5765 | } |
5766 | |
5767 | |
5768 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5769 | PyObject *resultobj = 0; |
5770 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5771 | std::string *arg2 = 0 ; |
5772 | bool *arg3 = 0 ; |
5773 | void *argp1 = 0 ; |
5774 | int res1 = 0 ; |
5775 | int res2 = SWIG_OLDOBJ((0)) ; |
5776 | bool temp3 ; |
5777 | bool val3 ; |
5778 | int ecode3 = 0 ; |
5779 | PyObject * obj0 = 0 ; |
5780 | PyObject * obj1 = 0 ; |
5781 | PyObject * obj2 = 0 ; |
5782 | |
5783 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCOMEventCube_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5785 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_save" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_save" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
5787 | } |
5788 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5789 | { |
5790 | std::string *ptr = (std::string *)0; |
5791 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5792 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5793 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5794 | } |
5795 | if (!ptr) { |
5796 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5797 | } |
5798 | arg2 = ptr; |
5799 | } |
5800 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
5801 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5802 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GCOMEventCube_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GCOMEventCube_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
5803 | } |
5804 | temp3 = static_cast< bool >(val3); |
5805 | arg3 = &temp3; |
5806 | { |
5807 | try { |
5808 | ((GCOMEventCube const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3); |
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_Py_Void(); |
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_GCOMEventCube_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5830 | PyObject *resultobj = 0; |
5831 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5832 | std::string *arg2 = 0 ; |
5833 | void *argp1 = 0 ; |
5834 | int res1 = 0 ; |
5835 | int res2 = SWIG_OLDOBJ((0)) ; |
5836 | PyObject * obj0 = 0 ; |
5837 | PyObject * obj1 = 0 ; |
5838 | |
5839 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMEventCube_save",&obj0,&obj1)) SWIG_failgoto fail; |
5840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5841 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_save" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_save" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
5843 | } |
5844 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5845 | { |
5846 | std::string *ptr = (std::string *)0; |
5847 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
5848 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5849 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
5850 | } |
5851 | if (!ptr) { |
5852 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
5853 | } |
5854 | arg2 = ptr; |
5855 | } |
5856 | { |
5857 | try { |
5858 | ((GCOMEventCube const *)arg1)->save((std::string const &)*arg2); |
5859 | } |
5860 | catch (const GException::out_of_range& e) { |
5861 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5862 | } |
5863 | catch (const GExceptionHandler& e) { |
5864 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5865 | } |
5866 | catch (const std::exception& e) { |
5867 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5868 | } |
5869 | } |
5870 | resultobj = SWIG_Py_Void(); |
5871 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5872 | return resultobj; |
5873 | fail: |
5874 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
5875 | return NULL__null; |
5876 | } |
5877 | |
5878 | |
5879 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_save(PyObject *self, PyObject *args) { |
5880 | int argc; |
5881 | PyObject *argv[4]; |
5882 | int ii; |
5883 | |
5884 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5885 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5886 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
5887 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5888 | } |
5889 | if (argc == 2) { |
5890 | int _v; |
5891 | void *vptr = 0; |
5892 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2 ], 0, 0); |
5893 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5894 | if (_v) { |
5895 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
5896 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5897 | if (_v) { |
5898 | return _wrap_GCOMEventCube_save__SWIG_1(self, args); |
5899 | } |
5900 | } |
5901 | } |
5902 | if (argc == 3) { |
5903 | int _v; |
5904 | void *vptr = 0; |
5905 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2 ], 0, 0); |
5906 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5907 | if (_v) { |
5908 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
5909 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5910 | if (_v) { |
5911 | { |
5912 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
5913 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5914 | } |
5915 | if (_v) { |
5916 | return _wrap_GCOMEventCube_save__SWIG_0(self, args); |
5917 | } |
5918 | } |
5919 | } |
5920 | } |
5921 | |
5922 | fail: |
5923 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMEventCube_save'.\n" |
5924 | " Possible C/C++ prototypes are:\n" |
5925 | " GCOMEventCube::save(std::string const &,bool const &) const\n" |
5926 | " GCOMEventCube::save(std::string const &) const\n"); |
5927 | return 0; |
5928 | } |
5929 | |
5930 | |
5931 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5932 | PyObject *resultobj = 0; |
5933 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5934 | GFits *arg2 = 0 ; |
5935 | void *argp1 = 0 ; |
5936 | int res1 = 0 ; |
5937 | void *argp2 = 0 ; |
5938 | int res2 = 0 ; |
5939 | PyObject * obj0 = 0 ; |
5940 | PyObject * obj1 = 0 ; |
5941 | |
5942 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMEventCube_read",&obj0,&obj1)) SWIG_failgoto fail; |
5943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5944 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_read" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_read" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail; } while(0); |
5946 | } |
5947 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5948 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13] , 0 | 0, 0); |
5949 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5950 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMEventCube_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMEventCube_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while( 0); |
5951 | } |
5952 | if (!argp2) { |
5953 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMEventCube_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMEventCube_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while(0); |
5954 | } |
5955 | arg2 = reinterpret_cast< GFits * >(argp2); |
5956 | { |
5957 | try { |
5958 | (arg1)->read((GFits const &)*arg2); |
5959 | } |
5960 | catch (const GException::out_of_range& e) { |
5961 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5962 | } |
5963 | catch (const GExceptionHandler& e) { |
5964 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5965 | } |
5966 | catch (const std::exception& e) { |
5967 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5968 | } |
5969 | } |
5970 | resultobj = SWIG_Py_Void(); |
5971 | return resultobj; |
5972 | fail: |
5973 | return NULL__null; |
5974 | } |
5975 | |
5976 | |
5977 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5978 | PyObject *resultobj = 0; |
5979 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
5980 | GFits *arg2 = 0 ; |
5981 | void *argp1 = 0 ; |
5982 | int res1 = 0 ; |
5983 | void *argp2 = 0 ; |
5984 | int res2 = 0 ; |
5985 | PyObject * obj0 = 0 ; |
5986 | PyObject * obj1 = 0 ; |
5987 | |
5988 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMEventCube_write",&obj0,&obj1)) SWIG_failgoto fail; |
5989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
5990 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_write" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_write" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
5992 | } |
5993 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
5994 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13] , 0, 0); |
5995 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5996 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMEventCube_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMEventCube_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
5997 | } |
5998 | if (!argp2) { |
5999 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMEventCube_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMEventCube_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
6000 | } |
6001 | arg2 = reinterpret_cast< GFits * >(argp2); |
6002 | { |
6003 | try { |
6004 | ((GCOMEventCube const *)arg1)->write(*arg2); |
6005 | } |
6006 | catch (const GException::out_of_range& e) { |
6007 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6008 | } |
6009 | catch (const GExceptionHandler& e) { |
6010 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6011 | } |
6012 | catch (const std::exception& e) { |
6013 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6014 | } |
6015 | } |
6016 | resultobj = SWIG_Py_Void(); |
6017 | return resultobj; |
6018 | fail: |
6019 | return NULL__null; |
6020 | } |
6021 | |
6022 | |
6023 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6024 | PyObject *resultobj = 0; |
6025 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6026 | void *argp1 = 0 ; |
6027 | int res1 = 0 ; |
6028 | PyObject * obj0 = 0 ; |
6029 | int result; |
6030 | |
6031 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_number",&obj0)) SWIG_failgoto fail; |
6032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6033 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_number" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_number" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
6035 | } |
6036 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6037 | { |
6038 | try { |
6039 | result = (int)((GCOMEventCube const *)arg1)->number(); |
6040 | } |
6041 | catch (const GException::out_of_range& e) { |
6042 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6043 | } |
6044 | catch (const GExceptionHandler& e) { |
6045 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6046 | } |
6047 | catch (const std::exception& e) { |
6048 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6049 | } |
6050 | } |
6051 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6052 | return resultobj; |
6053 | fail: |
6054 | return NULL__null; |
6055 | } |
6056 | |
6057 | |
6058 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_map__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6059 | PyObject *resultobj = 0; |
6060 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6061 | GSkymap *arg2 = 0 ; |
6062 | double *arg3 = 0 ; |
6063 | double *arg4 = 0 ; |
6064 | void *argp1 = 0 ; |
6065 | int res1 = 0 ; |
6066 | void *argp2 = 0 ; |
6067 | int res2 = 0 ; |
6068 | double temp3 ; |
6069 | double val3 ; |
6070 | int ecode3 = 0 ; |
6071 | double temp4 ; |
6072 | double val4 ; |
6073 | int ecode4 = 0 ; |
6074 | PyObject * obj0 = 0 ; |
6075 | PyObject * obj1 = 0 ; |
6076 | PyObject * obj2 = 0 ; |
6077 | PyObject * obj3 = 0 ; |
6078 | |
6079 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GCOMEventCube_map",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
6080 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6081 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_map" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_map" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail; } while(0); |
6083 | } |
6084 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6085 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[24] , 0 | 0, 0); |
6086 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6087 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'"); goto fail; } while (0); |
6088 | } |
6089 | if (!argp2) { |
6090 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'"); goto fail; } while(0); |
6091 | } |
6092 | arg2 = reinterpret_cast< GSkymap * >(argp2); |
6093 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6094 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6095 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GCOMEventCube_map" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GCOMEventCube_map" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
6096 | } |
6097 | temp3 = static_cast< double >(val3); |
6098 | arg3 = &temp3; |
6099 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
6100 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
6101 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GCOMEventCube_map" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GCOMEventCube_map" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
6102 | } |
6103 | temp4 = static_cast< double >(val4); |
6104 | arg4 = &temp4; |
6105 | { |
6106 | try { |
6107 | (arg1)->map((GSkymap const &)*arg2,(double const &)*arg3,(double const &)*arg4); |
6108 | } |
6109 | catch (const GException::out_of_range& e) { |
6110 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6111 | } |
6112 | catch (const GExceptionHandler& e) { |
6113 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6114 | } |
6115 | catch (const std::exception& e) { |
6116 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6117 | } |
6118 | } |
6119 | resultobj = SWIG_Py_Void(); |
6120 | return resultobj; |
6121 | fail: |
6122 | return NULL__null; |
6123 | } |
6124 | |
6125 | |
6126 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_map__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6127 | PyObject *resultobj = 0; |
6128 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6129 | void *argp1 = 0 ; |
6130 | int res1 = 0 ; |
6131 | PyObject * obj0 = 0 ; |
6132 | GSkymap *result = 0 ; |
6133 | |
6134 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_map",&obj0)) SWIG_failgoto fail; |
6135 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6136 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_map" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_map" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
6138 | } |
6139 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6140 | { |
6141 | try { |
6142 | result = (GSkymap *) &((GCOMEventCube const *)arg1)->map(); |
6143 | } |
6144 | catch (const GException::out_of_range& e) { |
6145 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6146 | } |
6147 | catch (const GExceptionHandler& e) { |
6148 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6149 | } |
6150 | catch (const std::exception& e) { |
6151 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6152 | } |
6153 | } |
6154 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[24], 0 | 0); |
6155 | return resultobj; |
6156 | fail: |
6157 | return NULL__null; |
6158 | } |
6159 | |
6160 | |
6161 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_map(PyObject *self, PyObject *args) { |
6162 | int argc; |
6163 | PyObject *argv[5]; |
6164 | int ii; |
6165 | |
6166 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6167 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6168 | for (ii = 0; (ii < 4) && (ii < argc); ii++) { |
6169 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6170 | } |
6171 | if (argc == 1) { |
6172 | int _v; |
6173 | void *vptr = 0; |
6174 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2 ], 0, 0); |
6175 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6176 | if (_v) { |
6177 | return _wrap_GCOMEventCube_map__SWIG_1(self, args); |
6178 | } |
6179 | } |
6180 | if (argc == 4) { |
6181 | int _v; |
6182 | void *vptr = 0; |
6183 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[2 ], 0, 0); |
6184 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6185 | if (_v) { |
6186 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[24], 0, 0 ); |
6187 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6188 | if (_v) { |
6189 | { |
6190 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
6191 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6192 | } |
6193 | if (_v) { |
6194 | { |
6195 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
6196 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6197 | } |
6198 | if (_v) { |
6199 | return _wrap_GCOMEventCube_map__SWIG_0(self, args); |
6200 | } |
6201 | } |
6202 | } |
6203 | } |
6204 | } |
6205 | |
6206 | fail: |
6207 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMEventCube_map'.\n" |
6208 | " Possible C/C++ prototypes are:\n" |
6209 | " GCOMEventCube::map(GSkymap const &,double const &,double const &)\n" |
6210 | " GCOMEventCube::map() const\n"); |
6211 | return 0; |
6212 | } |
6213 | |
6214 | |
6215 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_nchi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6216 | PyObject *resultobj = 0; |
6217 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6218 | void *argp1 = 0 ; |
6219 | int res1 = 0 ; |
6220 | PyObject * obj0 = 0 ; |
6221 | int result; |
6222 | |
6223 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_nchi",&obj0)) SWIG_failgoto fail; |
6224 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6225 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_nchi" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_nchi" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
6227 | } |
6228 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6229 | { |
6230 | try { |
6231 | result = (int)((GCOMEventCube const *)arg1)->nchi(); |
6232 | } |
6233 | catch (const GException::out_of_range& e) { |
6234 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6235 | } |
6236 | catch (const GExceptionHandler& e) { |
6237 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6238 | } |
6239 | catch (const std::exception& e) { |
6240 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6241 | } |
6242 | } |
6243 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6244 | return resultobj; |
6245 | fail: |
6246 | return NULL__null; |
6247 | } |
6248 | |
6249 | |
6250 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_npsi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6251 | PyObject *resultobj = 0; |
6252 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6253 | void *argp1 = 0 ; |
6254 | int res1 = 0 ; |
6255 | PyObject * obj0 = 0 ; |
6256 | int result; |
6257 | |
6258 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_npsi",&obj0)) SWIG_failgoto fail; |
6259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6260 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_npsi" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_npsi" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
6262 | } |
6263 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6264 | { |
6265 | try { |
6266 | result = (int)((GCOMEventCube const *)arg1)->npsi(); |
6267 | } |
6268 | catch (const GException::out_of_range& e) { |
6269 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6270 | } |
6271 | catch (const GExceptionHandler& e) { |
6272 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6273 | } |
6274 | catch (const std::exception& e) { |
6275 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6276 | } |
6277 | } |
6278 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6279 | return resultobj; |
6280 | fail: |
6281 | return NULL__null; |
6282 | } |
6283 | |
6284 | |
6285 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_nphi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6286 | PyObject *resultobj = 0; |
6287 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6288 | void *argp1 = 0 ; |
6289 | int res1 = 0 ; |
6290 | PyObject * obj0 = 0 ; |
6291 | int result; |
6292 | |
6293 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_nphi",&obj0)) SWIG_failgoto fail; |
6294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6295 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_nphi" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_nphi" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
6297 | } |
6298 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6299 | { |
6300 | try { |
6301 | result = (int)((GCOMEventCube const *)arg1)->nphi(); |
6302 | } |
6303 | catch (const GException::out_of_range& e) { |
6304 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6305 | } |
6306 | catch (const GExceptionHandler& e) { |
6307 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6308 | } |
6309 | catch (const std::exception& e) { |
6310 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6311 | } |
6312 | } |
6313 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6314 | return resultobj; |
6315 | fail: |
6316 | return NULL__null; |
6317 | } |
6318 | |
6319 | |
6320 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_npix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6321 | PyObject *resultobj = 0; |
6322 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6323 | void *argp1 = 0 ; |
6324 | int res1 = 0 ; |
6325 | PyObject * obj0 = 0 ; |
6326 | int result; |
6327 | |
6328 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_npix",&obj0)) SWIG_failgoto fail; |
6329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6330 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_npix" "', argument " "1"" of type '" "GCOMEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_npix" "', argument " "1"" of type '" "GCOMEventCube const *""'"); goto fail; } while (0); |
6332 | } |
6333 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6334 | { |
6335 | try { |
6336 | result = (int)((GCOMEventCube const *)arg1)->npix(); |
6337 | } |
6338 | catch (const GException::out_of_range& e) { |
6339 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6340 | } |
6341 | catch (const GExceptionHandler& e) { |
6342 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6343 | } |
6344 | catch (const std::exception& e) { |
6345 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6346 | } |
6347 | } |
6348 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6349 | return resultobj; |
6350 | fail: |
6351 | return NULL__null; |
6352 | } |
6353 | |
6354 | |
6355 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6356 | PyObject *resultobj = 0; |
6357 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6358 | void *argp1 = 0 ; |
6359 | int res1 = 0 ; |
6360 | PyObject * obj0 = 0 ; |
6361 | GCOMEventCube result; |
6362 | |
6363 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMEventCube_copy",&obj0)) SWIG_failgoto fail; |
6364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6365 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube_copy" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube_copy" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail; } while(0); |
6367 | } |
6368 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6369 | { |
6370 | try { |
6371 | result = GCOMEventCube_copy(arg1); |
6372 | } |
6373 | catch (const GException::out_of_range& e) { |
6374 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6375 | } |
6376 | catch (const GExceptionHandler& e) { |
6377 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6378 | } |
6379 | catch (const std::exception& e) { |
6380 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6381 | } |
6382 | } |
6383 | resultobj = SWIG_NewPointerObj((new GCOMEventCube(static_cast< const GCOMEventCube& >(result))), SWIGTYPE_p_GCOMEventCube, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCOMEventCube(static_cast < const GCOMEventCube& >(result))), swig_types[2], 0x1 | 0); |
6384 | return resultobj; |
6385 | fail: |
6386 | return NULL__null; |
6387 | } |
6388 | |
6389 | |
6390 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6391 | PyObject *resultobj = 0; |
6392 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6393 | int arg2 ; |
6394 | void *argp1 = 0 ; |
6395 | int res1 = 0 ; |
6396 | int val2 ; |
6397 | int ecode2 = 0 ; |
6398 | PyObject * obj0 = 0 ; |
6399 | PyObject * obj1 = 0 ; |
6400 | GCOMEventBin *result = 0 ; |
6401 | |
6402 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMEventCube___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
6403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6404 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube___getitem__" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube___getitem__" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail ; } while(0); |
6406 | } |
6407 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6408 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6409 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6410 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMEventCube___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMEventCube___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
6411 | } |
6412 | arg2 = static_cast< int >(val2); |
6413 | { |
6414 | try { |
6415 | result = (GCOMEventBin *)GCOMEventCube___getitem__(arg1,arg2); |
6416 | } |
6417 | catch (const GException::out_of_range& e) { |
6418 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6419 | } |
6420 | catch (const GExceptionHandler& e) { |
6421 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6422 | } |
6423 | catch (const std::exception& e) { |
6424 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6425 | } |
6426 | } |
6427 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventBin, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[1], 0 | 0); |
6428 | return resultobj; |
6429 | fail: |
6430 | return NULL__null; |
6431 | } |
6432 | |
6433 | |
6434 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMEventCube___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6435 | PyObject *resultobj = 0; |
6436 | GCOMEventCube *arg1 = (GCOMEventCube *) 0 ; |
6437 | int arg2 ; |
6438 | GCOMEventBin *arg3 = 0 ; |
6439 | void *argp1 = 0 ; |
6440 | int res1 = 0 ; |
6441 | int val2 ; |
6442 | int ecode2 = 0 ; |
6443 | void *argp3 = 0 ; |
6444 | int res3 = 0 ; |
6445 | PyObject * obj0 = 0 ; |
6446 | PyObject * obj1 = 0 ; |
6447 | PyObject * obj2 = 0 ; |
6448 | |
6449 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCOMEventCube___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6450 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[2], 0 | 0, 0); |
6451 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6452 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMEventCube___setitem__" "', argument " "1"" of type '" "GCOMEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMEventCube___setitem__" "', argument " "1"" of type '" "GCOMEventCube *""'"); goto fail ; } while(0); |
6453 | } |
6454 | arg1 = reinterpret_cast< GCOMEventCube * >(argp1); |
6455 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6456 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6457 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMEventCube___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMEventCube___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
6458 | } |
6459 | arg2 = static_cast< int >(val2); |
6460 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GCOMEventBin, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[1], 0 | 0, 0); |
6461 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
6462 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMEventCube___setitem__" "', argument " "3"" of type '" "GCOMEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMEventCube___setitem__" "', argument " "3"" of type '" "GCOMEventBin const &""'" ); goto fail; } while(0); |
6463 | } |
6464 | if (!argp3) { |
6465 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMEventCube___setitem__" "', argument " "3"" of type '" "GCOMEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMEventCube___setitem__" "', argument " "3" " of type '" "GCOMEventBin const &""'"); goto fail; } while (0); |
6466 | } |
6467 | arg3 = reinterpret_cast< GCOMEventBin * >(argp3); |
6468 | { |
6469 | try { |
6470 | GCOMEventCube___setitem__(arg1,arg2,(GCOMEventBin const &)*arg3); |
6471 | } |
6472 | catch (const GException::out_of_range& e) { |
6473 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6474 | } |
6475 | catch (const GExceptionHandler& e) { |
6476 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6477 | } |
6478 | catch (const std::exception& e) { |
6479 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6480 | } |
6481 | } |
6482 | resultobj = SWIG_Py_Void(); |
6483 | return resultobj; |
6484 | fail: |
6485 | return NULL__null; |
6486 | } |
6487 | |
6488 | |
6489 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCOMEventCube_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6490 | PyObject *obj; |
6491 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
6492 | SWIG_TypeNewClientData(SWIGTYPE_p_GCOMEventCubeswig_types[2], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
6493 | return SWIG_Py_Void(); |
6494 | } |
6495 | |
6496 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMInstDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6497 | PyObject *resultobj = 0; |
6498 | GCOMInstDir *result = 0 ; |
6499 | |
6500 | if (!PyArg_ParseTuple(args,(char *)":new_GCOMInstDir")) SWIG_failgoto fail; |
6501 | { |
6502 | try { |
6503 | result = (GCOMInstDir *)new GCOMInstDir(); |
6504 | } |
6505 | catch (const GException::out_of_range& e) { |
6506 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6507 | } |
6508 | catch (const GExceptionHandler& e) { |
6509 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6510 | } |
6511 | catch (const std::exception& e) { |
6512 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6513 | } |
6514 | } |
6515 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMInstDir, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], (( 0x1 << 1) | 0x1) | 0); |
6516 | return resultobj; |
6517 | fail: |
6518 | return NULL__null; |
6519 | } |
6520 | |
6521 | |
6522 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMInstDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6523 | PyObject *resultobj = 0; |
6524 | GCOMInstDir *arg1 = 0 ; |
6525 | void *argp1 = 0 ; |
6526 | int res1 = 0 ; |
6527 | PyObject * obj0 = 0 ; |
6528 | GCOMInstDir *result = 0 ; |
6529 | |
6530 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMInstDir",&obj0)) SWIG_failgoto fail; |
6531 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCOMInstDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6532 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMInstDir" "', argument " "1"" of type '" "GCOMInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMInstDir" "', argument " "1"" of type '" "GCOMInstDir const &""'"); goto fail; } while (0); |
6534 | } |
6535 | if (!argp1) { |
6536 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMInstDir" "', argument " "1"" of type '" "GCOMInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMInstDir" "', argument " "1"" of type '" "GCOMInstDir const &""'"); goto fail; } while(0); |
6537 | } |
6538 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6539 | { |
6540 | try { |
6541 | result = (GCOMInstDir *)new GCOMInstDir((GCOMInstDir const &)*arg1); |
6542 | } |
6543 | catch (const GException::out_of_range& e) { |
6544 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6545 | } |
6546 | catch (const GExceptionHandler& e) { |
6547 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6548 | } |
6549 | catch (const std::exception& e) { |
6550 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6551 | } |
6552 | } |
6553 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMInstDir, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], (( 0x1 << 1) | 0x1) | 0); |
6554 | return resultobj; |
6555 | fail: |
6556 | return NULL__null; |
6557 | } |
6558 | |
6559 | |
6560 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMInstDir(PyObject *self, PyObject *args) { |
6561 | int argc; |
6562 | PyObject *argv[2]; |
6563 | int ii; |
6564 | |
6565 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6566 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6567 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
6568 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6569 | } |
6570 | if (argc == 0) { |
6571 | return _wrap_new_GCOMInstDir__SWIG_0(self, args); |
6572 | } |
6573 | if (argc == 1) { |
6574 | int _v; |
6575 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCOMInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0); |
6576 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6577 | if (_v) { |
6578 | return _wrap_new_GCOMInstDir__SWIG_1(self, args); |
6579 | } |
6580 | } |
6581 | |
6582 | fail: |
6583 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCOMInstDir'.\n" |
6584 | " Possible C/C++ prototypes are:\n" |
6585 | " GCOMInstDir::GCOMInstDir()\n" |
6586 | " GCOMInstDir::GCOMInstDir(GCOMInstDir const &)\n"); |
6587 | return 0; |
6588 | } |
6589 | |
6590 | |
6591 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCOMInstDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6592 | PyObject *resultobj = 0; |
6593 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6594 | void *argp1 = 0 ; |
6595 | int res1 = 0 ; |
6596 | PyObject * obj0 = 0 ; |
6597 | |
6598 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GCOMInstDir",&obj0)) SWIG_failgoto fail; |
6599 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0x1 | 0, 0); |
6600 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCOMInstDir" "', argument " "1"" of type '" "GCOMInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GCOMInstDir" "', argument " "1"" of type '" "GCOMInstDir *""'"); goto fail; } while(0); |
6602 | } |
6603 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6604 | { |
6605 | try { |
6606 | delete arg1; |
6607 | } |
6608 | catch (const GException::out_of_range& e) { |
6609 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6610 | } |
6611 | catch (const GExceptionHandler& e) { |
6612 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6613 | } |
6614 | catch (const std::exception& e) { |
6615 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6616 | } |
6617 | } |
6618 | resultobj = SWIG_Py_Void(); |
6619 | return resultobj; |
6620 | fail: |
6621 | return NULL__null; |
6622 | } |
6623 | |
6624 | |
6625 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6626 | PyObject *resultobj = 0; |
6627 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6628 | void *argp1 = 0 ; |
6629 | int res1 = 0 ; |
6630 | PyObject * obj0 = 0 ; |
6631 | |
6632 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMInstDir_clear",&obj0)) SWIG_failgoto fail; |
6633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6634 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMInstDir_clear" "', argument " "1"" of type '" "GCOMInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMInstDir_clear" "', argument " "1"" of type '" "GCOMInstDir *""'"); goto fail; } while(0); |
6636 | } |
6637 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6638 | { |
6639 | try { |
6640 | (arg1)->clear(); |
6641 | } |
6642 | catch (const GException::out_of_range& e) { |
6643 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6644 | } |
6645 | catch (const GExceptionHandler& e) { |
6646 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6647 | } |
6648 | catch (const std::exception& e) { |
6649 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6650 | } |
6651 | } |
6652 | resultobj = SWIG_Py_Void(); |
6653 | return resultobj; |
6654 | fail: |
6655 | return NULL__null; |
6656 | } |
6657 | |
6658 | |
6659 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6660 | PyObject *resultobj = 0; |
6661 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6662 | void *argp1 = 0 ; |
6663 | int res1 = 0 ; |
6664 | PyObject * obj0 = 0 ; |
6665 | GCOMInstDir *result = 0 ; |
6666 | |
6667 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMInstDir_clone",&obj0)) SWIG_failgoto fail; |
6668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6669 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMInstDir_clone" "', argument " "1"" of type '" "GCOMInstDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMInstDir_clone" "', argument " "1"" of type '" "GCOMInstDir const *""'"); goto fail; } while (0); |
6671 | } |
6672 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6673 | { |
6674 | try { |
6675 | result = (GCOMInstDir *)((GCOMInstDir const *)arg1)->clone(); |
6676 | } |
6677 | catch (const GException::out_of_range& e) { |
6678 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6679 | } |
6680 | catch (const GExceptionHandler& e) { |
6681 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6682 | } |
6683 | catch (const std::exception& e) { |
6684 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6685 | } |
6686 | } |
6687 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[3], 0 | 0); |
6688 | return resultobj; |
6689 | fail: |
6690 | return NULL__null; |
6691 | } |
6692 | |
6693 | |
6694 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_dir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6695 | PyObject *resultobj = 0; |
6696 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6697 | GSkyDir *arg2 = 0 ; |
6698 | void *argp1 = 0 ; |
6699 | int res1 = 0 ; |
6700 | void *argp2 = 0 ; |
6701 | int res2 = 0 ; |
6702 | PyObject * obj0 = 0 ; |
6703 | PyObject * obj1 = 0 ; |
6704 | |
6705 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMInstDir_dir",&obj0,&obj1)) SWIG_failgoto fail; |
6706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6707 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMInstDir_dir" "', argument " "1"" of type '" "GCOMInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMInstDir_dir" "', argument " "1"" of type '" "GCOMInstDir *""'"); goto fail; } while(0); |
6709 | } |
6710 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6711 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[23] , 0 | 0, 0); |
6712 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6713 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
6714 | } |
6715 | if (!argp2) { |
6716 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
6717 | } |
6718 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
6719 | { |
6720 | try { |
6721 | (arg1)->dir((GSkyDir const &)*arg2); |
6722 | } |
6723 | catch (const GException::out_of_range& e) { |
6724 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6725 | } |
6726 | catch (const GExceptionHandler& e) { |
6727 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6728 | } |
6729 | catch (const std::exception& e) { |
6730 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6731 | } |
6732 | } |
6733 | resultobj = SWIG_Py_Void(); |
6734 | return resultobj; |
6735 | fail: |
6736 | return NULL__null; |
6737 | } |
6738 | |
6739 | |
6740 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_dir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6741 | PyObject *resultobj = 0; |
6742 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6743 | void *argp1 = 0 ; |
6744 | int res1 = 0 ; |
6745 | PyObject * obj0 = 0 ; |
6746 | GSkyDir result; |
6747 | |
6748 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMInstDir_dir",&obj0)) SWIG_failgoto fail; |
6749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6750 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMInstDir_dir" "', argument " "1"" of type '" "GCOMInstDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMInstDir_dir" "', argument " "1"" of type '" "GCOMInstDir const *""'"); goto fail; } while (0); |
6752 | } |
6753 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6754 | { |
6755 | try { |
6756 | result = ((GCOMInstDir const *)arg1)->dir(); |
6757 | } |
6758 | catch (const GException::out_of_range& e) { |
6759 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6760 | } |
6761 | catch (const GExceptionHandler& e) { |
6762 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6763 | } |
6764 | catch (const std::exception& e) { |
6765 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6766 | } |
6767 | } |
6768 | resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast< const GSkyDir& >(result))), swig_types[23], 0x1 | 0); |
6769 | return resultobj; |
6770 | fail: |
6771 | return NULL__null; |
6772 | } |
6773 | |
6774 | |
6775 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_dir(PyObject *self, PyObject *args) { |
6776 | int argc; |
6777 | PyObject *argv[3]; |
6778 | int ii; |
6779 | |
6780 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6781 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6782 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6783 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6784 | } |
6785 | if (argc == 1) { |
6786 | int _v; |
6787 | void *vptr = 0; |
6788 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3 ], 0, 0); |
6789 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6790 | if (_v) { |
6791 | return _wrap_GCOMInstDir_dir__SWIG_1(self, args); |
6792 | } |
6793 | } |
6794 | if (argc == 2) { |
6795 | int _v; |
6796 | void *vptr = 0; |
6797 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3 ], 0, 0); |
6798 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6799 | if (_v) { |
6800 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[23], 0, 0 ); |
6801 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6802 | if (_v) { |
6803 | return _wrap_GCOMInstDir_dir__SWIG_0(self, args); |
6804 | } |
6805 | } |
6806 | } |
6807 | |
6808 | fail: |
6809 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMInstDir_dir'.\n" |
6810 | " Possible C/C++ prototypes are:\n" |
6811 | " GCOMInstDir::dir(GSkyDir const &)\n" |
6812 | " GCOMInstDir::dir() const\n"); |
6813 | return 0; |
6814 | } |
6815 | |
6816 | |
6817 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_phibar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6818 | PyObject *resultobj = 0; |
6819 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6820 | double *arg2 = 0 ; |
6821 | void *argp1 = 0 ; |
6822 | int res1 = 0 ; |
6823 | double temp2 ; |
6824 | double val2 ; |
6825 | int ecode2 = 0 ; |
6826 | PyObject * obj0 = 0 ; |
6827 | PyObject * obj1 = 0 ; |
6828 | |
6829 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMInstDir_phibar",&obj0,&obj1)) SWIG_failgoto fail; |
6830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6831 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMInstDir_phibar" "', argument " "1"" of type '" "GCOMInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMInstDir_phibar" "', argument " "1"" of type '" "GCOMInstDir *""'"); goto fail; } while(0); |
6833 | } |
6834 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6835 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6836 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMInstDir_phibar" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMInstDir_phibar" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6838 | } |
6839 | temp2 = static_cast< double >(val2); |
6840 | arg2 = &temp2; |
6841 | { |
6842 | try { |
6843 | (arg1)->phibar((double const &)*arg2); |
6844 | } |
6845 | catch (const GException::out_of_range& e) { |
6846 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6847 | } |
6848 | catch (const GExceptionHandler& e) { |
6849 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6850 | } |
6851 | catch (const std::exception& e) { |
6852 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6853 | } |
6854 | } |
6855 | resultobj = SWIG_Py_Void(); |
6856 | return resultobj; |
6857 | fail: |
6858 | return NULL__null; |
6859 | } |
6860 | |
6861 | |
6862 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_phibar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6863 | PyObject *resultobj = 0; |
6864 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6865 | void *argp1 = 0 ; |
6866 | int res1 = 0 ; |
6867 | PyObject * obj0 = 0 ; |
6868 | double result; |
6869 | |
6870 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMInstDir_phibar",&obj0)) SWIG_failgoto fail; |
6871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6872 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMInstDir_phibar" "', argument " "1"" of type '" "GCOMInstDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMInstDir_phibar" "', argument " "1"" of type '" "GCOMInstDir const *""'"); goto fail; } while (0); |
6874 | } |
6875 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6876 | { |
6877 | try { |
6878 | result = (double)((GCOMInstDir const *)arg1)->phibar(); |
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_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
6891 | return resultobj; |
6892 | fail: |
6893 | return NULL__null; |
6894 | } |
6895 | |
6896 | |
6897 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_phibar(PyObject *self, PyObject *args) { |
6898 | int argc; |
6899 | PyObject *argv[3]; |
6900 | int ii; |
6901 | |
6902 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6903 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6904 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6905 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6906 | } |
6907 | if (argc == 1) { |
6908 | int _v; |
6909 | void *vptr = 0; |
6910 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3 ], 0, 0); |
6911 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6912 | if (_v) { |
6913 | return _wrap_GCOMInstDir_phibar__SWIG_1(self, args); |
6914 | } |
6915 | } |
6916 | if (argc == 2) { |
6917 | int _v; |
6918 | void *vptr = 0; |
6919 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3 ], 0, 0); |
6920 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6921 | if (_v) { |
6922 | { |
6923 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6924 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6925 | } |
6926 | if (_v) { |
6927 | return _wrap_GCOMInstDir_phibar__SWIG_0(self, args); |
6928 | } |
6929 | } |
6930 | } |
6931 | |
6932 | fail: |
6933 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMInstDir_phibar'.\n" |
6934 | " Possible C/C++ prototypes are:\n" |
6935 | " GCOMInstDir::phibar(double const &)\n" |
6936 | " GCOMInstDir::phibar() const\n"); |
6937 | return 0; |
6938 | } |
6939 | |
6940 | |
6941 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMInstDir_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6942 | PyObject *resultobj = 0; |
6943 | GCOMInstDir *arg1 = (GCOMInstDir *) 0 ; |
6944 | void *argp1 = 0 ; |
6945 | int res1 = 0 ; |
6946 | PyObject * obj0 = 0 ; |
6947 | GCOMInstDir result; |
6948 | |
6949 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMInstDir_copy",&obj0)) SWIG_failgoto fail; |
6950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
6951 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMInstDir_copy" "', argument " "1"" of type '" "GCOMInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMInstDir_copy" "', argument " "1"" of type '" "GCOMInstDir *""'"); goto fail; } while(0); |
6953 | } |
6954 | arg1 = reinterpret_cast< GCOMInstDir * >(argp1); |
6955 | { |
6956 | try { |
6957 | result = GCOMInstDir_copy(arg1); |
6958 | } |
6959 | catch (const GException::out_of_range& e) { |
6960 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6961 | } |
6962 | catch (const GExceptionHandler& e) { |
6963 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6964 | } |
6965 | catch (const std::exception& e) { |
6966 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6967 | } |
6968 | } |
6969 | resultobj = SWIG_NewPointerObj((new GCOMInstDir(static_cast< const GCOMInstDir& >(result))), SWIGTYPE_p_GCOMInstDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCOMInstDir(static_cast < const GCOMInstDir& >(result))), swig_types[3], 0x1 | 0); |
6970 | return resultobj; |
6971 | fail: |
6972 | return NULL__null; |
6973 | } |
6974 | |
6975 | |
6976 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCOMInstDir_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6977 | PyObject *obj; |
6978 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
6979 | SWIG_TypeNewClientData(SWIGTYPE_p_GCOMInstDirswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
6980 | return SWIG_Py_Void(); |
6981 | } |
6982 | |
6983 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMModelDRBFitting__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6984 | PyObject *resultobj = 0; |
6985 | GCOMModelDRBFitting *result = 0 ; |
6986 | |
6987 | if (!PyArg_ParseTuple(args,(char *)":new_GCOMModelDRBFitting")) SWIG_failgoto fail; |
6988 | { |
6989 | try { |
6990 | result = (GCOMModelDRBFitting *)new GCOMModelDRBFitting(); |
6991 | } |
6992 | catch (const GException::out_of_range& e) { |
6993 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6994 | } |
6995 | catch (const GExceptionHandler& e) { |
6996 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6997 | } |
6998 | catch (const std::exception& e) { |
6999 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7000 | } |
7001 | } |
7002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMModelDRBFitting, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
7003 | return resultobj; |
7004 | fail: |
7005 | return NULL__null; |
7006 | } |
7007 | |
7008 | |
7009 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMModelDRBFitting__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7010 | PyObject *resultobj = 0; |
7011 | GXmlElement *arg1 = 0 ; |
7012 | void *argp1 = 0 ; |
7013 | int res1 = 0 ; |
7014 | PyObject * obj0 = 0 ; |
7015 | GCOMModelDRBFitting *result = 0 ; |
7016 | |
7017 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMModelDRBFitting",&obj0)) SWIG_failgoto fail; |
7018 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26] , 0 | 0, 0); |
7019 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GXmlElement const &""'"); goto fail; } while (0); |
7021 | } |
7022 | if (!argp1) { |
7023 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GXmlElement const &""'"); goto fail; } while(0); |
7024 | } |
7025 | arg1 = reinterpret_cast< GXmlElement * >(argp1); |
7026 | { |
7027 | try { |
7028 | result = (GCOMModelDRBFitting *)new GCOMModelDRBFitting((GXmlElement const &)*arg1); |
7029 | } |
7030 | catch (const GException::out_of_range& e) { |
7031 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7032 | } |
7033 | catch (const GExceptionHandler& e) { |
7034 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7035 | } |
7036 | catch (const std::exception& e) { |
7037 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7038 | } |
7039 | } |
7040 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMModelDRBFitting, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
7041 | return resultobj; |
7042 | fail: |
7043 | return NULL__null; |
7044 | } |
7045 | |
7046 | |
7047 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMModelDRBFitting__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7048 | PyObject *resultobj = 0; |
7049 | GCOMModelDRBFitting *arg1 = 0 ; |
7050 | void *argp1 = 0 ; |
7051 | int res1 = 0 ; |
7052 | PyObject * obj0 = 0 ; |
7053 | GCOMModelDRBFitting *result = 0 ; |
7054 | |
7055 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMModelDRBFitting",&obj0)) SWIG_failgoto fail; |
7056 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7057 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GCOMModelDRBFitting const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GCOMModelDRBFitting const &""'"); goto fail ; } while(0); |
7059 | } |
7060 | if (!argp1) { |
7061 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GCOMModelDRBFitting const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMModelDRBFitting" "', argument " "1"" of type '" "GCOMModelDRBFitting const &""'"); goto fail; } while(0); |
7062 | } |
7063 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7064 | { |
7065 | try { |
7066 | result = (GCOMModelDRBFitting *)new GCOMModelDRBFitting((GCOMModelDRBFitting const &)*arg1); |
7067 | } |
7068 | catch (const GException::out_of_range& e) { |
7069 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7070 | } |
7071 | catch (const GExceptionHandler& e) { |
7072 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7073 | } |
7074 | catch (const std::exception& e) { |
7075 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7076 | } |
7077 | } |
7078 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMModelDRBFitting, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
7079 | return resultobj; |
7080 | fail: |
7081 | return NULL__null; |
7082 | } |
7083 | |
7084 | |
7085 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMModelDRBFitting(PyObject *self, PyObject *args) { |
7086 | int argc; |
7087 | PyObject *argv[2]; |
7088 | int ii; |
7089 | |
7090 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7091 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7092 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
7093 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7094 | } |
7095 | if (argc == 0) { |
7096 | return _wrap_new_GCOMModelDRBFitting__SWIG_0(self, args); |
7097 | } |
7098 | if (argc == 1) { |
7099 | int _v; |
7100 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[26], 0, 0 ); |
7101 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7102 | if (_v) { |
7103 | return _wrap_new_GCOMModelDRBFitting__SWIG_1(self, args); |
7104 | } |
7105 | } |
7106 | if (argc == 1) { |
7107 | int _v; |
7108 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCOMModelDRBFitting, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0); |
7109 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7110 | if (_v) { |
7111 | return _wrap_new_GCOMModelDRBFitting__SWIG_2(self, args); |
7112 | } |
7113 | } |
7114 | |
7115 | fail: |
7116 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCOMModelDRBFitting'.\n" |
7117 | " Possible C/C++ prototypes are:\n" |
7118 | " GCOMModelDRBFitting::GCOMModelDRBFitting()\n" |
7119 | " GCOMModelDRBFitting::GCOMModelDRBFitting(GXmlElement const &)\n" |
7120 | " GCOMModelDRBFitting::GCOMModelDRBFitting(GCOMModelDRBFitting const &)\n"); |
7121 | return 0; |
7122 | } |
7123 | |
7124 | |
7125 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCOMModelDRBFitting(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7126 | PyObject *resultobj = 0; |
7127 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7128 | void *argp1 = 0 ; |
7129 | int res1 = 0 ; |
7130 | PyObject * obj0 = 0 ; |
7131 | |
7132 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GCOMModelDRBFitting",&obj0)) SWIG_failgoto fail; |
7133 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0x1 | 0, 0); |
7134 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCOMModelDRBFitting" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GCOMModelDRBFitting" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'"); goto fail; } while(0); |
7136 | } |
7137 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7138 | { |
7139 | try { |
7140 | delete arg1; |
7141 | } |
7142 | catch (const GException::out_of_range& e) { |
7143 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7144 | } |
7145 | catch (const GExceptionHandler& e) { |
7146 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7147 | } |
7148 | catch (const std::exception& e) { |
7149 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7150 | } |
7151 | } |
7152 | resultobj = SWIG_Py_Void(); |
7153 | return resultobj; |
7154 | fail: |
7155 | return NULL__null; |
7156 | } |
7157 | |
7158 | |
7159 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7160 | PyObject *resultobj = 0; |
7161 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7162 | void *argp1 = 0 ; |
7163 | int res1 = 0 ; |
7164 | PyObject * obj0 = 0 ; |
7165 | |
7166 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMModelDRBFitting_clear",&obj0)) SWIG_failgoto fail; |
7167 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7168 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_clear" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_clear" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'"); goto fail; } while(0); |
7170 | } |
7171 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7172 | { |
7173 | try { |
7174 | (arg1)->clear(); |
7175 | } |
7176 | catch (const GException::out_of_range& e) { |
7177 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7178 | } |
7179 | catch (const GExceptionHandler& e) { |
7180 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7181 | } |
7182 | catch (const std::exception& e) { |
7183 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7184 | } |
7185 | } |
7186 | resultobj = SWIG_Py_Void(); |
7187 | return resultobj; |
7188 | fail: |
7189 | return NULL__null; |
7190 | } |
7191 | |
7192 | |
7193 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7194 | PyObject *resultobj = 0; |
7195 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7196 | void *argp1 = 0 ; |
7197 | int res1 = 0 ; |
7198 | PyObject * obj0 = 0 ; |
7199 | GCOMModelDRBFitting *result = 0 ; |
7200 | |
7201 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMModelDRBFitting_clone",&obj0)) SWIG_failgoto fail; |
7202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7203 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_clone" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_clone" "', argument " "1"" of type '" "GCOMModelDRBFitting const *" "'"); goto fail; } while(0); |
7205 | } |
7206 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7207 | { |
7208 | try { |
7209 | result = (GCOMModelDRBFitting *)((GCOMModelDRBFitting const *)arg1)->clone(); |
7210 | } |
7211 | catch (const GException::out_of_range& e) { |
7212 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7213 | } |
7214 | catch (const GExceptionHandler& e) { |
7215 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7216 | } |
7217 | catch (const std::exception& e) { |
7218 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7219 | } |
7220 | } |
7221 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], 0 | 0); |
7222 | return resultobj; |
7223 | fail: |
7224 | return NULL__null; |
7225 | } |
7226 | |
7227 | |
7228 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7229 | PyObject *resultobj = 0; |
7230 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7231 | void *argp1 = 0 ; |
7232 | int res1 = 0 ; |
7233 | PyObject * obj0 = 0 ; |
7234 | std::string result; |
7235 | |
7236 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMModelDRBFitting_type",&obj0)) SWIG_failgoto fail; |
7237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7238 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_type" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_type" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'"); goto fail ; } while(0); |
7240 | } |
7241 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7242 | { |
7243 | try { |
7244 | result = ((GCOMModelDRBFitting const *)arg1)->type(); |
7245 | } |
7246 | catch (const GException::out_of_range& e) { |
7247 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7248 | } |
7249 | catch (const GExceptionHandler& e) { |
7250 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7251 | } |
7252 | catch (const std::exception& e) { |
7253 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7254 | } |
7255 | } |
7256 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
7257 | return resultobj; |
7258 | fail: |
7259 | return NULL__null; |
7260 | } |
7261 | |
7262 | |
7263 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_isconstant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7264 | PyObject *resultobj = 0; |
7265 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7266 | void *argp1 = 0 ; |
7267 | int res1 = 0 ; |
7268 | PyObject * obj0 = 0 ; |
7269 | bool result; |
7270 | |
7271 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMModelDRBFitting_isconstant",&obj0)) SWIG_failgoto fail; |
7272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7273 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_isconstant" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_isconstant" "', argument " "1"" of type '" "GCOMModelDRBFitting const *" "'"); goto fail; } while(0); |
7275 | } |
7276 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7277 | { |
7278 | try { |
7279 | result = (bool)((GCOMModelDRBFitting const *)arg1)->isconstant(); |
7280 | } |
7281 | catch (const GException::out_of_range& e) { |
7282 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7283 | } |
7284 | catch (const GExceptionHandler& e) { |
7285 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7286 | } |
7287 | catch (const std::exception& e) { |
7288 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7289 | } |
7290 | } |
7291 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
7292 | return resultobj; |
7293 | fail: |
7294 | return NULL__null; |
7295 | } |
7296 | |
7297 | |
7298 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_eval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7299 | PyObject *resultobj = 0; |
7300 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7301 | GEvent *arg2 = 0 ; |
7302 | GObservation *arg3 = 0 ; |
7303 | void *argp1 = 0 ; |
7304 | int res1 = 0 ; |
7305 | void *argp2 = 0 ; |
7306 | int res2 = 0 ; |
7307 | void *argp3 = 0 ; |
7308 | int res3 = 0 ; |
7309 | PyObject * obj0 = 0 ; |
7310 | PyObject * obj1 = 0 ; |
7311 | PyObject * obj2 = 0 ; |
7312 | double result; |
7313 | |
7314 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCOMModelDRBFitting_eval",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7315 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7316 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_eval" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_eval" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'"); goto fail ; } while(0); |
7318 | } |
7319 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7320 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
7321 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7322 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMModelDRBFitting_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMModelDRBFitting_eval" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while (0); |
7323 | } |
7324 | if (!argp2) { |
7325 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_eval" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_eval" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while(0); |
7326 | } |
7327 | arg2 = reinterpret_cast< GEvent * >(argp2); |
7328 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[19] , 0 | 0, 0); |
7329 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7330 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMModelDRBFitting_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMModelDRBFitting_eval" "', argument " "3"" of type '" "GObservation const &""'"); goto fail; } while(0); |
7331 | } |
7332 | if (!argp3) { |
7333 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_eval" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_eval" "', argument " "3"" of type '" "GObservation const &""'"); goto fail; } while(0); |
7334 | } |
7335 | arg3 = reinterpret_cast< GObservation * >(argp3); |
7336 | { |
7337 | try { |
7338 | result = (double)((GCOMModelDRBFitting const *)arg1)->eval((GEvent const &)*arg2,(GObservation const &)*arg3); |
7339 | } |
7340 | catch (const GException::out_of_range& e) { |
7341 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7342 | } |
7343 | catch (const GExceptionHandler& e) { |
7344 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7345 | } |
7346 | catch (const std::exception& e) { |
7347 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7348 | } |
7349 | } |
7350 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7351 | return resultobj; |
7352 | fail: |
7353 | return NULL__null; |
7354 | } |
7355 | |
7356 | |
7357 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_eval_gradients(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7358 | PyObject *resultobj = 0; |
7359 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7360 | GEvent *arg2 = 0 ; |
7361 | GObservation *arg3 = 0 ; |
7362 | void *argp1 = 0 ; |
7363 | int res1 = 0 ; |
7364 | void *argp2 = 0 ; |
7365 | int res2 = 0 ; |
7366 | void *argp3 = 0 ; |
7367 | int res3 = 0 ; |
7368 | PyObject * obj0 = 0 ; |
7369 | PyObject * obj1 = 0 ; |
7370 | PyObject * obj2 = 0 ; |
7371 | double result; |
7372 | |
7373 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCOMModelDRBFitting_eval_gradients",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7375 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "1"" of type '" "GCOMModelDRBFitting const *" "'"); goto fail; } while(0); |
7377 | } |
7378 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7379 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
7380 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7381 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while(0); |
7382 | } |
7383 | if (!argp2) { |
7384 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while (0); |
7385 | } |
7386 | arg2 = reinterpret_cast< GEvent * >(argp2); |
7387 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[19] , 0 | 0, 0); |
7388 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7389 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'" ); goto fail; } while(0); |
7390 | } |
7391 | if (!argp3) { |
7392 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_eval_gradients" "', argument " "3"" of type '" "GObservation const &""'"); goto fail; } while(0); |
7393 | } |
7394 | arg3 = reinterpret_cast< GObservation * >(argp3); |
7395 | { |
7396 | try { |
7397 | result = (double)((GCOMModelDRBFitting const *)arg1)->eval_gradients((GEvent const &)*arg2,(GObservation const &)*arg3); |
7398 | } |
7399 | catch (const GException::out_of_range& e) { |
7400 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7401 | } |
7402 | catch (const GExceptionHandler& e) { |
7403 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7404 | } |
7405 | catch (const std::exception& e) { |
7406 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7407 | } |
7408 | } |
7409 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7410 | return resultobj; |
7411 | fail: |
7412 | return NULL__null; |
7413 | } |
7414 | |
7415 | |
7416 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_npred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7417 | PyObject *resultobj = 0; |
7418 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7419 | GEnergy *arg2 = 0 ; |
7420 | GTime *arg3 = 0 ; |
7421 | GObservation *arg4 = 0 ; |
7422 | void *argp1 = 0 ; |
7423 | int res1 = 0 ; |
7424 | void *argp2 = 0 ; |
7425 | int res2 = 0 ; |
7426 | void *argp3 = 0 ; |
7427 | int res3 = 0 ; |
7428 | void *argp4 = 0 ; |
7429 | int res4 = 0 ; |
7430 | PyObject * obj0 = 0 ; |
7431 | PyObject * obj1 = 0 ; |
7432 | PyObject * obj2 = 0 ; |
7433 | PyObject * obj3 = 0 ; |
7434 | double result; |
7435 | |
7436 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GCOMModelDRBFitting_npred",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
7437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7438 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_npred" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_npred" "', argument " "1"" of type '" "GCOMModelDRBFitting const *" "'"); goto fail; } while(0); |
7440 | } |
7441 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7442 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
7443 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7444 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMModelDRBFitting_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMModelDRBFitting_npred" "', argument " "2"" of type '" "GEnergy const &""'"); goto fail; } while(0); |
7445 | } |
7446 | if (!argp2) { |
7447 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_npred" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_npred" "', argument " "2" " of type '" "GEnergy const &""'"); goto fail; } while(0); |
7448 | } |
7449 | arg2 = reinterpret_cast< GEnergy * >(argp2); |
7450 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[25] , 0 | 0, 0); |
7451 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7452 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMModelDRBFitting_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMModelDRBFitting_npred" "', argument " "3"" of type '" "GTime const &""'"); goto fail; } while(0); |
7453 | } |
7454 | if (!argp3) { |
7455 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_npred" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_npred" "', argument " "3" " of type '" "GTime const &""'"); goto fail; } while(0); |
7456 | } |
7457 | arg3 = reinterpret_cast< GTime * >(argp3); |
7458 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[19] , 0 | 0, 0); |
7459 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
7460 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GCOMModelDRBFitting_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GCOMModelDRBFitting_npred" "', argument " "4"" of type '" "GObservation const &""'" ); goto fail; } while(0); |
7461 | } |
7462 | if (!argp4) { |
7463 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_npred" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_npred" "', argument " "4" " of type '" "GObservation const &""'"); goto fail; } while (0); |
7464 | } |
7465 | arg4 = reinterpret_cast< GObservation * >(argp4); |
7466 | { |
7467 | try { |
7468 | result = (double)((GCOMModelDRBFitting const *)arg1)->npred((GEnergy const &)*arg2,(GTime const &)*arg3,(GObservation const &)*arg4); |
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_doublePyFloat_FromDouble(static_cast< double >(result)); |
7481 | return resultobj; |
7482 | fail: |
7483 | return NULL__null; |
7484 | } |
7485 | |
7486 | |
7487 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_mc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7488 | PyObject *resultobj = 0; |
7489 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7490 | GObservation *arg2 = 0 ; |
7491 | GRan *arg3 = 0 ; |
7492 | void *argp1 = 0 ; |
7493 | int res1 = 0 ; |
7494 | void *argp2 = 0 ; |
7495 | int res2 = 0 ; |
7496 | void *argp3 = 0 ; |
7497 | int res3 = 0 ; |
7498 | PyObject * obj0 = 0 ; |
7499 | PyObject * obj1 = 0 ; |
7500 | PyObject * obj2 = 0 ; |
7501 | GCOMEventCube *result = 0 ; |
7502 | |
7503 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCOMModelDRBFitting_mc",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7505 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_mc" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_mc" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'"); goto fail ; } while(0); |
7507 | } |
7508 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7509 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[19] , 0 | 0, 0); |
7510 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7511 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMModelDRBFitting_mc" "', argument " "2"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMModelDRBFitting_mc" "', argument " "2"" of type '" "GObservation const &""'"); goto fail; } while(0); |
7512 | } |
7513 | if (!argp2) { |
7514 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_mc" "', argument " "2"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_mc" "', argument " "2"" of type '" "GObservation const &""'"); goto fail; } while(0); |
7515 | } |
7516 | arg2 = reinterpret_cast< GObservation * >(argp2); |
7517 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GRan, 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[21] , 0, 0); |
7518 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7519 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMModelDRBFitting_mc" "', argument " "3"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMModelDRBFitting_mc" "', argument " "3"" of type '" "GRan &""'"); goto fail; } while(0); |
7520 | } |
7521 | if (!argp3) { |
7522 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_mc" "', argument " "3"" of type '" "GRan &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_mc" "', argument " "3"" of type '" "GRan &""'"); goto fail; } while(0); |
7523 | } |
7524 | arg3 = reinterpret_cast< GRan * >(argp3); |
7525 | { |
7526 | try { |
7527 | result = (GCOMEventCube *)((GCOMModelDRBFitting const *)arg1)->mc((GObservation const &)*arg2,*arg3); |
7528 | } |
7529 | catch (const GException::out_of_range& e) { |
7530 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7531 | } |
7532 | catch (const GExceptionHandler& e) { |
7533 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7534 | } |
7535 | catch (const std::exception& e) { |
7536 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7537 | } |
7538 | } |
7539 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMEventCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[2], 0 | 0); |
7540 | return resultobj; |
7541 | fail: |
7542 | return NULL__null; |
7543 | } |
7544 | |
7545 | |
7546 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7547 | PyObject *resultobj = 0; |
7548 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7549 | GXmlElement *arg2 = 0 ; |
7550 | void *argp1 = 0 ; |
7551 | int res1 = 0 ; |
7552 | void *argp2 = 0 ; |
7553 | int res2 = 0 ; |
7554 | PyObject * obj0 = 0 ; |
7555 | PyObject * obj1 = 0 ; |
7556 | |
7557 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMModelDRBFitting_read",&obj0,&obj1)) SWIG_failgoto fail; |
7558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7559 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_read" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_read" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'"); goto fail; } while (0); |
7561 | } |
7562 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7563 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[26] , 0 | 0, 0); |
7564 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7565 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMModelDRBFitting_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMModelDRBFitting_read" "', argument " "2"" of type '" "GXmlElement const &""'"); goto fail; } while (0); |
7566 | } |
7567 | if (!argp2) { |
7568 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_read" "', argument " "2"" of type '" "GXmlElement const &""'"); goto fail; } while(0); |
7569 | } |
7570 | arg2 = reinterpret_cast< GXmlElement * >(argp2); |
7571 | { |
7572 | try { |
7573 | (arg1)->read((GXmlElement const &)*arg2); |
7574 | } |
7575 | catch (const GException::out_of_range& e) { |
7576 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7577 | } |
7578 | catch (const GExceptionHandler& e) { |
7579 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7580 | } |
7581 | catch (const std::exception& e) { |
7582 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7583 | } |
7584 | } |
7585 | resultobj = SWIG_Py_Void(); |
7586 | return resultobj; |
7587 | fail: |
7588 | return NULL__null; |
7589 | } |
7590 | |
7591 | |
7592 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7593 | PyObject *resultobj = 0; |
7594 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7595 | GXmlElement *arg2 = 0 ; |
7596 | void *argp1 = 0 ; |
7597 | int res1 = 0 ; |
7598 | void *argp2 = 0 ; |
7599 | int res2 = 0 ; |
7600 | PyObject * obj0 = 0 ; |
7601 | PyObject * obj1 = 0 ; |
7602 | |
7603 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMModelDRBFitting_write",&obj0,&obj1)) SWIG_failgoto fail; |
7604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7605 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_write" "', argument " "1"" of type '" "GCOMModelDRBFitting const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_write" "', argument " "1"" of type '" "GCOMModelDRBFitting const *" "'"); goto fail; } while(0); |
7607 | } |
7608 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7609 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[26] , 0, 0); |
7610 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7611 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMModelDRBFitting_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMModelDRBFitting_write" "', argument " "2"" of type '" "GXmlElement &""'"); goto fail; } while(0); |
7612 | } |
7613 | if (!argp2) { |
7614 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMModelDRBFitting_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMModelDRBFitting_write" "', argument " "2" " of type '" "GXmlElement &""'"); goto fail; } while(0); |
7615 | } |
7616 | arg2 = reinterpret_cast< GXmlElement * >(argp2); |
7617 | { |
7618 | try { |
7619 | ((GCOMModelDRBFitting const *)arg1)->write(*arg2); |
7620 | } |
7621 | catch (const GException::out_of_range& e) { |
7622 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7623 | } |
7624 | catch (const GExceptionHandler& e) { |
7625 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7626 | } |
7627 | catch (const std::exception& e) { |
7628 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7629 | } |
7630 | } |
7631 | resultobj = SWIG_Py_Void(); |
7632 | return resultobj; |
7633 | fail: |
7634 | return NULL__null; |
7635 | } |
7636 | |
7637 | |
7638 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMModelDRBFitting_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7639 | PyObject *resultobj = 0; |
7640 | GCOMModelDRBFitting *arg1 = (GCOMModelDRBFitting *) 0 ; |
7641 | void *argp1 = 0 ; |
7642 | int res1 = 0 ; |
7643 | PyObject * obj0 = 0 ; |
7644 | GCOMModelDRBFitting result; |
7645 | |
7646 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMModelDRBFitting_copy",&obj0)) SWIG_failgoto fail; |
7647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMModelDRBFitting, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
7648 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMModelDRBFitting_copy" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMModelDRBFitting_copy" "', argument " "1"" of type '" "GCOMModelDRBFitting *""'"); goto fail; } while (0); |
7650 | } |
7651 | arg1 = reinterpret_cast< GCOMModelDRBFitting * >(argp1); |
7652 | { |
7653 | try { |
7654 | result = GCOMModelDRBFitting_copy(arg1); |
7655 | } |
7656 | catch (const GException::out_of_range& e) { |
7657 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7658 | } |
7659 | catch (const GExceptionHandler& e) { |
7660 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7661 | } |
7662 | catch (const std::exception& e) { |
7663 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7664 | } |
7665 | } |
7666 | resultobj = SWIG_NewPointerObj((new GCOMModelDRBFitting(static_cast< const GCOMModelDRBFitting& >(result))), SWIGTYPE_p_GCOMModelDRBFitting, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCOMModelDRBFitting(static_cast < const GCOMModelDRBFitting& >(result))), swig_types [4], 0x1 | 0); |
7667 | return resultobj; |
7668 | fail: |
7669 | return NULL__null; |
7670 | } |
7671 | |
7672 | |
7673 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCOMModelDRBFitting_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7674 | PyObject *obj; |
7675 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
7676 | SWIG_TypeNewClientData(SWIGTYPE_p_GCOMModelDRBFittingswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
7677 | return SWIG_Py_Void(); |
7678 | } |
7679 | |
7680 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMObservation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7681 | PyObject *resultobj = 0; |
7682 | GCOMObservation *result = 0 ; |
7683 | |
7684 | if (!PyArg_ParseTuple(args,(char *)":new_GCOMObservation")) SWIG_failgoto fail; |
7685 | { |
7686 | try { |
7687 | result = (GCOMObservation *)new GCOMObservation(); |
7688 | } |
7689 | catch (const GException::out_of_range& e) { |
7690 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7691 | } |
7692 | catch (const GExceptionHandler& e) { |
7693 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7694 | } |
7695 | catch (const std::exception& e) { |
7696 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7697 | } |
7698 | } |
7699 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
7700 | return resultobj; |
7701 | fail: |
7702 | return NULL__null; |
7703 | } |
7704 | |
7705 | |
7706 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMObservation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7707 | PyObject *resultobj = 0; |
7708 | std::string *arg1 = 0 ; |
7709 | std::string *arg2 = 0 ; |
7710 | std::string *arg3 = 0 ; |
7711 | std::string *arg4 = 0 ; |
7712 | int res1 = SWIG_OLDOBJ((0)) ; |
7713 | int res2 = SWIG_OLDOBJ((0)) ; |
7714 | int res3 = SWIG_OLDOBJ((0)) ; |
7715 | int res4 = SWIG_OLDOBJ((0)) ; |
7716 | PyObject * obj0 = 0 ; |
7717 | PyObject * obj1 = 0 ; |
7718 | PyObject * obj2 = 0 ; |
7719 | PyObject * obj3 = 0 ; |
7720 | GCOMObservation *result = 0 ; |
7721 | |
7722 | if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GCOMObservation",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
7723 | { |
7724 | std::string *ptr = (std::string *)0; |
7725 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
7726 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
7728 | } |
7729 | if (!ptr) { |
7730 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
7731 | } |
7732 | arg1 = ptr; |
7733 | } |
7734 | { |
7735 | std::string *ptr = (std::string *)0; |
7736 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7737 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7738 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GCOMObservation" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GCOMObservation" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7739 | } |
7740 | if (!ptr) { |
7741 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
7742 | } |
7743 | arg2 = ptr; |
7744 | } |
7745 | { |
7746 | std::string *ptr = (std::string *)0; |
7747 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
7748 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7749 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GCOMObservation" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "new_GCOMObservation" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
7750 | } |
7751 | if (!ptr) { |
7752 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
7753 | } |
7754 | arg3 = ptr; |
7755 | } |
7756 | { |
7757 | std::string *ptr = (std::string *)0; |
7758 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
7759 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
7760 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GCOMObservation" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "new_GCOMObservation" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while (0); |
7761 | } |
7762 | if (!ptr) { |
7763 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0); |
7764 | } |
7765 | arg4 = ptr; |
7766 | } |
7767 | { |
7768 | try { |
7769 | result = (GCOMObservation *)new GCOMObservation((std::string const &)*arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4); |
7770 | } |
7771 | catch (const GException::out_of_range& e) { |
7772 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7773 | } |
7774 | catch (const GExceptionHandler& e) { |
7775 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7776 | } |
7777 | catch (const std::exception& e) { |
7778 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7779 | } |
7780 | } |
7781 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
7782 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7783 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7784 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7785 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
7786 | return resultobj; |
7787 | fail: |
7788 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7789 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7790 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7791 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
7792 | return NULL__null; |
7793 | } |
7794 | |
7795 | |
7796 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMObservation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7797 | PyObject *resultobj = 0; |
7798 | GCOMObservation *arg1 = 0 ; |
7799 | void *argp1 = 0 ; |
7800 | int res1 = 0 ; |
7801 | PyObject * obj0 = 0 ; |
7802 | GCOMObservation *result = 0 ; |
7803 | |
7804 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMObservation",&obj0)) SWIG_failgoto fail; |
7805 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCOMObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
7806 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "GCOMObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "GCOMObservation const &""'"); goto fail ; } while(0); |
7808 | } |
7809 | if (!argp1) { |
7810 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "GCOMObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMObservation" "', argument " "1"" of type '" "GCOMObservation const &""'"); goto fail; } while(0); |
7811 | } |
7812 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
7813 | { |
7814 | try { |
7815 | result = (GCOMObservation *)new GCOMObservation((GCOMObservation const &)*arg1); |
7816 | } |
7817 | catch (const GException::out_of_range& e) { |
7818 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7819 | } |
7820 | catch (const GExceptionHandler& e) { |
7821 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7822 | } |
7823 | catch (const std::exception& e) { |
7824 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7825 | } |
7826 | } |
7827 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], (( 0x1 << 1) | 0x1) | 0); |
7828 | return resultobj; |
7829 | fail: |
7830 | return NULL__null; |
7831 | } |
7832 | |
7833 | |
7834 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMObservation(PyObject *self, PyObject *args) { |
7835 | int argc; |
7836 | PyObject *argv[5]; |
7837 | int ii; |
7838 | |
7839 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7840 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7841 | for (ii = 0; (ii < 4) && (ii < argc); ii++) { |
7842 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7843 | } |
7844 | if (argc == 0) { |
7845 | return _wrap_new_GCOMObservation__SWIG_0(self, args); |
7846 | } |
7847 | if (argc == 1) { |
7848 | int _v; |
7849 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[5], 0, 0); |
7850 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7851 | if (_v) { |
7852 | return _wrap_new_GCOMObservation__SWIG_2(self, args); |
7853 | } |
7854 | } |
7855 | if (argc == 4) { |
7856 | int _v; |
7857 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7858 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7859 | if (_v) { |
7860 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
7861 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7862 | if (_v) { |
7863 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
7864 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7865 | if (_v) { |
7866 | int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0)); |
7867 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7868 | if (_v) { |
7869 | return _wrap_new_GCOMObservation__SWIG_1(self, args); |
7870 | } |
7871 | } |
7872 | } |
7873 | } |
7874 | } |
7875 | |
7876 | fail: |
7877 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCOMObservation'.\n" |
7878 | " Possible C/C++ prototypes are:\n" |
7879 | " GCOMObservation::GCOMObservation()\n" |
7880 | " GCOMObservation::GCOMObservation(std::string const &,std::string const &,std::string const &,std::string const &)\n" |
7881 | " GCOMObservation::GCOMObservation(GCOMObservation const &)\n"); |
7882 | return 0; |
7883 | } |
7884 | |
7885 | |
7886 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCOMObservation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7887 | PyObject *resultobj = 0; |
7888 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
7889 | void *argp1 = 0 ; |
7890 | int res1 = 0 ; |
7891 | PyObject * obj0 = 0 ; |
7892 | |
7893 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GCOMObservation",&obj0)) SWIG_failgoto fail; |
7894 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0x1 | 0, 0); |
7895 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCOMObservation" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GCOMObservation" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
7897 | } |
7898 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
7899 | { |
7900 | try { |
7901 | delete arg1; |
7902 | } |
7903 | catch (const GException::out_of_range& e) { |
7904 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7905 | } |
7906 | catch (const GExceptionHandler& e) { |
7907 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7908 | } |
7909 | catch (const std::exception& e) { |
7910 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7911 | } |
7912 | } |
7913 | resultobj = SWIG_Py_Void(); |
7914 | return resultobj; |
7915 | fail: |
7916 | return NULL__null; |
7917 | } |
7918 | |
7919 | |
7920 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7921 | PyObject *resultobj = 0; |
7922 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
7923 | void *argp1 = 0 ; |
7924 | int res1 = 0 ; |
7925 | PyObject * obj0 = 0 ; |
7926 | |
7927 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_clear",&obj0)) SWIG_failgoto fail; |
7928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
7929 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_clear" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_clear" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
7931 | } |
7932 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
7933 | { |
7934 | try { |
7935 | (arg1)->clear(); |
7936 | } |
7937 | catch (const GException::out_of_range& e) { |
7938 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7939 | } |
7940 | catch (const GExceptionHandler& e) { |
7941 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7942 | } |
7943 | catch (const std::exception& e) { |
7944 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7945 | } |
7946 | } |
7947 | resultobj = SWIG_Py_Void(); |
7948 | return resultobj; |
7949 | fail: |
7950 | return NULL__null; |
7951 | } |
7952 | |
7953 | |
7954 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7955 | PyObject *resultobj = 0; |
7956 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
7957 | void *argp1 = 0 ; |
7958 | int res1 = 0 ; |
7959 | PyObject * obj0 = 0 ; |
7960 | GCOMObservation *result = 0 ; |
7961 | |
7962 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_clone",&obj0)) SWIG_failgoto fail; |
7963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
7964 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_clone" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_clone" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
7966 | } |
7967 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
7968 | { |
7969 | try { |
7970 | result = (GCOMObservation *)((GCOMObservation const *)arg1)->clone(); |
7971 | } |
7972 | catch (const GException::out_of_range& e) { |
7973 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7974 | } |
7975 | catch (const GExceptionHandler& e) { |
7976 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7977 | } |
7978 | catch (const std::exception& e) { |
7979 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7980 | } |
7981 | } |
7982 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[5], 0 | 0); |
7983 | return resultobj; |
7984 | fail: |
7985 | return NULL__null; |
7986 | } |
7987 | |
7988 | |
7989 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_response__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7990 | PyObject *resultobj = 0; |
7991 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
7992 | GResponse *arg2 = 0 ; |
7993 | void *argp1 = 0 ; |
7994 | int res1 = 0 ; |
7995 | void *argp2 = 0 ; |
7996 | int res2 = 0 ; |
7997 | PyObject * obj0 = 0 ; |
7998 | PyObject * obj1 = 0 ; |
7999 | |
8000 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_response",&obj0,&obj1)) SWIG_failgoto fail; |
8001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8002 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8004 | } |
8005 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8006 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GResponse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[22] , 0 | 0, 0); |
8007 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8008 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "GResponse const &""'"); goto fail; } while (0); |
8009 | } |
8010 | if (!argp2) { |
8011 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "GResponse const &""'"); goto fail; } while(0); |
8012 | } |
8013 | arg2 = reinterpret_cast< GResponse * >(argp2); |
8014 | { |
8015 | try { |
8016 | (arg1)->response((GResponse const &)*arg2); |
8017 | } |
8018 | catch (const GException::out_of_range& e) { |
8019 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8020 | } |
8021 | catch (const GExceptionHandler& e) { |
8022 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8023 | } |
8024 | catch (const std::exception& e) { |
8025 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8026 | } |
8027 | } |
8028 | resultobj = SWIG_Py_Void(); |
8029 | return resultobj; |
8030 | fail: |
8031 | return NULL__null; |
8032 | } |
8033 | |
8034 | |
8035 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_response__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8036 | PyObject *resultobj = 0; |
8037 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8038 | void *argp1 = 0 ; |
8039 | int res1 = 0 ; |
8040 | PyObject * obj0 = 0 ; |
8041 | GCOMResponse *result = 0 ; |
8042 | |
8043 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_response",&obj0)) SWIG_failgoto fail; |
8044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8045 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
8047 | } |
8048 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8049 | { |
8050 | try { |
8051 | result = (GCOMResponse *) &((GCOMObservation const *)arg1)->response(); |
8052 | } |
8053 | catch (const GException::out_of_range& e) { |
8054 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8055 | } |
8056 | catch (const GExceptionHandler& e) { |
8057 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8058 | } |
8059 | catch (const std::exception& e) { |
8060 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8061 | } |
8062 | } |
8063 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
8064 | return resultobj; |
8065 | fail: |
8066 | return NULL__null; |
8067 | } |
8068 | |
8069 | |
8070 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_instrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8071 | PyObject *resultobj = 0; |
8072 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8073 | void *argp1 = 0 ; |
8074 | int res1 = 0 ; |
8075 | PyObject * obj0 = 0 ; |
8076 | std::string result; |
8077 | |
8078 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_instrument",&obj0)) SWIG_failgoto fail; |
8079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8080 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_instrument" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_instrument" "', argument " "1"" of type '" "GCOMObservation const *""'") ; goto fail; } while(0); |
8082 | } |
8083 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8084 | { |
8085 | try { |
8086 | result = ((GCOMObservation const *)arg1)->instrument(); |
8087 | } |
8088 | catch (const GException::out_of_range& e) { |
8089 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8090 | } |
8091 | catch (const GExceptionHandler& e) { |
8092 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8093 | } |
8094 | catch (const std::exception& e) { |
8095 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8096 | } |
8097 | } |
8098 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
8099 | return resultobj; |
8100 | fail: |
8101 | return NULL__null; |
8102 | } |
8103 | |
8104 | |
8105 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_ontime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8106 | PyObject *resultobj = 0; |
8107 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8108 | void *argp1 = 0 ; |
8109 | int res1 = 0 ; |
8110 | PyObject * obj0 = 0 ; |
8111 | double result; |
8112 | |
8113 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_ontime",&obj0)) SWIG_failgoto fail; |
8114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8115 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_ontime" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_ontime" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
8117 | } |
8118 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8119 | { |
8120 | try { |
8121 | result = (double)((GCOMObservation const *)arg1)->ontime(); |
8122 | } |
8123 | catch (const GException::out_of_range& e) { |
8124 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8125 | } |
8126 | catch (const GExceptionHandler& e) { |
8127 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8128 | } |
8129 | catch (const std::exception& e) { |
8130 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8131 | } |
8132 | } |
8133 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8134 | return resultobj; |
8135 | fail: |
8136 | return NULL__null; |
8137 | } |
8138 | |
8139 | |
8140 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_livetime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8141 | PyObject *resultobj = 0; |
8142 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8143 | void *argp1 = 0 ; |
8144 | int res1 = 0 ; |
8145 | PyObject * obj0 = 0 ; |
8146 | double result; |
8147 | |
8148 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_livetime",&obj0)) SWIG_failgoto fail; |
8149 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8150 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8151 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_livetime" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_livetime" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
8152 | } |
8153 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8154 | { |
8155 | try { |
8156 | result = (double)((GCOMObservation const *)arg1)->livetime(); |
8157 | } |
8158 | catch (const GException::out_of_range& e) { |
8159 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8160 | } |
8161 | catch (const GExceptionHandler& e) { |
8162 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8163 | } |
8164 | catch (const std::exception& e) { |
8165 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8166 | } |
8167 | } |
8168 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8169 | return resultobj; |
8170 | fail: |
8171 | return NULL__null; |
8172 | } |
8173 | |
8174 | |
8175 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_deadc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8176 | PyObject *resultobj = 0; |
8177 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8178 | GTime *arg2 = 0 ; |
8179 | void *argp1 = 0 ; |
8180 | int res1 = 0 ; |
8181 | void *argp2 = 0 ; |
8182 | int res2 = 0 ; |
8183 | PyObject * obj0 = 0 ; |
8184 | PyObject * obj1 = 0 ; |
8185 | double result; |
8186 | |
8187 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_deadc",&obj0,&obj1)) SWIG_failgoto fail; |
8188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8189 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_deadc" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_deadc" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
8191 | } |
8192 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8193 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25] , 0 | 0, 0); |
8194 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8195 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMObservation_deadc" "', argument " "2"" of type '" "GTime const &""'"); goto fail; } while( 0); |
8196 | } |
8197 | if (!argp2) { |
8198 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_deadc" "', argument " "2"" of type '" "GTime const &""'"); goto fail; } while(0); |
8199 | } |
8200 | arg2 = reinterpret_cast< GTime * >(argp2); |
8201 | { |
8202 | try { |
8203 | result = (double)((GCOMObservation const *)arg1)->deadc((GTime const &)*arg2); |
8204 | } |
8205 | catch (const GException::out_of_range& e) { |
8206 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8207 | } |
8208 | catch (const GExceptionHandler& e) { |
8209 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8210 | } |
8211 | catch (const std::exception& e) { |
8212 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8213 | } |
8214 | } |
8215 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8216 | return resultobj; |
8217 | fail: |
8218 | return NULL__null; |
8219 | } |
8220 | |
8221 | |
8222 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8223 | PyObject *resultobj = 0; |
8224 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8225 | GXmlElement *arg2 = 0 ; |
8226 | void *argp1 = 0 ; |
8227 | int res1 = 0 ; |
8228 | void *argp2 = 0 ; |
8229 | int res2 = 0 ; |
8230 | PyObject * obj0 = 0 ; |
8231 | PyObject * obj1 = 0 ; |
8232 | |
8233 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_read",&obj0,&obj1)) SWIG_failgoto fail; |
8234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8235 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_read" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_read" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8237 | } |
8238 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8239 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[26] , 0 | 0, 0); |
8240 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8241 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'"); goto fail; } while (0); |
8242 | } |
8243 | if (!argp2) { |
8244 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'"); goto fail; } while(0); |
8245 | } |
8246 | arg2 = reinterpret_cast< GXmlElement * >(argp2); |
8247 | { |
8248 | try { |
8249 | (arg1)->read((GXmlElement const &)*arg2); |
8250 | } |
8251 | catch (const GException::out_of_range& e) { |
8252 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8253 | } |
8254 | catch (const GExceptionHandler& e) { |
8255 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8256 | } |
8257 | catch (const std::exception& e) { |
8258 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8259 | } |
8260 | } |
8261 | resultobj = SWIG_Py_Void(); |
8262 | return resultobj; |
8263 | fail: |
8264 | return NULL__null; |
8265 | } |
8266 | |
8267 | |
8268 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8269 | PyObject *resultobj = 0; |
8270 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8271 | GXmlElement *arg2 = 0 ; |
8272 | void *argp1 = 0 ; |
8273 | int res1 = 0 ; |
8274 | void *argp2 = 0 ; |
8275 | int res2 = 0 ; |
8276 | PyObject * obj0 = 0 ; |
8277 | PyObject * obj1 = 0 ; |
8278 | |
8279 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_write",&obj0,&obj1)) SWIG_failgoto fail; |
8280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8281 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_write" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_write" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
8283 | } |
8284 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8285 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[26] , 0, 0); |
8286 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8287 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMObservation_write" "', argument " "2"" of type '" "GXmlElement &""'"); goto fail; } while( 0); |
8288 | } |
8289 | if (!argp2) { |
8290 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_write" "', argument " "2"" of type '" "GXmlElement &""'"); goto fail; } while(0); |
8291 | } |
8292 | arg2 = reinterpret_cast< GXmlElement * >(argp2); |
8293 | { |
8294 | try { |
8295 | ((GCOMObservation const *)arg1)->write(*arg2); |
8296 | } |
8297 | catch (const GException::out_of_range& e) { |
8298 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8299 | } |
8300 | catch (const GExceptionHandler& e) { |
8301 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8302 | } |
8303 | catch (const std::exception& e) { |
8304 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8305 | } |
8306 | } |
8307 | resultobj = SWIG_Py_Void(); |
8308 | return resultobj; |
8309 | fail: |
8310 | return NULL__null; |
8311 | } |
8312 | |
8313 | |
8314 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8315 | PyObject *resultobj = 0; |
8316 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8317 | std::string *arg2 = 0 ; |
8318 | std::string *arg3 = 0 ; |
8319 | std::string *arg4 = 0 ; |
8320 | std::string *arg5 = 0 ; |
8321 | void *argp1 = 0 ; |
8322 | int res1 = 0 ; |
8323 | int res2 = SWIG_OLDOBJ((0)) ; |
8324 | int res3 = SWIG_OLDOBJ((0)) ; |
8325 | int res4 = SWIG_OLDOBJ((0)) ; |
8326 | int res5 = SWIG_OLDOBJ((0)) ; |
8327 | PyObject * obj0 = 0 ; |
8328 | PyObject * obj1 = 0 ; |
8329 | PyObject * obj2 = 0 ; |
8330 | PyObject * obj3 = 0 ; |
8331 | PyObject * obj4 = 0 ; |
8332 | |
8333 | if (!PyArg_ParseTuple(args,(char *)"OOOOO:GCOMObservation_load",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail; |
8334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8335 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_load" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_load" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8337 | } |
8338 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8339 | { |
8340 | std::string *ptr = (std::string *)0; |
8341 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8342 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8343 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMObservation_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8344 | } |
8345 | if (!ptr) { |
8346 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8347 | } |
8348 | arg2 = ptr; |
8349 | } |
8350 | { |
8351 | std::string *ptr = (std::string *)0; |
8352 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
8353 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
8354 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMObservation_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMObservation_load" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
8355 | } |
8356 | if (!ptr) { |
8357 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
8358 | } |
8359 | arg3 = ptr; |
8360 | } |
8361 | { |
8362 | std::string *ptr = (std::string *)0; |
8363 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
8364 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
8365 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GCOMObservation_load" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GCOMObservation_load" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while (0); |
8366 | } |
8367 | if (!ptr) { |
8368 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while(0); |
8369 | } |
8370 | arg4 = ptr; |
8371 | } |
8372 | { |
8373 | std::string *ptr = (std::string *)0; |
8374 | res5 = SWIG_AsPtr_std_string(obj4, &ptr); |
8375 | if (!SWIG_IsOK(res5)(res5 >= 0)) { |
8376 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GCOMObservation_load" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != ( -1)) ? res5 : -5)), "in method '" "GCOMObservation_load" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while (0); |
8377 | } |
8378 | if (!ptr) { |
8379 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_load" "', argument " "5"" of type '" "std::string const &""'"); goto fail; } while(0); |
8380 | } |
8381 | arg5 = ptr; |
8382 | } |
8383 | { |
8384 | try { |
8385 | (arg1)->load((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5); |
8386 | } |
8387 | catch (const GException::out_of_range& e) { |
8388 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8389 | } |
8390 | catch (const GExceptionHandler& e) { |
8391 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8392 | } |
8393 | catch (const std::exception& e) { |
8394 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8395 | } |
8396 | } |
8397 | resultobj = SWIG_Py_Void(); |
8398 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8399 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
8400 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
8401 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
8402 | return resultobj; |
8403 | fail: |
8404 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8405 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
8406 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
8407 | if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) << 1)))) delete arg5; |
8408 | return NULL__null; |
8409 | } |
8410 | |
8411 | |
8412 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_response__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8413 | PyObject *resultobj = 0; |
8414 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8415 | std::string *arg2 = 0 ; |
8416 | std::string *arg3 = 0 ; |
8417 | void *argp1 = 0 ; |
8418 | int res1 = 0 ; |
8419 | int res2 = SWIG_OLDOBJ((0)) ; |
8420 | int res3 = SWIG_OLDOBJ((0)) ; |
8421 | PyObject * obj0 = 0 ; |
8422 | PyObject * obj1 = 0 ; |
8423 | PyObject * obj2 = 0 ; |
8424 | |
8425 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCOMObservation_response",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8427 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8429 | } |
8430 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8431 | { |
8432 | std::string *ptr = (std::string *)0; |
8433 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8434 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8435 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8436 | } |
8437 | if (!ptr) { |
8438 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8439 | } |
8440 | arg2 = ptr; |
8441 | } |
8442 | { |
8443 | std::string *ptr = (std::string *)0; |
8444 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
8445 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
8446 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMObservation_response" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMObservation_response" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
8447 | } |
8448 | if (!ptr) { |
8449 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
8450 | } |
8451 | arg3 = ptr; |
8452 | } |
8453 | { |
8454 | try { |
8455 | (arg1)->response((std::string const &)*arg2,(std::string const &)*arg3); |
8456 | } |
8457 | catch (const GException::out_of_range& e) { |
8458 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8459 | } |
8460 | catch (const GExceptionHandler& e) { |
8461 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8462 | } |
8463 | catch (const std::exception& e) { |
8464 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8465 | } |
8466 | } |
8467 | resultobj = SWIG_Py_Void(); |
8468 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8469 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
8470 | return resultobj; |
8471 | fail: |
8472 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8473 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
8474 | return NULL__null; |
8475 | } |
8476 | |
8477 | |
8478 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_response__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8479 | PyObject *resultobj = 0; |
8480 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8481 | std::string *arg2 = 0 ; |
8482 | void *argp1 = 0 ; |
8483 | int res1 = 0 ; |
8484 | int res2 = SWIG_OLDOBJ((0)) ; |
8485 | PyObject * obj0 = 0 ; |
8486 | PyObject * obj1 = 0 ; |
8487 | |
8488 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_response",&obj0,&obj1)) SWIG_failgoto fail; |
8489 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8490 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8491 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_response" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8492 | } |
8493 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8494 | { |
8495 | std::string *ptr = (std::string *)0; |
8496 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8497 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8498 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8499 | } |
8500 | if (!ptr) { |
8501 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8502 | } |
8503 | arg2 = ptr; |
8504 | } |
8505 | { |
8506 | try { |
8507 | (arg1)->response((std::string const &)*arg2); |
8508 | } |
8509 | catch (const GException::out_of_range& e) { |
8510 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8511 | } |
8512 | catch (const GExceptionHandler& e) { |
8513 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8514 | } |
8515 | catch (const std::exception& e) { |
8516 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8517 | } |
8518 | } |
8519 | resultobj = SWIG_Py_Void(); |
8520 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8521 | return resultobj; |
8522 | fail: |
8523 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8524 | return NULL__null; |
8525 | } |
8526 | |
8527 | |
8528 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_response(PyObject *self, PyObject *args) { |
8529 | int argc; |
8530 | PyObject *argv[4]; |
8531 | int ii; |
8532 | |
8533 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8534 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8535 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
8536 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8537 | } |
8538 | if (argc == 1) { |
8539 | int _v; |
8540 | void *vptr = 0; |
8541 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8542 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8543 | if (_v) { |
8544 | return _wrap_GCOMObservation_response__SWIG_1(self, args); |
8545 | } |
8546 | } |
8547 | if (argc == 2) { |
8548 | int _v; |
8549 | void *vptr = 0; |
8550 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8551 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8552 | if (_v) { |
8553 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[22], 0, 0 ); |
8554 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8555 | if (_v) { |
8556 | return _wrap_GCOMObservation_response__SWIG_0(self, args); |
8557 | } |
8558 | } |
8559 | } |
8560 | if (argc == 2) { |
8561 | int _v; |
8562 | void *vptr = 0; |
8563 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8564 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8565 | if (_v) { |
8566 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8567 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8568 | if (_v) { |
8569 | return _wrap_GCOMObservation_response__SWIG_3(self, args); |
8570 | } |
8571 | } |
8572 | } |
8573 | if (argc == 3) { |
8574 | int _v; |
8575 | void *vptr = 0; |
8576 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8577 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8578 | if (_v) { |
8579 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8580 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8581 | if (_v) { |
8582 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
8583 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8584 | if (_v) { |
8585 | return _wrap_GCOMObservation_response__SWIG_2(self, args); |
8586 | } |
8587 | } |
8588 | } |
8589 | } |
8590 | |
8591 | fail: |
8592 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMObservation_response'.\n" |
8593 | " Possible C/C++ prototypes are:\n" |
8594 | " GCOMObservation::response(GResponse const &)\n" |
8595 | " GCOMObservation::response() const\n" |
8596 | " GCOMObservation::response(std::string const &,std::string const &)\n" |
8597 | " GCOMObservation::response(std::string const &)\n"); |
8598 | return 0; |
8599 | } |
8600 | |
8601 | |
8602 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_obs_id__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8603 | PyObject *resultobj = 0; |
8604 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8605 | double *arg2 = 0 ; |
8606 | void *argp1 = 0 ; |
8607 | int res1 = 0 ; |
8608 | double temp2 ; |
8609 | double val2 ; |
8610 | int ecode2 = 0 ; |
8611 | PyObject * obj0 = 0 ; |
8612 | PyObject * obj1 = 0 ; |
8613 | |
8614 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_obs_id",&obj0,&obj1)) SWIG_failgoto fail; |
8615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8616 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_obs_id" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_obs_id" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8618 | } |
8619 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8620 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8621 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8622 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMObservation_obs_id" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMObservation_obs_id" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
8623 | } |
8624 | temp2 = static_cast< double >(val2); |
8625 | arg2 = &temp2; |
8626 | { |
8627 | try { |
8628 | (arg1)->obs_id((double const &)*arg2); |
8629 | } |
8630 | catch (const GException::out_of_range& e) { |
8631 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8632 | } |
8633 | catch (const GExceptionHandler& e) { |
8634 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8635 | } |
8636 | catch (const std::exception& e) { |
8637 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8638 | } |
8639 | } |
8640 | resultobj = SWIG_Py_Void(); |
8641 | return resultobj; |
8642 | fail: |
8643 | return NULL__null; |
8644 | } |
8645 | |
8646 | |
8647 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_ontime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8648 | PyObject *resultobj = 0; |
8649 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8650 | double *arg2 = 0 ; |
8651 | void *argp1 = 0 ; |
8652 | int res1 = 0 ; |
8653 | double temp2 ; |
8654 | double val2 ; |
8655 | int ecode2 = 0 ; |
8656 | PyObject * obj0 = 0 ; |
8657 | PyObject * obj1 = 0 ; |
8658 | |
8659 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_ontime",&obj0,&obj1)) SWIG_failgoto fail; |
8660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8661 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_ontime" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_ontime" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8663 | } |
8664 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8665 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8666 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8667 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMObservation_ontime" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMObservation_ontime" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
8668 | } |
8669 | temp2 = static_cast< double >(val2); |
8670 | arg2 = &temp2; |
8671 | { |
8672 | try { |
8673 | (arg1)->ontime((double const &)*arg2); |
8674 | } |
8675 | catch (const GException::out_of_range& e) { |
8676 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8677 | } |
8678 | catch (const GExceptionHandler& e) { |
8679 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8680 | } |
8681 | catch (const std::exception& e) { |
8682 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8683 | } |
8684 | } |
8685 | resultobj = SWIG_Py_Void(); |
8686 | return resultobj; |
8687 | fail: |
8688 | return NULL__null; |
8689 | } |
8690 | |
8691 | |
8692 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_ontime(PyObject *self, PyObject *args) { |
8693 | int argc; |
8694 | PyObject *argv[3]; |
8695 | int ii; |
8696 | |
8697 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8698 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8699 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8700 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8701 | } |
8702 | if (argc == 1) { |
8703 | int _v; |
8704 | void *vptr = 0; |
8705 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8706 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8707 | if (_v) { |
8708 | return _wrap_GCOMObservation_ontime__SWIG_0(self, args); |
8709 | } |
8710 | } |
8711 | if (argc == 2) { |
8712 | int _v; |
8713 | void *vptr = 0; |
8714 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8715 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8716 | if (_v) { |
8717 | { |
8718 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
8719 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8720 | } |
8721 | if (_v) { |
8722 | return _wrap_GCOMObservation_ontime__SWIG_1(self, args); |
8723 | } |
8724 | } |
8725 | } |
8726 | |
8727 | fail: |
8728 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMObservation_ontime'.\n" |
8729 | " Possible C/C++ prototypes are:\n" |
8730 | " GCOMObservation::ontime() const\n" |
8731 | " GCOMObservation::ontime(double const &)\n"); |
8732 | return 0; |
8733 | } |
8734 | |
8735 | |
8736 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_livetime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8737 | PyObject *resultobj = 0; |
8738 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8739 | double *arg2 = 0 ; |
8740 | void *argp1 = 0 ; |
8741 | int res1 = 0 ; |
8742 | double temp2 ; |
8743 | double val2 ; |
8744 | int ecode2 = 0 ; |
8745 | PyObject * obj0 = 0 ; |
8746 | PyObject * obj1 = 0 ; |
8747 | |
8748 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_livetime",&obj0,&obj1)) SWIG_failgoto fail; |
8749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8750 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_livetime" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_livetime" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8752 | } |
8753 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8754 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8755 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8756 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMObservation_livetime" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMObservation_livetime" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
8757 | } |
8758 | temp2 = static_cast< double >(val2); |
8759 | arg2 = &temp2; |
8760 | { |
8761 | try { |
8762 | (arg1)->livetime((double const &)*arg2); |
8763 | } |
8764 | catch (const GException::out_of_range& e) { |
8765 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8766 | } |
8767 | catch (const GExceptionHandler& e) { |
8768 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8769 | } |
8770 | catch (const std::exception& e) { |
8771 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8772 | } |
8773 | } |
8774 | resultobj = SWIG_Py_Void(); |
8775 | return resultobj; |
8776 | fail: |
8777 | return NULL__null; |
8778 | } |
8779 | |
8780 | |
8781 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_livetime(PyObject *self, PyObject *args) { |
8782 | int argc; |
8783 | PyObject *argv[3]; |
8784 | int ii; |
8785 | |
8786 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8787 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8788 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8789 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8790 | } |
8791 | if (argc == 1) { |
8792 | int _v; |
8793 | void *vptr = 0; |
8794 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8795 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8796 | if (_v) { |
8797 | return _wrap_GCOMObservation_livetime__SWIG_0(self, args); |
8798 | } |
8799 | } |
8800 | if (argc == 2) { |
8801 | int _v; |
8802 | void *vptr = 0; |
8803 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8804 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8805 | if (_v) { |
8806 | { |
8807 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
8808 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8809 | } |
8810 | if (_v) { |
8811 | return _wrap_GCOMObservation_livetime__SWIG_1(self, args); |
8812 | } |
8813 | } |
8814 | } |
8815 | |
8816 | fail: |
8817 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMObservation_livetime'.\n" |
8818 | " Possible C/C++ prototypes are:\n" |
8819 | " GCOMObservation::livetime() const\n" |
8820 | " GCOMObservation::livetime(double const &)\n"); |
8821 | return 0; |
8822 | } |
8823 | |
8824 | |
8825 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_deadc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8826 | PyObject *resultobj = 0; |
8827 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8828 | double *arg2 = 0 ; |
8829 | void *argp1 = 0 ; |
8830 | int res1 = 0 ; |
8831 | double temp2 ; |
8832 | double val2 ; |
8833 | int ecode2 = 0 ; |
8834 | PyObject * obj0 = 0 ; |
8835 | PyObject * obj1 = 0 ; |
8836 | |
8837 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_deadc",&obj0,&obj1)) SWIG_failgoto fail; |
8838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8839 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_deadc" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_deadc" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8841 | } |
8842 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8843 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8844 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMObservation_deadc" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMObservation_deadc" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
8846 | } |
8847 | temp2 = static_cast< double >(val2); |
8848 | arg2 = &temp2; |
8849 | { |
8850 | try { |
8851 | (arg1)->deadc((double const &)*arg2); |
8852 | } |
8853 | catch (const GException::out_of_range& e) { |
8854 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8855 | } |
8856 | catch (const GExceptionHandler& e) { |
8857 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8858 | } |
8859 | catch (const std::exception& e) { |
8860 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8861 | } |
8862 | } |
8863 | resultobj = SWIG_Py_Void(); |
8864 | return resultobj; |
8865 | fail: |
8866 | return NULL__null; |
8867 | } |
8868 | |
8869 | |
8870 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_deadc(PyObject *self, PyObject *args) { |
8871 | int argc; |
8872 | PyObject *argv[3]; |
8873 | int ii; |
8874 | |
8875 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8876 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8877 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8878 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8879 | } |
8880 | if (argc == 2) { |
8881 | int _v; |
8882 | void *vptr = 0; |
8883 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8884 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8885 | if (_v) { |
8886 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[25], 0, 0 ); |
8887 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8888 | if (_v) { |
8889 | return _wrap_GCOMObservation_deadc__SWIG_0(self, args); |
8890 | } |
8891 | } |
8892 | } |
8893 | if (argc == 2) { |
8894 | int _v; |
8895 | void *vptr = 0; |
8896 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
8897 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8898 | if (_v) { |
8899 | { |
8900 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
8901 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8902 | } |
8903 | if (_v) { |
8904 | return _wrap_GCOMObservation_deadc__SWIG_1(self, args); |
8905 | } |
8906 | } |
8907 | } |
8908 | |
8909 | fail: |
8910 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMObservation_deadc'.\n" |
8911 | " Possible C/C++ prototypes are:\n" |
8912 | " GCOMObservation::deadc(GTime const &) const\n" |
8913 | " GCOMObservation::deadc(double const &)\n"); |
8914 | return 0; |
8915 | } |
8916 | |
8917 | |
8918 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_ewidth__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8919 | PyObject *resultobj = 0; |
8920 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8921 | double *arg2 = 0 ; |
8922 | void *argp1 = 0 ; |
8923 | int res1 = 0 ; |
8924 | double temp2 ; |
8925 | double val2 ; |
8926 | int ecode2 = 0 ; |
8927 | PyObject * obj0 = 0 ; |
8928 | PyObject * obj1 = 0 ; |
8929 | |
8930 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMObservation_ewidth",&obj0,&obj1)) SWIG_failgoto fail; |
8931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8932 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_ewidth" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_ewidth" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
8934 | } |
8935 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8936 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8937 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8938 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GCOMObservation_ewidth" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GCOMObservation_ewidth" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
8939 | } |
8940 | temp2 = static_cast< double >(val2); |
8941 | arg2 = &temp2; |
8942 | { |
8943 | try { |
8944 | (arg1)->ewidth((double const &)*arg2); |
8945 | } |
8946 | catch (const GException::out_of_range& e) { |
8947 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8948 | } |
8949 | catch (const GExceptionHandler& e) { |
8950 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8951 | } |
8952 | catch (const std::exception& e) { |
8953 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8954 | } |
8955 | } |
8956 | resultobj = SWIG_Py_Void(); |
8957 | return resultobj; |
8958 | fail: |
8959 | return NULL__null; |
8960 | } |
8961 | |
8962 | |
8963 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_obs_id__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8964 | PyObject *resultobj = 0; |
8965 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
8966 | void *argp1 = 0 ; |
8967 | int res1 = 0 ; |
8968 | PyObject * obj0 = 0 ; |
8969 | double *result = 0 ; |
8970 | |
8971 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_obs_id",&obj0)) SWIG_failgoto fail; |
8972 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
8973 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8974 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_obs_id" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_obs_id" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
8975 | } |
8976 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
8977 | { |
8978 | try { |
8979 | result = (double *) &((GCOMObservation const *)arg1)->obs_id(); |
8980 | } |
8981 | catch (const GException::out_of_range& e) { |
8982 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8983 | } |
8984 | catch (const GExceptionHandler& e) { |
8985 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8986 | } |
8987 | catch (const std::exception& e) { |
8988 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8989 | } |
8990 | } |
8991 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
8992 | return resultobj; |
8993 | fail: |
8994 | return NULL__null; |
8995 | } |
8996 | |
8997 | |
8998 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_obs_id(PyObject *self, PyObject *args) { |
8999 | int argc; |
9000 | PyObject *argv[3]; |
9001 | int ii; |
9002 | |
9003 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9004 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9005 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9006 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9007 | } |
9008 | if (argc == 1) { |
9009 | int _v; |
9010 | void *vptr = 0; |
9011 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9012 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9013 | if (_v) { |
9014 | return _wrap_GCOMObservation_obs_id__SWIG_1(self, args); |
9015 | } |
9016 | } |
9017 | if (argc == 2) { |
9018 | int _v; |
9019 | void *vptr = 0; |
9020 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9021 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9022 | if (_v) { |
9023 | { |
9024 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
9025 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9026 | } |
9027 | if (_v) { |
9028 | return _wrap_GCOMObservation_obs_id__SWIG_0(self, args); |
9029 | } |
9030 | } |
9031 | } |
9032 | |
9033 | fail: |
9034 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMObservation_obs_id'.\n" |
9035 | " Possible C/C++ prototypes are:\n" |
9036 | " GCOMObservation::obs_id(double const &)\n" |
9037 | " GCOMObservation::obs_id() const\n"); |
9038 | return 0; |
9039 | } |
9040 | |
9041 | |
9042 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_ewidth__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9043 | PyObject *resultobj = 0; |
9044 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
9045 | void *argp1 = 0 ; |
9046 | int res1 = 0 ; |
9047 | PyObject * obj0 = 0 ; |
9048 | double *result = 0 ; |
9049 | |
9050 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_ewidth",&obj0)) SWIG_failgoto fail; |
9051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9052 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_ewidth" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_ewidth" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
9054 | } |
9055 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
9056 | { |
9057 | try { |
9058 | result = (double *) &((GCOMObservation const *)arg1)->ewidth(); |
9059 | } |
9060 | catch (const GException::out_of_range& e) { |
9061 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9062 | } |
9063 | catch (const GExceptionHandler& e) { |
9064 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9065 | } |
9066 | catch (const std::exception& e) { |
9067 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9068 | } |
9069 | } |
9070 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
9071 | return resultobj; |
9072 | fail: |
9073 | return NULL__null; |
9074 | } |
9075 | |
9076 | |
9077 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_ewidth(PyObject *self, PyObject *args) { |
9078 | int argc; |
9079 | PyObject *argv[3]; |
9080 | int ii; |
9081 | |
9082 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9083 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9084 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9085 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9086 | } |
9087 | if (argc == 1) { |
9088 | int _v; |
9089 | void *vptr = 0; |
9090 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9091 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9092 | if (_v) { |
9093 | return _wrap_GCOMObservation_ewidth__SWIG_1(self, args); |
9094 | } |
9095 | } |
9096 | if (argc == 2) { |
9097 | int _v; |
9098 | void *vptr = 0; |
9099 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5 ], 0, 0); |
9100 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9101 | if (_v) { |
9102 | { |
9103 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
9104 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9105 | } |
9106 | if (_v) { |
9107 | return _wrap_GCOMObservation_ewidth__SWIG_0(self, args); |
9108 | } |
9109 | } |
9110 | } |
9111 | |
9112 | fail: |
9113 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMObservation_ewidth'.\n" |
9114 | " Possible C/C++ prototypes are:\n" |
9115 | " GCOMObservation::ewidth(double const &)\n" |
9116 | " GCOMObservation::ewidth() const\n"); |
9117 | return 0; |
9118 | } |
9119 | |
9120 | |
9121 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_drb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9122 | PyObject *resultobj = 0; |
9123 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
9124 | void *argp1 = 0 ; |
9125 | int res1 = 0 ; |
9126 | PyObject * obj0 = 0 ; |
9127 | GSkymap *result = 0 ; |
9128 | |
9129 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_drb",&obj0)) SWIG_failgoto fail; |
9130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9131 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_drb" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_drb" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
9133 | } |
9134 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
9135 | { |
9136 | try { |
9137 | result = (GSkymap *) &((GCOMObservation const *)arg1)->drb(); |
9138 | } |
9139 | catch (const GException::out_of_range& e) { |
9140 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9141 | } |
9142 | catch (const GExceptionHandler& e) { |
9143 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9144 | } |
9145 | catch (const std::exception& e) { |
9146 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9147 | } |
9148 | } |
9149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[24], 0 | 0); |
9150 | return resultobj; |
9151 | fail: |
9152 | return NULL__null; |
9153 | } |
9154 | |
9155 | |
9156 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_drg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9157 | PyObject *resultobj = 0; |
9158 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
9159 | void *argp1 = 0 ; |
9160 | int res1 = 0 ; |
9161 | PyObject * obj0 = 0 ; |
9162 | GSkymap *result = 0 ; |
9163 | |
9164 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_drg",&obj0)) SWIG_failgoto fail; |
9165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9166 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_drg" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_drg" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
9168 | } |
9169 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
9170 | { |
9171 | try { |
9172 | result = (GSkymap *) &((GCOMObservation const *)arg1)->drg(); |
9173 | } |
9174 | catch (const GException::out_of_range& e) { |
9175 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9176 | } |
9177 | catch (const GExceptionHandler& e) { |
9178 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9179 | } |
9180 | catch (const std::exception& e) { |
9181 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9182 | } |
9183 | } |
9184 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[24], 0 | 0); |
9185 | return resultobj; |
9186 | fail: |
9187 | return NULL__null; |
9188 | } |
9189 | |
9190 | |
9191 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_drx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9192 | PyObject *resultobj = 0; |
9193 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
9194 | void *argp1 = 0 ; |
9195 | int res1 = 0 ; |
9196 | PyObject * obj0 = 0 ; |
9197 | GSkymap *result = 0 ; |
9198 | |
9199 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_drx",&obj0)) SWIG_failgoto fail; |
9200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9201 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_drx" "', argument " "1"" of type '" "GCOMObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_drx" "', argument " "1"" of type '" "GCOMObservation const *""'"); goto fail; } while (0); |
9203 | } |
9204 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
9205 | { |
9206 | try { |
9207 | result = (GSkymap *) &((GCOMObservation const *)arg1)->drx(); |
9208 | } |
9209 | catch (const GException::out_of_range& e) { |
9210 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9211 | } |
9212 | catch (const GExceptionHandler& e) { |
9213 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9214 | } |
9215 | catch (const std::exception& e) { |
9216 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9217 | } |
9218 | } |
9219 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[24], 0 | 0); |
9220 | return resultobj; |
9221 | fail: |
9222 | return NULL__null; |
9223 | } |
9224 | |
9225 | |
9226 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMObservation_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9227 | PyObject *resultobj = 0; |
9228 | GCOMObservation *arg1 = (GCOMObservation *) 0 ; |
9229 | void *argp1 = 0 ; |
9230 | int res1 = 0 ; |
9231 | PyObject * obj0 = 0 ; |
9232 | GCOMObservation result; |
9233 | |
9234 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMObservation_copy",&obj0)) SWIG_failgoto fail; |
9235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5], 0 | 0, 0); |
9236 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMObservation_copy" "', argument " "1"" of type '" "GCOMObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMObservation_copy" "', argument " "1"" of type '" "GCOMObservation *""'"); goto fail; } while( 0); |
9238 | } |
9239 | arg1 = reinterpret_cast< GCOMObservation * >(argp1); |
9240 | { |
9241 | try { |
9242 | result = GCOMObservation_copy(arg1); |
9243 | } |
9244 | catch (const GException::out_of_range& e) { |
9245 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9246 | } |
9247 | catch (const GExceptionHandler& e) { |
9248 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9249 | } |
9250 | catch (const std::exception& e) { |
9251 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9252 | } |
9253 | } |
9254 | resultobj = SWIG_NewPointerObj((new GCOMObservation(static_cast< const GCOMObservation& >(result))), SWIGTYPE_p_GCOMObservation, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCOMObservation(static_cast < const GCOMObservation& >(result))), swig_types[5] , 0x1 | 0); |
9255 | return resultobj; |
9256 | fail: |
9257 | return NULL__null; |
9258 | } |
9259 | |
9260 | |
9261 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCOMObservation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9262 | PyObject *obj; |
9263 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
9264 | SWIG_TypeNewClientData(SWIGTYPE_p_GCOMObservationswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
9265 | return SWIG_Py_Void(); |
9266 | } |
9267 | |
9268 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMResponse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9269 | PyObject *resultobj = 0; |
9270 | GCOMResponse *result = 0 ; |
9271 | |
9272 | if (!PyArg_ParseTuple(args,(char *)":new_GCOMResponse")) SWIG_failgoto fail; |
9273 | { |
9274 | try { |
9275 | result = (GCOMResponse *)new GCOMResponse(); |
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_GCOMResponse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
9288 | return resultobj; |
9289 | fail: |
9290 | return NULL__null; |
9291 | } |
9292 | |
9293 | |
9294 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMResponse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9295 | PyObject *resultobj = 0; |
9296 | GCOMResponse *arg1 = 0 ; |
9297 | void *argp1 = 0 ; |
9298 | int res1 = 0 ; |
9299 | PyObject * obj0 = 0 ; |
9300 | GCOMResponse *result = 0 ; |
9301 | |
9302 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMResponse",&obj0)) SWIG_failgoto fail; |
9303 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCOMResponse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9304 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "GCOMResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "GCOMResponse const &""'"); goto fail; } while(0); |
9306 | } |
9307 | if (!argp1) { |
9308 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "GCOMResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "GCOMResponse const &""'"); goto fail; } while(0); |
9309 | } |
9310 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9311 | { |
9312 | try { |
9313 | result = (GCOMResponse *)new GCOMResponse((GCOMResponse const &)*arg1); |
9314 | } |
9315 | catch (const GException::out_of_range& e) { |
9316 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9317 | } |
9318 | catch (const GExceptionHandler& e) { |
9319 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9320 | } |
9321 | catch (const std::exception& e) { |
9322 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9323 | } |
9324 | } |
9325 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMResponse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
9326 | return resultobj; |
9327 | fail: |
9328 | return NULL__null; |
9329 | } |
9330 | |
9331 | |
9332 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMResponse__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9333 | PyObject *resultobj = 0; |
9334 | std::string *arg1 = 0 ; |
9335 | std::string *arg2 = 0 ; |
9336 | int res1 = SWIG_OLDOBJ((0)) ; |
9337 | int res2 = SWIG_OLDOBJ((0)) ; |
9338 | PyObject * obj0 = 0 ; |
9339 | PyObject * obj1 = 0 ; |
9340 | GCOMResponse *result = 0 ; |
9341 | |
9342 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GCOMResponse",&obj0,&obj1)) SWIG_failgoto fail; |
9343 | { |
9344 | std::string *ptr = (std::string *)0; |
9345 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
9346 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
9348 | } |
9349 | if (!ptr) { |
9350 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
9351 | } |
9352 | arg1 = ptr; |
9353 | } |
9354 | { |
9355 | std::string *ptr = (std::string *)0; |
9356 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9357 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9358 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GCOMResponse" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GCOMResponse" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9359 | } |
9360 | if (!ptr) { |
9361 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9362 | } |
9363 | arg2 = ptr; |
9364 | } |
9365 | { |
9366 | try { |
9367 | result = (GCOMResponse *)new GCOMResponse((std::string const &)*arg1,(std::string const &)*arg2); |
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_GCOMResponse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
9380 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9381 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9382 | return resultobj; |
9383 | fail: |
9384 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9385 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9386 | return NULL__null; |
9387 | } |
9388 | |
9389 | |
9390 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMResponse__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9391 | PyObject *resultobj = 0; |
9392 | std::string *arg1 = 0 ; |
9393 | int res1 = SWIG_OLDOBJ((0)) ; |
9394 | PyObject * obj0 = 0 ; |
9395 | GCOMResponse *result = 0 ; |
9396 | |
9397 | if (!PyArg_ParseTuple(args,(char *)"O:new_GCOMResponse",&obj0)) SWIG_failgoto fail; |
9398 | { |
9399 | std::string *ptr = (std::string *)0; |
9400 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
9401 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
9403 | } |
9404 | if (!ptr) { |
9405 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GCOMResponse" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
9406 | } |
9407 | arg1 = ptr; |
9408 | } |
9409 | { |
9410 | try { |
9411 | result = (GCOMResponse *)new GCOMResponse((std::string const &)*arg1); |
9412 | } |
9413 | catch (const GException::out_of_range& e) { |
9414 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9415 | } |
9416 | catch (const GExceptionHandler& e) { |
9417 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9418 | } |
9419 | catch (const std::exception& e) { |
9420 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9421 | } |
9422 | } |
9423 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMResponse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
9424 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9425 | return resultobj; |
9426 | fail: |
9427 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9428 | return NULL__null; |
9429 | } |
9430 | |
9431 | |
9432 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCOMResponse(PyObject *self, PyObject *args) { |
9433 | int argc; |
9434 | PyObject *argv[3]; |
9435 | int ii; |
9436 | |
9437 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9438 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9439 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9440 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9441 | } |
9442 | if (argc == 0) { |
9443 | return _wrap_new_GCOMResponse__SWIG_0(self, args); |
9444 | } |
9445 | if (argc == 1) { |
9446 | int _v; |
9447 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCOMResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[6], 0, 0); |
9448 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9449 | if (_v) { |
9450 | return _wrap_new_GCOMResponse__SWIG_1(self, args); |
9451 | } |
9452 | } |
9453 | if (argc == 1) { |
9454 | int _v; |
9455 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
9456 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9457 | if (_v) { |
9458 | return _wrap_new_GCOMResponse__SWIG_3(self, args); |
9459 | } |
9460 | } |
9461 | if (argc == 2) { |
9462 | int _v; |
9463 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
9464 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9465 | if (_v) { |
9466 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9467 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9468 | if (_v) { |
9469 | return _wrap_new_GCOMResponse__SWIG_2(self, args); |
9470 | } |
9471 | } |
9472 | } |
9473 | |
9474 | fail: |
9475 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCOMResponse'.\n" |
9476 | " Possible C/C++ prototypes are:\n" |
9477 | " GCOMResponse::GCOMResponse()\n" |
9478 | " GCOMResponse::GCOMResponse(GCOMResponse const &)\n" |
9479 | " GCOMResponse::GCOMResponse(std::string const &,std::string const &)\n" |
9480 | " GCOMResponse::GCOMResponse(std::string const &)\n"); |
9481 | return 0; |
9482 | } |
9483 | |
9484 | |
9485 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCOMResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9486 | PyObject *resultobj = 0; |
9487 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9488 | void *argp1 = 0 ; |
9489 | int res1 = 0 ; |
9490 | PyObject * obj0 = 0 ; |
9491 | |
9492 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GCOMResponse",&obj0)) SWIG_failgoto fail; |
9493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0x1 | 0, 0); |
9494 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCOMResponse" "', argument " "1"" of type '" "GCOMResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GCOMResponse" "', argument " "1"" of type '" "GCOMResponse *""'"); goto fail; } while(0); |
9496 | } |
9497 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9498 | { |
9499 | try { |
9500 | delete arg1; |
9501 | } |
9502 | catch (const GException::out_of_range& e) { |
9503 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9504 | } |
9505 | catch (const GExceptionHandler& e) { |
9506 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9507 | } |
9508 | catch (const std::exception& e) { |
9509 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9510 | } |
9511 | } |
9512 | resultobj = SWIG_Py_Void(); |
9513 | return resultobj; |
9514 | fail: |
9515 | return NULL__null; |
9516 | } |
9517 | |
9518 | |
9519 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9520 | PyObject *resultobj = 0; |
9521 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9522 | void *argp1 = 0 ; |
9523 | int res1 = 0 ; |
9524 | PyObject * obj0 = 0 ; |
9525 | |
9526 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMResponse_clear",&obj0)) SWIG_failgoto fail; |
9527 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9528 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_clear" "', argument " "1"" of type '" "GCOMResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_clear" "', argument " "1"" of type '" "GCOMResponse *""'"); goto fail; } while(0); |
9530 | } |
9531 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9532 | { |
9533 | try { |
9534 | (arg1)->clear(); |
9535 | } |
9536 | catch (const GException::out_of_range& e) { |
9537 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9538 | } |
9539 | catch (const GExceptionHandler& e) { |
9540 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9541 | } |
9542 | catch (const std::exception& e) { |
9543 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9544 | } |
9545 | } |
9546 | resultobj = SWIG_Py_Void(); |
9547 | return resultobj; |
9548 | fail: |
9549 | return NULL__null; |
9550 | } |
9551 | |
9552 | |
9553 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9554 | PyObject *resultobj = 0; |
9555 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9556 | void *argp1 = 0 ; |
9557 | int res1 = 0 ; |
9558 | PyObject * obj0 = 0 ; |
9559 | GCOMResponse *result = 0 ; |
9560 | |
9561 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMResponse_clone",&obj0)) SWIG_failgoto fail; |
9562 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9563 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_clone" "', argument " "1"" of type '" "GCOMResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_clone" "', argument " "1"" of type '" "GCOMResponse const *""'"); goto fail; } while (0); |
9565 | } |
9566 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9567 | { |
9568 | try { |
9569 | result = (GCOMResponse *)((GCOMResponse const *)arg1)->clone(); |
9570 | } |
9571 | catch (const GException::out_of_range& e) { |
9572 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9573 | } |
9574 | catch (const GExceptionHandler& e) { |
9575 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9576 | } |
9577 | catch (const std::exception& e) { |
9578 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9579 | } |
9580 | } |
9581 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], 0 | 0); |
9582 | return resultobj; |
9583 | fail: |
9584 | return NULL__null; |
9585 | } |
9586 | |
9587 | |
9588 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_hasedisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9589 | PyObject *resultobj = 0; |
9590 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9591 | void *argp1 = 0 ; |
9592 | int res1 = 0 ; |
9593 | PyObject * obj0 = 0 ; |
9594 | bool result; |
9595 | |
9596 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMResponse_hasedisp",&obj0)) SWIG_failgoto fail; |
9597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9598 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_hasedisp" "', argument " "1"" of type '" "GCOMResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_hasedisp" "', argument " "1"" of type '" "GCOMResponse const *""'"); goto fail; } while (0); |
9600 | } |
9601 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9602 | { |
9603 | try { |
9604 | result = (bool)((GCOMResponse const *)arg1)->hasedisp(); |
9605 | } |
9606 | catch (const GException::out_of_range& e) { |
9607 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9608 | } |
9609 | catch (const GExceptionHandler& e) { |
9610 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9611 | } |
9612 | catch (const std::exception& e) { |
9613 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9614 | } |
9615 | } |
9616 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
9617 | return resultobj; |
9618 | fail: |
9619 | return NULL__null; |
9620 | } |
9621 | |
9622 | |
9623 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_hastdisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9624 | PyObject *resultobj = 0; |
9625 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9626 | void *argp1 = 0 ; |
9627 | int res1 = 0 ; |
9628 | PyObject * obj0 = 0 ; |
9629 | bool result; |
9630 | |
9631 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMResponse_hastdisp",&obj0)) SWIG_failgoto fail; |
9632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9633 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_hastdisp" "', argument " "1"" of type '" "GCOMResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_hastdisp" "', argument " "1"" of type '" "GCOMResponse const *""'"); goto fail; } while (0); |
9635 | } |
9636 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9637 | { |
9638 | try { |
9639 | result = (bool)((GCOMResponse const *)arg1)->hastdisp(); |
9640 | } |
9641 | catch (const GException::out_of_range& e) { |
9642 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9643 | } |
9644 | catch (const GExceptionHandler& e) { |
9645 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9646 | } |
9647 | catch (const std::exception& e) { |
9648 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9649 | } |
9650 | } |
9651 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
9652 | return resultobj; |
9653 | fail: |
9654 | return NULL__null; |
9655 | } |
9656 | |
9657 | |
9658 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_irf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9659 | PyObject *resultobj = 0; |
9660 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9661 | GEvent *arg2 = 0 ; |
9662 | GPhoton *arg3 = 0 ; |
9663 | GObservation *arg4 = 0 ; |
9664 | void *argp1 = 0 ; |
9665 | int res1 = 0 ; |
9666 | void *argp2 = 0 ; |
9667 | int res2 = 0 ; |
9668 | void *argp3 = 0 ; |
9669 | int res3 = 0 ; |
9670 | void *argp4 = 0 ; |
9671 | int res4 = 0 ; |
9672 | PyObject * obj0 = 0 ; |
9673 | PyObject * obj1 = 0 ; |
9674 | PyObject * obj2 = 0 ; |
9675 | PyObject * obj3 = 0 ; |
9676 | double result; |
9677 | |
9678 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GCOMResponse_irf",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
9679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9680 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_irf" "', argument " "1"" of type '" "GCOMResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_irf" "', argument " "1"" of type '" "GCOMResponse const *""'"); goto fail; } while (0); |
9682 | } |
9683 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9684 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
9685 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9686 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMResponse_irf" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while (0); |
9687 | } |
9688 | if (!argp2) { |
9689 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_irf" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while(0); |
9690 | } |
9691 | arg2 = reinterpret_cast< GEvent * >(argp2); |
9692 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20] , 0 | 0, 0); |
9693 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9694 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'"); goto fail; } while (0); |
9695 | } |
9696 | if (!argp3) { |
9697 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'"); goto fail; } while(0); |
9698 | } |
9699 | arg3 = reinterpret_cast< GPhoton * >(argp3); |
9700 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[19] , 0 | 0, 0); |
9701 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
9702 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GCOMResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GCOMResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
9703 | } |
9704 | if (!argp4) { |
9705 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
9706 | } |
9707 | arg4 = reinterpret_cast< GObservation * >(argp4); |
9708 | { |
9709 | try { |
9710 | result = (double)((GCOMResponse const *)arg1)->irf((GEvent const &)*arg2,(GPhoton const &)*arg3,(GObservation const &)*arg4); |
9711 | } |
9712 | catch (const GException::out_of_range& e) { |
9713 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9714 | } |
9715 | catch (const GExceptionHandler& e) { |
9716 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9717 | } |
9718 | catch (const std::exception& e) { |
9719 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9720 | } |
9721 | } |
9722 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
9723 | return resultobj; |
9724 | fail: |
9725 | return NULL__null; |
9726 | } |
9727 | |
9728 | |
9729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_npred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9730 | PyObject *resultobj = 0; |
9731 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9732 | GPhoton *arg2 = 0 ; |
9733 | GObservation *arg3 = 0 ; |
9734 | void *argp1 = 0 ; |
9735 | int res1 = 0 ; |
9736 | void *argp2 = 0 ; |
9737 | int res2 = 0 ; |
9738 | void *argp3 = 0 ; |
9739 | int res3 = 0 ; |
9740 | PyObject * obj0 = 0 ; |
9741 | PyObject * obj1 = 0 ; |
9742 | PyObject * obj2 = 0 ; |
9743 | double result; |
9744 | |
9745 | if (!PyArg_ParseTuple(args,(char *)"OOO:GCOMResponse_npred",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9747 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_npred" "', argument " "1"" of type '" "GCOMResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_npred" "', argument " "1"" of type '" "GCOMResponse const *""'"); goto fail; } while (0); |
9749 | } |
9750 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9751 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[20] , 0 | 0, 0); |
9752 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9753 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'"); goto fail; } while (0); |
9754 | } |
9755 | if (!argp2) { |
9756 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'"); goto fail; } while(0); |
9757 | } |
9758 | arg2 = reinterpret_cast< GPhoton * >(argp2); |
9759 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[19] , 0 | 0, 0); |
9760 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9761 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCOMResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GCOMResponse_npred" "', argument " "3"" of type '" "GObservation const &""'"); goto fail; } while(0); |
9762 | } |
9763 | if (!argp3) { |
9764 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_npred" "', argument " "3"" of type '" "GObservation const &""'"); goto fail; } while(0); |
9765 | } |
9766 | arg3 = reinterpret_cast< GObservation * >(argp3); |
9767 | { |
9768 | try { |
9769 | result = (double)((GCOMResponse const *)arg1)->npred((GPhoton const &)*arg2,(GObservation const &)*arg3); |
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_doublePyFloat_FromDouble(static_cast< double >(result)); |
9782 | return resultobj; |
9783 | fail: |
9784 | return NULL__null; |
9785 | } |
9786 | |
9787 | |
9788 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_caldb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9789 | PyObject *resultobj = 0; |
9790 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9791 | std::string *arg2 = 0 ; |
9792 | void *argp1 = 0 ; |
9793 | int res1 = 0 ; |
9794 | int res2 = SWIG_OLDOBJ((0)) ; |
9795 | PyObject * obj0 = 0 ; |
9796 | PyObject * obj1 = 0 ; |
9797 | |
9798 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMResponse_caldb",&obj0,&obj1)) SWIG_failgoto fail; |
9799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9800 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_caldb" "', argument " "1"" of type '" "GCOMResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_caldb" "', argument " "1"" of type '" "GCOMResponse *""'"); goto fail; } while(0); |
9802 | } |
9803 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9804 | { |
9805 | std::string *ptr = (std::string *)0; |
9806 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9807 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9808 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMResponse_caldb" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMResponse_caldb" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9809 | } |
9810 | if (!ptr) { |
9811 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_caldb" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_caldb" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9812 | } |
9813 | arg2 = ptr; |
9814 | } |
9815 | { |
9816 | try { |
9817 | (arg1)->caldb((std::string const &)*arg2); |
9818 | } |
9819 | catch (const GException::out_of_range& e) { |
9820 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9821 | } |
9822 | catch (const GExceptionHandler& e) { |
9823 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9824 | } |
9825 | catch (const std::exception& e) { |
9826 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9827 | } |
9828 | } |
9829 | resultobj = SWIG_Py_Void(); |
9830 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9831 | return resultobj; |
9832 | fail: |
9833 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9834 | return NULL__null; |
9835 | } |
9836 | |
9837 | |
9838 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_caldb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9839 | PyObject *resultobj = 0; |
9840 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9841 | void *argp1 = 0 ; |
9842 | int res1 = 0 ; |
9843 | PyObject * obj0 = 0 ; |
9844 | std::string result; |
9845 | |
9846 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMResponse_caldb",&obj0)) SWIG_failgoto fail; |
9847 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9848 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_caldb" "', argument " "1"" of type '" "GCOMResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_caldb" "', argument " "1"" of type '" "GCOMResponse const *""'"); goto fail; } while (0); |
9850 | } |
9851 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9852 | { |
9853 | try { |
9854 | result = ((GCOMResponse const *)arg1)->caldb(); |
9855 | } |
9856 | catch (const GException::out_of_range& e) { |
9857 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9858 | } |
9859 | catch (const GExceptionHandler& e) { |
9860 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9861 | } |
9862 | catch (const std::exception& e) { |
9863 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9864 | } |
9865 | } |
9866 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
9867 | return resultobj; |
9868 | fail: |
9869 | return NULL__null; |
9870 | } |
9871 | |
9872 | |
9873 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_caldb(PyObject *self, PyObject *args) { |
9874 | int argc; |
9875 | PyObject *argv[3]; |
9876 | int ii; |
9877 | |
9878 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9879 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9880 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9881 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9882 | } |
9883 | if (argc == 1) { |
9884 | int _v; |
9885 | void *vptr = 0; |
9886 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9887 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9888 | if (_v) { |
9889 | return _wrap_GCOMResponse_caldb__SWIG_1(self, args); |
9890 | } |
9891 | } |
9892 | if (argc == 2) { |
9893 | int _v; |
9894 | void *vptr = 0; |
9895 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCOMResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
9896 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9897 | if (_v) { |
9898 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9899 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9900 | if (_v) { |
9901 | return _wrap_GCOMResponse_caldb__SWIG_0(self, args); |
9902 | } |
9903 | } |
9904 | } |
9905 | |
9906 | fail: |
9907 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCOMResponse_caldb'.\n" |
9908 | " Possible C/C++ prototypes are:\n" |
9909 | " GCOMResponse::caldb(std::string const &)\n" |
9910 | " GCOMResponse::caldb() const\n"); |
9911 | return 0; |
9912 | } |
9913 | |
9914 | |
9915 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_iaqname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9916 | PyObject *resultobj = 0; |
9917 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9918 | void *argp1 = 0 ; |
9919 | int res1 = 0 ; |
9920 | PyObject * obj0 = 0 ; |
9921 | std::string result; |
9922 | |
9923 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMResponse_iaqname",&obj0)) SWIG_failgoto fail; |
9924 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9925 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9926 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_iaqname" "', argument " "1"" of type '" "GCOMResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_iaqname" "', argument " "1"" of type '" "GCOMResponse const *""'"); goto fail; } while (0); |
9927 | } |
9928 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9929 | { |
9930 | try { |
9931 | result = ((GCOMResponse const *)arg1)->iaqname(); |
9932 | } |
9933 | catch (const GException::out_of_range& e) { |
9934 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9935 | } |
9936 | catch (const GExceptionHandler& e) { |
9937 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9938 | } |
9939 | catch (const std::exception& e) { |
9940 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9941 | } |
9942 | } |
9943 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
9944 | return resultobj; |
9945 | fail: |
9946 | return NULL__null; |
9947 | } |
9948 | |
9949 | |
9950 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9951 | PyObject *resultobj = 0; |
9952 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
9953 | std::string *arg2 = 0 ; |
9954 | void *argp1 = 0 ; |
9955 | int res1 = 0 ; |
9956 | int res2 = SWIG_OLDOBJ((0)) ; |
9957 | PyObject * obj0 = 0 ; |
9958 | PyObject * obj1 = 0 ; |
9959 | |
9960 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMResponse_load",&obj0,&obj1)) SWIG_failgoto fail; |
9961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
9962 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_load" "', argument " "1"" of type '" "GCOMResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_load" "', argument " "1"" of type '" "GCOMResponse *""'"); goto fail; } while(0); |
9964 | } |
9965 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
9966 | { |
9967 | std::string *ptr = (std::string *)0; |
9968 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9969 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9970 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMResponse_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMResponse_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9971 | } |
9972 | if (!ptr) { |
9973 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9974 | } |
9975 | arg2 = ptr; |
9976 | } |
9977 | { |
9978 | try { |
9979 | (arg1)->load((std::string const &)*arg2); |
9980 | } |
9981 | catch (const GException::out_of_range& e) { |
9982 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9983 | } |
9984 | catch (const GExceptionHandler& e) { |
9985 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9986 | } |
9987 | catch (const std::exception& e) { |
9988 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9989 | } |
9990 | } |
9991 | resultobj = SWIG_Py_Void(); |
9992 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9993 | return resultobj; |
9994 | fail: |
9995 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9996 | return NULL__null; |
9997 | } |
9998 | |
9999 | |
10000 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10001 | PyObject *resultobj = 0; |
10002 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
10003 | GFitsImage *arg2 = 0 ; |
10004 | void *argp1 = 0 ; |
10005 | int res1 = 0 ; |
10006 | void *argp2 = 0 ; |
10007 | int res2 = 0 ; |
10008 | PyObject * obj0 = 0 ; |
10009 | PyObject * obj1 = 0 ; |
10010 | |
10011 | if (!PyArg_ParseTuple(args,(char *)"OO:GCOMResponse_read",&obj0,&obj1)) SWIG_failgoto fail; |
10012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
10013 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_read" "', argument " "1"" of type '" "GCOMResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_read" "', argument " "1"" of type '" "GCOMResponse *""'"); goto fail; } while(0); |
10015 | } |
10016 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
10017 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsImage, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[14] , 0 | 0, 0); |
10018 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10019 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCOMResponse_read" "', argument " "2"" of type '" "GFitsImage const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GCOMResponse_read" "', argument " "2"" of type '" "GFitsImage const &""'"); goto fail; } while (0); |
10020 | } |
10021 | if (!argp2) { |
10022 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCOMResponse_read" "', argument " "2"" of type '" "GFitsImage const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GCOMResponse_read" "', argument " "2"" of type '" "GFitsImage const &""'"); goto fail; } while(0); |
10023 | } |
10024 | arg2 = reinterpret_cast< GFitsImage * >(argp2); |
10025 | { |
10026 | try { |
10027 | (arg1)->read((GFitsImage const &)*arg2); |
10028 | } |
10029 | catch (const GException::out_of_range& e) { |
10030 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10031 | } |
10032 | catch (const GExceptionHandler& e) { |
10033 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10034 | } |
10035 | catch (const std::exception& e) { |
10036 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10037 | } |
10038 | } |
10039 | resultobj = SWIG_Py_Void(); |
10040 | return resultobj; |
10041 | fail: |
10042 | return NULL__null; |
10043 | } |
10044 | |
10045 | |
10046 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCOMResponse_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10047 | PyObject *resultobj = 0; |
10048 | GCOMResponse *arg1 = (GCOMResponse *) 0 ; |
10049 | void *argp1 = 0 ; |
10050 | int res1 = 0 ; |
10051 | PyObject * obj0 = 0 ; |
10052 | GCOMResponse result; |
10053 | |
10054 | if (!PyArg_ParseTuple(args,(char *)"O:GCOMResponse_copy",&obj0)) SWIG_failgoto fail; |
10055 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCOMResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
10056 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCOMResponse_copy" "', argument " "1"" of type '" "GCOMResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GCOMResponse_copy" "', argument " "1"" of type '" "GCOMResponse *""'"); goto fail; } while(0); |
10058 | } |
10059 | arg1 = reinterpret_cast< GCOMResponse * >(argp1); |
10060 | { |
10061 | try { |
10062 | result = GCOMResponse_copy(arg1); |
10063 | } |
10064 | catch (const GException::out_of_range& e) { |
10065 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10066 | } |
10067 | catch (const GExceptionHandler& e) { |
10068 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10069 | } |
10070 | catch (const std::exception& e) { |
10071 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10072 | } |
10073 | } |
10074 | resultobj = SWIG_NewPointerObj((new GCOMResponse(static_cast< const GCOMResponse& >(result))), SWIGTYPE_p_GCOMResponse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCOMResponse(static_cast < const GCOMResponse& >(result))), swig_types[6], 0x1 | 0); |
10075 | return resultobj; |
10076 | fail: |
10077 | return NULL__null; |
10078 | } |
10079 | |
10080 | |
10081 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCOMResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10082 | PyObject *obj; |
10083 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
10084 | SWIG_TypeNewClientData(SWIGTYPE_p_GCOMResponseswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
10085 | return SWIG_Py_Void(); |
10086 | } |
10087 | |
10088 | static PyMethodDef SwigMethods[] = { |
10089 | { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null}, |
10090 | { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"}, |
10091 | { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"}, |
10092 | { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n" |
10093 | "incr(size_t n=1) -> SwigPyIterator\n" |
10094 | "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n" |
10095 | ""}, |
10096 | { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n" |
10097 | "decr(size_t n=1) -> SwigPyIterator\n" |
10098 | "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n" |
10099 | ""}, |
10100 | { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"}, |
10101 | { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10102 | { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"}, |
10103 | { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"}, |
10104 | { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"}, |
10105 | { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"}, |
10106 | { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10107 | { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10108 | { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
10109 | { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10110 | { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10111 | { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
10112 | { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n" |
10113 | "__sub__(ptrdiff_t n) -> SwigPyIterator\n" |
10114 | "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n" |
10115 | ""}, |
10116 | { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null}, |
10117 | { (char *)"new_GCOMEventBin", _wrap_new_GCOMEventBin, METH_VARARGS0x0001, (char *)"\n" |
10118 | "GCOMEventBin()\n" |
10119 | "new_GCOMEventBin(GCOMEventBin bin) -> GCOMEventBin\n" |
10120 | ""}, |
10121 | { (char *)"delete_GCOMEventBin", _wrap_delete_GCOMEventBin, METH_VARARGS0x0001, (char *)"delete_GCOMEventBin(GCOMEventBin self)"}, |
10122 | { (char *)"GCOMEventBin_clear", _wrap_GCOMEventBin_clear, METH_VARARGS0x0001, (char *)"GCOMEventBin_clear(GCOMEventBin self)"}, |
10123 | { (char *)"GCOMEventBin_clone", _wrap_GCOMEventBin_clone, METH_VARARGS0x0001, (char *)"GCOMEventBin_clone(GCOMEventBin self) -> GCOMEventBin"}, |
10124 | { (char *)"GCOMEventBin_size", _wrap_GCOMEventBin_size, METH_VARARGS0x0001, (char *)"GCOMEventBin_size(GCOMEventBin self) -> double"}, |
10125 | { (char *)"GCOMEventBin_dir", _wrap_GCOMEventBin_dir, METH_VARARGS0x0001, (char *)"GCOMEventBin_dir(GCOMEventBin self) -> GCOMInstDir"}, |
10126 | { (char *)"GCOMEventBin_energy", _wrap_GCOMEventBin_energy, METH_VARARGS0x0001, (char *)"GCOMEventBin_energy(GCOMEventBin self) -> GEnergy const &"}, |
10127 | { (char *)"GCOMEventBin_time", _wrap_GCOMEventBin_time, METH_VARARGS0x0001, (char *)"GCOMEventBin_time(GCOMEventBin self) -> GTime const &"}, |
10128 | { (char *)"GCOMEventBin_error", _wrap_GCOMEventBin_error, METH_VARARGS0x0001, (char *)"GCOMEventBin_error(GCOMEventBin self) -> double"}, |
10129 | { (char *)"GCOMEventBin_counts", _wrap_GCOMEventBin_counts, METH_VARARGS0x0001, (char *)"\n" |
10130 | "counts() -> double\n" |
10131 | "GCOMEventBin_counts(GCOMEventBin self, double const & counts)\n" |
10132 | ""}, |
10133 | { (char *)"GCOMEventBin_index", _wrap_GCOMEventBin_index, METH_VARARGS0x0001, (char *)"GCOMEventBin_index(GCOMEventBin self) -> int const &"}, |
10134 | { (char *)"GCOMEventBin_omega", _wrap_GCOMEventBin_omega, METH_VARARGS0x0001, (char *)"GCOMEventBin_omega(GCOMEventBin self) -> double const &"}, |
10135 | { (char *)"GCOMEventBin_ewidth", _wrap_GCOMEventBin_ewidth, METH_VARARGS0x0001, (char *)"GCOMEventBin_ewidth(GCOMEventBin self) -> GEnergy const &"}, |
10136 | { (char *)"GCOMEventBin_ontime", _wrap_GCOMEventBin_ontime, METH_VARARGS0x0001, (char *)"GCOMEventBin_ontime(GCOMEventBin self) -> double const &"}, |
10137 | { (char *)"GCOMEventBin_copy", _wrap_GCOMEventBin_copy, METH_VARARGS0x0001, (char *)"GCOMEventBin_copy(GCOMEventBin self) -> GCOMEventBin"}, |
10138 | { (char *)"GCOMEventBin_swigregister", GCOMEventBin_swigregister, METH_VARARGS0x0001, NULL__null}, |
10139 | { (char *)"new_GCOMEventCube", _wrap_new_GCOMEventCube, METH_VARARGS0x0001, (char *)"\n" |
10140 | "GCOMEventCube()\n" |
10141 | "GCOMEventCube(std::string const & filename)\n" |
10142 | "GCOMEventCube(GSkymap const & map, GEbounds const & ebds, GGti const & gti, double const & phimin, \n" |
10143 | " double const & dphi)\n" |
10144 | "new_GCOMEventCube(GCOMEventCube cube) -> GCOMEventCube\n" |
10145 | ""}, |
10146 | { (char *)"delete_GCOMEventCube", _wrap_delete_GCOMEventCube, METH_VARARGS0x0001, (char *)"delete_GCOMEventCube(GCOMEventCube self)"}, |
10147 | { (char *)"GCOMEventCube_clear", _wrap_GCOMEventCube_clear, METH_VARARGS0x0001, (char *)"GCOMEventCube_clear(GCOMEventCube self)"}, |
10148 | { (char *)"GCOMEventCube_clone", _wrap_GCOMEventCube_clone, METH_VARARGS0x0001, (char *)"GCOMEventCube_clone(GCOMEventCube self) -> GCOMEventCube"}, |
10149 | { (char *)"GCOMEventCube_size", _wrap_GCOMEventCube_size, METH_VARARGS0x0001, (char *)"GCOMEventCube_size(GCOMEventCube self) -> int"}, |
10150 | { (char *)"GCOMEventCube_dim", _wrap_GCOMEventCube_dim, METH_VARARGS0x0001, (char *)"GCOMEventCube_dim(GCOMEventCube self) -> int"}, |
10151 | { (char *)"GCOMEventCube_naxis", _wrap_GCOMEventCube_naxis, METH_VARARGS0x0001, (char *)"GCOMEventCube_naxis(GCOMEventCube self, int const & axis) -> int"}, |
10152 | { (char *)"GCOMEventCube_load", _wrap_GCOMEventCube_load, METH_VARARGS0x0001, (char *)"GCOMEventCube_load(GCOMEventCube self, std::string const & filename)"}, |
10153 | { (char *)"GCOMEventCube_save", _wrap_GCOMEventCube_save, METH_VARARGS0x0001, (char *)"\n" |
10154 | "save(std::string const & filename, bool const & clobber=False)\n" |
10155 | "GCOMEventCube_save(GCOMEventCube self, std::string const & filename)\n" |
10156 | ""}, |
10157 | { (char *)"GCOMEventCube_read", _wrap_GCOMEventCube_read, METH_VARARGS0x0001, (char *)"GCOMEventCube_read(GCOMEventCube self, GFits const & file)"}, |
10158 | { (char *)"GCOMEventCube_write", _wrap_GCOMEventCube_write, METH_VARARGS0x0001, (char *)"GCOMEventCube_write(GCOMEventCube self, GFits & file)"}, |
10159 | { (char *)"GCOMEventCube_number", _wrap_GCOMEventCube_number, METH_VARARGS0x0001, (char *)"GCOMEventCube_number(GCOMEventCube self) -> int"}, |
10160 | { (char *)"GCOMEventCube_map", _wrap_GCOMEventCube_map, METH_VARARGS0x0001, (char *)"\n" |
10161 | "map(GSkymap const & map, double const & phimin, double const & dphi)\n" |
10162 | "GCOMEventCube_map(GCOMEventCube self) -> GSkymap const &\n" |
10163 | ""}, |
10164 | { (char *)"GCOMEventCube_nchi", _wrap_GCOMEventCube_nchi, METH_VARARGS0x0001, (char *)"GCOMEventCube_nchi(GCOMEventCube self) -> int"}, |
10165 | { (char *)"GCOMEventCube_npsi", _wrap_GCOMEventCube_npsi, METH_VARARGS0x0001, (char *)"GCOMEventCube_npsi(GCOMEventCube self) -> int"}, |
10166 | { (char *)"GCOMEventCube_nphi", _wrap_GCOMEventCube_nphi, METH_VARARGS0x0001, (char *)"GCOMEventCube_nphi(GCOMEventCube self) -> int"}, |
10167 | { (char *)"GCOMEventCube_npix", _wrap_GCOMEventCube_npix, METH_VARARGS0x0001, (char *)"GCOMEventCube_npix(GCOMEventCube self) -> int"}, |
10168 | { (char *)"GCOMEventCube_copy", _wrap_GCOMEventCube_copy, METH_VARARGS0x0001, (char *)"GCOMEventCube_copy(GCOMEventCube self) -> GCOMEventCube"}, |
10169 | { (char *)"GCOMEventCube___getitem__", _wrap_GCOMEventCube___getitem__, METH_VARARGS0x0001, (char *)"GCOMEventCube___getitem__(GCOMEventCube self, int index) -> GCOMEventBin"}, |
10170 | { (char *)"GCOMEventCube___setitem__", _wrap_GCOMEventCube___setitem__, METH_VARARGS0x0001, (char *)"GCOMEventCube___setitem__(GCOMEventCube self, int index, GCOMEventBin val)"}, |
10171 | { (char *)"GCOMEventCube_swigregister", GCOMEventCube_swigregister, METH_VARARGS0x0001, NULL__null}, |
10172 | { (char *)"new_GCOMInstDir", _wrap_new_GCOMInstDir, METH_VARARGS0x0001, (char *)"\n" |
10173 | "GCOMInstDir()\n" |
10174 | "new_GCOMInstDir(GCOMInstDir dir) -> GCOMInstDir\n" |
10175 | ""}, |
10176 | { (char *)"delete_GCOMInstDir", _wrap_delete_GCOMInstDir, METH_VARARGS0x0001, (char *)"delete_GCOMInstDir(GCOMInstDir self)"}, |
10177 | { (char *)"GCOMInstDir_clear", _wrap_GCOMInstDir_clear, METH_VARARGS0x0001, (char *)"GCOMInstDir_clear(GCOMInstDir self)"}, |
10178 | { (char *)"GCOMInstDir_clone", _wrap_GCOMInstDir_clone, METH_VARARGS0x0001, (char *)"GCOMInstDir_clone(GCOMInstDir self) -> GCOMInstDir"}, |
10179 | { (char *)"GCOMInstDir_dir", _wrap_GCOMInstDir_dir, METH_VARARGS0x0001, (char *)"\n" |
10180 | "dir(GSkyDir const & dir)\n" |
10181 | "GCOMInstDir_dir(GCOMInstDir self) -> GSkyDir\n" |
10182 | ""}, |
10183 | { (char *)"GCOMInstDir_phibar", _wrap_GCOMInstDir_phibar, METH_VARARGS0x0001, (char *)"\n" |
10184 | "phibar(double const & phibar)\n" |
10185 | "GCOMInstDir_phibar(GCOMInstDir self) -> double\n" |
10186 | ""}, |
10187 | { (char *)"GCOMInstDir_copy", _wrap_GCOMInstDir_copy, METH_VARARGS0x0001, (char *)"GCOMInstDir_copy(GCOMInstDir self) -> GCOMInstDir"}, |
10188 | { (char *)"GCOMInstDir_swigregister", GCOMInstDir_swigregister, METH_VARARGS0x0001, NULL__null}, |
10189 | { (char *)"new_GCOMModelDRBFitting", _wrap_new_GCOMModelDRBFitting, METH_VARARGS0x0001, (char *)"\n" |
10190 | "GCOMModelDRBFitting()\n" |
10191 | "GCOMModelDRBFitting(GXmlElement const & xml)\n" |
10192 | "new_GCOMModelDRBFitting(GCOMModelDRBFitting model) -> GCOMModelDRBFitting\n" |
10193 | ""}, |
10194 | { (char *)"delete_GCOMModelDRBFitting", _wrap_delete_GCOMModelDRBFitting, METH_VARARGS0x0001, (char *)"delete_GCOMModelDRBFitting(GCOMModelDRBFitting self)"}, |
10195 | { (char *)"GCOMModelDRBFitting_clear", _wrap_GCOMModelDRBFitting_clear, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_clear(GCOMModelDRBFitting self)"}, |
10196 | { (char *)"GCOMModelDRBFitting_clone", _wrap_GCOMModelDRBFitting_clone, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_clone(GCOMModelDRBFitting self) -> GCOMModelDRBFitting"}, |
10197 | { (char *)"GCOMModelDRBFitting_type", _wrap_GCOMModelDRBFitting_type, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_type(GCOMModelDRBFitting self) -> std::string"}, |
10198 | { (char *)"GCOMModelDRBFitting_isconstant", _wrap_GCOMModelDRBFitting_isconstant, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_isconstant(GCOMModelDRBFitting self) -> bool"}, |
10199 | { (char *)"GCOMModelDRBFitting_eval", _wrap_GCOMModelDRBFitting_eval, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_eval(GCOMModelDRBFitting self, GEvent event, GObservation obs) -> double"}, |
10200 | { (char *)"GCOMModelDRBFitting_eval_gradients", _wrap_GCOMModelDRBFitting_eval_gradients, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_eval_gradients(GCOMModelDRBFitting self, GEvent event, GObservation obs) -> double"}, |
10201 | { (char *)"GCOMModelDRBFitting_npred", _wrap_GCOMModelDRBFitting_npred, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_npred(GCOMModelDRBFitting self, GEnergy const & obsEng, GTime const & obsTime, GObservation obs) -> double"}, |
10202 | { (char *)"GCOMModelDRBFitting_mc", _wrap_GCOMModelDRBFitting_mc, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_mc(GCOMModelDRBFitting self, GObservation obs, GRan & ran) -> GCOMEventCube"}, |
10203 | { (char *)"GCOMModelDRBFitting_read", _wrap_GCOMModelDRBFitting_read, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_read(GCOMModelDRBFitting self, GXmlElement const & xml)"}, |
10204 | { (char *)"GCOMModelDRBFitting_write", _wrap_GCOMModelDRBFitting_write, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_write(GCOMModelDRBFitting self, GXmlElement & xml)"}, |
10205 | { (char *)"GCOMModelDRBFitting_copy", _wrap_GCOMModelDRBFitting_copy, METH_VARARGS0x0001, (char *)"GCOMModelDRBFitting_copy(GCOMModelDRBFitting self) -> GCOMModelDRBFitting"}, |
10206 | { (char *)"GCOMModelDRBFitting_swigregister", GCOMModelDRBFitting_swigregister, METH_VARARGS0x0001, NULL__null}, |
10207 | { (char *)"new_GCOMObservation", _wrap_new_GCOMObservation, METH_VARARGS0x0001, (char *)"\n" |
10208 | "GCOMObservation()\n" |
10209 | "GCOMObservation(std::string const & drename, std::string const & drbname, std::string const & drgname, \n" |
10210 | " std::string const & drxname)\n" |
10211 | "new_GCOMObservation(GCOMObservation obs) -> GCOMObservation\n" |
10212 | ""}, |
10213 | { (char *)"delete_GCOMObservation", _wrap_delete_GCOMObservation, METH_VARARGS0x0001, (char *)"delete_GCOMObservation(GCOMObservation self)"}, |
10214 | { (char *)"GCOMObservation_clear", _wrap_GCOMObservation_clear, METH_VARARGS0x0001, (char *)"GCOMObservation_clear(GCOMObservation self)"}, |
10215 | { (char *)"GCOMObservation_clone", _wrap_GCOMObservation_clone, METH_VARARGS0x0001, (char *)"GCOMObservation_clone(GCOMObservation self) -> GCOMObservation"}, |
10216 | { (char *)"GCOMObservation_instrument", _wrap_GCOMObservation_instrument, METH_VARARGS0x0001, (char *)"GCOMObservation_instrument(GCOMObservation self) -> std::string"}, |
10217 | { (char *)"GCOMObservation_read", _wrap_GCOMObservation_read, METH_VARARGS0x0001, (char *)"GCOMObservation_read(GCOMObservation self, GXmlElement const & xml)"}, |
10218 | { (char *)"GCOMObservation_write", _wrap_GCOMObservation_write, METH_VARARGS0x0001, (char *)"GCOMObservation_write(GCOMObservation self, GXmlElement & xml)"}, |
10219 | { (char *)"GCOMObservation_load", _wrap_GCOMObservation_load, METH_VARARGS0x0001, (char *)"\n" |
10220 | "GCOMObservation_load(GCOMObservation self, std::string const & drename, std::string const & drbname, std::string const & drgname, \n" |
10221 | " std::string const & drxname)\n" |
10222 | ""}, |
10223 | { (char *)"GCOMObservation_response", _wrap_GCOMObservation_response, METH_VARARGS0x0001, (char *)"\n" |
10224 | "response(GResponse rsp)\n" |
10225 | "response() -> GCOMResponse\n" |
10226 | "response(std::string const & iaqname, std::string const & caldb=\"\")\n" |
10227 | "GCOMObservation_response(GCOMObservation self, std::string const & iaqname)\n" |
10228 | ""}, |
10229 | { (char *)"GCOMObservation_ontime", _wrap_GCOMObservation_ontime, METH_VARARGS0x0001, (char *)"\n" |
10230 | "ontime() -> double\n" |
10231 | "GCOMObservation_ontime(GCOMObservation self, double const & ontime)\n" |
10232 | ""}, |
10233 | { (char *)"GCOMObservation_livetime", _wrap_GCOMObservation_livetime, METH_VARARGS0x0001, (char *)"\n" |
10234 | "livetime() -> double\n" |
10235 | "GCOMObservation_livetime(GCOMObservation self, double const & livetime)\n" |
10236 | ""}, |
10237 | { (char *)"GCOMObservation_deadc", _wrap_GCOMObservation_deadc, METH_VARARGS0x0001, (char *)"\n" |
10238 | "deadc(GTime const & time) -> double\n" |
10239 | "GCOMObservation_deadc(GCOMObservation self, double const & deadc)\n" |
10240 | ""}, |
10241 | { (char *)"GCOMObservation_obs_id", _wrap_GCOMObservation_obs_id, METH_VARARGS0x0001, (char *)"\n" |
10242 | "obs_id(double const & id)\n" |
10243 | "GCOMObservation_obs_id(GCOMObservation self) -> double const &\n" |
10244 | ""}, |
10245 | { (char *)"GCOMObservation_ewidth", _wrap_GCOMObservation_ewidth, METH_VARARGS0x0001, (char *)"\n" |
10246 | "ewidth(double const & ewidth)\n" |
10247 | "GCOMObservation_ewidth(GCOMObservation self) -> double const &\n" |
10248 | ""}, |
10249 | { (char *)"GCOMObservation_drb", _wrap_GCOMObservation_drb, METH_VARARGS0x0001, (char *)"GCOMObservation_drb(GCOMObservation self) -> GSkymap const &"}, |
10250 | { (char *)"GCOMObservation_drg", _wrap_GCOMObservation_drg, METH_VARARGS0x0001, (char *)"GCOMObservation_drg(GCOMObservation self) -> GSkymap const &"}, |
10251 | { (char *)"GCOMObservation_drx", _wrap_GCOMObservation_drx, METH_VARARGS0x0001, (char *)"GCOMObservation_drx(GCOMObservation self) -> GSkymap const &"}, |
10252 | { (char *)"GCOMObservation_copy", _wrap_GCOMObservation_copy, METH_VARARGS0x0001, (char *)"GCOMObservation_copy(GCOMObservation self) -> GCOMObservation"}, |
10253 | { (char *)"GCOMObservation_swigregister", GCOMObservation_swigregister, METH_VARARGS0x0001, NULL__null}, |
10254 | { (char *)"new_GCOMResponse", _wrap_new_GCOMResponse, METH_VARARGS0x0001, (char *)"\n" |
10255 | "GCOMResponse()\n" |
10256 | "GCOMResponse(GCOMResponse rsp)\n" |
10257 | "GCOMResponse(std::string const & iaqname, std::string const & caldb=\"\")\n" |
10258 | "new_GCOMResponse(std::string const & iaqname) -> GCOMResponse\n" |
10259 | ""}, |
10260 | { (char *)"delete_GCOMResponse", _wrap_delete_GCOMResponse, METH_VARARGS0x0001, (char *)"delete_GCOMResponse(GCOMResponse self)"}, |
10261 | { (char *)"GCOMResponse_clear", _wrap_GCOMResponse_clear, METH_VARARGS0x0001, (char *)"GCOMResponse_clear(GCOMResponse self)"}, |
10262 | { (char *)"GCOMResponse_clone", _wrap_GCOMResponse_clone, METH_VARARGS0x0001, (char *)"GCOMResponse_clone(GCOMResponse self) -> GCOMResponse"}, |
10263 | { (char *)"GCOMResponse_hasedisp", _wrap_GCOMResponse_hasedisp, METH_VARARGS0x0001, (char *)"GCOMResponse_hasedisp(GCOMResponse self) -> bool"}, |
10264 | { (char *)"GCOMResponse_hastdisp", _wrap_GCOMResponse_hastdisp, METH_VARARGS0x0001, (char *)"GCOMResponse_hastdisp(GCOMResponse self) -> bool"}, |
10265 | { (char *)"GCOMResponse_irf", _wrap_GCOMResponse_irf, METH_VARARGS0x0001, (char *)"GCOMResponse_irf(GCOMResponse self, GEvent event, GPhoton const & photon, GObservation obs) -> double"}, |
10266 | { (char *)"GCOMResponse_npred", _wrap_GCOMResponse_npred, METH_VARARGS0x0001, (char *)"GCOMResponse_npred(GCOMResponse self, GPhoton const & photon, GObservation obs) -> double"}, |
10267 | { (char *)"GCOMResponse_caldb", _wrap_GCOMResponse_caldb, METH_VARARGS0x0001, (char *)"\n" |
10268 | "caldb(std::string const & caldb)\n" |
10269 | "GCOMResponse_caldb(GCOMResponse self) -> std::string\n" |
10270 | ""}, |
10271 | { (char *)"GCOMResponse_iaqname", _wrap_GCOMResponse_iaqname, METH_VARARGS0x0001, (char *)"GCOMResponse_iaqname(GCOMResponse self) -> std::string"}, |
10272 | { (char *)"GCOMResponse_load", _wrap_GCOMResponse_load, METH_VARARGS0x0001, (char *)"GCOMResponse_load(GCOMResponse self, std::string const & iaqname)"}, |
10273 | { (char *)"GCOMResponse_read", _wrap_GCOMResponse_read, METH_VARARGS0x0001, (char *)"GCOMResponse_read(GCOMResponse self, GFitsImage const & hdu)"}, |
10274 | { (char *)"GCOMResponse_copy", _wrap_GCOMResponse_copy, METH_VARARGS0x0001, (char *)"GCOMResponse_copy(GCOMResponse self) -> GCOMResponse"}, |
10275 | { (char *)"GCOMResponse_swigregister", GCOMResponse_swigregister, METH_VARARGS0x0001, NULL__null}, |
10276 | { NULL__null, NULL__null, 0, NULL__null } |
10277 | }; |
10278 | |
10279 | |
10280 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
10281 | |
10282 | static void *_p_GCOMModelDRBFittingTo_p_GModelData(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10283 | return (void *)((GModelData *) ((GCOMModelDRBFitting *) x)); |
10284 | } |
10285 | static void *_p_GCOMInstDirTo_p_GInstDir(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10286 | return (void *)((GInstDir *) ((GCOMInstDir *) x)); |
10287 | } |
10288 | static void *_p_GEventBinTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10289 | return (void *)((GEvent *) ((GEventBin *) x)); |
10290 | } |
10291 | static void *_p_GCOMEventBinTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10292 | return (void *)((GEvent *) (GEventBin *) ((GCOMEventBin *) x)); |
10293 | } |
10294 | static void *_p_GCOMEventCubeTo_p_GEventCube(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10295 | return (void *)((GEventCube *) ((GCOMEventCube *) x)); |
10296 | } |
10297 | static void *_p_GCOMModelDRBFittingTo_p_GModel(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10298 | return (void *)((GModel *) (GModelData *) ((GCOMModelDRBFitting *) x)); |
10299 | } |
10300 | static void *_p_GModelDataTo_p_GModel(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10301 | return (void *)((GModel *) ((GModelData *) x)); |
10302 | } |
10303 | static void *_p_GCOMEventBinTo_p_GEventBin(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10304 | return (void *)((GEventBin *) ((GCOMEventBin *) x)); |
10305 | } |
10306 | static void *_p_GCOMResponseTo_p_GResponse(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10307 | return (void *)((GResponse *) ((GCOMResponse *) x)); |
10308 | } |
10309 | static void *_p_GCOMObservationTo_p_GObservation(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10310 | return (void *)((GObservation *) ((GCOMObservation *) x)); |
10311 | } |
10312 | static void *_p_GEventCubeTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10313 | return (void *)((GEvents *) ((GEventCube *) x)); |
10314 | } |
10315 | static void *_p_GCOMEventCubeTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10316 | return (void *)((GEvents *) (GEventCube *) ((GCOMEventCube *) x)); |
10317 | } |
10318 | static void *_p_GModelTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10319 | return (void *)((GBase *) ((GModel *) x)); |
10320 | } |
10321 | static void *_p_GCOMObservationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10322 | return (void *)((GBase *) (GObservation *) ((GCOMObservation *) x)); |
10323 | } |
10324 | static void *_p_GObservationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10325 | return (void *)((GBase *) ((GObservation *) x)); |
10326 | } |
10327 | static void *_p_GCOMEventCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10328 | return (void *)((GBase *) (GEvents *)(GEventCube *) ((GCOMEventCube *) x)); |
10329 | } |
10330 | static void *_p_GEventCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10331 | return (void *)((GBase *) (GEvents *) ((GEventCube *) x)); |
10332 | } |
10333 | static void *_p_GCOMModelDRBFittingTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10334 | return (void *)((GBase *) (GModel *)(GModelData *) ((GCOMModelDRBFitting *) x)); |
10335 | } |
10336 | static void *_p_GCOMInstDirTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10337 | return (void *)((GBase *) (GInstDir *) ((GCOMInstDir *) x)); |
10338 | } |
10339 | static void *_p_GInstDirTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10340 | return (void *)((GBase *) ((GInstDir *) x)); |
10341 | } |
10342 | static void *_p_GResponseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10343 | return (void *)((GBase *) ((GResponse *) x)); |
10344 | } |
10345 | static void *_p_GCOMResponseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10346 | return (void *)((GBase *) (GResponse *) ((GCOMResponse *) x)); |
10347 | } |
10348 | static void *_p_GModelDataTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10349 | return (void *)((GBase *) (GModel *) ((GModelData *) x)); |
10350 | } |
10351 | static void *_p_GEventsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10352 | return (void *)((GBase *) ((GEvents *) x)); |
10353 | } |
10354 | static void *_p_GEventTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10355 | return (void *)((GBase *) ((GEvent *) x)); |
10356 | } |
10357 | static void *_p_GCOMEventBinTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10358 | return (void *)((GBase *) (GEvent *)(GEventBin *) ((GCOMEventBin *) x)); |
10359 | } |
10360 | static void *_p_GEventBinTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
10361 | return (void *)((GBase *) (GEvent *) ((GEventBin *) x)); |
10362 | } |
10363 | static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0}; |
10364 | static swig_type_info _swigt__p_GCOMEventBin = {"_p_GCOMEventBin", "GCOMEventBin *", 0, 0, (void*)0, 0}; |
10365 | static swig_type_info _swigt__p_GCOMEventCube = {"_p_GCOMEventCube", "GCOMEventCube *", 0, 0, (void*)0, 0}; |
10366 | static swig_type_info _swigt__p_GCOMInstDir = {"_p_GCOMInstDir", "GCOMInstDir *", 0, 0, (void*)0, 0}; |
10367 | static swig_type_info _swigt__p_GCOMModelDRBFitting = {"_p_GCOMModelDRBFitting", "GCOMModelDRBFitting *", 0, 0, (void*)0, 0}; |
10368 | static swig_type_info _swigt__p_GCOMObservation = {"_p_GCOMObservation", "GCOMObservation *", 0, 0, (void*)0, 0}; |
10369 | static swig_type_info _swigt__p_GCOMResponse = {"_p_GCOMResponse", "GCOMResponse *", 0, 0, (void*)0, 0}; |
10370 | static swig_type_info _swigt__p_GEbounds = {"_p_GEbounds", "GEbounds *", 0, 0, (void*)0, 0}; |
10371 | static swig_type_info _swigt__p_GEnergy = {"_p_GEnergy", "GEnergy *", 0, 0, (void*)0, 0}; |
10372 | static swig_type_info _swigt__p_GEvent = {"_p_GEvent", "GEvent *", 0, 0, (void*)0, 0}; |
10373 | static swig_type_info _swigt__p_GEventBin = {"_p_GEventBin", "GEventBin *", 0, 0, (void*)0, 0}; |
10374 | static swig_type_info _swigt__p_GEventCube = {"_p_GEventCube", "GEventCube *", 0, 0, (void*)0, 0}; |
10375 | static swig_type_info _swigt__p_GEvents = {"_p_GEvents", "GEvents *", 0, 0, (void*)0, 0}; |
10376 | static swig_type_info _swigt__p_GFits = {"_p_GFits", "GFits *", 0, 0, (void*)0, 0}; |
10377 | static swig_type_info _swigt__p_GFitsImage = {"_p_GFitsImage", "GFitsImage *", 0, 0, (void*)0, 0}; |
10378 | static swig_type_info _swigt__p_GGti = {"_p_GGti", "GGti *", 0, 0, (void*)0, 0}; |
10379 | static swig_type_info _swigt__p_GInstDir = {"_p_GInstDir", "GInstDir *", 0, 0, (void*)0, 0}; |
10380 | static swig_type_info _swigt__p_GModel = {"_p_GModel", "GModel *", 0, 0, (void*)0, 0}; |
10381 | static swig_type_info _swigt__p_GModelData = {"_p_GModelData", "GModelData *", 0, 0, (void*)0, 0}; |
10382 | static swig_type_info _swigt__p_GObservation = {"_p_GObservation", "GObservation *", 0, 0, (void*)0, 0}; |
10383 | static swig_type_info _swigt__p_GPhoton = {"_p_GPhoton", "GPhoton *", 0, 0, (void*)0, 0}; |
10384 | static swig_type_info _swigt__p_GRan = {"_p_GRan", "GRan *", 0, 0, (void*)0, 0}; |
10385 | static swig_type_info _swigt__p_GResponse = {"_p_GResponse", "GResponse *", 0, 0, (void*)0, 0}; |
10386 | static swig_type_info _swigt__p_GSkyDir = {"_p_GSkyDir", "GSkyDir *", 0, 0, (void*)0, 0}; |
10387 | static swig_type_info _swigt__p_GSkymap = {"_p_GSkymap", "GSkymap *", 0, 0, (void*)0, 0}; |
10388 | static swig_type_info _swigt__p_GTime = {"_p_GTime", "GTime *", 0, 0, (void*)0, 0}; |
10389 | static swig_type_info _swigt__p_GXmlElement = {"_p_GXmlElement", "GXmlElement *", 0, 0, (void*)0, 0}; |
10390 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
10391 | static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; |
10392 | static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; |
10393 | |
10394 | static swig_type_info *swig_type_initial[] = { |
10395 | &_swigt__p_GBase, |
10396 | &_swigt__p_GCOMEventBin, |
10397 | &_swigt__p_GCOMEventCube, |
10398 | &_swigt__p_GCOMInstDir, |
10399 | &_swigt__p_GCOMModelDRBFitting, |
10400 | &_swigt__p_GCOMObservation, |
10401 | &_swigt__p_GCOMResponse, |
10402 | &_swigt__p_GEbounds, |
10403 | &_swigt__p_GEnergy, |
10404 | &_swigt__p_GEvent, |
10405 | &_swigt__p_GEventBin, |
10406 | &_swigt__p_GEventCube, |
10407 | &_swigt__p_GEvents, |
10408 | &_swigt__p_GFits, |
10409 | &_swigt__p_GFitsImage, |
10410 | &_swigt__p_GGti, |
10411 | &_swigt__p_GInstDir, |
10412 | &_swigt__p_GModel, |
10413 | &_swigt__p_GModelData, |
10414 | &_swigt__p_GObservation, |
10415 | &_swigt__p_GPhoton, |
10416 | &_swigt__p_GRan, |
10417 | &_swigt__p_GResponse, |
10418 | &_swigt__p_GSkyDir, |
10419 | &_swigt__p_GSkymap, |
10420 | &_swigt__p_GTime, |
10421 | &_swigt__p_GXmlElement, |
10422 | &_swigt__p_char, |
10423 | &_swigt__p_std__invalid_argument, |
10424 | &_swigt__p_swig__SwigPyIterator, |
10425 | }; |
10426 | |
10427 | static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GCOMObservation, _p_GCOMObservationTo_p_GBase, 0, 0}, {&_swigt__p_GObservation, _p_GObservationTo_p_GBase, 0, 0}, {&_swigt__p_GCOMEventCube, _p_GCOMEventCubeTo_p_GBase, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GBase, 0, 0}, {&_swigt__p_GCOMModelDRBFitting, _p_GCOMModelDRBFittingTo_p_GBase, 0, 0}, {&_swigt__p_GEvent, _p_GEventTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GCOMInstDir, _p_GCOMInstDirTo_p_GBase, 0, 0}, {&_swigt__p_GInstDir, _p_GInstDirTo_p_GBase, 0, 0}, {&_swigt__p_GResponse, _p_GResponseTo_p_GBase, 0, 0}, {&_swigt__p_GCOMResponse, _p_GCOMResponseTo_p_GBase, 0, 0}, {&_swigt__p_GModel, _p_GModelTo_p_GBase, 0, 0}, {&_swigt__p_GModelData, _p_GModelDataTo_p_GBase, 0, 0}, {&_swigt__p_GEvents, _p_GEventsTo_p_GBase, 0, 0}, {&_swigt__p_GCOMEventBin, _p_GCOMEventBinTo_p_GBase, 0, 0}, {&_swigt__p_GEventBin, _p_GEventBinTo_p_GBase, 0, 0},{0, 0, 0, 0}}; |
10428 | static swig_cast_info _swigc__p_GCOMEventBin[] = { {&_swigt__p_GCOMEventBin, 0, 0, 0},{0, 0, 0, 0}}; |
10429 | static swig_cast_info _swigc__p_GCOMEventCube[] = { {&_swigt__p_GCOMEventCube, 0, 0, 0},{0, 0, 0, 0}}; |
10430 | static swig_cast_info _swigc__p_GCOMInstDir[] = { {&_swigt__p_GCOMInstDir, 0, 0, 0},{0, 0, 0, 0}}; |
10431 | static swig_cast_info _swigc__p_GCOMModelDRBFitting[] = { {&_swigt__p_GCOMModelDRBFitting, 0, 0, 0},{0, 0, 0, 0}}; |
10432 | static swig_cast_info _swigc__p_GCOMObservation[] = { {&_swigt__p_GCOMObservation, 0, 0, 0},{0, 0, 0, 0}}; |
10433 | static swig_cast_info _swigc__p_GCOMResponse[] = { {&_swigt__p_GCOMResponse, 0, 0, 0},{0, 0, 0, 0}}; |
10434 | static swig_cast_info _swigc__p_GEbounds[] = { {&_swigt__p_GEbounds, 0, 0, 0},{0, 0, 0, 0}}; |
10435 | static swig_cast_info _swigc__p_GEnergy[] = { {&_swigt__p_GEnergy, 0, 0, 0},{0, 0, 0, 0}}; |
10436 | static swig_cast_info _swigc__p_GEvent[] = { {&_swigt__p_GEventBin, _p_GEventBinTo_p_GEvent, 0, 0}, {&_swigt__p_GCOMEventBin, _p_GCOMEventBinTo_p_GEvent, 0, 0}, {&_swigt__p_GEvent, 0, 0, 0},{0, 0, 0, 0}}; |
10437 | static swig_cast_info _swigc__p_GEventBin[] = { {&_swigt__p_GEventBin, 0, 0, 0}, {&_swigt__p_GCOMEventBin, _p_GCOMEventBinTo_p_GEventBin, 0, 0},{0, 0, 0, 0}}; |
10438 | static swig_cast_info _swigc__p_GEventCube[] = { {&_swigt__p_GEventCube, 0, 0, 0}, {&_swigt__p_GCOMEventCube, _p_GCOMEventCubeTo_p_GEventCube, 0, 0},{0, 0, 0, 0}}; |
10439 | static swig_cast_info _swigc__p_GEvents[] = { {&_swigt__p_GEvents, 0, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GEvents, 0, 0}, {&_swigt__p_GCOMEventCube, _p_GCOMEventCubeTo_p_GEvents, 0, 0},{0, 0, 0, 0}}; |
10440 | static swig_cast_info _swigc__p_GFits[] = { {&_swigt__p_GFits, 0, 0, 0},{0, 0, 0, 0}}; |
10441 | static swig_cast_info _swigc__p_GFitsImage[] = { {&_swigt__p_GFitsImage, 0, 0, 0},{0, 0, 0, 0}}; |
10442 | static swig_cast_info _swigc__p_GGti[] = { {&_swigt__p_GGti, 0, 0, 0},{0, 0, 0, 0}}; |
10443 | static swig_cast_info _swigc__p_GInstDir[] = { {&_swigt__p_GInstDir, 0, 0, 0}, {&_swigt__p_GCOMInstDir, _p_GCOMInstDirTo_p_GInstDir, 0, 0},{0, 0, 0, 0}}; |
10444 | static swig_cast_info _swigc__p_GModel[] = { {&_swigt__p_GCOMModelDRBFitting, _p_GCOMModelDRBFittingTo_p_GModel, 0, 0}, {&_swigt__p_GModel, 0, 0, 0}, {&_swigt__p_GModelData, _p_GModelDataTo_p_GModel, 0, 0},{0, 0, 0, 0}}; |
10445 | static swig_cast_info _swigc__p_GModelData[] = { {&_swigt__p_GCOMModelDRBFitting, _p_GCOMModelDRBFittingTo_p_GModelData, 0, 0}, {&_swigt__p_GModelData, 0, 0, 0},{0, 0, 0, 0}}; |
10446 | static swig_cast_info _swigc__p_GObservation[] = { {&_swigt__p_GObservation, 0, 0, 0}, {&_swigt__p_GCOMObservation, _p_GCOMObservationTo_p_GObservation, 0, 0},{0, 0, 0, 0}}; |
10447 | static swig_cast_info _swigc__p_GPhoton[] = { {&_swigt__p_GPhoton, 0, 0, 0},{0, 0, 0, 0}}; |
10448 | static swig_cast_info _swigc__p_GRan[] = { {&_swigt__p_GRan, 0, 0, 0},{0, 0, 0, 0}}; |
10449 | static swig_cast_info _swigc__p_GResponse[] = { {&_swigt__p_GResponse, 0, 0, 0}, {&_swigt__p_GCOMResponse, _p_GCOMResponseTo_p_GResponse, 0, 0},{0, 0, 0, 0}}; |
10450 | static swig_cast_info _swigc__p_GSkyDir[] = { {&_swigt__p_GSkyDir, 0, 0, 0},{0, 0, 0, 0}}; |
10451 | static swig_cast_info _swigc__p_GSkymap[] = { {&_swigt__p_GSkymap, 0, 0, 0},{0, 0, 0, 0}}; |
10452 | static swig_cast_info _swigc__p_GTime[] = { {&_swigt__p_GTime, 0, 0, 0},{0, 0, 0, 0}}; |
10453 | static swig_cast_info _swigc__p_GXmlElement[] = { {&_swigt__p_GXmlElement, 0, 0, 0},{0, 0, 0, 0}}; |
10454 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
10455 | static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; |
10456 | static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; |
10457 | |
10458 | static swig_cast_info *swig_cast_initial[] = { |
10459 | _swigc__p_GBase, |
10460 | _swigc__p_GCOMEventBin, |
10461 | _swigc__p_GCOMEventCube, |
10462 | _swigc__p_GCOMInstDir, |
10463 | _swigc__p_GCOMModelDRBFitting, |
10464 | _swigc__p_GCOMObservation, |
10465 | _swigc__p_GCOMResponse, |
10466 | _swigc__p_GEbounds, |
10467 | _swigc__p_GEnergy, |
10468 | _swigc__p_GEvent, |
10469 | _swigc__p_GEventBin, |
10470 | _swigc__p_GEventCube, |
10471 | _swigc__p_GEvents, |
10472 | _swigc__p_GFits, |
10473 | _swigc__p_GFitsImage, |
10474 | _swigc__p_GGti, |
10475 | _swigc__p_GInstDir, |
10476 | _swigc__p_GModel, |
10477 | _swigc__p_GModelData, |
10478 | _swigc__p_GObservation, |
10479 | _swigc__p_GPhoton, |
10480 | _swigc__p_GRan, |
10481 | _swigc__p_GResponse, |
10482 | _swigc__p_GSkyDir, |
10483 | _swigc__p_GSkymap, |
10484 | _swigc__p_GTime, |
10485 | _swigc__p_GXmlElement, |
10486 | _swigc__p_char, |
10487 | _swigc__p_std__invalid_argument, |
10488 | _swigc__p_swig__SwigPyIterator, |
10489 | }; |
10490 | |
10491 | |
10492 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
10493 | |
10494 | static swig_const_info swig_const_table[] = { |
10495 | {0, 0, 0, 0.0, 0, 0}}; |
10496 | |
10497 | #ifdef __cplusplus199711L |
10498 | } |
10499 | #endif |
10500 | /* ----------------------------------------------------------------------------- |
10501 | * Type initialization: |
10502 | * This problem is tough by the requirement that no dynamic |
10503 | * memory is used. Also, since swig_type_info structures store pointers to |
10504 | * swig_cast_info structures and swig_cast_info structures store pointers back |
10505 | * to swig_type_info structures, we need some lookup code at initialization. |
10506 | * The idea is that swig generates all the structures that are needed. |
10507 | * The runtime then collects these partially filled structures. |
10508 | * The SWIG_InitializeModule function takes these initial arrays out of |
10509 | * swig_module, and does all the lookup, filling in the swig_module.types |
10510 | * array with the correct data and linking the correct swig_cast_info |
10511 | * structures together. |
10512 | * |
10513 | * The generated swig_type_info structures are assigned staticly to an initial |
10514 | * array. We just loop through that array, and handle each type individually. |
10515 | * First we lookup if this type has been already loaded, and if so, use the |
10516 | * loaded structure instead of the generated one. Then we have to fill in the |
10517 | * cast linked list. The cast data is initially stored in something like a |
10518 | * two-dimensional array. Each row corresponds to a type (there are the same |
10519 | * number of rows as there are in the swig_type_initial array). Each entry in |
10520 | * a column is one of the swig_cast_info structures for that type. |
10521 | * The cast_initial array is actually an array of arrays, because each row has |
10522 | * a variable number of columns. So to actually build the cast linked list, |
10523 | * we find the array of casts associated with the type, and loop through it |
10524 | * adding the casts to the list. The one last trick we need to do is making |
10525 | * sure the type pointer in the swig_cast_info struct is correct. |
10526 | * |
10527 | * First off, we lookup the cast->type name to see if it is already loaded. |
10528 | * There are three cases to handle: |
10529 | * 1) If the cast->type has already been loaded AND the type we are adding |
10530 | * casting info to has not been loaded (it is in this module), THEN we |
10531 | * replace the cast->type pointer with the type pointer that has already |
10532 | * been loaded. |
10533 | * 2) If BOTH types (the one we are adding casting info to, and the |
10534 | * cast->type) are loaded, THEN the cast info has already been loaded by |
10535 | * the previous module so we just ignore it. |
10536 | * 3) Finally, if cast->type has not already been loaded, then we add that |
10537 | * swig_cast_info to the linked list (because the cast->type) pointer will |
10538 | * be correct. |
10539 | * ----------------------------------------------------------------------------- */ |
10540 | |
10541 | #ifdef __cplusplus199711L |
10542 | extern "C" { |
10543 | #if 0 |
10544 | } /* c-mode */ |
10545 | #endif |
10546 | #endif |
10547 | |
10548 | #if 0 |
10549 | #define SWIGRUNTIME_DEBUG |
10550 | #endif |
10551 | |
10552 | |
10553 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
10554 | SWIG_InitializeModule(void *clientdata) { |
10555 | size_t i; |
10556 | swig_module_info *module_head, *iter; |
10557 | int found, init; |
10558 | |
10559 | /* check to see if the circular list has been setup, if not, set it up */ |
10560 | if (swig_module.next==0) { |
10561 | /* Initialize the swig_module */ |
10562 | swig_module.type_initial = swig_type_initial; |
10563 | swig_module.cast_initial = swig_cast_initial; |
10564 | swig_module.next = &swig_module; |
10565 | init = 1; |
10566 | } else { |
10567 | init = 0; |
10568 | } |
10569 | |
10570 | /* Try and load any already created modules */ |
10571 | module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata); |
10572 | if (!module_head) { |
10573 | /* This is the first module loaded for this interpreter */ |
10574 | /* so set the swig module into the interpreter */ |
10575 | SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module); |
10576 | module_head = &swig_module; |
Value stored to 'module_head' is never read | |
10577 | } else { |
10578 | /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
10579 | found=0; |
10580 | iter=module_head; |
10581 | do { |
10582 | if (iter==&swig_module) { |
10583 | found=1; |
10584 | break; |
10585 | } |
10586 | iter=iter->next; |
10587 | } while (iter!= module_head); |
10588 | |
10589 | /* if the is found in the list, then all is done and we may leave */ |
10590 | if (found) return; |
10591 | /* otherwise we must add out module into the list */ |
10592 | swig_module.next = module_head->next; |
10593 | module_head->next = &swig_module; |
10594 | } |
10595 | |
10596 | /* When multiple interpreters are used, a module could have already been initialized in |
10597 | a different interpreter, but not yet have a pointer in this interpreter. |
10598 | In this case, we do not want to continue adding types... everything should be |
10599 | set up already */ |
10600 | if (init == 0) return; |
10601 | |
10602 | /* Now work on filling in swig_module.types */ |
10603 | #ifdef SWIGRUNTIME_DEBUG |
10604 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
10605 | #endif |
10606 | for (i = 0; i < swig_module.size; ++i) { |
10607 | swig_type_info *type = 0; |
10608 | swig_type_info *ret; |
10609 | swig_cast_info *cast; |
10610 | |
10611 | #ifdef SWIGRUNTIME_DEBUG |
10612 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
10613 | #endif |
10614 | |
10615 | /* if there is another module already loaded */ |
10616 | if (swig_module.next != &swig_module) { |
10617 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
10618 | } |
10619 | if (type) { |
10620 | /* Overwrite clientdata field */ |
10621 | #ifdef SWIGRUNTIME_DEBUG |
10622 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
10623 | #endif |
10624 | if (swig_module.type_initial[i]->clientdata) { |
10625 | type->clientdata = swig_module.type_initial[i]->clientdata; |
10626 | #ifdef SWIGRUNTIME_DEBUG |
10627 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
10628 | #endif |
10629 | } |
10630 | } else { |
10631 | type = swig_module.type_initial[i]; |
10632 | } |
10633 | |
10634 | /* Insert casting types */ |
10635 | cast = swig_module.cast_initial[i]; |
10636 | while (cast->type) { |
10637 | /* Don't need to add information already in the list */ |
10638 | ret = 0; |
10639 | #ifdef SWIGRUNTIME_DEBUG |
10640 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
10641 | #endif |
10642 | if (swig_module.next != &swig_module) { |
10643 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
10644 | #ifdef SWIGRUNTIME_DEBUG |
10645 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
10646 | #endif |
10647 | } |
10648 | if (ret) { |
10649 | if (type == swig_module.type_initial[i]) { |
10650 | #ifdef SWIGRUNTIME_DEBUG |
10651 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
10652 | #endif |
10653 | cast->type = ret; |
10654 | ret = 0; |
10655 | } else { |
10656 | /* Check for casting already in the list */ |
10657 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
10658 | #ifdef SWIGRUNTIME_DEBUG |
10659 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
10660 | #endif |
10661 | if (!ocast) ret = 0; |
10662 | } |
10663 | } |
10664 | |
10665 | if (!ret) { |
10666 | #ifdef SWIGRUNTIME_DEBUG |
10667 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
10668 | #endif |
10669 | if (type->cast) { |
10670 | type->cast->prev = cast; |
10671 | cast->next = type->cast; |
10672 | } |
10673 | type->cast = cast; |
10674 | } |
10675 | cast++; |
10676 | } |
10677 | /* Set entry in modules->types array equal to the type */ |
10678 | swig_module.types[i] = type; |
10679 | } |
10680 | swig_module.types[i] = 0; |
10681 | |
10682 | #ifdef SWIGRUNTIME_DEBUG |
10683 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
10684 | for (i = 0; i < swig_module.size; ++i) { |
10685 | int j = 0; |
10686 | swig_cast_info *cast = swig_module.cast_initial[i]; |
10687 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
10688 | while (cast->type) { |
10689 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
10690 | cast++; |
10691 | ++j; |
10692 | } |
10693 | printf("---- Total casts: %d\n",j); |
10694 | } |
10695 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
10696 | #endif |
10697 | } |
10698 | |
10699 | /* This function will propagate the clientdata field of type to |
10700 | * any new swig_type_info structures that have been added into the list |
10701 | * of equivalent types. It is like calling |
10702 | * SWIG_TypeClientData(type, clientdata) a second time. |
10703 | */ |
10704 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
10705 | SWIG_PropagateClientData(void) { |
10706 | size_t i; |
10707 | swig_cast_info *equiv; |
10708 | static int init_run = 0; |
10709 | |
10710 | if (init_run) return; |
10711 | init_run = 1; |
10712 | |
10713 | for (i = 0; i < swig_module.size; i++) { |
10714 | if (swig_module.types[i]->clientdata) { |
10715 | equiv = swig_module.types[i]->cast; |
10716 | while (equiv) { |
10717 | if (!equiv->converter) { |
10718 | if (equiv->type && !equiv->type->clientdata) |
10719 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
10720 | } |
10721 | equiv = equiv->next; |
10722 | } |
10723 | } |
10724 | } |
10725 | } |
10726 | |
10727 | #ifdef __cplusplus199711L |
10728 | #if 0 |
10729 | { |
10730 | /* c-mode */ |
10731 | #endif |
10732 | } |
10733 | #endif |
10734 | |
10735 | |
10736 | |
10737 | #ifdef __cplusplus199711L |
10738 | extern "C" { |
10739 | #endif |
10740 | |
10741 | /* Python-specific SWIG API */ |
10742 | #define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink() |
10743 | #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) |
10744 | #define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) |
10745 | |
10746 | /* ----------------------------------------------------------------------------- |
10747 | * global variable support code. |
10748 | * ----------------------------------------------------------------------------- */ |
10749 | |
10750 | typedef struct swig_globalvar { |
10751 | char *name; /* Name of global variable */ |
10752 | PyObject *(*get_attr)(void); /* Return the current value */ |
10753 | int (*set_attr)(PyObject *); /* Set the value */ |
10754 | struct swig_globalvar *next; |
10755 | } swig_globalvar; |
10756 | |
10757 | typedef struct swig_varlinkobject { |
10758 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
10759 | swig_globalvar *vars; |
10760 | } swig_varlinkobject; |
10761 | |
10762 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10763 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { |
10764 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10765 | return PyUnicode_InternFromString("<Swig global variables>"); |
10766 | #else |
10767 | return PyString_FromString("<Swig global variables>"); |
10768 | #endif |
10769 | } |
10770 | |
10771 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10772 | swig_varlink_str(swig_varlinkobject *v) { |
10773 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10774 | PyObject *str = PyUnicode_InternFromString("("); |
10775 | PyObject *tail; |
10776 | PyObject *joined; |
10777 | swig_globalvar *var; |
10778 | for (var = v->vars; var; var=var->next) { |
10779 | tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name); |
10780 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10781 | Py_DecRef(str); |
10782 | Py_DecRef(tail); |
10783 | str = joined; |
10784 | if (var->next) { |
10785 | tail = PyUnicode_InternFromString(", "); |
10786 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10787 | Py_DecRef(str); |
10788 | Py_DecRef(tail); |
10789 | str = joined; |
10790 | } |
10791 | } |
10792 | tail = PyUnicode_InternFromString(")"); |
10793 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
10794 | Py_DecRef(str); |
10795 | Py_DecRef(tail); |
10796 | str = joined; |
10797 | #else |
10798 | PyObject *str = PyString_FromString("("); |
10799 | swig_globalvar *var; |
10800 | for (var = v->vars; var; var=var->next) { |
10801 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); |
10802 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); |
10803 | } |
10804 | PyString_ConcatAndDel(&str,PyString_FromString(")")); |
10805 | #endif |
10806 | return str; |
10807 | } |
10808 | |
10809 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
10810 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { |
10811 | char *tmp; |
10812 | PyObject *str = swig_varlink_str(v); |
10813 | fprintf(fp,"Swig global variables "); |
10814 | fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); |
10815 | SWIG_Python_str_DelForPy3(tmp); |
10816 | Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(str)))); } while (0); |
10817 | return 0; |
10818 | } |
10819 | |
10820 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
10821 | swig_varlink_dealloc(swig_varlinkobject *v) { |
10822 | swig_globalvar *var = v->vars; |
10823 | while (var) { |
10824 | swig_globalvar *n = var->next; |
10825 | free(var->name); |
10826 | free(var); |
10827 | var = n; |
10828 | } |
10829 | } |
10830 | |
10831 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10832 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
10833 | PyObject *res = NULL__null; |
10834 | swig_globalvar *var = v->vars; |
10835 | while (var) { |
10836 | if (strcmp(var->name,n) == 0) { |
10837 | res = (*var->get_attr)(); |
10838 | break; |
10839 | } |
10840 | var = var->next; |
10841 | } |
10842 | if (res == NULL__null && !PyErr_Occurred()) { |
10843 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
10844 | } |
10845 | return res; |
10846 | } |
10847 | |
10848 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
10849 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
10850 | int res = 1; |
10851 | swig_globalvar *var = v->vars; |
10852 | while (var) { |
10853 | if (strcmp(var->name,n) == 0) { |
10854 | res = (*var->set_attr)(p); |
10855 | break; |
10856 | } |
10857 | var = var->next; |
10858 | } |
10859 | if (res == 1 && !PyErr_Occurred()) { |
10860 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
10861 | } |
10862 | return res; |
10863 | } |
10864 | |
10865 | SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject* |
10866 | swig_varlink_type(void) { |
10867 | static char varlink__doc__[] = "Swig var link object"; |
10868 | static PyTypeObject varlink_type; |
10869 | static int type_init = 0; |
10870 | if (!type_init) { |
10871 | const PyTypeObject tmp = { |
10872 | /* PyObject header changed in Python 3 */ |
10873 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
10874 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
10875 | #else |
10876 | PyObject_HEAD_INIT(NULL)1, __null, |
10877 | 0, /* ob_size */ |
10878 | #endif |
10879 | (char *)"swigvarlink", /* tp_name */ |
10880 | sizeof(swig_varlinkobject), /* tp_basicsize */ |
10881 | 0, /* tp_itemsize */ |
10882 | (destructor) swig_varlink_dealloc, /* tp_dealloc */ |
10883 | (printfunc) swig_varlink_print, /* tp_print */ |
10884 | (getattrfunc) swig_varlink_getattr, /* tp_getattr */ |
10885 | (setattrfunc) swig_varlink_setattr, /* tp_setattr */ |
10886 | 0, /* tp_compare */ |
10887 | (reprfunc) swig_varlink_repr, /* tp_repr */ |
10888 | 0, /* tp_as_number */ |
10889 | 0, /* tp_as_sequence */ |
10890 | 0, /* tp_as_mapping */ |
10891 | 0, /* tp_hash */ |
10892 | 0, /* tp_call */ |
10893 | (reprfunc) swig_varlink_str, /* tp_str */ |
10894 | 0, /* tp_getattro */ |
10895 | 0, /* tp_setattro */ |
10896 | 0, /* tp_as_buffer */ |
10897 | 0, /* tp_flags */ |
10898 | varlink__doc__, /* tp_doc */ |
10899 | 0, /* tp_traverse */ |
10900 | 0, /* tp_clear */ |
10901 | 0, /* tp_richcompare */ |
10902 | 0, /* tp_weaklistoffset */ |
10903 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
10904 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
10905 | #endif |
10906 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
10907 | 0, /* tp_del */ |
10908 | #endif |
10909 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
10910 | 0, /* tp_version */ |
10911 | #endif |
10912 | #ifdef COUNT_ALLOCS |
10913 | 0,0,0,0 /* tp_alloc -> tp_next */ |
10914 | #endif |
10915 | }; |
10916 | varlink_type = tmp; |
10917 | type_init = 1; |
10918 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
10919 | varlink_type.ob_type = &PyType_Type; |
10920 | #else |
10921 | if (PyType_Ready(&varlink_type) < 0) |
10922 | return NULL__null; |
10923 | #endif |
10924 | } |
10925 | return &varlink_type; |
10926 | } |
10927 | |
10928 | /* Create a variable linking object for use later */ |
10929 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10930 | SWIG_Python_newvarlink(void) { |
10931 | 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 ())) ); |
10932 | if (result) { |
10933 | result->vars = 0; |
10934 | } |
10935 | return ((PyObject*) result); |
10936 | } |
10937 | |
10938 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
10939 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
10940 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
10941 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); |
10942 | if (gv) { |
10943 | size_t size = strlen(name)+1; |
10944 | gv->name = (char *)malloc(size); |
10945 | if (gv->name) { |
10946 | strncpy(gv->name,name,size); |
10947 | gv->get_attr = get_attr; |
10948 | gv->set_attr = set_attr; |
10949 | gv->next = v->vars; |
10950 | } |
10951 | } |
10952 | v->vars = gv; |
10953 | } |
10954 | |
10955 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
10956 | SWIG_globals(void) { |
10957 | static PyObject *_SWIG_globals = 0; |
10958 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink(); |
10959 | return _SWIG_globals; |
10960 | } |
10961 | |
10962 | /* ----------------------------------------------------------------------------- |
10963 | * constants/methods manipulation |
10964 | * ----------------------------------------------------------------------------- */ |
10965 | |
10966 | /* Install Constants */ |
10967 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
10968 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
10969 | PyObject *obj = 0; |
10970 | size_t i; |
10971 | for (i = 0; constants[i].type; ++i) { |
10972 | switch(constants[i].type) { |
10973 | case SWIG_PY_POINTER4: |
10974 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants [i]).ptype, 0); |
10975 | break; |
10976 | case SWIG_PY_BINARY5: |
10977 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue , *(constants[i].ptype)); |
10978 | break; |
10979 | default: |
10980 | obj = 0; |
10981 | break; |
10982 | } |
10983 | if (obj) { |
10984 | PyDict_SetItemString(d, constants[i].name, obj); |
10985 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
10986 | } |
10987 | } |
10988 | } |
10989 | |
10990 | /* -----------------------------------------------------------------------------*/ |
10991 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
10992 | /* -----------------------------------------------------------------------------*/ |
10993 | |
10994 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
10995 | SWIG_Python_FixMethods(PyMethodDef *methods, |
10996 | swig_const_info *const_table, |
10997 | swig_type_info **types, |
10998 | swig_type_info **types_initial) { |
10999 | size_t i; |
11000 | for (i = 0; methods[i].ml_name; ++i) { |
11001 | const char *c = methods[i].ml_doc; |
11002 | if (c && (c = strstr(c, "swig_ptr: "))) { |
11003 | int j; |
11004 | swig_const_info *ci = 0; |
11005 | const char *name = c + 10; |
11006 | for (j = 0; const_table[j].type; ++j) { |
11007 | if (strncmp(const_table[j].name, name, |
11008 | strlen(const_table[j].name)) == 0) { |
11009 | ci = &(const_table[j]); |
11010 | break; |
11011 | } |
11012 | } |
11013 | if (ci) { |
11014 | void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0; |
11015 | if (ptr) { |
11016 | size_t shift = (ci->ptype) - types; |
11017 | swig_type_info *ty = types_initial[shift]; |
11018 | size_t ldoc = (c - methods[i].ml_doc); |
11019 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; |
11020 | char *ndoc = (char*)malloc(ldoc + lptr + 10); |
11021 | if (ndoc) { |
11022 | char *buff = ndoc; |
11023 | strncpy(buff, methods[i].ml_doc, ldoc); |
11024 | buff += ldoc; |
11025 | strncpy(buff, "swig_ptr: ", 10); |
11026 | buff += 10; |
11027 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); |
11028 | methods[i].ml_doc = ndoc; |
11029 | } |
11030 | } |
11031 | } |
11032 | } |
11033 | } |
11034 | } |
11035 | |
11036 | #ifdef __cplusplus199711L |
11037 | } |
11038 | #endif |
11039 | |
11040 | /* -----------------------------------------------------------------------------* |
11041 | * Partial Init method |
11042 | * -----------------------------------------------------------------------------*/ |
11043 | |
11044 | #ifdef __cplusplus199711L |
11045 | extern "C" |
11046 | #endif |
11047 | |
11048 | SWIGEXPORT__attribute__ ((visibility("default"))) |
11049 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11050 | PyObject* |
11051 | #else |
11052 | void |
11053 | #endif |
11054 | SWIG_initinit_com(void) { |
11055 | PyObject *m, *d, *md; |
11056 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11057 | static struct PyModuleDef SWIG_module = { |
11058 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
11059 | PyModuleDef_HEAD_INIT, |
11060 | # else |
11061 | { |
11062 | PyObject_HEAD_INIT(NULL)1, __null, |
11063 | NULL__null, /* m_init */ |
11064 | 0, /* m_index */ |
11065 | NULL__null, /* m_copy */ |
11066 | }, |
11067 | # endif |
11068 | (char *) SWIG_name"_com", |
11069 | NULL__null, |
11070 | -1, |
11071 | SwigMethods, |
11072 | NULL__null, |
11073 | NULL__null, |
11074 | NULL__null, |
11075 | NULL__null |
11076 | }; |
11077 | #endif |
11078 | |
11079 | #if defined(SWIGPYTHON_BUILTIN) |
11080 | static SwigPyClientData SwigPyObject_clientdata = { |
11081 | 0, 0, 0, 0, 0, 0, 0 |
11082 | }; |
11083 | static PyGetSetDef this_getset_def = { |
11084 | (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null |
11085 | }; |
11086 | static SwigPyGetSet thisown_getset_closure = { |
11087 | (PyCFunction) SwigPyObject_own, |
11088 | (PyCFunction) SwigPyObject_own |
11089 | }; |
11090 | static PyGetSetDef thisown_getset_def = { |
11091 | (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure |
11092 | }; |
11093 | PyObject *metatype_args; |
11094 | PyTypeObject *builtin_pytype; |
11095 | int builtin_base_count; |
11096 | swig_type_info *builtin_basetype; |
11097 | PyObject *tuple; |
11098 | PyGetSetDescrObject *static_getset; |
11099 | PyTypeObject *metatype; |
11100 | SwigPyClientData *cd; |
11101 | PyObject *public_interface, *public_symbol; |
11102 | PyObject *this_descr; |
11103 | PyObject *thisown_descr; |
11104 | int i; |
11105 | |
11106 | (void)builtin_pytype; |
11107 | (void)builtin_base_count; |
11108 | (void)builtin_basetype; |
11109 | (void)tuple; |
11110 | (void)static_getset; |
11111 | |
11112 | /* metatype is used to implement static member variables. */ |
11113 | metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); |
11114 | assert(metatype_args)((void)0); |
11115 | metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null); |
11116 | assert(metatype)((void)0); |
11117 | 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); |
11118 | metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; |
11119 | assert(PyType_Ready(metatype) >= 0)((void)0); |
11120 | #endif |
11121 | |
11122 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
11123 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
11124 | |
11125 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11126 | m = PyModule_Create(&SWIG_module); |
11127 | #else |
11128 | m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_com", SwigMethods, (char *)__null , (PyObject *)__null, 1013); |
11129 | #endif |
11130 | md = d = PyModule_GetDict(m); |
11131 | (void)md; |
11132 | |
11133 | SWIG_InitializeModule(0); |
11134 | |
11135 | #ifdef SWIGPYTHON_BUILTIN |
11136 | SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module , "_p_SwigPyObject"); |
11137 | assert(SwigPyObject_stype)((void)0); |
11138 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
11139 | if (!cd) { |
11140 | SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; |
11141 | SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); |
11142 | } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { |
11143 | PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); |
11144 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11145 | return NULL__null; |
11146 | # else |
11147 | return; |
11148 | # endif |
11149 | } |
11150 | |
11151 | /* All objects have a 'this' attribute */ |
11152 | this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); |
11153 | (void)this_descr; |
11154 | |
11155 | /* All objects have a 'thisown' attribute */ |
11156 | thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); |
11157 | (void)thisown_descr; |
11158 | |
11159 | public_interface = PyList_New(0); |
11160 | public_symbol = 0; |
11161 | (void)public_symbol; |
11162 | |
11163 | PyDict_SetItemString(md, "__all__", public_interface); |
11164 | 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); |
11165 | for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i) |
11166 | SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); |
11167 | for (i = 0; swig_const_table[i].name != 0; ++i) |
11168 | SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); |
11169 | #endif |
11170 | |
11171 | SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table); |
11172 | |
11173 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
11174 | return m; |
11175 | #else |
11176 | return; |
11177 | #endif |
11178 | } |
11179 |