File: | pyext/gammalib/lat_wrap.cpp |
Location: | line 16958, 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_GEnergyswig_types[1] swig_types[1] |
2942 | #define SWIGTYPE_p_GEventswig_types[2] swig_types[2] |
2943 | #define SWIGTYPE_p_GEventAtomswig_types[3] swig_types[3] |
2944 | #define SWIGTYPE_p_GEventBinswig_types[4] swig_types[4] |
2945 | #define SWIGTYPE_p_GEventCubeswig_types[5] swig_types[5] |
2946 | #define SWIGTYPE_p_GEventListswig_types[6] swig_types[6] |
2947 | #define SWIGTYPE_p_GEventsswig_types[7] swig_types[7] |
2948 | #define SWIGTYPE_p_GFitsswig_types[8] swig_types[8] |
2949 | #define SWIGTYPE_p_GInstDirswig_types[9] swig_types[9] |
2950 | #define SWIGTYPE_p_GLATAeffswig_types[10] swig_types[10] |
2951 | #define SWIGTYPE_p_GLATEdispswig_types[11] swig_types[11] |
2952 | #define SWIGTYPE_p_GLATEventAtomswig_types[12] swig_types[12] |
2953 | #define SWIGTYPE_p_GLATEventBinswig_types[13] swig_types[13] |
2954 | #define SWIGTYPE_p_GLATEventCubeswig_types[14] swig_types[14] |
2955 | #define SWIGTYPE_p_GLATEventListswig_types[15] swig_types[15] |
2956 | #define SWIGTYPE_p_GLATInstDirswig_types[16] swig_types[16] |
2957 | #define SWIGTYPE_p_GLATLtCubeswig_types[17] swig_types[17] |
2958 | #define SWIGTYPE_p_GLATMeanPsfswig_types[18] swig_types[18] |
2959 | #define SWIGTYPE_p_GLATObservationswig_types[19] swig_types[19] |
2960 | #define SWIGTYPE_p_GLATPsfswig_types[20] swig_types[20] |
2961 | #define SWIGTYPE_p_GLATResponseswig_types[21] swig_types[21] |
2962 | #define SWIGTYPE_p_GLATRoiswig_types[22] swig_types[22] |
2963 | #define SWIGTYPE_p_GNodeArrayswig_types[23] swig_types[23] |
2964 | #define SWIGTYPE_p_GObservationswig_types[24] swig_types[24] |
2965 | #define SWIGTYPE_p_GPhotonswig_types[25] swig_types[25] |
2966 | #define SWIGTYPE_p_GResponseswig_types[26] swig_types[26] |
2967 | #define SWIGTYPE_p_GRoiswig_types[27] swig_types[27] |
2968 | #define SWIGTYPE_p_GSkyDirswig_types[28] swig_types[28] |
2969 | #define SWIGTYPE_p_GSkymapswig_types[29] swig_types[29] |
2970 | #define SWIGTYPE_p_GSourceswig_types[30] swig_types[30] |
2971 | #define SWIGTYPE_p_GTimeswig_types[31] swig_types[31] |
2972 | #define SWIGTYPE_p_GXmlElementswig_types[32] swig_types[32] |
2973 | #define SWIGTYPE_p__ltcube_cthetaswig_types[33] swig_types[33] |
2974 | #define SWIGTYPE_p__ltcube_ctheta_phiswig_types[34] swig_types[34] |
2975 | #define SWIGTYPE_p_charswig_types[35] swig_types[35] |
2976 | #define SWIGTYPE_p_std__invalid_argumentswig_types[36] swig_types[36] |
2977 | #define SWIGTYPE_p_swig__SwigPyIteratorswig_types[37] swig_types[37] |
2978 | static swig_type_info *swig_types[39]; |
2979 | static swig_module_info swig_module = {swig_types, 38, 0, 0, 0, 0}; |
2980 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2981 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
2982 | |
2983 | /* -------- TYPES TABLE (END) -------- */ |
2984 | |
2985 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
2986 | # if !defined(SWIG_PYTHON_CLASSIC) |
2987 | # error "This python version requires swig to be run with the '-classic' option" |
2988 | # endif |
2989 | #endif |
2990 | |
2991 | /*----------------------------------------------- |
2992 | @(target):= _lat.so |
2993 | ------------------------------------------------*/ |
2994 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2995 | # define SWIG_initinit_lat PyInit__lat |
2996 | |
2997 | #else |
2998 | # define SWIG_initinit_lat init_lat |
2999 | |
3000 | #endif |
3001 | #define SWIG_name"_lat" "_lat" |
3002 | |
3003 | #define SWIGVERSION0x020011 0x020011 |
3004 | #define SWIG_VERSION0x020011 SWIGVERSION0x020011 |
3005 | |
3006 | |
3007 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
3008 | #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)) |
3009 | |
3010 | |
3011 | #include <stdexcept> |
3012 | |
3013 | |
3014 | namespace swig { |
3015 | class SwigPtr_PyObject { |
3016 | protected: |
3017 | PyObject *_obj; |
3018 | |
3019 | public: |
3020 | SwigPtr_PyObject() :_obj(0) |
3021 | { |
3022 | } |
3023 | |
3024 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
3025 | { |
3026 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3027 | } |
3028 | |
3029 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3030 | { |
3031 | if (initial_ref) { |
3032 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3033 | } |
3034 | } |
3035 | |
3036 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3037 | { |
3038 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3039 | 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); |
3040 | _obj = item._obj; |
3041 | return *this; |
3042 | } |
3043 | |
3044 | ~SwigPtr_PyObject() |
3045 | { |
3046 | Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( _obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(_obj)))); } while (0); } while (0); |
3047 | } |
3048 | |
3049 | operator PyObject *() const |
3050 | { |
3051 | return _obj; |
3052 | } |
3053 | |
3054 | PyObject *operator->() const |
3055 | { |
3056 | return _obj; |
3057 | } |
3058 | }; |
3059 | } |
3060 | |
3061 | |
3062 | namespace swig { |
3063 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3064 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3065 | |
3066 | SwigVar_PyObject & operator = (PyObject* obj) |
3067 | { |
3068 | 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); |
3069 | _obj = obj; |
3070 | return *this; |
3071 | } |
3072 | }; |
3073 | } |
3074 | |
3075 | |
3076 | #include <stddef.h> |
3077 | #include "GException.hpp" |
3078 | #include "GTools.hpp" |
3079 | |
3080 | |
3081 | #include <stdexcept> |
3082 | |
3083 | |
3084 | #if defined(__GNUC__4) |
3085 | # if __GNUC__4 == 2 && __GNUC_MINOR <= 96 |
3086 | # define SWIG_STD_NOMODERN_STL |
3087 | # endif |
3088 | #endif |
3089 | |
3090 | |
3091 | #include <string> |
3092 | #include <stdexcept> |
3093 | #include <stddef.h> |
3094 | |
3095 | |
3096 | #include <string> |
3097 | |
3098 | |
3099 | #include <iostream> |
3100 | |
3101 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
3102 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj)) |
3103 | #else |
3104 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj)) |
3105 | #endif |
3106 | |
3107 | |
3108 | #include <stddef.h> |
3109 | |
3110 | |
3111 | namespace swig { |
3112 | struct stop_iteration { |
3113 | }; |
3114 | |
3115 | struct SwigPyIterator { |
3116 | private: |
3117 | SwigPtr_PyObject _seq; |
3118 | |
3119 | protected: |
3120 | SwigPyIterator(PyObject *seq) : _seq(seq) |
3121 | { |
3122 | } |
3123 | |
3124 | public: |
3125 | virtual ~SwigPyIterator() {} |
3126 | |
3127 | // Access iterator method, required by Python |
3128 | virtual PyObject *value() const = 0; |
3129 | |
3130 | // Forward iterator method, required by Python |
3131 | virtual SwigPyIterator *incr(size_t n = 1) = 0; |
3132 | |
3133 | // Backward iterator method, very common in C++, but not required in Python |
3134 | virtual SwigPyIterator *decr(size_t /*n*/ = 1) |
3135 | { |
3136 | throw stop_iteration(); |
3137 | } |
3138 | |
3139 | // Random access iterator methods, but not required in Python |
3140 | virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const |
3141 | { |
3142 | throw std::invalid_argument("operation not supported"); |
3143 | } |
3144 | |
3145 | virtual bool equal (const SwigPyIterator &/*x*/) const |
3146 | { |
3147 | throw std::invalid_argument("operation not supported"); |
3148 | } |
3149 | |
3150 | // C++ common/needed methods |
3151 | virtual SwigPyIterator *copy() const = 0; |
3152 | |
3153 | PyObject *next() |
3154 | { |
3155 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3156 | PyObject *obj = value(); |
3157 | incr(); |
3158 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3159 | return obj; |
3160 | } |
3161 | |
3162 | /* Make an alias for Python 3.x */ |
3163 | PyObject *__next__() |
3164 | { |
3165 | return next(); |
3166 | } |
3167 | |
3168 | PyObject *previous() |
3169 | { |
3170 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3171 | decr(); |
3172 | PyObject *obj = value(); |
3173 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3174 | return obj; |
3175 | } |
3176 | |
3177 | SwigPyIterator *advance(ptrdiff_t n) |
3178 | { |
3179 | return (n > 0) ? incr(n) : decr(-n); |
3180 | } |
3181 | |
3182 | bool operator == (const SwigPyIterator& x) const |
3183 | { |
3184 | return equal(x); |
3185 | } |
3186 | |
3187 | bool operator != (const SwigPyIterator& x) const |
3188 | { |
3189 | return ! operator==(x); |
3190 | } |
3191 | |
3192 | SwigPyIterator& operator += (ptrdiff_t n) |
3193 | { |
3194 | return *advance(n); |
3195 | } |
3196 | |
3197 | SwigPyIterator& operator -= (ptrdiff_t n) |
3198 | { |
3199 | return *advance(-n); |
3200 | } |
3201 | |
3202 | SwigPyIterator* operator + (ptrdiff_t n) const |
3203 | { |
3204 | return copy()->advance(n); |
3205 | } |
3206 | |
3207 | SwigPyIterator* operator - (ptrdiff_t n) const |
3208 | { |
3209 | return copy()->advance(-n); |
3210 | } |
3211 | |
3212 | ptrdiff_t operator - (const SwigPyIterator& x) const |
3213 | { |
3214 | return x.distance(*this); |
3215 | } |
3216 | |
3217 | static swig_type_info* descriptor() { |
3218 | static int init = 0; |
3219 | static swig_type_info* desc = 0; |
3220 | if (!init) { |
3221 | desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *" ); |
3222 | init = 1; |
3223 | } |
3224 | return desc; |
3225 | } |
3226 | }; |
3227 | |
3228 | #if defined(SWIGPYTHON_BUILTIN) |
3229 | inline PyObject* make_output_iterator_builtin (PyObject *pyself) |
3230 | { |
3231 | Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++); |
3232 | return pyself; |
3233 | } |
3234 | #endif |
3235 | } |
3236 | |
3237 | |
3238 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3239 | SWIG_AsVal_double (PyObject *obj, double *val) |
3240 | { |
3241 | int res = SWIG_TypeError-5; |
3242 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3243 | if (val) *val = PyFloat_AsDouble(obj); |
3244 | return SWIG_OK(0); |
3245 | } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3246 | if (val) *val = PyInt_AsLong(obj); |
3247 | return SWIG_OK(0); |
3248 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3249 | double v = PyLong_AsDouble(obj); |
3250 | if (!PyErr_Occurred()) { |
3251 | if (val) *val = v; |
3252 | return SWIG_OK(0); |
3253 | } else { |
3254 | PyErr_Clear(); |
3255 | } |
3256 | } |
3257 | #ifdef SWIG_PYTHON_CAST_MODE |
3258 | { |
3259 | int dispatch = 0; |
3260 | double d = PyFloat_AsDouble(obj); |
3261 | if (!PyErr_Occurred()) { |
3262 | if (val) *val = d; |
3263 | return SWIG_AddCast(SWIG_OK)((0)); |
3264 | } else { |
3265 | PyErr_Clear(); |
3266 | } |
3267 | if (!dispatch) { |
3268 | long v = PyLong_AsLong(obj); |
3269 | if (!PyErr_Occurred()) { |
3270 | if (val) *val = v; |
3271 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3272 | } else { |
3273 | PyErr_Clear(); |
3274 | } |
3275 | } |
3276 | } |
3277 | #endif |
3278 | return res; |
3279 | } |
3280 | |
3281 | |
3282 | #include <float.h> |
3283 | |
3284 | |
3285 | #include <math.h> |
3286 | |
3287 | |
3288 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3289 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3290 | double x = *d; |
3291 | if ((min <= x && x <= max)) { |
3292 | double fx = floor(x); |
3293 | double cx = ceil(x); |
3294 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3295 | if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) { |
3296 | errno(*__error()) = 0; |
3297 | } else { |
3298 | double summ, reps, diff; |
3299 | if (rd < x) { |
3300 | diff = x - rd; |
3301 | } else if (rd > x) { |
3302 | diff = rd - x; |
3303 | } else { |
3304 | return 1; |
3305 | } |
3306 | summ = rd + x; |
3307 | reps = diff/summ; |
3308 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3309 | *d = rd; |
3310 | return 1; |
3311 | } |
3312 | } |
3313 | } |
3314 | return 0; |
3315 | } |
3316 | |
3317 | |
3318 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3319 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3320 | { |
3321 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3322 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3323 | long v = PyInt_AsLong(obj); |
3324 | if (v >= 0) { |
3325 | if (val) *val = v; |
3326 | return SWIG_OK(0); |
3327 | } else { |
3328 | return SWIG_OverflowError-7; |
3329 | } |
3330 | } else |
3331 | #endif |
3332 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3333 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3334 | if (!PyErr_Occurred()) { |
3335 | if (val) *val = v; |
3336 | return SWIG_OK(0); |
3337 | } else { |
3338 | PyErr_Clear(); |
3339 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3340 | { |
3341 | long v = PyLong_AsLong(obj); |
3342 | if (!PyErr_Occurred()) { |
3343 | if (v < 0) { |
3344 | return SWIG_OverflowError-7; |
3345 | } |
3346 | } else { |
3347 | PyErr_Clear(); |
3348 | } |
3349 | } |
3350 | #endif |
3351 | } |
3352 | } |
3353 | #ifdef SWIG_PYTHON_CAST_MODE |
3354 | { |
3355 | int dispatch = 0; |
3356 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3357 | if (!PyErr_Occurred()) { |
3358 | if (val) *val = v; |
3359 | return SWIG_AddCast(SWIG_OK)((0)); |
3360 | } else { |
3361 | PyErr_Clear(); |
3362 | } |
3363 | if (!dispatch) { |
3364 | double d; |
3365 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3366 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3367 | if (val) *val = (unsigned long)(d); |
3368 | return res; |
3369 | } |
3370 | } |
3371 | } |
3372 | #endif |
3373 | return SWIG_TypeError-5; |
3374 | } |
3375 | |
3376 | |
3377 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3378 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
3379 | { |
3380 | unsigned long v; |
3381 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
3382 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
3383 | return res; |
3384 | } |
3385 | |
3386 | |
3387 | #define SWIG_From_longPyLong_FromLong PyLong_FromLong |
3388 | |
3389 | |
3390 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3391 | SWIG_From_ptrdiff_t (ptrdiff_t value) |
3392 | { |
3393 | return SWIG_From_longPyLong_FromLong (static_cast< long >(value)); |
3394 | } |
3395 | |
3396 | |
3397 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3398 | SWIG_From_bool (bool value) |
3399 | { |
3400 | return PyBool_FromLong(value ? 1 : 0); |
3401 | } |
3402 | |
3403 | |
3404 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3405 | SWIG_AsVal_long (PyObject *obj, long* val) |
3406 | { |
3407 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3408 | if (val) *val = PyInt_AsLong(obj); |
3409 | return SWIG_OK(0); |
3410 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3411 | long v = PyLong_AsLong(obj); |
3412 | if (!PyErr_Occurred()) { |
3413 | if (val) *val = v; |
3414 | return SWIG_OK(0); |
3415 | } else { |
3416 | PyErr_Clear(); |
3417 | } |
3418 | } |
3419 | #ifdef SWIG_PYTHON_CAST_MODE |
3420 | { |
3421 | int dispatch = 0; |
3422 | long v = PyInt_AsLong(obj); |
3423 | if (!PyErr_Occurred()) { |
3424 | if (val) *val = v; |
3425 | return SWIG_AddCast(SWIG_OK)((0)); |
3426 | } else { |
3427 | PyErr_Clear(); |
3428 | } |
3429 | if (!dispatch) { |
3430 | double d; |
3431 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3432 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3433 | if (val) *val = (long)(d); |
3434 | return res; |
3435 | } |
3436 | } |
3437 | } |
3438 | #endif |
3439 | return SWIG_TypeError-5; |
3440 | } |
3441 | |
3442 | |
3443 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3444 | SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) |
3445 | { |
3446 | long v; |
3447 | int res = SWIG_AsVal_long (obj, val ? &v : 0); |
3448 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v); |
3449 | return res; |
3450 | } |
3451 | |
3452 | |
3453 | #include <stdexcept> |
3454 | |
3455 | |
3456 | #include <algorithm> |
3457 | |
3458 | |
3459 | #include <vector> |
3460 | |
3461 | |
3462 | #include <utility> |
3463 | |
3464 | |
3465 | #include <map> |
3466 | #include <algorithm> |
3467 | #include <stdexcept> |
3468 | |
3469 | |
3470 | /* Put headers and other declarations here that are needed for compilation */ |
3471 | #include "GLATAeff.hpp" |
3472 | |
3473 | |
3474 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3475 | SWIG_pchar_descriptor(void) |
3476 | { |
3477 | static int init = 0; |
3478 | static swig_type_info* info = 0; |
3479 | if (!init) { |
3480 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3481 | init = 1; |
3482 | } |
3483 | return info; |
3484 | } |
3485 | |
3486 | |
3487 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3488 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3489 | { |
3490 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3491 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3492 | #else |
3493 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3494 | #endif |
3495 | { |
3496 | char *cstr; Py_ssize_t len; |
3497 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3498 | if (!alloc && cptr) { |
3499 | /* We can't allow converting without allocation, since the internal |
3500 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3501 | a UTF-8 representation. |
3502 | TODO(bhy) More detailed explanation */ |
3503 | return SWIG_RuntimeError-3; |
3504 | } |
3505 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj); |
3506 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3507 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3508 | #else |
3509 | PyString_AsStringAndSize(obj, &cstr, &len); |
3510 | #endif |
3511 | if (cptr) { |
3512 | if (alloc) { |
3513 | /* |
3514 | In python the user should not be able to modify the inner |
3515 | string representation. To warranty that, if you define |
3516 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3517 | buffer is always returned. |
3518 | |
3519 | The default behavior is just to return the pointer value, |
3520 | so, be careful. |
3521 | */ |
3522 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3523 | if (*alloc != SWIG_OLDOBJ((0))) |
3524 | #else |
3525 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3526 | #endif |
3527 | { |
3528 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); |
3529 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3530 | } |
3531 | else { |
3532 | *cptr = cstr; |
3533 | *alloc = SWIG_OLDOBJ((0)); |
3534 | } |
3535 | } else { |
3536 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3537 | assert(0)((void)0); /* Should never reach here in Python 3 */ |
3538 | #endif |
3539 | *cptr = SWIG_Python_str_AsChar(obj); |
3540 | } |
3541 | } |
3542 | if (psize) *psize = len + 1; |
3543 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3544 | 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); |
3545 | #endif |
3546 | return SWIG_OK(0); |
3547 | } else { |
3548 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3549 | if (pchar_descriptor) { |
3550 | void* vptr = 0; |
3551 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3552 | if (cptr) *cptr = (char *) vptr; |
3553 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3554 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3555 | return SWIG_OK(0); |
3556 | } |
3557 | } |
3558 | } |
3559 | return SWIG_TypeError-5; |
3560 | } |
3561 | |
3562 | |
3563 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3564 | SWIG_AsPtr_std_string (PyObject * obj, std::string **val) |
3565 | { |
3566 | char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0)); |
3567 | if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc) ) >= 0)) { |
3568 | if (buf) { |
3569 | if (val) *val = new std::string(buf, size - 1); |
3570 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf; |
3571 | return SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3572 | } else { |
3573 | if (val) *val = 0; |
3574 | return SWIG_OLDOBJ((0)); |
3575 | } |
3576 | } else { |
3577 | static int init = 0; |
3578 | static swig_type_info* descriptor = 0; |
3579 | if (!init) { |
3580 | descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string" " *"); |
3581 | init = 1; |
3582 | } |
3583 | if (descriptor) { |
3584 | std::string *vptr; |
3585 | int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor , 0, 0); |
3586 | if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr; |
3587 | return res; |
3588 | } |
3589 | } |
3590 | return SWIG_ERROR(-1); |
3591 | } |
3592 | |
3593 | |
3594 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
3595 | |
3596 | |
3597 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3598 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
3599 | { |
3600 | int r = PyObject_IsTrue(obj); |
3601 | if (r == -1) |
3602 | return SWIG_ERROR(-1); |
3603 | if (val) *val = r ? true : false; |
3604 | return SWIG_OK(0); |
3605 | } |
3606 | |
3607 | |
3608 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3609 | SWIG_From_int (int value) |
3610 | { |
3611 | return PyInt_FromLong((long) value); |
3612 | } |
3613 | |
3614 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATAeff GLATAeff_copy(GLATAeff *self){ |
3615 | return (*self); |
3616 | } |
3617 | |
3618 | /* Put headers and other declarations here that are needed for compilation */ |
3619 | #include "GLATEdisp.hpp" |
3620 | |
3621 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATEdisp GLATEdisp_copy(GLATEdisp *self){ |
3622 | return (*self); |
3623 | } |
3624 | |
3625 | /* Put headers and other declarations here that are needed for compilation */ |
3626 | #include "GLATEventAtom.hpp" |
3627 | |
3628 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATEventAtom GLATEventAtom_copy(GLATEventAtom *self){ |
3629 | return (*self); |
3630 | } |
3631 | |
3632 | /* Put headers and other declarations here that are needed for compilation */ |
3633 | #include "GLATEventBin.hpp" |
3634 | |
3635 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATEventBin GLATEventBin_copy(GLATEventBin *self){ |
3636 | return (*self); |
3637 | } |
3638 | |
3639 | /* Put headers and other declarations here that are needed for compilation */ |
3640 | #include "GLATEventCube.hpp" |
3641 | |
3642 | |
3643 | #include <limits.h> |
3644 | #if !defined(SWIG_NO_LLONG_MAX) |
3645 | # if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3646 | # define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL |
3647 | # define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL) |
3648 | # define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL) |
3649 | # endif |
3650 | #endif |
3651 | |
3652 | |
3653 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3654 | SWIG_AsVal_int (PyObject * obj, int *val) |
3655 | { |
3656 | long v; |
3657 | int res = SWIG_AsVal_long (obj, &v); |
3658 | if (SWIG_IsOK(res)(res >= 0)) { |
3659 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3660 | return SWIG_OverflowError-7; |
3661 | } else { |
3662 | if (val) *val = static_cast< int >(v); |
3663 | } |
3664 | } |
3665 | return res; |
3666 | } |
3667 | |
3668 | |
3669 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3670 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3671 | { |
3672 | if (carray) { |
3673 | if (size > INT_MAX2147483647) { |
3674 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3675 | return pchar_descriptor ? |
3676 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3677 | } else { |
3678 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3679 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size)); |
3680 | #else |
3681 | return PyString_FromStringAndSize(carray, static_cast< int >(size)); |
3682 | #endif |
3683 | } |
3684 | } else { |
3685 | return SWIG_Py_Void(); |
3686 | } |
3687 | } |
3688 | |
3689 | |
3690 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3691 | SWIG_From_std_string (const std::string& s) |
3692 | { |
3693 | return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
3694 | } |
3695 | |
3696 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATEventCube GLATEventCube_copy(GLATEventCube *self){ |
3697 | return (*self); |
3698 | } |
3699 | |
3700 | /* Put headers and other declarations here that are needed for compilation */ |
3701 | #include "GLATEventList.hpp" |
3702 | #include "GTools.hpp" |
3703 | |
3704 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATEventList GLATEventList_copy(GLATEventList *self){ |
3705 | return (*self); |
3706 | } |
3707 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATEventAtom *GLATEventList___getitem__(GLATEventList *self,int const &index){ |
3708 | if (index >= 0 && index < self->size()) { |
3709 | return ((*self)[index]); |
3710 | } |
3711 | else { |
3712 | throw GException::out_of_range("__getitem__(int)", "Event index", |
3713 | index, self->size()); |
3714 | } |
3715 | } |
3716 | SWIGINTERNstatic __attribute__ ((__unused__)) void GLATEventList___setitem__(GLATEventList *self,int const &index,GLATEventAtom const &value){ |
3717 | if (index>=0 && index < self->size()) { |
3718 | *((*self)[index]) = value; |
3719 | } |
3720 | else { |
3721 | throw GException::out_of_range("__setitem__(int)", "Event index", |
3722 | index, self->size()); |
3723 | } |
3724 | } |
3725 | |
3726 | /* Put headers and other declarations here that are needed for compilation */ |
3727 | #include "GLATInstDir.hpp" |
3728 | |
3729 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATInstDir GLATInstDir_copy(GLATInstDir *self){ |
3730 | return (*self); |
3731 | } |
3732 | |
3733 | /* Put headers and other declarations here that are needed for compilation */ |
3734 | #include "GLATLtCube.hpp" |
3735 | #include "GTools.hpp" |
3736 | |
3737 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATLtCube GLATLtCube_copy(GLATLtCube *self){ |
3738 | return (*self); |
3739 | } |
3740 | |
3741 | /* Put headers and other declarations here that are needed for compilation */ |
3742 | #include "GLATMeanPsf.hpp" |
3743 | #include "GTools.hpp" |
3744 | |
3745 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATMeanPsf GLATMeanPsf_copy(GLATMeanPsf *self){ |
3746 | return (*self); |
3747 | } |
3748 | |
3749 | /* Put headers and other declarations here that are needed for compilation */ |
3750 | #include "GLATObservation.hpp" |
3751 | |
3752 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATObservation GLATObservation_copy(GLATObservation *self){ |
3753 | return (*self); |
3754 | } |
3755 | |
3756 | /* Put headers and other declarations here that are needed for compilation */ |
3757 | #include "GLATPsf.hpp" |
3758 | |
3759 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATPsf GLATPsf_copy(GLATPsf *self){ |
3760 | return (*self); |
3761 | } |
3762 | |
3763 | /* Put headers and other declarations here that are needed for compilation */ |
3764 | #include "GLATResponse.hpp" |
3765 | |
3766 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATResponse GLATResponse_copy(GLATResponse *self){ |
3767 | return (*self); |
3768 | } |
3769 | |
3770 | /* Put headers and other declarations here that are needed for compilation */ |
3771 | #include "GLATRoi.hpp" |
3772 | |
3773 | SWIGINTERNstatic __attribute__ ((__unused__)) GLATRoi GLATRoi_copy(GLATRoi *self){ |
3774 | return (*self); |
3775 | } |
3776 | #ifdef __cplusplus199711L |
3777 | extern "C" { |
3778 | #endif |
3779 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3780 | PyObject *resultobj = 0; |
3781 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3782 | void *argp1 = 0 ; |
3783 | int res1 = 0 ; |
3784 | PyObject * obj0 = 0 ; |
3785 | |
3786 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail; |
3787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0x1 | 0, 0); |
3788 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3789 | 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); |
3790 | } |
3791 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3792 | delete arg1; |
3793 | resultobj = SWIG_Py_Void(); |
3794 | return resultobj; |
3795 | fail: |
3796 | return NULL__null; |
3797 | } |
3798 | |
3799 | |
3800 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3801 | PyObject *resultobj = 0; |
3802 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3803 | void *argp1 = 0 ; |
3804 | int res1 = 0 ; |
3805 | PyObject * obj0 = 0 ; |
3806 | PyObject *result = 0 ; |
3807 | |
3808 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail; |
3809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
3810 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3811 | 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); |
3812 | } |
3813 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3814 | try { |
3815 | result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); |
3816 | } |
3817 | catch(swig::stop_iteration &_e) { |
3818 | { |
3819 | (void)_e; |
3820 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3821 | SWIG_failgoto fail; |
3822 | } |
3823 | } |
3824 | |
3825 | resultobj = result; |
3826 | return resultobj; |
3827 | fail: |
3828 | return NULL__null; |
3829 | } |
3830 | |
3831 | |
3832 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3833 | PyObject *resultobj = 0; |
3834 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3835 | size_t arg2 ; |
3836 | void *argp1 = 0 ; |
3837 | int res1 = 0 ; |
3838 | size_t val2 ; |
3839 | int ecode2 = 0 ; |
3840 | PyObject * obj0 = 0 ; |
3841 | PyObject * obj1 = 0 ; |
3842 | swig::SwigPyIterator *result = 0 ; |
3843 | |
3844 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail; |
3845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
3846 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3847 | 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); |
3848 | } |
3849 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3850 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3851 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3852 | 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); |
3853 | } |
3854 | arg2 = static_cast< size_t >(val2); |
3855 | try { |
3856 | result = (swig::SwigPyIterator *)(arg1)->incr(arg2); |
3857 | } |
3858 | catch(swig::stop_iteration &_e) { |
3859 | { |
3860 | (void)_e; |
3861 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3862 | SWIG_failgoto fail; |
3863 | } |
3864 | } |
3865 | |
3866 | 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[37], 0 | 0); |
3867 | return resultobj; |
3868 | fail: |
3869 | return NULL__null; |
3870 | } |
3871 | |
3872 | |
3873 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3874 | PyObject *resultobj = 0; |
3875 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3876 | void *argp1 = 0 ; |
3877 | int res1 = 0 ; |
3878 | PyObject * obj0 = 0 ; |
3879 | swig::SwigPyIterator *result = 0 ; |
3880 | |
3881 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail; |
3882 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
3883 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3884 | 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); |
3885 | } |
3886 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3887 | try { |
3888 | result = (swig::SwigPyIterator *)(arg1)->incr(); |
3889 | } |
3890 | catch(swig::stop_iteration &_e) { |
3891 | { |
3892 | (void)_e; |
3893 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3894 | SWIG_failgoto fail; |
3895 | } |
3896 | } |
3897 | |
3898 | 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[37], 0 | 0); |
3899 | return resultobj; |
3900 | fail: |
3901 | return NULL__null; |
3902 | } |
3903 | |
3904 | |
3905 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { |
3906 | int argc; |
3907 | PyObject *argv[3]; |
3908 | int ii; |
3909 | |
3910 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3911 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3912 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3913 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3914 | } |
3915 | if (argc == 1) { |
3916 | int _v; |
3917 | void *vptr = 0; |
3918 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[37 ], 0, 0); |
3919 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3920 | if (_v) { |
3921 | return _wrap_SwigPyIterator_incr__SWIG_1(self, args); |
3922 | } |
3923 | } |
3924 | if (argc == 2) { |
3925 | int _v; |
3926 | void *vptr = 0; |
3927 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[37 ], 0, 0); |
3928 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3929 | if (_v) { |
3930 | { |
3931 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3932 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3933 | } |
3934 | if (_v) { |
3935 | return _wrap_SwigPyIterator_incr__SWIG_0(self, args); |
3936 | } |
3937 | } |
3938 | } |
3939 | |
3940 | fail: |
3941 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" |
3942 | " Possible C/C++ prototypes are:\n" |
3943 | " swig::SwigPyIterator::incr(size_t)\n" |
3944 | " swig::SwigPyIterator::incr()\n"); |
3945 | return 0; |
3946 | } |
3947 | |
3948 | |
3949 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3950 | PyObject *resultobj = 0; |
3951 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3952 | size_t arg2 ; |
3953 | void *argp1 = 0 ; |
3954 | int res1 = 0 ; |
3955 | size_t val2 ; |
3956 | int ecode2 = 0 ; |
3957 | PyObject * obj0 = 0 ; |
3958 | PyObject * obj1 = 0 ; |
3959 | swig::SwigPyIterator *result = 0 ; |
3960 | |
3961 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail; |
3962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
3963 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3964 | 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); |
3965 | } |
3966 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3967 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3968 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3969 | 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); |
3970 | } |
3971 | arg2 = static_cast< size_t >(val2); |
3972 | try { |
3973 | result = (swig::SwigPyIterator *)(arg1)->decr(arg2); |
3974 | } |
3975 | catch(swig::stop_iteration &_e) { |
3976 | { |
3977 | (void)_e; |
3978 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3979 | SWIG_failgoto fail; |
3980 | } |
3981 | } |
3982 | |
3983 | 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[37], 0 | 0); |
3984 | return resultobj; |
3985 | fail: |
3986 | return NULL__null; |
3987 | } |
3988 | |
3989 | |
3990 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3991 | PyObject *resultobj = 0; |
3992 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3993 | void *argp1 = 0 ; |
3994 | int res1 = 0 ; |
3995 | PyObject * obj0 = 0 ; |
3996 | swig::SwigPyIterator *result = 0 ; |
3997 | |
3998 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail; |
3999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4000 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4001 | 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); |
4002 | } |
4003 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4004 | try { |
4005 | result = (swig::SwigPyIterator *)(arg1)->decr(); |
4006 | } |
4007 | catch(swig::stop_iteration &_e) { |
4008 | { |
4009 | (void)_e; |
4010 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4011 | SWIG_failgoto fail; |
4012 | } |
4013 | } |
4014 | |
4015 | 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[37], 0 | 0); |
4016 | return resultobj; |
4017 | fail: |
4018 | return NULL__null; |
4019 | } |
4020 | |
4021 | |
4022 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { |
4023 | int argc; |
4024 | PyObject *argv[3]; |
4025 | int ii; |
4026 | |
4027 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4028 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4029 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4030 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4031 | } |
4032 | if (argc == 1) { |
4033 | int _v; |
4034 | void *vptr = 0; |
4035 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[37 ], 0, 0); |
4036 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4037 | if (_v) { |
4038 | return _wrap_SwigPyIterator_decr__SWIG_1(self, args); |
4039 | } |
4040 | } |
4041 | if (argc == 2) { |
4042 | int _v; |
4043 | void *vptr = 0; |
4044 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[37 ], 0, 0); |
4045 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4046 | if (_v) { |
4047 | { |
4048 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
4049 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4050 | } |
4051 | if (_v) { |
4052 | return _wrap_SwigPyIterator_decr__SWIG_0(self, args); |
4053 | } |
4054 | } |
4055 | } |
4056 | |
4057 | fail: |
4058 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" |
4059 | " Possible C/C++ prototypes are:\n" |
4060 | " swig::SwigPyIterator::decr(size_t)\n" |
4061 | " swig::SwigPyIterator::decr()\n"); |
4062 | return 0; |
4063 | } |
4064 | |
4065 | |
4066 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4067 | PyObject *resultobj = 0; |
4068 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4069 | swig::SwigPyIterator *arg2 = 0 ; |
4070 | void *argp1 = 0 ; |
4071 | int res1 = 0 ; |
4072 | void *argp2 = 0 ; |
4073 | int res2 = 0 ; |
4074 | PyObject * obj0 = 0 ; |
4075 | PyObject * obj1 = 0 ; |
4076 | ptrdiff_t result; |
4077 | |
4078 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail; |
4079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4080 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4081 | 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); |
4082 | } |
4083 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4084 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37] , 0 | 0, 0); |
4085 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4086 | 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); |
4087 | } |
4088 | if (!argp2) { |
4089 | 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 ); |
4090 | } |
4091 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4092 | try { |
4093 | result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); |
4094 | } |
4095 | catch(std::invalid_argument &_e) { |
4096 | 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[ 36]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[36], 0x1)); SWIG_failgoto fail; |
4097 | } |
4098 | |
4099 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4100 | return resultobj; |
4101 | fail: |
4102 | return NULL__null; |
4103 | } |
4104 | |
4105 | |
4106 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4107 | PyObject *resultobj = 0; |
4108 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4109 | swig::SwigPyIterator *arg2 = 0 ; |
4110 | void *argp1 = 0 ; |
4111 | int res1 = 0 ; |
4112 | void *argp2 = 0 ; |
4113 | int res2 = 0 ; |
4114 | PyObject * obj0 = 0 ; |
4115 | PyObject * obj1 = 0 ; |
4116 | bool result; |
4117 | |
4118 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail; |
4119 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4120 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4121 | 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); |
4122 | } |
4123 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4124 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37] , 0 | 0, 0); |
4125 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4126 | 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); |
4127 | } |
4128 | if (!argp2) { |
4129 | 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 ); |
4130 | } |
4131 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4132 | try { |
4133 | result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); |
4134 | } |
4135 | catch(std::invalid_argument &_e) { |
4136 | 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[ 36]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[36], 0x1)); SWIG_failgoto fail; |
4137 | } |
4138 | |
4139 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4140 | return resultobj; |
4141 | fail: |
4142 | return NULL__null; |
4143 | } |
4144 | |
4145 | |
4146 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4147 | PyObject *resultobj = 0; |
4148 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4149 | void *argp1 = 0 ; |
4150 | int res1 = 0 ; |
4151 | PyObject * obj0 = 0 ; |
4152 | swig::SwigPyIterator *result = 0 ; |
4153 | |
4154 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail; |
4155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4156 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4157 | 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); |
4158 | } |
4159 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4160 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); |
4161 | 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[37], 0x1 | 0); |
4162 | return resultobj; |
4163 | fail: |
4164 | return NULL__null; |
4165 | } |
4166 | |
4167 | |
4168 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4169 | PyObject *resultobj = 0; |
4170 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4171 | void *argp1 = 0 ; |
4172 | int res1 = 0 ; |
4173 | PyObject * obj0 = 0 ; |
4174 | PyObject *result = 0 ; |
4175 | |
4176 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail; |
4177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4178 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4179 | 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); |
4180 | } |
4181 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4182 | try { |
4183 | result = (PyObject *)(arg1)->next(); |
4184 | } |
4185 | catch(swig::stop_iteration &_e) { |
4186 | { |
4187 | (void)_e; |
4188 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4189 | SWIG_failgoto fail; |
4190 | } |
4191 | } |
4192 | |
4193 | resultobj = result; |
4194 | return resultobj; |
4195 | fail: |
4196 | return NULL__null; |
4197 | } |
4198 | |
4199 | |
4200 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4201 | PyObject *resultobj = 0; |
4202 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4203 | void *argp1 = 0 ; |
4204 | int res1 = 0 ; |
4205 | PyObject * obj0 = 0 ; |
4206 | PyObject *result = 0 ; |
4207 | |
4208 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail; |
4209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4210 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4211 | 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); |
4212 | } |
4213 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4214 | try { |
4215 | result = (PyObject *)(arg1)->__next__(); |
4216 | } |
4217 | catch(swig::stop_iteration &_e) { |
4218 | { |
4219 | (void)_e; |
4220 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4221 | SWIG_failgoto fail; |
4222 | } |
4223 | } |
4224 | |
4225 | resultobj = result; |
4226 | return resultobj; |
4227 | fail: |
4228 | return NULL__null; |
4229 | } |
4230 | |
4231 | |
4232 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4233 | PyObject *resultobj = 0; |
4234 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4235 | void *argp1 = 0 ; |
4236 | int res1 = 0 ; |
4237 | PyObject * obj0 = 0 ; |
4238 | PyObject *result = 0 ; |
4239 | |
4240 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail; |
4241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4242 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4243 | 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); |
4244 | } |
4245 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4246 | try { |
4247 | result = (PyObject *)(arg1)->previous(); |
4248 | } |
4249 | catch(swig::stop_iteration &_e) { |
4250 | { |
4251 | (void)_e; |
4252 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4253 | SWIG_failgoto fail; |
4254 | } |
4255 | } |
4256 | |
4257 | resultobj = result; |
4258 | return resultobj; |
4259 | fail: |
4260 | return NULL__null; |
4261 | } |
4262 | |
4263 | |
4264 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4265 | PyObject *resultobj = 0; |
4266 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4267 | ptrdiff_t arg2 ; |
4268 | void *argp1 = 0 ; |
4269 | int res1 = 0 ; |
4270 | ptrdiff_t val2 ; |
4271 | int ecode2 = 0 ; |
4272 | PyObject * obj0 = 0 ; |
4273 | PyObject * obj1 = 0 ; |
4274 | swig::SwigPyIterator *result = 0 ; |
4275 | |
4276 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail; |
4277 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4278 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4279 | 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); |
4280 | } |
4281 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4282 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4283 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4284 | 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); |
4285 | } |
4286 | arg2 = static_cast< ptrdiff_t >(val2); |
4287 | try { |
4288 | result = (swig::SwigPyIterator *)(arg1)->advance(arg2); |
4289 | } |
4290 | catch(swig::stop_iteration &_e) { |
4291 | { |
4292 | (void)_e; |
4293 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4294 | SWIG_failgoto fail; |
4295 | } |
4296 | } |
4297 | |
4298 | 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[37], 0 | 0); |
4299 | return resultobj; |
4300 | fail: |
4301 | return NULL__null; |
4302 | } |
4303 | |
4304 | |
4305 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4306 | PyObject *resultobj = 0; |
4307 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4308 | swig::SwigPyIterator *arg2 = 0 ; |
4309 | void *argp1 = 0 ; |
4310 | int res1 = 0 ; |
4311 | void *argp2 = 0 ; |
4312 | int res2 = 0 ; |
4313 | PyObject * obj0 = 0 ; |
4314 | PyObject * obj1 = 0 ; |
4315 | bool result; |
4316 | |
4317 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
4318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4319 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4320 | 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); |
4321 | } |
4322 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4323 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37] , 0 | 0, 0); |
4324 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4325 | 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); |
4326 | } |
4327 | if (!argp2) { |
4328 | 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 ); |
4329 | } |
4330 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4331 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); |
4332 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4333 | return resultobj; |
4334 | fail: |
4335 | return NULL__null; |
4336 | } |
4337 | |
4338 | |
4339 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4340 | PyObject *resultobj = 0; |
4341 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4342 | swig::SwigPyIterator *arg2 = 0 ; |
4343 | void *argp1 = 0 ; |
4344 | int res1 = 0 ; |
4345 | void *argp2 = 0 ; |
4346 | int res2 = 0 ; |
4347 | PyObject * obj0 = 0 ; |
4348 | PyObject * obj1 = 0 ; |
4349 | bool result; |
4350 | |
4351 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
4352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4353 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4354 | 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); |
4355 | } |
4356 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4357 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37] , 0 | 0, 0); |
4358 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4359 | 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); |
4360 | } |
4361 | if (!argp2) { |
4362 | 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 ); |
4363 | } |
4364 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4365 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); |
4366 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4367 | return resultobj; |
4368 | fail: |
4369 | return NULL__null; |
4370 | } |
4371 | |
4372 | |
4373 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4374 | PyObject *resultobj = 0; |
4375 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4376 | ptrdiff_t arg2 ; |
4377 | void *argp1 = 0 ; |
4378 | int res1 = 0 ; |
4379 | ptrdiff_t val2 ; |
4380 | int ecode2 = 0 ; |
4381 | PyObject * obj0 = 0 ; |
4382 | PyObject * obj1 = 0 ; |
4383 | swig::SwigPyIterator *result = 0 ; |
4384 | |
4385 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail; |
4386 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0x1 | 0, 0); |
4387 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4388 | 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); |
4389 | } |
4390 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4391 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4392 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4393 | 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); |
4394 | } |
4395 | arg2 = static_cast< ptrdiff_t >(val2); |
4396 | try { |
4397 | result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); |
4398 | } |
4399 | catch(swig::stop_iteration &_e) { |
4400 | { |
4401 | (void)_e; |
4402 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4403 | SWIG_failgoto fail; |
4404 | } |
4405 | } |
4406 | |
4407 | 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[37], 0x1 | 0); |
4408 | return resultobj; |
4409 | fail: |
4410 | return NULL__null; |
4411 | } |
4412 | |
4413 | |
4414 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4415 | PyObject *resultobj = 0; |
4416 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4417 | ptrdiff_t arg2 ; |
4418 | void *argp1 = 0 ; |
4419 | int res1 = 0 ; |
4420 | ptrdiff_t val2 ; |
4421 | int ecode2 = 0 ; |
4422 | PyObject * obj0 = 0 ; |
4423 | PyObject * obj1 = 0 ; |
4424 | swig::SwigPyIterator *result = 0 ; |
4425 | |
4426 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail; |
4427 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0x1 | 0, 0); |
4428 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4429 | 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); |
4430 | } |
4431 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4432 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4433 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4434 | 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); |
4435 | } |
4436 | arg2 = static_cast< ptrdiff_t >(val2); |
4437 | try { |
4438 | result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); |
4439 | } |
4440 | catch(swig::stop_iteration &_e) { |
4441 | { |
4442 | (void)_e; |
4443 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4444 | SWIG_failgoto fail; |
4445 | } |
4446 | } |
4447 | |
4448 | 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[37], 0x1 | 0); |
4449 | return resultobj; |
4450 | fail: |
4451 | return NULL__null; |
4452 | } |
4453 | |
4454 | |
4455 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4456 | PyObject *resultobj = 0; |
4457 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4458 | ptrdiff_t arg2 ; |
4459 | void *argp1 = 0 ; |
4460 | int res1 = 0 ; |
4461 | ptrdiff_t val2 ; |
4462 | int ecode2 = 0 ; |
4463 | PyObject * obj0 = 0 ; |
4464 | PyObject * obj1 = 0 ; |
4465 | swig::SwigPyIterator *result = 0 ; |
4466 | |
4467 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail; |
4468 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4469 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4470 | 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); |
4471 | } |
4472 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4473 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4474 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4475 | 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); |
4476 | } |
4477 | arg2 = static_cast< ptrdiff_t >(val2); |
4478 | try { |
4479 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); |
4480 | } |
4481 | catch(swig::stop_iteration &_e) { |
4482 | { |
4483 | (void)_e; |
4484 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4485 | SWIG_failgoto fail; |
4486 | } |
4487 | } |
4488 | |
4489 | 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[37], 0x1 | 0); |
4490 | return resultobj; |
4491 | fail: |
4492 | return NULL__null; |
4493 | } |
4494 | |
4495 | |
4496 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4497 | PyObject *resultobj = 0; |
4498 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4499 | ptrdiff_t arg2 ; |
4500 | void *argp1 = 0 ; |
4501 | int res1 = 0 ; |
4502 | ptrdiff_t val2 ; |
4503 | int ecode2 = 0 ; |
4504 | PyObject * obj0 = 0 ; |
4505 | PyObject * obj1 = 0 ; |
4506 | swig::SwigPyIterator *result = 0 ; |
4507 | |
4508 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4509 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4510 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4511 | 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); |
4512 | } |
4513 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4514 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4515 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4516 | 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); |
4517 | } |
4518 | arg2 = static_cast< ptrdiff_t >(val2); |
4519 | try { |
4520 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); |
4521 | } |
4522 | catch(swig::stop_iteration &_e) { |
4523 | { |
4524 | (void)_e; |
4525 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4526 | SWIG_failgoto fail; |
4527 | } |
4528 | } |
4529 | |
4530 | 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[37], 0x1 | 0); |
4531 | return resultobj; |
4532 | fail: |
4533 | return NULL__null; |
4534 | } |
4535 | |
4536 | |
4537 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4538 | PyObject *resultobj = 0; |
4539 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4540 | swig::SwigPyIterator *arg2 = 0 ; |
4541 | void *argp1 = 0 ; |
4542 | int res1 = 0 ; |
4543 | void *argp2 = 0 ; |
4544 | int res2 = 0 ; |
4545 | PyObject * obj0 = 0 ; |
4546 | PyObject * obj1 = 0 ; |
4547 | ptrdiff_t result; |
4548 | |
4549 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4550 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[37] , 0 | 0, 0); |
4551 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4552 | 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); |
4553 | } |
4554 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4555 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37] , 0 | 0, 0); |
4556 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4557 | 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); |
4558 | } |
4559 | if (!argp2) { |
4560 | 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 ); |
4561 | } |
4562 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4563 | result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); |
4564 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4565 | return resultobj; |
4566 | fail: |
4567 | return NULL__null; |
4568 | } |
4569 | |
4570 | |
4571 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { |
4572 | int argc; |
4573 | PyObject *argv[3]; |
4574 | int ii; |
4575 | |
4576 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4577 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4578 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4579 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4580 | } |
4581 | if (argc == 2) { |
4582 | int _v; |
4583 | void *vptr = 0; |
4584 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[37 ], 0, 0); |
4585 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4586 | if (_v) { |
4587 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[37], 0, 0 ); |
4588 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4589 | if (_v) { |
4590 | return _wrap_SwigPyIterator___sub____SWIG_1(self, args); |
4591 | } |
4592 | } |
4593 | } |
4594 | if (argc == 2) { |
4595 | int _v; |
4596 | void *vptr = 0; |
4597 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[37 ], 0, 0); |
4598 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4599 | if (_v) { |
4600 | { |
4601 | int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null); |
4602 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4603 | } |
4604 | if (_v) { |
4605 | return _wrap_SwigPyIterator___sub____SWIG_0(self, args); |
4606 | } |
4607 | } |
4608 | } |
4609 | |
4610 | fail: |
4611 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
4612 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
4613 | } |
4614 | |
4615 | |
4616 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4617 | PyObject *obj; |
4618 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4619 | SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[37], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4620 | return SWIG_Py_Void(); |
4621 | } |
4622 | |
4623 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATAeff__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4624 | PyObject *resultobj = 0; |
4625 | GLATAeff *result = 0 ; |
4626 | |
4627 | if (!PyArg_ParseTuple(args,(char *)":new_GLATAeff")) SWIG_failgoto fail; |
4628 | { |
4629 | try { |
4630 | result = (GLATAeff *)new GLATAeff(); |
4631 | } |
4632 | catch (const GException::out_of_range& e) { |
4633 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4634 | } |
4635 | catch (const GExceptionHandler& e) { |
4636 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4637 | } |
4638 | catch (const std::exception& e) { |
4639 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4640 | } |
4641 | } |
4642 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATAeff, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
4643 | return resultobj; |
4644 | fail: |
4645 | return NULL__null; |
4646 | } |
4647 | |
4648 | |
4649 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATAeff__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4650 | PyObject *resultobj = 0; |
4651 | std::string *arg1 = 0 ; |
4652 | int res1 = SWIG_OLDOBJ((0)) ; |
4653 | PyObject * obj0 = 0 ; |
4654 | GLATAeff *result = 0 ; |
4655 | |
4656 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATAeff",&obj0)) SWIG_failgoto fail; |
4657 | { |
4658 | std::string *ptr = (std::string *)0; |
4659 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
4660 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATAeff" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATAeff" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
4662 | } |
4663 | if (!ptr) { |
4664 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATAeff" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATAeff" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
4665 | } |
4666 | arg1 = ptr; |
4667 | } |
4668 | { |
4669 | try { |
4670 | result = (GLATAeff *)new GLATAeff((std::string const &)*arg1); |
4671 | } |
4672 | catch (const GException::out_of_range& e) { |
4673 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4674 | } |
4675 | catch (const GExceptionHandler& e) { |
4676 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4677 | } |
4678 | catch (const std::exception& e) { |
4679 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4680 | } |
4681 | } |
4682 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATAeff, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
4683 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4684 | return resultobj; |
4685 | fail: |
4686 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
4687 | return NULL__null; |
4688 | } |
4689 | |
4690 | |
4691 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATAeff__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4692 | PyObject *resultobj = 0; |
4693 | GLATAeff *arg1 = 0 ; |
4694 | void *argp1 = 0 ; |
4695 | int res1 = 0 ; |
4696 | PyObject * obj0 = 0 ; |
4697 | GLATAeff *result = 0 ; |
4698 | |
4699 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATAeff",&obj0)) SWIG_failgoto fail; |
4700 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATAeff, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4701 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATAeff" "', argument " "1"" of type '" "GLATAeff const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATAeff" "', argument " "1"" of type '" "GLATAeff const &""'"); goto fail; } while (0); |
4703 | } |
4704 | if (!argp1) { |
4705 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATAeff" "', argument " "1"" of type '" "GLATAeff const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATAeff" "', argument " "1"" of type '" "GLATAeff const &" "'"); goto fail; } while(0); |
4706 | } |
4707 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
4708 | { |
4709 | try { |
4710 | result = (GLATAeff *)new GLATAeff((GLATAeff const &)*arg1); |
4711 | } |
4712 | catch (const GException::out_of_range& e) { |
4713 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4714 | } |
4715 | catch (const GExceptionHandler& e) { |
4716 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4717 | } |
4718 | catch (const std::exception& e) { |
4719 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4720 | } |
4721 | } |
4722 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATAeff, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
4723 | return resultobj; |
4724 | fail: |
4725 | return NULL__null; |
4726 | } |
4727 | |
4728 | |
4729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATAeff(PyObject *self, PyObject *args) { |
4730 | int argc; |
4731 | PyObject *argv[2]; |
4732 | int ii; |
4733 | |
4734 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4735 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4736 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
4737 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4738 | } |
4739 | if (argc == 0) { |
4740 | return _wrap_new_GLATAeff__SWIG_0(self, args); |
4741 | } |
4742 | if (argc == 1) { |
4743 | int _v; |
4744 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[10], 0, 0 ); |
4745 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4746 | if (_v) { |
4747 | return _wrap_new_GLATAeff__SWIG_2(self, args); |
4748 | } |
4749 | } |
4750 | if (argc == 1) { |
4751 | int _v; |
4752 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
4753 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4754 | if (_v) { |
4755 | return _wrap_new_GLATAeff__SWIG_1(self, args); |
4756 | } |
4757 | } |
4758 | |
4759 | fail: |
4760 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATAeff'.\n" |
4761 | " Possible C/C++ prototypes are:\n" |
4762 | " GLATAeff::GLATAeff()\n" |
4763 | " GLATAeff::GLATAeff(std::string const &)\n" |
4764 | " GLATAeff::GLATAeff(GLATAeff const &)\n"); |
4765 | return 0; |
4766 | } |
4767 | |
4768 | |
4769 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATAeff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4770 | PyObject *resultobj = 0; |
4771 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
4772 | void *argp1 = 0 ; |
4773 | int res1 = 0 ; |
4774 | PyObject * obj0 = 0 ; |
4775 | |
4776 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATAeff",&obj0)) SWIG_failgoto fail; |
4777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0x1 | 0, 0); |
4778 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATAeff" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATAeff" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
4780 | } |
4781 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
4782 | { |
4783 | try { |
4784 | delete arg1; |
4785 | } |
4786 | catch (const GException::out_of_range& e) { |
4787 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4788 | } |
4789 | catch (const GExceptionHandler& e) { |
4790 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4791 | } |
4792 | catch (const std::exception& e) { |
4793 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4794 | } |
4795 | } |
4796 | resultobj = SWIG_Py_Void(); |
4797 | return resultobj; |
4798 | fail: |
4799 | return NULL__null; |
4800 | } |
4801 | |
4802 | |
4803 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4804 | PyObject *resultobj = 0; |
4805 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
4806 | double *arg2 = 0 ; |
4807 | double *arg3 = 0 ; |
4808 | void *argp1 = 0 ; |
4809 | int res1 = 0 ; |
4810 | double temp2 ; |
4811 | double val2 ; |
4812 | int ecode2 = 0 ; |
4813 | double temp3 ; |
4814 | double val3 ; |
4815 | int ecode3 = 0 ; |
4816 | PyObject * obj0 = 0 ; |
4817 | PyObject * obj1 = 0 ; |
4818 | PyObject * obj2 = 0 ; |
4819 | double result; |
4820 | |
4821 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATAeff___call__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
4822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4823 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff___call__" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff___call__" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
4825 | } |
4826 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
4827 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
4828 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4829 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATAeff___call__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATAeff___call__" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
4830 | } |
4831 | temp2 = static_cast< double >(val2); |
4832 | arg2 = &temp2; |
4833 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
4834 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
4835 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATAeff___call__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATAeff___call__" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
4836 | } |
4837 | temp3 = static_cast< double >(val3); |
4838 | arg3 = &temp3; |
4839 | { |
4840 | try { |
4841 | result = (double)(arg1)->operator ()((double const &)*arg2,(double const &)*arg3); |
4842 | } |
4843 | catch (const GException::out_of_range& e) { |
4844 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4845 | } |
4846 | catch (const GExceptionHandler& e) { |
4847 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4848 | } |
4849 | catch (const std::exception& e) { |
4850 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4851 | } |
4852 | } |
4853 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
4854 | return resultobj; |
4855 | fail: |
4856 | return NULL__null; |
4857 | } |
4858 | |
4859 | |
4860 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4861 | PyObject *resultobj = 0; |
4862 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
4863 | double *arg2 = 0 ; |
4864 | double *arg3 = 0 ; |
4865 | double *arg4 = 0 ; |
4866 | void *argp1 = 0 ; |
4867 | int res1 = 0 ; |
4868 | double temp2 ; |
4869 | double val2 ; |
4870 | int ecode2 = 0 ; |
4871 | double temp3 ; |
4872 | double val3 ; |
4873 | int ecode3 = 0 ; |
4874 | double temp4 ; |
4875 | double val4 ; |
4876 | int ecode4 = 0 ; |
4877 | PyObject * obj0 = 0 ; |
4878 | PyObject * obj1 = 0 ; |
4879 | PyObject * obj2 = 0 ; |
4880 | PyObject * obj3 = 0 ; |
4881 | double result; |
4882 | |
4883 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATAeff___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
4884 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
4885 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff___call__" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff___call__" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
4887 | } |
4888 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
4889 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
4890 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4891 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATAeff___call__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATAeff___call__" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
4892 | } |
4893 | temp2 = static_cast< double >(val2); |
4894 | arg2 = &temp2; |
4895 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
4896 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
4897 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATAeff___call__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATAeff___call__" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
4898 | } |
4899 | temp3 = static_cast< double >(val3); |
4900 | arg3 = &temp3; |
4901 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
4902 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
4903 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GLATAeff___call__" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GLATAeff___call__" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
4904 | } |
4905 | temp4 = static_cast< double >(val4); |
4906 | arg4 = &temp4; |
4907 | { |
4908 | try { |
4909 | result = (double)(arg1)->operator ()((double const &)*arg2,(double const &)*arg3,(double const &)*arg4); |
4910 | } |
4911 | catch (const GException::out_of_range& e) { |
4912 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4913 | } |
4914 | catch (const GExceptionHandler& e) { |
4915 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4916 | } |
4917 | catch (const std::exception& e) { |
4918 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4919 | } |
4920 | } |
4921 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
4922 | return resultobj; |
4923 | fail: |
4924 | return NULL__null; |
4925 | } |
4926 | |
4927 | |
4928 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff___call__(PyObject *self, PyObject *args) { |
4929 | int argc; |
4930 | PyObject *argv[5]; |
4931 | int ii; |
4932 | |
4933 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4934 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4935 | for (ii = 0; (ii < 4) && (ii < argc); ii++) { |
4936 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4937 | } |
4938 | if (argc == 3) { |
4939 | int _v; |
4940 | void *vptr = 0; |
4941 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
4942 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4943 | if (_v) { |
4944 | { |
4945 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
4946 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4947 | } |
4948 | if (_v) { |
4949 | { |
4950 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
4951 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4952 | } |
4953 | if (_v) { |
4954 | return _wrap_GLATAeff___call____SWIG_0(self, args); |
4955 | } |
4956 | } |
4957 | } |
4958 | } |
4959 | if (argc == 4) { |
4960 | int _v; |
4961 | void *vptr = 0; |
4962 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
4963 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4964 | if (_v) { |
4965 | { |
4966 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
4967 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4968 | } |
4969 | if (_v) { |
4970 | { |
4971 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
4972 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4973 | } |
4974 | if (_v) { |
4975 | { |
4976 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
4977 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4978 | } |
4979 | if (_v) { |
4980 | return _wrap_GLATAeff___call____SWIG_1(self, args); |
4981 | } |
4982 | } |
4983 | } |
4984 | } |
4985 | } |
4986 | |
4987 | fail: |
4988 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATAeff___call__'.\n" |
4989 | " Possible C/C++ prototypes are:\n" |
4990 | " GLATAeff::operator ()(double const &,double const &)\n" |
4991 | " GLATAeff::operator ()(double const &,double const &,double const &)\n"); |
4992 | return 0; |
4993 | } |
4994 | |
4995 | |
4996 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4997 | PyObject *resultobj = 0; |
4998 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
4999 | void *argp1 = 0 ; |
5000 | int res1 = 0 ; |
5001 | PyObject * obj0 = 0 ; |
5002 | |
5003 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_clear",&obj0)) SWIG_failgoto fail; |
5004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5005 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_clear" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_clear" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
5007 | } |
5008 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5009 | { |
5010 | try { |
5011 | (arg1)->clear(); |
5012 | } |
5013 | catch (const GException::out_of_range& e) { |
5014 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5015 | } |
5016 | catch (const GExceptionHandler& e) { |
5017 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5018 | } |
5019 | catch (const std::exception& e) { |
5020 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5021 | } |
5022 | } |
5023 | resultobj = SWIG_Py_Void(); |
5024 | return resultobj; |
5025 | fail: |
5026 | return NULL__null; |
5027 | } |
5028 | |
5029 | |
5030 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5031 | PyObject *resultobj = 0; |
5032 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5033 | void *argp1 = 0 ; |
5034 | int res1 = 0 ; |
5035 | PyObject * obj0 = 0 ; |
5036 | GLATAeff *result = 0 ; |
5037 | |
5038 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_clone",&obj0)) SWIG_failgoto fail; |
5039 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5040 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5041 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_clone" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_clone" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5042 | } |
5043 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5044 | { |
5045 | try { |
5046 | result = (GLATAeff *)((GLATAeff const *)arg1)->clone(); |
5047 | } |
5048 | catch (const GException::out_of_range& e) { |
5049 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5050 | } |
5051 | catch (const GExceptionHandler& e) { |
5052 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5053 | } |
5054 | catch (const std::exception& e) { |
5055 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5056 | } |
5057 | } |
5058 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], 0 | 0); |
5059 | return resultobj; |
5060 | fail: |
5061 | return NULL__null; |
5062 | } |
5063 | |
5064 | |
5065 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5066 | PyObject *resultobj = 0; |
5067 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5068 | std::string arg2 ; |
5069 | void *argp1 = 0 ; |
5070 | int res1 = 0 ; |
5071 | PyObject * obj0 = 0 ; |
5072 | PyObject * obj1 = 0 ; |
5073 | |
5074 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATAeff_load",&obj0,&obj1)) SWIG_failgoto fail; |
5075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5076 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_load" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_load" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
5078 | } |
5079 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5080 | { |
5081 | std::string *ptr = (std::string *)0; |
5082 | int res = SWIG_AsPtr_std_string(obj1, &ptr); |
5083 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
5084 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GLATAeff_load" "', argument " "2"" of type '" "std::string const""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GLATAeff_load" "', argument " "2"" of type '" "std::string const""'"); goto fail; } while(0); |
5085 | } |
5086 | arg2 = *ptr; |
5087 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
5088 | } |
5089 | { |
5090 | try { |
5091 | (arg1)->load(arg2); |
5092 | } |
5093 | catch (const GException::out_of_range& e) { |
5094 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5095 | } |
5096 | catch (const GExceptionHandler& e) { |
5097 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5098 | } |
5099 | catch (const std::exception& e) { |
5100 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5101 | } |
5102 | } |
5103 | resultobj = SWIG_Py_Void(); |
5104 | return resultobj; |
5105 | fail: |
5106 | return NULL__null; |
5107 | } |
5108 | |
5109 | |
5110 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5111 | PyObject *resultobj = 0; |
5112 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5113 | std::string arg2 ; |
5114 | bool *arg3 = 0 ; |
5115 | void *argp1 = 0 ; |
5116 | int res1 = 0 ; |
5117 | bool temp3 ; |
5118 | bool val3 ; |
5119 | int ecode3 = 0 ; |
5120 | PyObject * obj0 = 0 ; |
5121 | PyObject * obj1 = 0 ; |
5122 | PyObject * obj2 = 0 ; |
5123 | |
5124 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATAeff_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5126 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_save" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_save" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
5128 | } |
5129 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5130 | { |
5131 | std::string *ptr = (std::string *)0; |
5132 | int res = SWIG_AsPtr_std_string(obj1, &ptr); |
5133 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
5134 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GLATAeff_save" "', argument " "2"" of type '" "std::string const""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GLATAeff_save" "', argument " "2"" of type '" "std::string const""'"); goto fail; } while(0); |
5135 | } |
5136 | arg2 = *ptr; |
5137 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
5138 | } |
5139 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
5140 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5141 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATAeff_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATAeff_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
5142 | } |
5143 | temp3 = static_cast< bool >(val3); |
5144 | arg3 = &temp3; |
5145 | { |
5146 | try { |
5147 | (arg1)->save(arg2,(bool const &)*arg3); |
5148 | } |
5149 | catch (const GException::out_of_range& e) { |
5150 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5151 | } |
5152 | catch (const GExceptionHandler& e) { |
5153 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5154 | } |
5155 | catch (const std::exception& e) { |
5156 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5157 | } |
5158 | } |
5159 | resultobj = SWIG_Py_Void(); |
5160 | return resultobj; |
5161 | fail: |
5162 | return NULL__null; |
5163 | } |
5164 | |
5165 | |
5166 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5167 | PyObject *resultobj = 0; |
5168 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5169 | std::string arg2 ; |
5170 | void *argp1 = 0 ; |
5171 | int res1 = 0 ; |
5172 | PyObject * obj0 = 0 ; |
5173 | PyObject * obj1 = 0 ; |
5174 | |
5175 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATAeff_save",&obj0,&obj1)) SWIG_failgoto fail; |
5176 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5177 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_save" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_save" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
5179 | } |
5180 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5181 | { |
5182 | std::string *ptr = (std::string *)0; |
5183 | int res = SWIG_AsPtr_std_string(obj1, &ptr); |
5184 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
5185 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GLATAeff_save" "', argument " "2"" of type '" "std::string const""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GLATAeff_save" "', argument " "2"" of type '" "std::string const""'"); goto fail; } while(0); |
5186 | } |
5187 | arg2 = *ptr; |
5188 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
5189 | } |
5190 | { |
5191 | try { |
5192 | (arg1)->save(arg2); |
5193 | } |
5194 | catch (const GException::out_of_range& e) { |
5195 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5196 | } |
5197 | catch (const GExceptionHandler& e) { |
5198 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5199 | } |
5200 | catch (const std::exception& e) { |
5201 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5202 | } |
5203 | } |
5204 | resultobj = SWIG_Py_Void(); |
5205 | return resultobj; |
5206 | fail: |
5207 | return NULL__null; |
5208 | } |
5209 | |
5210 | |
5211 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_save(PyObject *self, PyObject *args) { |
5212 | int argc; |
5213 | PyObject *argv[4]; |
5214 | int ii; |
5215 | |
5216 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5217 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5218 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
5219 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5220 | } |
5221 | if (argc == 2) { |
5222 | int _v; |
5223 | void *vptr = 0; |
5224 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
5225 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5226 | if (_v) { |
5227 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
5228 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5229 | if (_v) { |
5230 | return _wrap_GLATAeff_save__SWIG_1(self, args); |
5231 | } |
5232 | } |
5233 | } |
5234 | if (argc == 3) { |
5235 | int _v; |
5236 | void *vptr = 0; |
5237 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
5238 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5239 | if (_v) { |
5240 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
5241 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5242 | if (_v) { |
5243 | { |
5244 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
5245 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5246 | } |
5247 | if (_v) { |
5248 | return _wrap_GLATAeff_save__SWIG_0(self, args); |
5249 | } |
5250 | } |
5251 | } |
5252 | } |
5253 | |
5254 | fail: |
5255 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATAeff_save'.\n" |
5256 | " Possible C/C++ prototypes are:\n" |
5257 | " GLATAeff::save(std::string const,bool const &)\n" |
5258 | " GLATAeff::save(std::string const)\n"); |
5259 | return 0; |
5260 | } |
5261 | |
5262 | |
5263 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5264 | PyObject *resultobj = 0; |
5265 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5266 | GFits *arg2 = 0 ; |
5267 | void *argp1 = 0 ; |
5268 | int res1 = 0 ; |
5269 | void *argp2 = 0 ; |
5270 | int res2 = 0 ; |
5271 | PyObject * obj0 = 0 ; |
5272 | PyObject * obj1 = 0 ; |
5273 | |
5274 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATAeff_read",&obj0,&obj1)) SWIG_failgoto fail; |
5275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5276 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_read" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_read" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
5278 | } |
5279 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5280 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
5281 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5282 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATAeff_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATAeff_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while( 0); |
5283 | } |
5284 | if (!argp2) { |
5285 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATAeff_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATAeff_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while(0); |
5286 | } |
5287 | arg2 = reinterpret_cast< GFits * >(argp2); |
5288 | { |
5289 | try { |
5290 | (arg1)->read((GFits const &)*arg2); |
5291 | } |
5292 | catch (const GException::out_of_range& e) { |
5293 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5294 | } |
5295 | catch (const GExceptionHandler& e) { |
5296 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5297 | } |
5298 | catch (const std::exception& e) { |
5299 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5300 | } |
5301 | } |
5302 | resultobj = SWIG_Py_Void(); |
5303 | return resultobj; |
5304 | fail: |
5305 | return NULL__null; |
5306 | } |
5307 | |
5308 | |
5309 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5310 | PyObject *resultobj = 0; |
5311 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5312 | GFits *arg2 = 0 ; |
5313 | void *argp1 = 0 ; |
5314 | int res1 = 0 ; |
5315 | void *argp2 = 0 ; |
5316 | int res2 = 0 ; |
5317 | PyObject * obj0 = 0 ; |
5318 | PyObject * obj1 = 0 ; |
5319 | |
5320 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATAeff_write",&obj0,&obj1)) SWIG_failgoto fail; |
5321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5322 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_write" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_write" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5324 | } |
5325 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5326 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0, 0); |
5327 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5328 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATAeff_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATAeff_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
5329 | } |
5330 | if (!argp2) { |
5331 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATAeff_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATAeff_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
5332 | } |
5333 | arg2 = reinterpret_cast< GFits * >(argp2); |
5334 | { |
5335 | try { |
5336 | ((GLATAeff const *)arg1)->write(*arg2); |
5337 | } |
5338 | catch (const GException::out_of_range& e) { |
5339 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5340 | } |
5341 | catch (const GExceptionHandler& e) { |
5342 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5343 | } |
5344 | catch (const std::exception& e) { |
5345 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5346 | } |
5347 | } |
5348 | resultobj = SWIG_Py_Void(); |
5349 | return resultobj; |
5350 | fail: |
5351 | return NULL__null; |
5352 | } |
5353 | |
5354 | |
5355 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5356 | PyObject *resultobj = 0; |
5357 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5358 | void *argp1 = 0 ; |
5359 | int res1 = 0 ; |
5360 | PyObject * obj0 = 0 ; |
5361 | int result; |
5362 | |
5363 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_size",&obj0)) SWIG_failgoto fail; |
5364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5365 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_size" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_size" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5367 | } |
5368 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5369 | { |
5370 | try { |
5371 | result = (int)((GLATAeff const *)arg1)->size(); |
5372 | } |
5373 | catch (const GException::out_of_range& e) { |
5374 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5375 | } |
5376 | catch (const GExceptionHandler& e) { |
5377 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5378 | } |
5379 | catch (const std::exception& e) { |
5380 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5381 | } |
5382 | } |
5383 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5384 | return resultobj; |
5385 | fail: |
5386 | return NULL__null; |
5387 | } |
5388 | |
5389 | |
5390 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_nenergies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5391 | PyObject *resultobj = 0; |
5392 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5393 | void *argp1 = 0 ; |
5394 | int res1 = 0 ; |
5395 | PyObject * obj0 = 0 ; |
5396 | int result; |
5397 | |
5398 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_nenergies",&obj0)) SWIG_failgoto fail; |
5399 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5400 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_nenergies" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_nenergies" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5402 | } |
5403 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5404 | { |
5405 | try { |
5406 | result = (int)((GLATAeff const *)arg1)->nenergies(); |
5407 | } |
5408 | catch (const GException::out_of_range& e) { |
5409 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5410 | } |
5411 | catch (const GExceptionHandler& e) { |
5412 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5413 | } |
5414 | catch (const std::exception& e) { |
5415 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5416 | } |
5417 | } |
5418 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5419 | return resultobj; |
5420 | fail: |
5421 | return NULL__null; |
5422 | } |
5423 | |
5424 | |
5425 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_ncostheta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5426 | PyObject *resultobj = 0; |
5427 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5428 | void *argp1 = 0 ; |
5429 | int res1 = 0 ; |
5430 | PyObject * obj0 = 0 ; |
5431 | int result; |
5432 | |
5433 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_ncostheta",&obj0)) SWIG_failgoto fail; |
5434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5435 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_ncostheta" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_ncostheta" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5437 | } |
5438 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5439 | { |
5440 | try { |
5441 | result = (int)((GLATAeff const *)arg1)->ncostheta(); |
5442 | } |
5443 | catch (const GException::out_of_range& e) { |
5444 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5445 | } |
5446 | catch (const GExceptionHandler& e) { |
5447 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5448 | } |
5449 | catch (const std::exception& e) { |
5450 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5451 | } |
5452 | } |
5453 | resultobj = SWIG_From_int(static_cast< int >(result)); |
5454 | return resultobj; |
5455 | fail: |
5456 | return NULL__null; |
5457 | } |
5458 | |
5459 | |
5460 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_costhetamin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5461 | PyObject *resultobj = 0; |
5462 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5463 | void *argp1 = 0 ; |
5464 | int res1 = 0 ; |
5465 | PyObject * obj0 = 0 ; |
5466 | double result; |
5467 | |
5468 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_costhetamin",&obj0)) SWIG_failgoto fail; |
5469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5470 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_costhetamin" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_costhetamin" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5472 | } |
5473 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5474 | { |
5475 | try { |
5476 | result = (double)((GLATAeff const *)arg1)->costhetamin(); |
5477 | } |
5478 | catch (const GException::out_of_range& e) { |
5479 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5480 | } |
5481 | catch (const GExceptionHandler& e) { |
5482 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5483 | } |
5484 | catch (const std::exception& e) { |
5485 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5486 | } |
5487 | } |
5488 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5489 | return resultobj; |
5490 | fail: |
5491 | return NULL__null; |
5492 | } |
5493 | |
5494 | |
5495 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_costhetamin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5496 | PyObject *resultobj = 0; |
5497 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5498 | double *arg2 = 0 ; |
5499 | void *argp1 = 0 ; |
5500 | int res1 = 0 ; |
5501 | double temp2 ; |
5502 | double val2 ; |
5503 | int ecode2 = 0 ; |
5504 | PyObject * obj0 = 0 ; |
5505 | PyObject * obj1 = 0 ; |
5506 | |
5507 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATAeff_costhetamin",&obj0,&obj1)) SWIG_failgoto fail; |
5508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5509 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_costhetamin" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_costhetamin" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
5511 | } |
5512 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5513 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5514 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5515 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATAeff_costhetamin" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATAeff_costhetamin" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
5516 | } |
5517 | temp2 = static_cast< double >(val2); |
5518 | arg2 = &temp2; |
5519 | { |
5520 | try { |
5521 | (arg1)->costhetamin((double const &)*arg2); |
5522 | } |
5523 | catch (const GException::out_of_range& e) { |
5524 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5525 | } |
5526 | catch (const GExceptionHandler& e) { |
5527 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5528 | } |
5529 | catch (const std::exception& e) { |
5530 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5531 | } |
5532 | } |
5533 | resultobj = SWIG_Py_Void(); |
5534 | return resultobj; |
5535 | fail: |
5536 | return NULL__null; |
5537 | } |
5538 | |
5539 | |
5540 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_costhetamin(PyObject *self, PyObject *args) { |
5541 | int argc; |
5542 | PyObject *argv[3]; |
5543 | int ii; |
5544 | |
5545 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5546 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5547 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5548 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5549 | } |
5550 | if (argc == 1) { |
5551 | int _v; |
5552 | void *vptr = 0; |
5553 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
5554 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5555 | if (_v) { |
5556 | return _wrap_GLATAeff_costhetamin__SWIG_0(self, args); |
5557 | } |
5558 | } |
5559 | if (argc == 2) { |
5560 | int _v; |
5561 | void *vptr = 0; |
5562 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
5563 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5564 | if (_v) { |
5565 | { |
5566 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
5567 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5568 | } |
5569 | if (_v) { |
5570 | return _wrap_GLATAeff_costhetamin__SWIG_1(self, args); |
5571 | } |
5572 | } |
5573 | } |
5574 | |
5575 | fail: |
5576 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATAeff_costhetamin'.\n" |
5577 | " Possible C/C++ prototypes are:\n" |
5578 | " GLATAeff::costhetamin() const\n" |
5579 | " GLATAeff::costhetamin(double const &)\n"); |
5580 | return 0; |
5581 | } |
5582 | |
5583 | |
5584 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_hasphi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5585 | PyObject *resultobj = 0; |
5586 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5587 | void *argp1 = 0 ; |
5588 | int res1 = 0 ; |
5589 | PyObject * obj0 = 0 ; |
5590 | bool result; |
5591 | |
5592 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_hasphi",&obj0)) SWIG_failgoto fail; |
5593 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5594 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_hasphi" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_hasphi" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5596 | } |
5597 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5598 | { |
5599 | try { |
5600 | result = (bool)((GLATAeff const *)arg1)->hasphi(); |
5601 | } |
5602 | catch (const GException::out_of_range& e) { |
5603 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5604 | } |
5605 | catch (const GExceptionHandler& e) { |
5606 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5607 | } |
5608 | catch (const std::exception& e) { |
5609 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5610 | } |
5611 | } |
5612 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5613 | return resultobj; |
5614 | fail: |
5615 | return NULL__null; |
5616 | } |
5617 | |
5618 | |
5619 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_hasefficiency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5620 | PyObject *resultobj = 0; |
5621 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5622 | void *argp1 = 0 ; |
5623 | int res1 = 0 ; |
5624 | PyObject * obj0 = 0 ; |
5625 | bool result; |
5626 | |
5627 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_hasefficiency",&obj0)) SWIG_failgoto fail; |
5628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5629 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_hasefficiency" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_hasefficiency" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail; } while(0 ); |
5631 | } |
5632 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5633 | { |
5634 | try { |
5635 | result = (bool)((GLATAeff const *)arg1)->hasefficiency(); |
5636 | } |
5637 | catch (const GException::out_of_range& e) { |
5638 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5639 | } |
5640 | catch (const GExceptionHandler& e) { |
5641 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5642 | } |
5643 | catch (const std::exception& e) { |
5644 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5645 | } |
5646 | } |
5647 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5648 | return resultobj; |
5649 | fail: |
5650 | return NULL__null; |
5651 | } |
5652 | |
5653 | |
5654 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_efficiency_factor1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5655 | PyObject *resultobj = 0; |
5656 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5657 | GEnergy *arg2 = 0 ; |
5658 | void *argp1 = 0 ; |
5659 | int res1 = 0 ; |
5660 | void *argp2 = 0 ; |
5661 | int res2 = 0 ; |
5662 | PyObject * obj0 = 0 ; |
5663 | PyObject * obj1 = 0 ; |
5664 | double result; |
5665 | |
5666 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATAeff_efficiency_factor1",&obj0,&obj1)) SWIG_failgoto fail; |
5667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5668 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_efficiency_factor1" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_efficiency_factor1" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail ; } while(0); |
5670 | } |
5671 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5672 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1], 0 | 0, 0); |
5673 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5674 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATAeff_efficiency_factor1" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATAeff_efficiency_factor1" "', argument " "2"" of type '" "GEnergy const &""'"); goto fail; } while(0); |
5675 | } |
5676 | if (!argp2) { |
5677 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATAeff_efficiency_factor1" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATAeff_efficiency_factor1" "', argument " "2" " of type '" "GEnergy const &""'"); goto fail; } while(0); |
5678 | } |
5679 | arg2 = reinterpret_cast< GEnergy * >(argp2); |
5680 | { |
5681 | try { |
5682 | result = (double)((GLATAeff const *)arg1)->efficiency_factor1((GEnergy const &)*arg2); |
5683 | } |
5684 | catch (const GException::out_of_range& e) { |
5685 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5686 | } |
5687 | catch (const GExceptionHandler& e) { |
5688 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5689 | } |
5690 | catch (const std::exception& e) { |
5691 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5692 | } |
5693 | } |
5694 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5695 | return resultobj; |
5696 | fail: |
5697 | return NULL__null; |
5698 | } |
5699 | |
5700 | |
5701 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_efficiency_factor2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5702 | PyObject *resultobj = 0; |
5703 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5704 | GEnergy *arg2 = 0 ; |
5705 | void *argp1 = 0 ; |
5706 | int res1 = 0 ; |
5707 | void *argp2 = 0 ; |
5708 | int res2 = 0 ; |
5709 | PyObject * obj0 = 0 ; |
5710 | PyObject * obj1 = 0 ; |
5711 | double result; |
5712 | |
5713 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATAeff_efficiency_factor2",&obj0,&obj1)) SWIG_failgoto fail; |
5714 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5715 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_efficiency_factor2" "', argument " "1"" of type '" "GLATAeff const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_efficiency_factor2" "', argument " "1"" of type '" "GLATAeff const *""'"); goto fail ; } while(0); |
5717 | } |
5718 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5719 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[1], 0 | 0, 0); |
5720 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5721 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATAeff_efficiency_factor2" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATAeff_efficiency_factor2" "', argument " "2"" of type '" "GEnergy const &""'"); goto fail; } while(0); |
5722 | } |
5723 | if (!argp2) { |
5724 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATAeff_efficiency_factor2" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATAeff_efficiency_factor2" "', argument " "2" " of type '" "GEnergy const &""'"); goto fail; } while(0); |
5725 | } |
5726 | arg2 = reinterpret_cast< GEnergy * >(argp2); |
5727 | { |
5728 | try { |
5729 | result = (double)((GLATAeff const *)arg1)->efficiency_factor2((GEnergy const &)*arg2); |
5730 | } |
5731 | catch (const GException::out_of_range& e) { |
5732 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5733 | } |
5734 | catch (const GExceptionHandler& e) { |
5735 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5736 | } |
5737 | catch (const std::exception& e) { |
5738 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5739 | } |
5740 | } |
5741 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5742 | return resultobj; |
5743 | fail: |
5744 | return NULL__null; |
5745 | } |
5746 | |
5747 | |
5748 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATAeff_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5749 | PyObject *resultobj = 0; |
5750 | GLATAeff *arg1 = (GLATAeff *) 0 ; |
5751 | void *argp1 = 0 ; |
5752 | int res1 = 0 ; |
5753 | PyObject * obj0 = 0 ; |
5754 | GLATAeff result; |
5755 | |
5756 | if (!PyArg_ParseTuple(args,(char *)"O:GLATAeff_copy",&obj0)) SWIG_failgoto fail; |
5757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
5758 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATAeff_copy" "', argument " "1"" of type '" "GLATAeff *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATAeff_copy" "', argument " "1"" of type '" "GLATAeff *""'"); goto fail; } while(0); |
5760 | } |
5761 | arg1 = reinterpret_cast< GLATAeff * >(argp1); |
5762 | { |
5763 | try { |
5764 | result = GLATAeff_copy(arg1); |
5765 | } |
5766 | catch (const GException::out_of_range& e) { |
5767 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5768 | } |
5769 | catch (const GExceptionHandler& e) { |
5770 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5771 | } |
5772 | catch (const std::exception& e) { |
5773 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5774 | } |
5775 | } |
5776 | resultobj = SWIG_NewPointerObj((new GLATAeff(static_cast< const GLATAeff& >(result))), SWIGTYPE_p_GLATAeff, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATAeff(static_cast< const GLATAeff& >(result))), swig_types[10], 0x1 | 0); |
5777 | return resultobj; |
5778 | fail: |
5779 | return NULL__null; |
5780 | } |
5781 | |
5782 | |
5783 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATAeff_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5784 | PyObject *obj; |
5785 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
5786 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATAeffswig_types[10], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
5787 | return SWIG_Py_Void(); |
5788 | } |
5789 | |
5790 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEdisp__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5791 | PyObject *resultobj = 0; |
5792 | GLATEdisp *result = 0 ; |
5793 | |
5794 | if (!PyArg_ParseTuple(args,(char *)":new_GLATEdisp")) SWIG_failgoto fail; |
5795 | { |
5796 | try { |
5797 | result = (GLATEdisp *)new GLATEdisp(); |
5798 | } |
5799 | catch (const GException::out_of_range& e) { |
5800 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5801 | } |
5802 | catch (const GExceptionHandler& e) { |
5803 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5804 | } |
5805 | catch (const std::exception& e) { |
5806 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5807 | } |
5808 | } |
5809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEdisp, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], ( (0x1 << 1) | 0x1) | 0); |
5810 | return resultobj; |
5811 | fail: |
5812 | return NULL__null; |
5813 | } |
5814 | |
5815 | |
5816 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEdisp__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5817 | PyObject *resultobj = 0; |
5818 | std::string arg1 ; |
5819 | PyObject * obj0 = 0 ; |
5820 | GLATEdisp *result = 0 ; |
5821 | |
5822 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATEdisp",&obj0)) SWIG_failgoto fail; |
5823 | { |
5824 | std::string *ptr = (std::string *)0; |
5825 | int res = SWIG_AsPtr_std_string(obj0, &ptr); |
5826 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
5827 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "new_GLATEdisp" "', argument " "1"" of type '" "std::string const""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "new_GLATEdisp" "', argument " "1"" of type '" "std::string const""'"); goto fail; } while(0); |
5828 | } |
5829 | arg1 = *ptr; |
5830 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
5831 | } |
5832 | { |
5833 | try { |
5834 | result = (GLATEdisp *)new GLATEdisp(arg1); |
5835 | } |
5836 | catch (const GException::out_of_range& e) { |
5837 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5838 | } |
5839 | catch (const GExceptionHandler& e) { |
5840 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5841 | } |
5842 | catch (const std::exception& e) { |
5843 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5844 | } |
5845 | } |
5846 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEdisp, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], ( (0x1 << 1) | 0x1) | 0); |
5847 | return resultobj; |
5848 | fail: |
5849 | return NULL__null; |
5850 | } |
5851 | |
5852 | |
5853 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEdisp__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5854 | PyObject *resultobj = 0; |
5855 | GLATEdisp *arg1 = 0 ; |
5856 | void *argp1 = 0 ; |
5857 | int res1 = 0 ; |
5858 | PyObject * obj0 = 0 ; |
5859 | GLATEdisp *result = 0 ; |
5860 | |
5861 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATEdisp",&obj0)) SWIG_failgoto fail; |
5862 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATEdisp, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
5863 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATEdisp" "', argument " "1"" of type '" "GLATEdisp const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATEdisp" "', argument " "1"" of type '" "GLATEdisp const &""'"); goto fail; } while (0); |
5865 | } |
5866 | if (!argp1) { |
5867 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATEdisp" "', argument " "1"" of type '" "GLATEdisp const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATEdisp" "', argument " "1"" of type '" "GLATEdisp const &""'"); goto fail; } while(0); |
5868 | } |
5869 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
5870 | { |
5871 | try { |
5872 | result = (GLATEdisp *)new GLATEdisp((GLATEdisp const &)*arg1); |
5873 | } |
5874 | catch (const GException::out_of_range& e) { |
5875 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5876 | } |
5877 | catch (const GExceptionHandler& e) { |
5878 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5879 | } |
5880 | catch (const std::exception& e) { |
5881 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5882 | } |
5883 | } |
5884 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEdisp, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], ( (0x1 << 1) | 0x1) | 0); |
5885 | return resultobj; |
5886 | fail: |
5887 | return NULL__null; |
5888 | } |
5889 | |
5890 | |
5891 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEdisp(PyObject *self, PyObject *args) { |
5892 | int argc; |
5893 | PyObject *argv[2]; |
5894 | int ii; |
5895 | |
5896 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5897 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5898 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
5899 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5900 | } |
5901 | if (argc == 0) { |
5902 | return _wrap_new_GLATEdisp__SWIG_0(self, args); |
5903 | } |
5904 | if (argc == 1) { |
5905 | int _v; |
5906 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATEdisp, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[11], 0, 0 ); |
5907 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5908 | if (_v) { |
5909 | return _wrap_new_GLATEdisp__SWIG_2(self, args); |
5910 | } |
5911 | } |
5912 | if (argc == 1) { |
5913 | int _v; |
5914 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
5915 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5916 | if (_v) { |
5917 | return _wrap_new_GLATEdisp__SWIG_1(self, args); |
5918 | } |
5919 | } |
5920 | |
5921 | fail: |
5922 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATEdisp'.\n" |
5923 | " Possible C/C++ prototypes are:\n" |
5924 | " GLATEdisp::GLATEdisp()\n" |
5925 | " GLATEdisp::GLATEdisp(std::string const)\n" |
5926 | " GLATEdisp::GLATEdisp(GLATEdisp const &)\n"); |
5927 | return 0; |
5928 | } |
5929 | |
5930 | |
5931 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATEdisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5932 | PyObject *resultobj = 0; |
5933 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
5934 | void *argp1 = 0 ; |
5935 | int res1 = 0 ; |
5936 | PyObject * obj0 = 0 ; |
5937 | |
5938 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATEdisp",&obj0)) SWIG_failgoto fail; |
5939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
5940 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATEdisp" "', argument " "1"" of type '" "GLATEdisp *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATEdisp" "', argument " "1"" of type '" "GLATEdisp *""'"); goto fail; } while(0); |
5942 | } |
5943 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
5944 | { |
5945 | try { |
5946 | delete arg1; |
5947 | } |
5948 | catch (const GException::out_of_range& e) { |
5949 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5950 | } |
5951 | catch (const GExceptionHandler& e) { |
5952 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5953 | } |
5954 | catch (const std::exception& e) { |
5955 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5956 | } |
5957 | } |
5958 | resultobj = SWIG_Py_Void(); |
5959 | return resultobj; |
5960 | fail: |
5961 | return NULL__null; |
5962 | } |
5963 | |
5964 | |
5965 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5966 | PyObject *resultobj = 0; |
5967 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
5968 | void *argp1 = 0 ; |
5969 | int res1 = 0 ; |
5970 | PyObject * obj0 = 0 ; |
5971 | |
5972 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEdisp_clear",&obj0)) SWIG_failgoto fail; |
5973 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
5974 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_clear" "', argument " "1"" of type '" "GLATEdisp *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_clear" "', argument " "1"" of type '" "GLATEdisp *""'"); goto fail; } while(0); |
5976 | } |
5977 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
5978 | { |
5979 | try { |
5980 | (arg1)->clear(); |
5981 | } |
5982 | catch (const GException::out_of_range& e) { |
5983 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5984 | } |
5985 | catch (const GExceptionHandler& e) { |
5986 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5987 | } |
5988 | catch (const std::exception& e) { |
5989 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5990 | } |
5991 | } |
5992 | resultobj = SWIG_Py_Void(); |
5993 | return resultobj; |
5994 | fail: |
5995 | return NULL__null; |
5996 | } |
5997 | |
5998 | |
5999 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6000 | PyObject *resultobj = 0; |
6001 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6002 | void *argp1 = 0 ; |
6003 | int res1 = 0 ; |
6004 | PyObject * obj0 = 0 ; |
6005 | GLATEdisp *result = 0 ; |
6006 | |
6007 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEdisp_clone",&obj0)) SWIG_failgoto fail; |
6008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6009 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_clone" "', argument " "1"" of type '" "GLATEdisp const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_clone" "', argument " "1"" of type '" "GLATEdisp const *""'"); goto fail; } while( 0); |
6011 | } |
6012 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6013 | { |
6014 | try { |
6015 | result = (GLATEdisp *)((GLATEdisp const *)arg1)->clone(); |
6016 | } |
6017 | catch (const GException::out_of_range& e) { |
6018 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6019 | } |
6020 | catch (const GExceptionHandler& e) { |
6021 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6022 | } |
6023 | catch (const std::exception& e) { |
6024 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6025 | } |
6026 | } |
6027 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
6028 | return resultobj; |
6029 | fail: |
6030 | return NULL__null; |
6031 | } |
6032 | |
6033 | |
6034 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6035 | PyObject *resultobj = 0; |
6036 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6037 | std::string arg2 ; |
6038 | void *argp1 = 0 ; |
6039 | int res1 = 0 ; |
6040 | PyObject * obj0 = 0 ; |
6041 | PyObject * obj1 = 0 ; |
6042 | |
6043 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEdisp_load",&obj0,&obj1)) SWIG_failgoto fail; |
6044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6045 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_load" "', argument " "1"" of type '" "GLATEdisp *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_load" "', argument " "1"" of type '" "GLATEdisp *""'"); goto fail; } while(0); |
6047 | } |
6048 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6049 | { |
6050 | std::string *ptr = (std::string *)0; |
6051 | int res = SWIG_AsPtr_std_string(obj1, &ptr); |
6052 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
6053 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GLATEdisp_load" "', argument " "2"" of type '" "std::string const""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GLATEdisp_load" "', argument " "2"" of type '" "std::string const""'"); goto fail; } while(0); |
6054 | } |
6055 | arg2 = *ptr; |
6056 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
6057 | } |
6058 | { |
6059 | try { |
6060 | (arg1)->load(arg2); |
6061 | } |
6062 | catch (const GException::out_of_range& e) { |
6063 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6064 | } |
6065 | catch (const GExceptionHandler& e) { |
6066 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6067 | } |
6068 | catch (const std::exception& e) { |
6069 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6070 | } |
6071 | } |
6072 | resultobj = SWIG_Py_Void(); |
6073 | return resultobj; |
6074 | fail: |
6075 | return NULL__null; |
6076 | } |
6077 | |
6078 | |
6079 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6080 | PyObject *resultobj = 0; |
6081 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6082 | std::string arg2 ; |
6083 | bool *arg3 = 0 ; |
6084 | void *argp1 = 0 ; |
6085 | int res1 = 0 ; |
6086 | bool temp3 ; |
6087 | bool val3 ; |
6088 | int ecode3 = 0 ; |
6089 | PyObject * obj0 = 0 ; |
6090 | PyObject * obj1 = 0 ; |
6091 | PyObject * obj2 = 0 ; |
6092 | |
6093 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATEdisp_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6095 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_save" "', argument " "1"" of type '" "GLATEdisp *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_save" "', argument " "1"" of type '" "GLATEdisp *""'"); goto fail; } while(0); |
6097 | } |
6098 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6099 | { |
6100 | std::string *ptr = (std::string *)0; |
6101 | int res = SWIG_AsPtr_std_string(obj1, &ptr); |
6102 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
6103 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GLATEdisp_save" "', argument " "2"" of type '" "std::string const""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GLATEdisp_save" "', argument " "2"" of type '" "std::string const""'"); goto fail; } while(0); |
6104 | } |
6105 | arg2 = *ptr; |
6106 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
6107 | } |
6108 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
6109 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6110 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATEdisp_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATEdisp_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
6111 | } |
6112 | temp3 = static_cast< bool >(val3); |
6113 | arg3 = &temp3; |
6114 | { |
6115 | try { |
6116 | (arg1)->save(arg2,(bool const &)*arg3); |
6117 | } |
6118 | catch (const GException::out_of_range& e) { |
6119 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6120 | } |
6121 | catch (const GExceptionHandler& e) { |
6122 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6123 | } |
6124 | catch (const std::exception& e) { |
6125 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6126 | } |
6127 | } |
6128 | resultobj = SWIG_Py_Void(); |
6129 | return resultobj; |
6130 | fail: |
6131 | return NULL__null; |
6132 | } |
6133 | |
6134 | |
6135 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6136 | PyObject *resultobj = 0; |
6137 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6138 | std::string arg2 ; |
6139 | void *argp1 = 0 ; |
6140 | int res1 = 0 ; |
6141 | PyObject * obj0 = 0 ; |
6142 | PyObject * obj1 = 0 ; |
6143 | |
6144 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEdisp_save",&obj0,&obj1)) SWIG_failgoto fail; |
6145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6146 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_save" "', argument " "1"" of type '" "GLATEdisp *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_save" "', argument " "1"" of type '" "GLATEdisp *""'"); goto fail; } while(0); |
6148 | } |
6149 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6150 | { |
6151 | std::string *ptr = (std::string *)0; |
6152 | int res = SWIG_AsPtr_std_string(obj1, &ptr); |
6153 | if (!SWIG_IsOK(res)(res >= 0) || !ptr) { |
6154 | SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GLATEdisp_save" "', argument " "2"" of type '" "std::string const""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res : -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GLATEdisp_save" "', argument " "2"" of type '" "std::string const""'"); goto fail; } while(0); |
6155 | } |
6156 | arg2 = *ptr; |
6157 | if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) << 1)))) delete ptr; |
6158 | } |
6159 | { |
6160 | try { |
6161 | (arg1)->save(arg2); |
6162 | } |
6163 | catch (const GException::out_of_range& e) { |
6164 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6165 | } |
6166 | catch (const GExceptionHandler& e) { |
6167 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6168 | } |
6169 | catch (const std::exception& e) { |
6170 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6171 | } |
6172 | } |
6173 | resultobj = SWIG_Py_Void(); |
6174 | return resultobj; |
6175 | fail: |
6176 | return NULL__null; |
6177 | } |
6178 | |
6179 | |
6180 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_save(PyObject *self, PyObject *args) { |
6181 | int argc; |
6182 | PyObject *argv[4]; |
6183 | int ii; |
6184 | |
6185 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6186 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6187 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
6188 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6189 | } |
6190 | if (argc == 2) { |
6191 | int _v; |
6192 | void *vptr = 0; |
6193 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEdisp, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
6194 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6195 | if (_v) { |
6196 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6197 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6198 | if (_v) { |
6199 | return _wrap_GLATEdisp_save__SWIG_1(self, args); |
6200 | } |
6201 | } |
6202 | } |
6203 | if (argc == 3) { |
6204 | int _v; |
6205 | void *vptr = 0; |
6206 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEdisp, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
6207 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6208 | if (_v) { |
6209 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
6210 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6211 | if (_v) { |
6212 | { |
6213 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
6214 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6215 | } |
6216 | if (_v) { |
6217 | return _wrap_GLATEdisp_save__SWIG_0(self, args); |
6218 | } |
6219 | } |
6220 | } |
6221 | } |
6222 | |
6223 | fail: |
6224 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEdisp_save'.\n" |
6225 | " Possible C/C++ prototypes are:\n" |
6226 | " GLATEdisp::save(std::string const,bool const &)\n" |
6227 | " GLATEdisp::save(std::string const)\n"); |
6228 | return 0; |
6229 | } |
6230 | |
6231 | |
6232 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6233 | PyObject *resultobj = 0; |
6234 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6235 | GFits *arg2 = 0 ; |
6236 | void *argp1 = 0 ; |
6237 | int res1 = 0 ; |
6238 | void *argp2 = 0 ; |
6239 | int res2 = 0 ; |
6240 | PyObject * obj0 = 0 ; |
6241 | PyObject * obj1 = 0 ; |
6242 | |
6243 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEdisp_read",&obj0,&obj1)) SWIG_failgoto fail; |
6244 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6245 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_read" "', argument " "1"" of type '" "GLATEdisp *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_read" "', argument " "1"" of type '" "GLATEdisp *""'"); goto fail; } while(0); |
6247 | } |
6248 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6249 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
6250 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6251 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEdisp_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEdisp_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while( 0); |
6252 | } |
6253 | if (!argp2) { |
6254 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEdisp_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEdisp_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while(0); |
6255 | } |
6256 | arg2 = reinterpret_cast< GFits * >(argp2); |
6257 | { |
6258 | try { |
6259 | (arg1)->read((GFits const &)*arg2); |
6260 | } |
6261 | catch (const GException::out_of_range& e) { |
6262 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6263 | } |
6264 | catch (const GExceptionHandler& e) { |
6265 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6266 | } |
6267 | catch (const std::exception& e) { |
6268 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6269 | } |
6270 | } |
6271 | resultobj = SWIG_Py_Void(); |
6272 | return resultobj; |
6273 | fail: |
6274 | return NULL__null; |
6275 | } |
6276 | |
6277 | |
6278 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6279 | PyObject *resultobj = 0; |
6280 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6281 | GFits *arg2 = 0 ; |
6282 | void *argp1 = 0 ; |
6283 | int res1 = 0 ; |
6284 | void *argp2 = 0 ; |
6285 | int res2 = 0 ; |
6286 | PyObject * obj0 = 0 ; |
6287 | PyObject * obj1 = 0 ; |
6288 | |
6289 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEdisp_write",&obj0,&obj1)) SWIG_failgoto fail; |
6290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6291 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_write" "', argument " "1"" of type '" "GLATEdisp const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_write" "', argument " "1"" of type '" "GLATEdisp const *""'"); goto fail; } while( 0); |
6293 | } |
6294 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6295 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0, 0); |
6296 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
6297 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEdisp_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEdisp_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
6298 | } |
6299 | if (!argp2) { |
6300 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEdisp_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEdisp_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
6301 | } |
6302 | arg2 = reinterpret_cast< GFits * >(argp2); |
6303 | { |
6304 | try { |
6305 | ((GLATEdisp const *)arg1)->write(*arg2); |
6306 | } |
6307 | catch (const GException::out_of_range& e) { |
6308 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6309 | } |
6310 | catch (const GExceptionHandler& e) { |
6311 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6312 | } |
6313 | catch (const std::exception& e) { |
6314 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6315 | } |
6316 | } |
6317 | resultobj = SWIG_Py_Void(); |
6318 | return resultobj; |
6319 | fail: |
6320 | return NULL__null; |
6321 | } |
6322 | |
6323 | |
6324 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6325 | PyObject *resultobj = 0; |
6326 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6327 | void *argp1 = 0 ; |
6328 | int res1 = 0 ; |
6329 | PyObject * obj0 = 0 ; |
6330 | int result; |
6331 | |
6332 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEdisp_size",&obj0)) SWIG_failgoto fail; |
6333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6334 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_size" "', argument " "1"" of type '" "GLATEdisp const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_size" "', argument " "1"" of type '" "GLATEdisp const *""'"); goto fail; } while( 0); |
6336 | } |
6337 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6338 | { |
6339 | try { |
6340 | result = (int)((GLATEdisp const *)arg1)->size(); |
6341 | } |
6342 | catch (const GException::out_of_range& e) { |
6343 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6344 | } |
6345 | catch (const GExceptionHandler& e) { |
6346 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6347 | } |
6348 | catch (const std::exception& e) { |
6349 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6350 | } |
6351 | } |
6352 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6353 | return resultobj; |
6354 | fail: |
6355 | return NULL__null; |
6356 | } |
6357 | |
6358 | |
6359 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_nenergies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6360 | PyObject *resultobj = 0; |
6361 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6362 | void *argp1 = 0 ; |
6363 | int res1 = 0 ; |
6364 | PyObject * obj0 = 0 ; |
6365 | int result; |
6366 | |
6367 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEdisp_nenergies",&obj0)) SWIG_failgoto fail; |
6368 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6369 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6370 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_nenergies" "', argument " "1"" of type '" "GLATEdisp const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_nenergies" "', argument " "1"" of type '" "GLATEdisp const *""'"); goto fail; } while( 0); |
6371 | } |
6372 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6373 | { |
6374 | try { |
6375 | result = (int)((GLATEdisp const *)arg1)->nenergies(); |
6376 | } |
6377 | catch (const GException::out_of_range& e) { |
6378 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6379 | } |
6380 | catch (const GExceptionHandler& e) { |
6381 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6382 | } |
6383 | catch (const std::exception& e) { |
6384 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6385 | } |
6386 | } |
6387 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6388 | return resultobj; |
6389 | fail: |
6390 | return NULL__null; |
6391 | } |
6392 | |
6393 | |
6394 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_ncostheta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6395 | PyObject *resultobj = 0; |
6396 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6397 | void *argp1 = 0 ; |
6398 | int res1 = 0 ; |
6399 | PyObject * obj0 = 0 ; |
6400 | int result; |
6401 | |
6402 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEdisp_ncostheta",&obj0)) SWIG_failgoto fail; |
6403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6404 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_ncostheta" "', argument " "1"" of type '" "GLATEdisp const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_ncostheta" "', argument " "1"" of type '" "GLATEdisp const *""'"); goto fail; } while( 0); |
6406 | } |
6407 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6408 | { |
6409 | try { |
6410 | result = (int)((GLATEdisp const *)arg1)->ncostheta(); |
6411 | } |
6412 | catch (const GException::out_of_range& e) { |
6413 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6414 | } |
6415 | catch (const GExceptionHandler& e) { |
6416 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6417 | } |
6418 | catch (const std::exception& e) { |
6419 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6420 | } |
6421 | } |
6422 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6423 | return resultobj; |
6424 | fail: |
6425 | return NULL__null; |
6426 | } |
6427 | |
6428 | |
6429 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_hasphi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6430 | PyObject *resultobj = 0; |
6431 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6432 | void *argp1 = 0 ; |
6433 | int res1 = 0 ; |
6434 | PyObject * obj0 = 0 ; |
6435 | bool result; |
6436 | |
6437 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEdisp_hasphi",&obj0)) SWIG_failgoto fail; |
6438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6439 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_hasphi" "', argument " "1"" of type '" "GLATEdisp const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_hasphi" "', argument " "1"" of type '" "GLATEdisp const *""'"); goto fail; } while( 0); |
6441 | } |
6442 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6443 | { |
6444 | try { |
6445 | result = (bool)((GLATEdisp const *)arg1)->hasphi(); |
6446 | } |
6447 | catch (const GException::out_of_range& e) { |
6448 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6449 | } |
6450 | catch (const GExceptionHandler& e) { |
6451 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6452 | } |
6453 | catch (const std::exception& e) { |
6454 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6455 | } |
6456 | } |
6457 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
6458 | return resultobj; |
6459 | fail: |
6460 | return NULL__null; |
6461 | } |
6462 | |
6463 | |
6464 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEdisp_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6465 | PyObject *resultobj = 0; |
6466 | GLATEdisp *arg1 = (GLATEdisp *) 0 ; |
6467 | void *argp1 = 0 ; |
6468 | int res1 = 0 ; |
6469 | PyObject * obj0 = 0 ; |
6470 | GLATEdisp result; |
6471 | |
6472 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEdisp_copy",&obj0)) SWIG_failgoto fail; |
6473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
6474 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEdisp_copy" "', argument " "1"" of type '" "GLATEdisp *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEdisp_copy" "', argument " "1"" of type '" "GLATEdisp *""'"); goto fail; } while(0); |
6476 | } |
6477 | arg1 = reinterpret_cast< GLATEdisp * >(argp1); |
6478 | { |
6479 | try { |
6480 | result = GLATEdisp_copy(arg1); |
6481 | } |
6482 | catch (const GException::out_of_range& e) { |
6483 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6484 | } |
6485 | catch (const GExceptionHandler& e) { |
6486 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6487 | } |
6488 | catch (const std::exception& e) { |
6489 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6490 | } |
6491 | } |
6492 | resultobj = SWIG_NewPointerObj((new GLATEdisp(static_cast< const GLATEdisp& >(result))), SWIGTYPE_p_GLATEdisp, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATEdisp(static_cast< const GLATEdisp& >(result))), swig_types[11], 0x1 | 0 ); |
6493 | return resultobj; |
6494 | fail: |
6495 | return NULL__null; |
6496 | } |
6497 | |
6498 | |
6499 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATEdisp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6500 | PyObject *obj; |
6501 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
6502 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATEdispswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
6503 | return SWIG_Py_Void(); |
6504 | } |
6505 | |
6506 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventAtom__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6507 | PyObject *resultobj = 0; |
6508 | GLATEventAtom *result = 0 ; |
6509 | |
6510 | if (!PyArg_ParseTuple(args,(char *)":new_GLATEventAtom")) SWIG_failgoto fail; |
6511 | { |
6512 | try { |
6513 | result = (GLATEventAtom *)new GLATEventAtom(); |
6514 | } |
6515 | catch (const GException::out_of_range& e) { |
6516 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6517 | } |
6518 | catch (const GExceptionHandler& e) { |
6519 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6520 | } |
6521 | catch (const std::exception& e) { |
6522 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6523 | } |
6524 | } |
6525 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventAtom, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
6526 | return resultobj; |
6527 | fail: |
6528 | return NULL__null; |
6529 | } |
6530 | |
6531 | |
6532 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventAtom__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6533 | PyObject *resultobj = 0; |
6534 | GLATEventAtom *arg1 = 0 ; |
6535 | void *argp1 = 0 ; |
6536 | int res1 = 0 ; |
6537 | PyObject * obj0 = 0 ; |
6538 | GLATEventAtom *result = 0 ; |
6539 | |
6540 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATEventAtom",&obj0)) SWIG_failgoto fail; |
6541 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATEventAtom, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
6542 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATEventAtom" "', argument " "1"" of type '" "GLATEventAtom const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATEventAtom" "', argument " "1"" of type '" "GLATEventAtom const &""'"); goto fail; } while(0); |
6544 | } |
6545 | if (!argp1) { |
6546 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATEventAtom" "', argument " "1"" of type '" "GLATEventAtom const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATEventAtom" "', argument " "1"" of type '" "GLATEventAtom const &""'"); goto fail; } while(0); |
6547 | } |
6548 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6549 | { |
6550 | try { |
6551 | result = (GLATEventAtom *)new GLATEventAtom((GLATEventAtom const &)*arg1); |
6552 | } |
6553 | catch (const GException::out_of_range& e) { |
6554 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6555 | } |
6556 | catch (const GExceptionHandler& e) { |
6557 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6558 | } |
6559 | catch (const std::exception& e) { |
6560 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6561 | } |
6562 | } |
6563 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventAtom, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
6564 | return resultobj; |
6565 | fail: |
6566 | return NULL__null; |
6567 | } |
6568 | |
6569 | |
6570 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventAtom(PyObject *self, PyObject *args) { |
6571 | int argc; |
6572 | PyObject *argv[2]; |
6573 | int ii; |
6574 | |
6575 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6576 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6577 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
6578 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6579 | } |
6580 | if (argc == 0) { |
6581 | return _wrap_new_GLATEventAtom__SWIG_0(self, args); |
6582 | } |
6583 | if (argc == 1) { |
6584 | int _v; |
6585 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATEventAtom, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[12], 0, 0 ); |
6586 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6587 | if (_v) { |
6588 | return _wrap_new_GLATEventAtom__SWIG_1(self, args); |
6589 | } |
6590 | } |
6591 | |
6592 | fail: |
6593 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATEventAtom'.\n" |
6594 | " Possible C/C++ prototypes are:\n" |
6595 | " GLATEventAtom::GLATEventAtom()\n" |
6596 | " GLATEventAtom::GLATEventAtom(GLATEventAtom const &)\n"); |
6597 | return 0; |
6598 | } |
6599 | |
6600 | |
6601 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATEventAtom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6602 | PyObject *resultobj = 0; |
6603 | GLATEventAtom *arg1 = (GLATEventAtom *) 0 ; |
6604 | void *argp1 = 0 ; |
6605 | int res1 = 0 ; |
6606 | PyObject * obj0 = 0 ; |
6607 | |
6608 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATEventAtom",&obj0)) SWIG_failgoto fail; |
6609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventAtom, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0x1 | 0, 0); |
6610 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATEventAtom" "', argument " "1"" of type '" "GLATEventAtom *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATEventAtom" "', argument " "1"" of type '" "GLATEventAtom *""'"); goto fail; } while(0); |
6612 | } |
6613 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6614 | { |
6615 | try { |
6616 | delete arg1; |
6617 | } |
6618 | catch (const GException::out_of_range& e) { |
6619 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6620 | } |
6621 | catch (const GExceptionHandler& e) { |
6622 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6623 | } |
6624 | catch (const std::exception& e) { |
6625 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6626 | } |
6627 | } |
6628 | resultobj = SWIG_Py_Void(); |
6629 | return resultobj; |
6630 | fail: |
6631 | return NULL__null; |
6632 | } |
6633 | |
6634 | |
6635 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventAtom_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6636 | PyObject *resultobj = 0; |
6637 | GLATEventAtom *arg1 = (GLATEventAtom *) 0 ; |
6638 | void *argp1 = 0 ; |
6639 | int res1 = 0 ; |
6640 | PyObject * obj0 = 0 ; |
6641 | |
6642 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventAtom_clear",&obj0)) SWIG_failgoto fail; |
6643 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
6644 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6645 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventAtom_clear" "', argument " "1"" of type '" "GLATEventAtom *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventAtom_clear" "', argument " "1"" of type '" "GLATEventAtom *""'"); goto fail; } while(0); |
6646 | } |
6647 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6648 | { |
6649 | try { |
6650 | (arg1)->clear(); |
6651 | } |
6652 | catch (const GException::out_of_range& e) { |
6653 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6654 | } |
6655 | catch (const GExceptionHandler& e) { |
6656 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6657 | } |
6658 | catch (const std::exception& e) { |
6659 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6660 | } |
6661 | } |
6662 | resultobj = SWIG_Py_Void(); |
6663 | return resultobj; |
6664 | fail: |
6665 | return NULL__null; |
6666 | } |
6667 | |
6668 | |
6669 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventAtom_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6670 | PyObject *resultobj = 0; |
6671 | GLATEventAtom *arg1 = (GLATEventAtom *) 0 ; |
6672 | void *argp1 = 0 ; |
6673 | int res1 = 0 ; |
6674 | PyObject * obj0 = 0 ; |
6675 | GLATEventAtom *result = 0 ; |
6676 | |
6677 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventAtom_clone",&obj0)) SWIG_failgoto fail; |
6678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
6679 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventAtom_clone" "', argument " "1"" of type '" "GLATEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventAtom_clone" "', argument " "1"" of type '" "GLATEventAtom const *""'"); goto fail; } while (0); |
6681 | } |
6682 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6683 | { |
6684 | try { |
6685 | result = (GLATEventAtom *)((GLATEventAtom const *)arg1)->clone(); |
6686 | } |
6687 | catch (const GException::out_of_range& e) { |
6688 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6689 | } |
6690 | catch (const GExceptionHandler& e) { |
6691 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6692 | } |
6693 | catch (const std::exception& e) { |
6694 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6695 | } |
6696 | } |
6697 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], 0 | 0); |
6698 | return resultobj; |
6699 | fail: |
6700 | return NULL__null; |
6701 | } |
6702 | |
6703 | |
6704 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventAtom_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6705 | PyObject *resultobj = 0; |
6706 | GLATEventAtom *arg1 = (GLATEventAtom *) 0 ; |
6707 | void *argp1 = 0 ; |
6708 | int res1 = 0 ; |
6709 | PyObject * obj0 = 0 ; |
6710 | GLATInstDir *result = 0 ; |
6711 | |
6712 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventAtom_dir",&obj0)) SWIG_failgoto fail; |
6713 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
6714 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventAtom_dir" "', argument " "1"" of type '" "GLATEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventAtom_dir" "', argument " "1"" of type '" "GLATEventAtom const *""'"); goto fail; } while (0); |
6716 | } |
6717 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6718 | { |
6719 | try { |
6720 | result = (GLATInstDir *) &((GLATEventAtom const *)arg1)->dir(); |
6721 | } |
6722 | catch (const GException::out_of_range& e) { |
6723 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6724 | } |
6725 | catch (const GExceptionHandler& e) { |
6726 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6727 | } |
6728 | catch (const std::exception& e) { |
6729 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6730 | } |
6731 | } |
6732 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], 0 | 0); |
6733 | return resultobj; |
6734 | fail: |
6735 | return NULL__null; |
6736 | } |
6737 | |
6738 | |
6739 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventAtom_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6740 | PyObject *resultobj = 0; |
6741 | GLATEventAtom *arg1 = (GLATEventAtom *) 0 ; |
6742 | void *argp1 = 0 ; |
6743 | int res1 = 0 ; |
6744 | PyObject * obj0 = 0 ; |
6745 | GEnergy *result = 0 ; |
6746 | |
6747 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventAtom_energy",&obj0)) SWIG_failgoto fail; |
6748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
6749 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventAtom_energy" "', argument " "1"" of type '" "GLATEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventAtom_energy" "', argument " "1"" of type '" "GLATEventAtom const *""'"); goto fail; } while (0); |
6751 | } |
6752 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6753 | { |
6754 | try { |
6755 | result = (GEnergy *) &((GLATEventAtom const *)arg1)->energy(); |
6756 | } |
6757 | catch (const GException::out_of_range& e) { |
6758 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6759 | } |
6760 | catch (const GExceptionHandler& e) { |
6761 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6762 | } |
6763 | catch (const std::exception& e) { |
6764 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6765 | } |
6766 | } |
6767 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[1], 0 | 0); |
6768 | return resultobj; |
6769 | fail: |
6770 | return NULL__null; |
6771 | } |
6772 | |
6773 | |
6774 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventAtom_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6775 | PyObject *resultobj = 0; |
6776 | GLATEventAtom *arg1 = (GLATEventAtom *) 0 ; |
6777 | void *argp1 = 0 ; |
6778 | int res1 = 0 ; |
6779 | PyObject * obj0 = 0 ; |
6780 | GTime *result = 0 ; |
6781 | |
6782 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventAtom_time",&obj0)) SWIG_failgoto fail; |
6783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
6784 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventAtom_time" "', argument " "1"" of type '" "GLATEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventAtom_time" "', argument " "1"" of type '" "GLATEventAtom const *""'"); goto fail; } while (0); |
6786 | } |
6787 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6788 | { |
6789 | try { |
6790 | result = (GTime *) &((GLATEventAtom const *)arg1)->time(); |
6791 | } |
6792 | catch (const GException::out_of_range& e) { |
6793 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6794 | } |
6795 | catch (const GExceptionHandler& e) { |
6796 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6797 | } |
6798 | catch (const std::exception& e) { |
6799 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6800 | } |
6801 | } |
6802 | 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[31], 0 | 0); |
6803 | return resultobj; |
6804 | fail: |
6805 | return NULL__null; |
6806 | } |
6807 | |
6808 | |
6809 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventAtom_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6810 | PyObject *resultobj = 0; |
6811 | GLATEventAtom *arg1 = (GLATEventAtom *) 0 ; |
6812 | void *argp1 = 0 ; |
6813 | int res1 = 0 ; |
6814 | PyObject * obj0 = 0 ; |
6815 | GLATEventAtom result; |
6816 | |
6817 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventAtom_copy",&obj0)) SWIG_failgoto fail; |
6818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
6819 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventAtom_copy" "', argument " "1"" of type '" "GLATEventAtom *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventAtom_copy" "', argument " "1"" of type '" "GLATEventAtom *""'"); goto fail; } while(0); |
6821 | } |
6822 | arg1 = reinterpret_cast< GLATEventAtom * >(argp1); |
6823 | { |
6824 | try { |
6825 | result = GLATEventAtom_copy(arg1); |
6826 | } |
6827 | catch (const GException::out_of_range& e) { |
6828 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6829 | } |
6830 | catch (const GExceptionHandler& e) { |
6831 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6832 | } |
6833 | catch (const std::exception& e) { |
6834 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6835 | } |
6836 | } |
6837 | resultobj = SWIG_NewPointerObj((new GLATEventAtom(static_cast< const GLATEventAtom& >(result))), SWIGTYPE_p_GLATEventAtom, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATEventAtom(static_cast < const GLATEventAtom& >(result))), swig_types[12], 0x1 | 0); |
6838 | return resultobj; |
6839 | fail: |
6840 | return NULL__null; |
6841 | } |
6842 | |
6843 | |
6844 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATEventAtom_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6845 | PyObject *obj; |
6846 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
6847 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATEventAtomswig_types[12], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
6848 | return SWIG_Py_Void(); |
6849 | } |
6850 | |
6851 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventBin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6852 | PyObject *resultobj = 0; |
6853 | GLATEventBin *result = 0 ; |
6854 | |
6855 | if (!PyArg_ParseTuple(args,(char *)":new_GLATEventBin")) SWIG_failgoto fail; |
6856 | { |
6857 | try { |
6858 | result = (GLATEventBin *)new GLATEventBin(); |
6859 | } |
6860 | catch (const GException::out_of_range& e) { |
6861 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6862 | } |
6863 | catch (const GExceptionHandler& e) { |
6864 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6865 | } |
6866 | catch (const std::exception& e) { |
6867 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6868 | } |
6869 | } |
6870 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventBin, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[13], ( (0x1 << 1) | 0x1) | 0); |
6871 | return resultobj; |
6872 | fail: |
6873 | return NULL__null; |
6874 | } |
6875 | |
6876 | |
6877 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventBin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6878 | PyObject *resultobj = 0; |
6879 | GLATEventBin *arg1 = 0 ; |
6880 | void *argp1 = 0 ; |
6881 | int res1 = 0 ; |
6882 | PyObject * obj0 = 0 ; |
6883 | GLATEventBin *result = 0 ; |
6884 | |
6885 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATEventBin",&obj0)) SWIG_failgoto fail; |
6886 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATEventBin, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
6887 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATEventBin" "', argument " "1"" of type '" "GLATEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATEventBin" "', argument " "1"" of type '" "GLATEventBin const &""'"); goto fail; } while(0); |
6889 | } |
6890 | if (!argp1) { |
6891 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATEventBin" "', argument " "1"" of type '" "GLATEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATEventBin" "', argument " "1"" of type '" "GLATEventBin const &""'"); goto fail; } while(0); |
6892 | } |
6893 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
6894 | { |
6895 | try { |
6896 | result = (GLATEventBin *)new GLATEventBin((GLATEventBin const &)*arg1); |
6897 | } |
6898 | catch (const GException::out_of_range& e) { |
6899 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6900 | } |
6901 | catch (const GExceptionHandler& e) { |
6902 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6903 | } |
6904 | catch (const std::exception& e) { |
6905 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6906 | } |
6907 | } |
6908 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventBin, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[13], ( (0x1 << 1) | 0x1) | 0); |
6909 | return resultobj; |
6910 | fail: |
6911 | return NULL__null; |
6912 | } |
6913 | |
6914 | |
6915 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventBin(PyObject *self, PyObject *args) { |
6916 | int argc; |
6917 | PyObject *argv[2]; |
6918 | int ii; |
6919 | |
6920 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6921 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6922 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
6923 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6924 | } |
6925 | if (argc == 0) { |
6926 | return _wrap_new_GLATEventBin__SWIG_0(self, args); |
6927 | } |
6928 | if (argc == 1) { |
6929 | int _v; |
6930 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[13], 0, 0 ); |
6931 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6932 | if (_v) { |
6933 | return _wrap_new_GLATEventBin__SWIG_1(self, args); |
6934 | } |
6935 | } |
6936 | |
6937 | fail: |
6938 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATEventBin'.\n" |
6939 | " Possible C/C++ prototypes are:\n" |
6940 | " GLATEventBin::GLATEventBin()\n" |
6941 | " GLATEventBin::GLATEventBin(GLATEventBin const &)\n"); |
6942 | return 0; |
6943 | } |
6944 | |
6945 | |
6946 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATEventBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6947 | PyObject *resultobj = 0; |
6948 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
6949 | void *argp1 = 0 ; |
6950 | int res1 = 0 ; |
6951 | PyObject * obj0 = 0 ; |
6952 | |
6953 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATEventBin",&obj0)) SWIG_failgoto fail; |
6954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0x1 | 0, 0); |
6955 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATEventBin" "', argument " "1"" of type '" "GLATEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATEventBin" "', argument " "1"" of type '" "GLATEventBin *""'"); goto fail; } while(0); |
6957 | } |
6958 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
6959 | { |
6960 | try { |
6961 | delete arg1; |
6962 | } |
6963 | catch (const GException::out_of_range& e) { |
6964 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6965 | } |
6966 | catch (const GExceptionHandler& e) { |
6967 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6968 | } |
6969 | catch (const std::exception& e) { |
6970 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6971 | } |
6972 | } |
6973 | resultobj = SWIG_Py_Void(); |
6974 | return resultobj; |
6975 | fail: |
6976 | return NULL__null; |
6977 | } |
6978 | |
6979 | |
6980 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6981 | PyObject *resultobj = 0; |
6982 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
6983 | void *argp1 = 0 ; |
6984 | int res1 = 0 ; |
6985 | PyObject * obj0 = 0 ; |
6986 | |
6987 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_clear",&obj0)) SWIG_failgoto fail; |
6988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
6989 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_clear" "', argument " "1"" of type '" "GLATEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_clear" "', argument " "1"" of type '" "GLATEventBin *""'"); goto fail; } while(0); |
6991 | } |
6992 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
6993 | { |
6994 | try { |
6995 | (arg1)->clear(); |
6996 | } |
6997 | catch (const GException::out_of_range& e) { |
6998 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6999 | } |
7000 | catch (const GExceptionHandler& e) { |
7001 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7002 | } |
7003 | catch (const std::exception& e) { |
7004 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7005 | } |
7006 | } |
7007 | resultobj = SWIG_Py_Void(); |
7008 | return resultobj; |
7009 | fail: |
7010 | return NULL__null; |
7011 | } |
7012 | |
7013 | |
7014 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7015 | PyObject *resultobj = 0; |
7016 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7017 | void *argp1 = 0 ; |
7018 | int res1 = 0 ; |
7019 | PyObject * obj0 = 0 ; |
7020 | GLATEventBin *result = 0 ; |
7021 | |
7022 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_clone",&obj0)) SWIG_failgoto fail; |
7023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7024 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_clone" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_clone" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7026 | } |
7027 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7028 | { |
7029 | try { |
7030 | result = (GLATEventBin *)((GLATEventBin const *)arg1)->clone(); |
7031 | } |
7032 | catch (const GException::out_of_range& e) { |
7033 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7034 | } |
7035 | catch (const GExceptionHandler& e) { |
7036 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7037 | } |
7038 | catch (const std::exception& e) { |
7039 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7040 | } |
7041 | } |
7042 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[13], 0 | 0); |
7043 | return resultobj; |
7044 | fail: |
7045 | return NULL__null; |
7046 | } |
7047 | |
7048 | |
7049 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7050 | PyObject *resultobj = 0; |
7051 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7052 | void *argp1 = 0 ; |
7053 | int res1 = 0 ; |
7054 | PyObject * obj0 = 0 ; |
7055 | double result; |
7056 | |
7057 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_size",&obj0)) SWIG_failgoto fail; |
7058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7059 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_size" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_size" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7061 | } |
7062 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7063 | { |
7064 | try { |
7065 | result = (double)((GLATEventBin const *)arg1)->size(); |
7066 | } |
7067 | catch (const GException::out_of_range& e) { |
7068 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7069 | } |
7070 | catch (const GExceptionHandler& e) { |
7071 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7072 | } |
7073 | catch (const std::exception& e) { |
7074 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7075 | } |
7076 | } |
7077 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7078 | return resultobj; |
7079 | fail: |
7080 | return NULL__null; |
7081 | } |
7082 | |
7083 | |
7084 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7085 | PyObject *resultobj = 0; |
7086 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7087 | void *argp1 = 0 ; |
7088 | int res1 = 0 ; |
7089 | PyObject * obj0 = 0 ; |
7090 | GLATInstDir *result = 0 ; |
7091 | |
7092 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_dir",&obj0)) SWIG_failgoto fail; |
7093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7094 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_dir" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_dir" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7096 | } |
7097 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7098 | { |
7099 | try { |
7100 | result = (GLATInstDir *) &((GLATEventBin const *)arg1)->dir(); |
7101 | } |
7102 | catch (const GException::out_of_range& e) { |
7103 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7104 | } |
7105 | catch (const GExceptionHandler& e) { |
7106 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7107 | } |
7108 | catch (const std::exception& e) { |
7109 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7110 | } |
7111 | } |
7112 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], 0 | 0); |
7113 | return resultobj; |
7114 | fail: |
7115 | return NULL__null; |
7116 | } |
7117 | |
7118 | |
7119 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7120 | PyObject *resultobj = 0; |
7121 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7122 | void *argp1 = 0 ; |
7123 | int res1 = 0 ; |
7124 | PyObject * obj0 = 0 ; |
7125 | GEnergy *result = 0 ; |
7126 | |
7127 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_energy",&obj0)) SWIG_failgoto fail; |
7128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7129 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_energy" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_energy" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7131 | } |
7132 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7133 | { |
7134 | try { |
7135 | result = (GEnergy *) &((GLATEventBin const *)arg1)->energy(); |
7136 | } |
7137 | catch (const GException::out_of_range& e) { |
7138 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7139 | } |
7140 | catch (const GExceptionHandler& e) { |
7141 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7142 | } |
7143 | catch (const std::exception& e) { |
7144 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7145 | } |
7146 | } |
7147 | 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[1], 0 | 0); |
7148 | return resultobj; |
7149 | fail: |
7150 | return NULL__null; |
7151 | } |
7152 | |
7153 | |
7154 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7155 | PyObject *resultobj = 0; |
7156 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7157 | void *argp1 = 0 ; |
7158 | int res1 = 0 ; |
7159 | PyObject * obj0 = 0 ; |
7160 | GTime *result = 0 ; |
7161 | |
7162 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_time",&obj0)) SWIG_failgoto fail; |
7163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7164 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_time" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_time" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7166 | } |
7167 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7168 | { |
7169 | try { |
7170 | result = (GTime *) &((GLATEventBin const *)arg1)->time(); |
7171 | } |
7172 | catch (const GException::out_of_range& e) { |
7173 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7174 | } |
7175 | catch (const GExceptionHandler& e) { |
7176 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7177 | } |
7178 | catch (const std::exception& e) { |
7179 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7180 | } |
7181 | } |
7182 | 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[31], 0 | 0); |
7183 | return resultobj; |
7184 | fail: |
7185 | return NULL__null; |
7186 | } |
7187 | |
7188 | |
7189 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_counts__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7190 | PyObject *resultobj = 0; |
7191 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7192 | void *argp1 = 0 ; |
7193 | int res1 = 0 ; |
7194 | PyObject * obj0 = 0 ; |
7195 | double result; |
7196 | |
7197 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_counts",&obj0)) SWIG_failgoto fail; |
7198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7199 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_counts" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_counts" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7201 | } |
7202 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7203 | { |
7204 | try { |
7205 | result = (double)((GLATEventBin const *)arg1)->counts(); |
7206 | } |
7207 | catch (const GException::out_of_range& e) { |
7208 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7209 | } |
7210 | catch (const GExceptionHandler& e) { |
7211 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7212 | } |
7213 | catch (const std::exception& e) { |
7214 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7215 | } |
7216 | } |
7217 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7218 | return resultobj; |
7219 | fail: |
7220 | return NULL__null; |
7221 | } |
7222 | |
7223 | |
7224 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7225 | PyObject *resultobj = 0; |
7226 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7227 | void *argp1 = 0 ; |
7228 | int res1 = 0 ; |
7229 | PyObject * obj0 = 0 ; |
7230 | double result; |
7231 | |
7232 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_error",&obj0)) SWIG_failgoto fail; |
7233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7234 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_error" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_error" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7236 | } |
7237 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7238 | { |
7239 | try { |
7240 | result = (double)((GLATEventBin const *)arg1)->error(); |
7241 | } |
7242 | catch (const GException::out_of_range& e) { |
7243 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7244 | } |
7245 | catch (const GExceptionHandler& e) { |
7246 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7247 | } |
7248 | catch (const std::exception& e) { |
7249 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7250 | } |
7251 | } |
7252 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
7253 | return resultobj; |
7254 | fail: |
7255 | return NULL__null; |
7256 | } |
7257 | |
7258 | |
7259 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_counts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7260 | PyObject *resultobj = 0; |
7261 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7262 | double *arg2 = 0 ; |
7263 | void *argp1 = 0 ; |
7264 | int res1 = 0 ; |
7265 | double temp2 ; |
7266 | double val2 ; |
7267 | int ecode2 = 0 ; |
7268 | PyObject * obj0 = 0 ; |
7269 | PyObject * obj1 = 0 ; |
7270 | |
7271 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventBin_counts",&obj0,&obj1)) SWIG_failgoto fail; |
7272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7273 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_counts" "', argument " "1"" of type '" "GLATEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_counts" "', argument " "1"" of type '" "GLATEventBin *""'"); goto fail; } while(0); |
7275 | } |
7276 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7277 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
7278 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATEventBin_counts" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATEventBin_counts" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
7280 | } |
7281 | temp2 = static_cast< double >(val2); |
7282 | arg2 = &temp2; |
7283 | { |
7284 | try { |
7285 | (arg1)->counts((double const &)*arg2); |
7286 | } |
7287 | catch (const GException::out_of_range& e) { |
7288 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7289 | } |
7290 | catch (const GExceptionHandler& e) { |
7291 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7292 | } |
7293 | catch (const std::exception& e) { |
7294 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7295 | } |
7296 | } |
7297 | resultobj = SWIG_Py_Void(); |
7298 | return resultobj; |
7299 | fail: |
7300 | return NULL__null; |
7301 | } |
7302 | |
7303 | |
7304 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_counts(PyObject *self, PyObject *args) { |
7305 | int argc; |
7306 | PyObject *argv[3]; |
7307 | int ii; |
7308 | |
7309 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7310 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7311 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
7312 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7313 | } |
7314 | if (argc == 1) { |
7315 | int _v; |
7316 | void *vptr = 0; |
7317 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13 ], 0, 0); |
7318 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7319 | if (_v) { |
7320 | return _wrap_GLATEventBin_counts__SWIG_0(self, args); |
7321 | } |
7322 | } |
7323 | if (argc == 2) { |
7324 | int _v; |
7325 | void *vptr = 0; |
7326 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13 ], 0, 0); |
7327 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7328 | if (_v) { |
7329 | { |
7330 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
7331 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7332 | } |
7333 | if (_v) { |
7334 | return _wrap_GLATEventBin_counts__SWIG_1(self, args); |
7335 | } |
7336 | } |
7337 | } |
7338 | |
7339 | fail: |
7340 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventBin_counts'.\n" |
7341 | " Possible C/C++ prototypes are:\n" |
7342 | " GLATEventBin::counts() const\n" |
7343 | " GLATEventBin::counts(double const &)\n"); |
7344 | return 0; |
7345 | } |
7346 | |
7347 | |
7348 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_omega(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7349 | PyObject *resultobj = 0; |
7350 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7351 | void *argp1 = 0 ; |
7352 | int res1 = 0 ; |
7353 | PyObject * obj0 = 0 ; |
7354 | double *result = 0 ; |
7355 | |
7356 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_omega",&obj0)) SWIG_failgoto fail; |
7357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7358 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_omega" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_omega" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7360 | } |
7361 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7362 | { |
7363 | try { |
7364 | result = (double *) &((GLATEventBin const *)arg1)->omega(); |
7365 | } |
7366 | catch (const GException::out_of_range& e) { |
7367 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7368 | } |
7369 | catch (const GExceptionHandler& e) { |
7370 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7371 | } |
7372 | catch (const std::exception& e) { |
7373 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7374 | } |
7375 | } |
7376 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7377 | return resultobj; |
7378 | fail: |
7379 | return NULL__null; |
7380 | } |
7381 | |
7382 | |
7383 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_ewidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7384 | PyObject *resultobj = 0; |
7385 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7386 | void *argp1 = 0 ; |
7387 | int res1 = 0 ; |
7388 | PyObject * obj0 = 0 ; |
7389 | GEnergy *result = 0 ; |
7390 | |
7391 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_ewidth",&obj0)) SWIG_failgoto fail; |
7392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7393 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_ewidth" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_ewidth" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7395 | } |
7396 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7397 | { |
7398 | try { |
7399 | result = (GEnergy *) &((GLATEventBin const *)arg1)->ewidth(); |
7400 | } |
7401 | catch (const GException::out_of_range& e) { |
7402 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7403 | } |
7404 | catch (const GExceptionHandler& e) { |
7405 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7406 | } |
7407 | catch (const std::exception& e) { |
7408 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7409 | } |
7410 | } |
7411 | 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[1], 0 | 0); |
7412 | return resultobj; |
7413 | fail: |
7414 | return NULL__null; |
7415 | } |
7416 | |
7417 | |
7418 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_ontime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7419 | PyObject *resultobj = 0; |
7420 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7421 | void *argp1 = 0 ; |
7422 | int res1 = 0 ; |
7423 | PyObject * obj0 = 0 ; |
7424 | double *result = 0 ; |
7425 | |
7426 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_ontime",&obj0)) SWIG_failgoto fail; |
7427 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7428 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7429 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_ontime" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_ontime" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7430 | } |
7431 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7432 | { |
7433 | try { |
7434 | result = (double *) &((GLATEventBin const *)arg1)->ontime(); |
7435 | } |
7436 | catch (const GException::out_of_range& e) { |
7437 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7438 | } |
7439 | catch (const GExceptionHandler& e) { |
7440 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7441 | } |
7442 | catch (const std::exception& e) { |
7443 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7444 | } |
7445 | } |
7446 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
7447 | return resultobj; |
7448 | fail: |
7449 | return NULL__null; |
7450 | } |
7451 | |
7452 | |
7453 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7454 | PyObject *resultobj = 0; |
7455 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7456 | void *argp1 = 0 ; |
7457 | int res1 = 0 ; |
7458 | PyObject * obj0 = 0 ; |
7459 | int *result = 0 ; |
7460 | |
7461 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_index",&obj0)) SWIG_failgoto fail; |
7462 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7463 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7464 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_index" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_index" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7465 | } |
7466 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7467 | { |
7468 | try { |
7469 | result = (int *) &((GLATEventBin const *)arg1)->index(); |
7470 | } |
7471 | catch (const GException::out_of_range& e) { |
7472 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7473 | } |
7474 | catch (const GExceptionHandler& e) { |
7475 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7476 | } |
7477 | catch (const std::exception& e) { |
7478 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7479 | } |
7480 | } |
7481 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7482 | return resultobj; |
7483 | fail: |
7484 | return NULL__null; |
7485 | } |
7486 | |
7487 | |
7488 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_ipix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7489 | PyObject *resultobj = 0; |
7490 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7491 | void *argp1 = 0 ; |
7492 | int res1 = 0 ; |
7493 | PyObject * obj0 = 0 ; |
7494 | int *result = 0 ; |
7495 | |
7496 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_ipix",&obj0)) SWIG_failgoto fail; |
7497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7498 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_ipix" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_ipix" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7500 | } |
7501 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7502 | { |
7503 | try { |
7504 | result = (int *) &((GLATEventBin const *)arg1)->ipix(); |
7505 | } |
7506 | catch (const GException::out_of_range& e) { |
7507 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7508 | } |
7509 | catch (const GExceptionHandler& e) { |
7510 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7511 | } |
7512 | catch (const std::exception& e) { |
7513 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7514 | } |
7515 | } |
7516 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7517 | return resultobj; |
7518 | fail: |
7519 | return NULL__null; |
7520 | } |
7521 | |
7522 | |
7523 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_ieng(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7524 | PyObject *resultobj = 0; |
7525 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7526 | void *argp1 = 0 ; |
7527 | int res1 = 0 ; |
7528 | PyObject * obj0 = 0 ; |
7529 | int *result = 0 ; |
7530 | |
7531 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_ieng",&obj0)) SWIG_failgoto fail; |
7532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7533 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_ieng" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_ieng" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7535 | } |
7536 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7537 | { |
7538 | try { |
7539 | result = (int *) &((GLATEventBin const *)arg1)->ieng(); |
7540 | } |
7541 | catch (const GException::out_of_range& e) { |
7542 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7543 | } |
7544 | catch (const GExceptionHandler& e) { |
7545 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7546 | } |
7547 | catch (const std::exception& e) { |
7548 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7549 | } |
7550 | } |
7551 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7552 | return resultobj; |
7553 | fail: |
7554 | return NULL__null; |
7555 | } |
7556 | |
7557 | |
7558 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_cube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7559 | PyObject *resultobj = 0; |
7560 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7561 | void *argp1 = 0 ; |
7562 | int res1 = 0 ; |
7563 | PyObject * obj0 = 0 ; |
7564 | GLATEventCube *result = 0 ; |
7565 | |
7566 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_cube",&obj0)) SWIG_failgoto fail; |
7567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7568 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_cube" "', argument " "1"" of type '" "GLATEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_cube" "', argument " "1"" of type '" "GLATEventBin const *""'"); goto fail; } while (0); |
7570 | } |
7571 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7572 | { |
7573 | try { |
7574 | result = (GLATEventCube *)((GLATEventBin const *)arg1)->cube(); |
7575 | } |
7576 | catch (const GException::out_of_range& e) { |
7577 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7578 | } |
7579 | catch (const GExceptionHandler& e) { |
7580 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7581 | } |
7582 | catch (const std::exception& e) { |
7583 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7584 | } |
7585 | } |
7586 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[14], 0 | 0); |
7587 | return resultobj; |
7588 | fail: |
7589 | return NULL__null; |
7590 | } |
7591 | |
7592 | |
7593 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventBin_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7594 | PyObject *resultobj = 0; |
7595 | GLATEventBin *arg1 = (GLATEventBin *) 0 ; |
7596 | void *argp1 = 0 ; |
7597 | int res1 = 0 ; |
7598 | PyObject * obj0 = 0 ; |
7599 | GLATEventBin result; |
7600 | |
7601 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventBin_copy",&obj0)) SWIG_failgoto fail; |
7602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13] , 0 | 0, 0); |
7603 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventBin_copy" "', argument " "1"" of type '" "GLATEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventBin_copy" "', argument " "1"" of type '" "GLATEventBin *""'"); goto fail; } while(0); |
7605 | } |
7606 | arg1 = reinterpret_cast< GLATEventBin * >(argp1); |
7607 | { |
7608 | try { |
7609 | result = GLATEventBin_copy(arg1); |
7610 | } |
7611 | catch (const GException::out_of_range& e) { |
7612 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7613 | } |
7614 | catch (const GExceptionHandler& e) { |
7615 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7616 | } |
7617 | catch (const std::exception& e) { |
7618 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7619 | } |
7620 | } |
7621 | resultobj = SWIG_NewPointerObj((new GLATEventBin(static_cast< const GLATEventBin& >(result))), SWIGTYPE_p_GLATEventBin, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATEventBin(static_cast < const GLATEventBin& >(result))), swig_types[13], 0x1 | 0); |
7622 | return resultobj; |
7623 | fail: |
7624 | return NULL__null; |
7625 | } |
7626 | |
7627 | |
7628 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATEventBin_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7629 | PyObject *obj; |
7630 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
7631 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATEventBinswig_types[13], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
7632 | return SWIG_Py_Void(); |
7633 | } |
7634 | |
7635 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventCube__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7636 | PyObject *resultobj = 0; |
7637 | GLATEventCube *result = 0 ; |
7638 | |
7639 | if (!PyArg_ParseTuple(args,(char *)":new_GLATEventCube")) SWIG_failgoto fail; |
7640 | { |
7641 | try { |
7642 | result = (GLATEventCube *)new GLATEventCube(); |
7643 | } |
7644 | catch (const GException::out_of_range& e) { |
7645 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7646 | } |
7647 | catch (const GExceptionHandler& e) { |
7648 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7649 | } |
7650 | catch (const std::exception& e) { |
7651 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7652 | } |
7653 | } |
7654 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[14], ( (0x1 << 1) | 0x1) | 0); |
7655 | return resultobj; |
7656 | fail: |
7657 | return NULL__null; |
7658 | } |
7659 | |
7660 | |
7661 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventCube__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7662 | PyObject *resultobj = 0; |
7663 | GLATEventCube *arg1 = 0 ; |
7664 | void *argp1 = 0 ; |
7665 | int res1 = 0 ; |
7666 | PyObject * obj0 = 0 ; |
7667 | GLATEventCube *result = 0 ; |
7668 | |
7669 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATEventCube",&obj0)) SWIG_failgoto fail; |
7670 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATEventCube, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
7671 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATEventCube" "', argument " "1"" of type '" "GLATEventCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATEventCube" "', argument " "1"" of type '" "GLATEventCube const &""'"); goto fail; } while(0); |
7673 | } |
7674 | if (!argp1) { |
7675 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATEventCube" "', argument " "1"" of type '" "GLATEventCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATEventCube" "', argument " "1"" of type '" "GLATEventCube const &""'"); goto fail; } while(0); |
7676 | } |
7677 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7678 | { |
7679 | try { |
7680 | result = (GLATEventCube *)new GLATEventCube((GLATEventCube const &)*arg1); |
7681 | } |
7682 | catch (const GException::out_of_range& e) { |
7683 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7684 | } |
7685 | catch (const GExceptionHandler& e) { |
7686 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7687 | } |
7688 | catch (const std::exception& e) { |
7689 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7690 | } |
7691 | } |
7692 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[14], ( (0x1 << 1) | 0x1) | 0); |
7693 | return resultobj; |
7694 | fail: |
7695 | return NULL__null; |
7696 | } |
7697 | |
7698 | |
7699 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventCube(PyObject *self, PyObject *args) { |
7700 | int argc; |
7701 | PyObject *argv[2]; |
7702 | int ii; |
7703 | |
7704 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7705 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7706 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
7707 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7708 | } |
7709 | if (argc == 0) { |
7710 | return _wrap_new_GLATEventCube__SWIG_0(self, args); |
7711 | } |
7712 | if (argc == 1) { |
7713 | int _v; |
7714 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[14], 0, 0 ); |
7715 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7716 | if (_v) { |
7717 | return _wrap_new_GLATEventCube__SWIG_1(self, args); |
7718 | } |
7719 | } |
7720 | |
7721 | fail: |
7722 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATEventCube'.\n" |
7723 | " Possible C/C++ prototypes are:\n" |
7724 | " GLATEventCube::GLATEventCube()\n" |
7725 | " GLATEventCube::GLATEventCube(GLATEventCube const &)\n"); |
7726 | return 0; |
7727 | } |
7728 | |
7729 | |
7730 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATEventCube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7731 | PyObject *resultobj = 0; |
7732 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
7733 | void *argp1 = 0 ; |
7734 | int res1 = 0 ; |
7735 | PyObject * obj0 = 0 ; |
7736 | |
7737 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATEventCube",&obj0)) SWIG_failgoto fail; |
7738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0x1 | 0, 0); |
7739 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATEventCube" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATEventCube" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
7741 | } |
7742 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7743 | { |
7744 | try { |
7745 | delete arg1; |
7746 | } |
7747 | catch (const GException::out_of_range& e) { |
7748 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7749 | } |
7750 | catch (const GExceptionHandler& e) { |
7751 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7752 | } |
7753 | catch (const std::exception& e) { |
7754 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7755 | } |
7756 | } |
7757 | resultobj = SWIG_Py_Void(); |
7758 | return resultobj; |
7759 | fail: |
7760 | return NULL__null; |
7761 | } |
7762 | |
7763 | |
7764 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7765 | PyObject *resultobj = 0; |
7766 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
7767 | void *argp1 = 0 ; |
7768 | int res1 = 0 ; |
7769 | PyObject * obj0 = 0 ; |
7770 | |
7771 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_clear",&obj0)) SWIG_failgoto fail; |
7772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
7773 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_clear" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_clear" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
7775 | } |
7776 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7777 | { |
7778 | try { |
7779 | (arg1)->clear(); |
7780 | } |
7781 | catch (const GException::out_of_range& e) { |
7782 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7783 | } |
7784 | catch (const GExceptionHandler& e) { |
7785 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7786 | } |
7787 | catch (const std::exception& e) { |
7788 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7789 | } |
7790 | } |
7791 | resultobj = SWIG_Py_Void(); |
7792 | return resultobj; |
7793 | fail: |
7794 | return NULL__null; |
7795 | } |
7796 | |
7797 | |
7798 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7799 | PyObject *resultobj = 0; |
7800 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
7801 | void *argp1 = 0 ; |
7802 | int res1 = 0 ; |
7803 | PyObject * obj0 = 0 ; |
7804 | GLATEventCube *result = 0 ; |
7805 | |
7806 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_clone",&obj0)) SWIG_failgoto fail; |
7807 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
7808 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_clone" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_clone" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
7810 | } |
7811 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7812 | { |
7813 | try { |
7814 | result = (GLATEventCube *)((GLATEventCube const *)arg1)->clone(); |
7815 | } |
7816 | catch (const GException::out_of_range& e) { |
7817 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7818 | } |
7819 | catch (const GExceptionHandler& e) { |
7820 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7821 | } |
7822 | catch (const std::exception& e) { |
7823 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7824 | } |
7825 | } |
7826 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[14], 0 | 0); |
7827 | return resultobj; |
7828 | fail: |
7829 | return NULL__null; |
7830 | } |
7831 | |
7832 | |
7833 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7834 | PyObject *resultobj = 0; |
7835 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
7836 | void *argp1 = 0 ; |
7837 | int res1 = 0 ; |
7838 | PyObject * obj0 = 0 ; |
7839 | int result; |
7840 | |
7841 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_size",&obj0)) SWIG_failgoto fail; |
7842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
7843 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_size" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_size" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
7845 | } |
7846 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7847 | { |
7848 | try { |
7849 | result = (int)((GLATEventCube const *)arg1)->size(); |
7850 | } |
7851 | catch (const GException::out_of_range& e) { |
7852 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7853 | } |
7854 | catch (const GExceptionHandler& e) { |
7855 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7856 | } |
7857 | catch (const std::exception& e) { |
7858 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7859 | } |
7860 | } |
7861 | resultobj = SWIG_From_int(static_cast< int >(result)); |
7862 | return resultobj; |
7863 | fail: |
7864 | return NULL__null; |
7865 | } |
7866 | |
7867 | |
7868 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7869 | PyObject *resultobj = 0; |
7870 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
7871 | void *argp1 = 0 ; |
7872 | int res1 = 0 ; |
7873 | PyObject * obj0 = 0 ; |
7874 | int result; |
7875 | |
7876 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_dim",&obj0)) SWIG_failgoto fail; |
7877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
7878 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_dim" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_dim" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
7880 | } |
7881 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7882 | { |
7883 | try { |
7884 | result = (int)((GLATEventCube const *)arg1)->dim(); |
7885 | } |
7886 | catch (const GException::out_of_range& e) { |
7887 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7888 | } |
7889 | catch (const GExceptionHandler& e) { |
7890 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7891 | } |
7892 | catch (const std::exception& e) { |
7893 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7894 | } |
7895 | } |
7896 | resultobj = SWIG_From_int(static_cast< int >(result)); |
7897 | return resultobj; |
7898 | fail: |
7899 | return NULL__null; |
7900 | } |
7901 | |
7902 | |
7903 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_naxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7904 | PyObject *resultobj = 0; |
7905 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
7906 | int *arg2 = 0 ; |
7907 | void *argp1 = 0 ; |
7908 | int res1 = 0 ; |
7909 | int temp2 ; |
7910 | int val2 ; |
7911 | int ecode2 = 0 ; |
7912 | PyObject * obj0 = 0 ; |
7913 | PyObject * obj1 = 0 ; |
7914 | int result; |
7915 | |
7916 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_naxis",&obj0,&obj1)) SWIG_failgoto fail; |
7917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
7918 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_naxis" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_naxis" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
7920 | } |
7921 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7922 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7923 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7924 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATEventCube_naxis" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATEventCube_naxis" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7925 | } |
7926 | temp2 = static_cast< int >(val2); |
7927 | arg2 = &temp2; |
7928 | { |
7929 | try { |
7930 | result = (int)((GLATEventCube const *)arg1)->naxis((int const &)*arg2); |
7931 | } |
7932 | catch (const GException::out_of_range& e) { |
7933 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7934 | } |
7935 | catch (const GExceptionHandler& e) { |
7936 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7937 | } |
7938 | catch (const std::exception& e) { |
7939 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7940 | } |
7941 | } |
7942 | resultobj = SWIG_From_int(static_cast< int >(result)); |
7943 | return resultobj; |
7944 | fail: |
7945 | return NULL__null; |
7946 | } |
7947 | |
7948 | |
7949 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7950 | PyObject *resultobj = 0; |
7951 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
7952 | std::string *arg2 = 0 ; |
7953 | void *argp1 = 0 ; |
7954 | int res1 = 0 ; |
7955 | int res2 = SWIG_OLDOBJ((0)) ; |
7956 | PyObject * obj0 = 0 ; |
7957 | PyObject * obj1 = 0 ; |
7958 | |
7959 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_load",&obj0,&obj1)) SWIG_failgoto fail; |
7960 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
7961 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7962 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_load" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_load" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
7963 | } |
7964 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
7965 | { |
7966 | std::string *ptr = (std::string *)0; |
7967 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7968 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7969 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7970 | } |
7971 | if (!ptr) { |
7972 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
7973 | } |
7974 | arg2 = ptr; |
7975 | } |
7976 | { |
7977 | try { |
7978 | (arg1)->load((std::string const &)*arg2); |
7979 | } |
7980 | catch (const GException::out_of_range& e) { |
7981 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7982 | } |
7983 | catch (const GExceptionHandler& e) { |
7984 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7985 | } |
7986 | catch (const std::exception& e) { |
7987 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7988 | } |
7989 | } |
7990 | resultobj = SWIG_Py_Void(); |
7991 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7992 | return resultobj; |
7993 | fail: |
7994 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7995 | return NULL__null; |
7996 | } |
7997 | |
7998 | |
7999 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8000 | PyObject *resultobj = 0; |
8001 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8002 | std::string *arg2 = 0 ; |
8003 | bool *arg3 = 0 ; |
8004 | void *argp1 = 0 ; |
8005 | int res1 = 0 ; |
8006 | int res2 = SWIG_OLDOBJ((0)) ; |
8007 | bool temp3 ; |
8008 | bool val3 ; |
8009 | int ecode3 = 0 ; |
8010 | PyObject * obj0 = 0 ; |
8011 | PyObject * obj1 = 0 ; |
8012 | PyObject * obj2 = 0 ; |
8013 | |
8014 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATEventCube_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8015 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8016 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_save" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_save" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8018 | } |
8019 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8020 | { |
8021 | std::string *ptr = (std::string *)0; |
8022 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8023 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8024 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8025 | } |
8026 | if (!ptr) { |
8027 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8028 | } |
8029 | arg2 = ptr; |
8030 | } |
8031 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
8032 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
8033 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATEventCube_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATEventCube_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
8034 | } |
8035 | temp3 = static_cast< bool >(val3); |
8036 | arg3 = &temp3; |
8037 | { |
8038 | try { |
8039 | ((GLATEventCube const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3); |
8040 | } |
8041 | catch (const GException::out_of_range& e) { |
8042 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8043 | } |
8044 | catch (const GExceptionHandler& e) { |
8045 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8046 | } |
8047 | catch (const std::exception& e) { |
8048 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8049 | } |
8050 | } |
8051 | resultobj = SWIG_Py_Void(); |
8052 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8053 | return resultobj; |
8054 | fail: |
8055 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8056 | return NULL__null; |
8057 | } |
8058 | |
8059 | |
8060 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8061 | PyObject *resultobj = 0; |
8062 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8063 | std::string *arg2 = 0 ; |
8064 | void *argp1 = 0 ; |
8065 | int res1 = 0 ; |
8066 | int res2 = SWIG_OLDOBJ((0)) ; |
8067 | PyObject * obj0 = 0 ; |
8068 | PyObject * obj1 = 0 ; |
8069 | |
8070 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_save",&obj0,&obj1)) SWIG_failgoto fail; |
8071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8072 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_save" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_save" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8074 | } |
8075 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8076 | { |
8077 | std::string *ptr = (std::string *)0; |
8078 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8079 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8080 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8081 | } |
8082 | if (!ptr) { |
8083 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
8084 | } |
8085 | arg2 = ptr; |
8086 | } |
8087 | { |
8088 | try { |
8089 | ((GLATEventCube const *)arg1)->save((std::string const &)*arg2); |
8090 | } |
8091 | catch (const GException::out_of_range& e) { |
8092 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8093 | } |
8094 | catch (const GExceptionHandler& e) { |
8095 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8096 | } |
8097 | catch (const std::exception& e) { |
8098 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8099 | } |
8100 | } |
8101 | resultobj = SWIG_Py_Void(); |
8102 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8103 | return resultobj; |
8104 | fail: |
8105 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8106 | return NULL__null; |
8107 | } |
8108 | |
8109 | |
8110 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_save(PyObject *self, PyObject *args) { |
8111 | int argc; |
8112 | PyObject *argv[4]; |
8113 | int ii; |
8114 | |
8115 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8116 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8117 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
8118 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8119 | } |
8120 | if (argc == 2) { |
8121 | int _v; |
8122 | void *vptr = 0; |
8123 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8124 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8125 | if (_v) { |
8126 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8127 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8128 | if (_v) { |
8129 | return _wrap_GLATEventCube_save__SWIG_1(self, args); |
8130 | } |
8131 | } |
8132 | } |
8133 | if (argc == 3) { |
8134 | int _v; |
8135 | void *vptr = 0; |
8136 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8137 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8138 | if (_v) { |
8139 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8140 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8141 | if (_v) { |
8142 | { |
8143 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
8144 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8145 | } |
8146 | if (_v) { |
8147 | return _wrap_GLATEventCube_save__SWIG_0(self, args); |
8148 | } |
8149 | } |
8150 | } |
8151 | } |
8152 | |
8153 | fail: |
8154 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventCube_save'.\n" |
8155 | " Possible C/C++ prototypes are:\n" |
8156 | " GLATEventCube::save(std::string const &,bool const &) const\n" |
8157 | " GLATEventCube::save(std::string const &) const\n"); |
8158 | return 0; |
8159 | } |
8160 | |
8161 | |
8162 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8163 | PyObject *resultobj = 0; |
8164 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8165 | GFits *arg2 = 0 ; |
8166 | void *argp1 = 0 ; |
8167 | int res1 = 0 ; |
8168 | void *argp2 = 0 ; |
8169 | int res2 = 0 ; |
8170 | PyObject * obj0 = 0 ; |
8171 | PyObject * obj1 = 0 ; |
8172 | |
8173 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_read",&obj0,&obj1)) SWIG_failgoto fail; |
8174 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8175 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_read" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_read" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
8177 | } |
8178 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8179 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
8180 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8181 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while( 0); |
8182 | } |
8183 | if (!argp2) { |
8184 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while(0); |
8185 | } |
8186 | arg2 = reinterpret_cast< GFits * >(argp2); |
8187 | { |
8188 | try { |
8189 | (arg1)->read((GFits const &)*arg2); |
8190 | } |
8191 | catch (const GException::out_of_range& e) { |
8192 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8193 | } |
8194 | catch (const GExceptionHandler& e) { |
8195 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8196 | } |
8197 | catch (const std::exception& e) { |
8198 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8199 | } |
8200 | } |
8201 | resultobj = SWIG_Py_Void(); |
8202 | return resultobj; |
8203 | fail: |
8204 | return NULL__null; |
8205 | } |
8206 | |
8207 | |
8208 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8209 | PyObject *resultobj = 0; |
8210 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8211 | GFits *arg2 = 0 ; |
8212 | void *argp1 = 0 ; |
8213 | int res1 = 0 ; |
8214 | void *argp2 = 0 ; |
8215 | int res2 = 0 ; |
8216 | PyObject * obj0 = 0 ; |
8217 | PyObject * obj1 = 0 ; |
8218 | |
8219 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_write",&obj0,&obj1)) SWIG_failgoto fail; |
8220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8221 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_write" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_write" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8223 | } |
8224 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8225 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0, 0); |
8226 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8227 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
8228 | } |
8229 | if (!argp2) { |
8230 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
8231 | } |
8232 | arg2 = reinterpret_cast< GFits * >(argp2); |
8233 | { |
8234 | try { |
8235 | ((GLATEventCube const *)arg1)->write(*arg2); |
8236 | } |
8237 | catch (const GException::out_of_range& e) { |
8238 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8239 | } |
8240 | catch (const GExceptionHandler& e) { |
8241 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8242 | } |
8243 | catch (const std::exception& e) { |
8244 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8245 | } |
8246 | } |
8247 | resultobj = SWIG_Py_Void(); |
8248 | return resultobj; |
8249 | fail: |
8250 | return NULL__null; |
8251 | } |
8252 | |
8253 | |
8254 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8255 | PyObject *resultobj = 0; |
8256 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8257 | void *argp1 = 0 ; |
8258 | int res1 = 0 ; |
8259 | PyObject * obj0 = 0 ; |
8260 | int result; |
8261 | |
8262 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_number",&obj0)) SWIG_failgoto fail; |
8263 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8264 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_number" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_number" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8266 | } |
8267 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8268 | { |
8269 | try { |
8270 | result = (int)((GLATEventCube const *)arg1)->number(); |
8271 | } |
8272 | catch (const GException::out_of_range& e) { |
8273 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8274 | } |
8275 | catch (const GExceptionHandler& e) { |
8276 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8277 | } |
8278 | catch (const std::exception& e) { |
8279 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8280 | } |
8281 | } |
8282 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8283 | return resultobj; |
8284 | fail: |
8285 | return NULL__null; |
8286 | } |
8287 | |
8288 | |
8289 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_time__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8290 | PyObject *resultobj = 0; |
8291 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8292 | GTime *arg2 = 0 ; |
8293 | void *argp1 = 0 ; |
8294 | int res1 = 0 ; |
8295 | void *argp2 = 0 ; |
8296 | int res2 = 0 ; |
8297 | PyObject * obj0 = 0 ; |
8298 | PyObject * obj1 = 0 ; |
8299 | |
8300 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_time",&obj0,&obj1)) SWIG_failgoto fail; |
8301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8302 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_time" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_time" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
8304 | } |
8305 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8306 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[31] , 0 | 0, 0); |
8307 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8308 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_time" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_time" "', argument " "2"" of type '" "GTime const &""'"); goto fail; } while( 0); |
8309 | } |
8310 | if (!argp2) { |
8311 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_time" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_time" "', argument " "2"" of type '" "GTime const &""'"); goto fail; } while(0); |
8312 | } |
8313 | arg2 = reinterpret_cast< GTime * >(argp2); |
8314 | { |
8315 | try { |
8316 | (arg1)->time((GTime const &)*arg2); |
8317 | } |
8318 | catch (const GException::out_of_range& e) { |
8319 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8320 | } |
8321 | catch (const GExceptionHandler& e) { |
8322 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8323 | } |
8324 | catch (const std::exception& e) { |
8325 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8326 | } |
8327 | } |
8328 | resultobj = SWIG_Py_Void(); |
8329 | return resultobj; |
8330 | fail: |
8331 | return NULL__null; |
8332 | } |
8333 | |
8334 | |
8335 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_map__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8336 | PyObject *resultobj = 0; |
8337 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8338 | GSkymap *arg2 = 0 ; |
8339 | void *argp1 = 0 ; |
8340 | int res1 = 0 ; |
8341 | void *argp2 = 0 ; |
8342 | int res2 = 0 ; |
8343 | PyObject * obj0 = 0 ; |
8344 | PyObject * obj1 = 0 ; |
8345 | |
8346 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_map",&obj0,&obj1)) SWIG_failgoto fail; |
8347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8348 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_map" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_map" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
8350 | } |
8351 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8352 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29] , 0 | 0, 0); |
8353 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8354 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'"); goto fail; } while (0); |
8355 | } |
8356 | if (!argp2) { |
8357 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_map" "', argument " "2"" of type '" "GSkymap const &""'"); goto fail; } while(0); |
8358 | } |
8359 | arg2 = reinterpret_cast< GSkymap * >(argp2); |
8360 | { |
8361 | try { |
8362 | (arg1)->map((GSkymap const &)*arg2); |
8363 | } |
8364 | catch (const GException::out_of_range& e) { |
8365 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8366 | } |
8367 | catch (const GExceptionHandler& e) { |
8368 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8369 | } |
8370 | catch (const std::exception& e) { |
8371 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8372 | } |
8373 | } |
8374 | resultobj = SWIG_Py_Void(); |
8375 | return resultobj; |
8376 | fail: |
8377 | return NULL__null; |
8378 | } |
8379 | |
8380 | |
8381 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_enodes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8382 | PyObject *resultobj = 0; |
8383 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8384 | GNodeArray *arg2 = 0 ; |
8385 | void *argp1 = 0 ; |
8386 | int res1 = 0 ; |
8387 | void *argp2 = 0 ; |
8388 | int res2 = 0 ; |
8389 | PyObject * obj0 = 0 ; |
8390 | PyObject * obj1 = 0 ; |
8391 | |
8392 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_enodes",&obj0,&obj1)) SWIG_failgoto fail; |
8393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8394 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_enodes" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_enodes" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
8396 | } |
8397 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8398 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GNodeArray, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[23] , 0 | 0, 0); |
8399 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8400 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_enodes" "', argument " "2"" of type '" "GNodeArray const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_enodes" "', argument " "2"" of type '" "GNodeArray const &""'"); goto fail; } while (0); |
8401 | } |
8402 | if (!argp2) { |
8403 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_enodes" "', argument " "2"" of type '" "GNodeArray const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_enodes" "', argument " "2"" of type '" "GNodeArray const &""'"); goto fail; } while(0); |
8404 | } |
8405 | arg2 = reinterpret_cast< GNodeArray * >(argp2); |
8406 | { |
8407 | try { |
8408 | (arg1)->enodes((GNodeArray const &)*arg2); |
8409 | } |
8410 | catch (const GException::out_of_range& e) { |
8411 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8412 | } |
8413 | catch (const GExceptionHandler& e) { |
8414 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8415 | } |
8416 | catch (const std::exception& e) { |
8417 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8418 | } |
8419 | } |
8420 | resultobj = SWIG_Py_Void(); |
8421 | return resultobj; |
8422 | fail: |
8423 | return NULL__null; |
8424 | } |
8425 | |
8426 | |
8427 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_ontime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8428 | PyObject *resultobj = 0; |
8429 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8430 | double *arg2 = 0 ; |
8431 | void *argp1 = 0 ; |
8432 | int res1 = 0 ; |
8433 | double temp2 ; |
8434 | double val2 ; |
8435 | int ecode2 = 0 ; |
8436 | PyObject * obj0 = 0 ; |
8437 | PyObject * obj1 = 0 ; |
8438 | |
8439 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_ontime",&obj0,&obj1)) SWIG_failgoto fail; |
8440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8441 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_ontime" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_ontime" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
8443 | } |
8444 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8445 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
8446 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATEventCube_ontime" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATEventCube_ontime" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
8448 | } |
8449 | temp2 = static_cast< double >(val2); |
8450 | arg2 = &temp2; |
8451 | { |
8452 | try { |
8453 | (arg1)->ontime((double const &)*arg2); |
8454 | } |
8455 | catch (const GException::out_of_range& e) { |
8456 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8457 | } |
8458 | catch (const GExceptionHandler& e) { |
8459 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8460 | } |
8461 | catch (const std::exception& e) { |
8462 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8463 | } |
8464 | } |
8465 | resultobj = SWIG_Py_Void(); |
8466 | return resultobj; |
8467 | fail: |
8468 | return NULL__null; |
8469 | } |
8470 | |
8471 | |
8472 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_time__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8473 | PyObject *resultobj = 0; |
8474 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8475 | void *argp1 = 0 ; |
8476 | int res1 = 0 ; |
8477 | PyObject * obj0 = 0 ; |
8478 | GTime *result = 0 ; |
8479 | |
8480 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_time",&obj0)) SWIG_failgoto fail; |
8481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8482 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_time" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_time" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8484 | } |
8485 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8486 | { |
8487 | try { |
8488 | result = (GTime *) &((GLATEventCube const *)arg1)->time(); |
8489 | } |
8490 | catch (const GException::out_of_range& e) { |
8491 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8492 | } |
8493 | catch (const GExceptionHandler& e) { |
8494 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8495 | } |
8496 | catch (const std::exception& e) { |
8497 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8498 | } |
8499 | } |
8500 | 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[31], 0 | 0); |
8501 | return resultobj; |
8502 | fail: |
8503 | return NULL__null; |
8504 | } |
8505 | |
8506 | |
8507 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_time(PyObject *self, PyObject *args) { |
8508 | int argc; |
8509 | PyObject *argv[3]; |
8510 | int ii; |
8511 | |
8512 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8513 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8514 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8515 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8516 | } |
8517 | if (argc == 1) { |
8518 | int _v; |
8519 | void *vptr = 0; |
8520 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8521 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8522 | if (_v) { |
8523 | return _wrap_GLATEventCube_time__SWIG_1(self, args); |
8524 | } |
8525 | } |
8526 | if (argc == 2) { |
8527 | int _v; |
8528 | void *vptr = 0; |
8529 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8530 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8531 | if (_v) { |
8532 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[31], 0, 0 ); |
8533 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8534 | if (_v) { |
8535 | return _wrap_GLATEventCube_time__SWIG_0(self, args); |
8536 | } |
8537 | } |
8538 | } |
8539 | |
8540 | fail: |
8541 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventCube_time'.\n" |
8542 | " Possible C/C++ prototypes are:\n" |
8543 | " GLATEventCube::time(GTime const &)\n" |
8544 | " GLATEventCube::time() const\n"); |
8545 | return 0; |
8546 | } |
8547 | |
8548 | |
8549 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_map__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8550 | PyObject *resultobj = 0; |
8551 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8552 | void *argp1 = 0 ; |
8553 | int res1 = 0 ; |
8554 | PyObject * obj0 = 0 ; |
8555 | GSkymap *result = 0 ; |
8556 | |
8557 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_map",&obj0)) SWIG_failgoto fail; |
8558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8559 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_map" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_map" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8561 | } |
8562 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8563 | { |
8564 | try { |
8565 | result = (GSkymap *) &((GLATEventCube const *)arg1)->map(); |
8566 | } |
8567 | catch (const GException::out_of_range& e) { |
8568 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8569 | } |
8570 | catch (const GExceptionHandler& e) { |
8571 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8572 | } |
8573 | catch (const std::exception& e) { |
8574 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8575 | } |
8576 | } |
8577 | 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[29], 0 | 0); |
8578 | return resultobj; |
8579 | fail: |
8580 | return NULL__null; |
8581 | } |
8582 | |
8583 | |
8584 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_map(PyObject *self, PyObject *args) { |
8585 | int argc; |
8586 | PyObject *argv[3]; |
8587 | int ii; |
8588 | |
8589 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8590 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8591 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8592 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8593 | } |
8594 | if (argc == 1) { |
8595 | int _v; |
8596 | void *vptr = 0; |
8597 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8598 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8599 | if (_v) { |
8600 | return _wrap_GLATEventCube_map__SWIG_1(self, args); |
8601 | } |
8602 | } |
8603 | if (argc == 2) { |
8604 | int _v; |
8605 | void *vptr = 0; |
8606 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8607 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8608 | if (_v) { |
8609 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[29], 0, 0 ); |
8610 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8611 | if (_v) { |
8612 | return _wrap_GLATEventCube_map__SWIG_0(self, args); |
8613 | } |
8614 | } |
8615 | } |
8616 | |
8617 | fail: |
8618 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventCube_map'.\n" |
8619 | " Possible C/C++ prototypes are:\n" |
8620 | " GLATEventCube::map(GSkymap const &)\n" |
8621 | " GLATEventCube::map() const\n"); |
8622 | return 0; |
8623 | } |
8624 | |
8625 | |
8626 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_enodes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8627 | PyObject *resultobj = 0; |
8628 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8629 | void *argp1 = 0 ; |
8630 | int res1 = 0 ; |
8631 | PyObject * obj0 = 0 ; |
8632 | GNodeArray *result = 0 ; |
8633 | |
8634 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_enodes",&obj0)) SWIG_failgoto fail; |
8635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8636 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_enodes" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_enodes" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
8638 | } |
8639 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8640 | { |
8641 | try { |
8642 | result = (GNodeArray *) &(arg1)->enodes(); |
8643 | } |
8644 | catch (const GException::out_of_range& e) { |
8645 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8646 | } |
8647 | catch (const GExceptionHandler& e) { |
8648 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8649 | } |
8650 | catch (const std::exception& e) { |
8651 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8652 | } |
8653 | } |
8654 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GNodeArray, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[23], 0 | 0); |
8655 | return resultobj; |
8656 | fail: |
8657 | return NULL__null; |
8658 | } |
8659 | |
8660 | |
8661 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_enodes(PyObject *self, PyObject *args) { |
8662 | int argc; |
8663 | PyObject *argv[3]; |
8664 | int ii; |
8665 | |
8666 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8667 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8668 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8669 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8670 | } |
8671 | if (argc == 1) { |
8672 | int _v; |
8673 | void *vptr = 0; |
8674 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8675 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8676 | if (_v) { |
8677 | return _wrap_GLATEventCube_enodes__SWIG_1(self, args); |
8678 | } |
8679 | } |
8680 | if (argc == 2) { |
8681 | int _v; |
8682 | void *vptr = 0; |
8683 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8684 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8685 | if (_v) { |
8686 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GNodeArray, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[23], 0, 0 ); |
8687 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8688 | if (_v) { |
8689 | return _wrap_GLATEventCube_enodes__SWIG_0(self, args); |
8690 | } |
8691 | } |
8692 | } |
8693 | |
8694 | fail: |
8695 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventCube_enodes'.\n" |
8696 | " Possible C/C++ prototypes are:\n" |
8697 | " GLATEventCube::enodes(GNodeArray const &)\n" |
8698 | " GLATEventCube::enodes()\n"); |
8699 | return 0; |
8700 | } |
8701 | |
8702 | |
8703 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_ontime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8704 | PyObject *resultobj = 0; |
8705 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8706 | void *argp1 = 0 ; |
8707 | int res1 = 0 ; |
8708 | PyObject * obj0 = 0 ; |
8709 | double *result = 0 ; |
8710 | |
8711 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_ontime",&obj0)) SWIG_failgoto fail; |
8712 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8713 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8714 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_ontime" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_ontime" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8715 | } |
8716 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8717 | { |
8718 | try { |
8719 | result = (double *) &((GLATEventCube const *)arg1)->ontime(); |
8720 | } |
8721 | catch (const GException::out_of_range& e) { |
8722 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8723 | } |
8724 | catch (const GExceptionHandler& e) { |
8725 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8726 | } |
8727 | catch (const std::exception& e) { |
8728 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8729 | } |
8730 | } |
8731 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
8732 | return resultobj; |
8733 | fail: |
8734 | return NULL__null; |
8735 | } |
8736 | |
8737 | |
8738 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_ontime(PyObject *self, PyObject *args) { |
8739 | int argc; |
8740 | PyObject *argv[3]; |
8741 | int ii; |
8742 | |
8743 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8744 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8745 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8746 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8747 | } |
8748 | if (argc == 1) { |
8749 | int _v; |
8750 | void *vptr = 0; |
8751 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8752 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8753 | if (_v) { |
8754 | return _wrap_GLATEventCube_ontime__SWIG_1(self, args); |
8755 | } |
8756 | } |
8757 | if (argc == 2) { |
8758 | int _v; |
8759 | void *vptr = 0; |
8760 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
8761 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8762 | if (_v) { |
8763 | { |
8764 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
8765 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8766 | } |
8767 | if (_v) { |
8768 | return _wrap_GLATEventCube_ontime__SWIG_0(self, args); |
8769 | } |
8770 | } |
8771 | } |
8772 | |
8773 | fail: |
8774 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventCube_ontime'.\n" |
8775 | " Possible C/C++ prototypes are:\n" |
8776 | " GLATEventCube::ontime(double const &)\n" |
8777 | " GLATEventCube::ontime() const\n"); |
8778 | return 0; |
8779 | } |
8780 | |
8781 | |
8782 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_nx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8783 | PyObject *resultobj = 0; |
8784 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8785 | void *argp1 = 0 ; |
8786 | int res1 = 0 ; |
8787 | PyObject * obj0 = 0 ; |
8788 | int result; |
8789 | |
8790 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_nx",&obj0)) SWIG_failgoto fail; |
8791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8792 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_nx" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_nx" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8794 | } |
8795 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8796 | { |
8797 | try { |
8798 | result = (int)((GLATEventCube const *)arg1)->nx(); |
8799 | } |
8800 | catch (const GException::out_of_range& e) { |
8801 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8802 | } |
8803 | catch (const GExceptionHandler& e) { |
8804 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8805 | } |
8806 | catch (const std::exception& e) { |
8807 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8808 | } |
8809 | } |
8810 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8811 | return resultobj; |
8812 | fail: |
8813 | return NULL__null; |
8814 | } |
8815 | |
8816 | |
8817 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_ny(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8818 | PyObject *resultobj = 0; |
8819 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8820 | void *argp1 = 0 ; |
8821 | int res1 = 0 ; |
8822 | PyObject * obj0 = 0 ; |
8823 | int result; |
8824 | |
8825 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_ny",&obj0)) SWIG_failgoto fail; |
8826 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8827 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8828 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_ny" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_ny" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8829 | } |
8830 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8831 | { |
8832 | try { |
8833 | result = (int)((GLATEventCube const *)arg1)->ny(); |
8834 | } |
8835 | catch (const GException::out_of_range& e) { |
8836 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8837 | } |
8838 | catch (const GExceptionHandler& e) { |
8839 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8840 | } |
8841 | catch (const std::exception& e) { |
8842 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8843 | } |
8844 | } |
8845 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8846 | return resultobj; |
8847 | fail: |
8848 | return NULL__null; |
8849 | } |
8850 | |
8851 | |
8852 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_npix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8853 | PyObject *resultobj = 0; |
8854 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8855 | void *argp1 = 0 ; |
8856 | int res1 = 0 ; |
8857 | PyObject * obj0 = 0 ; |
8858 | int result; |
8859 | |
8860 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_npix",&obj0)) SWIG_failgoto fail; |
8861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8862 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_npix" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_npix" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8864 | } |
8865 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8866 | { |
8867 | try { |
8868 | result = (int)((GLATEventCube const *)arg1)->npix(); |
8869 | } |
8870 | catch (const GException::out_of_range& e) { |
8871 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8872 | } |
8873 | catch (const GExceptionHandler& e) { |
8874 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8875 | } |
8876 | catch (const std::exception& e) { |
8877 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8878 | } |
8879 | } |
8880 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8881 | return resultobj; |
8882 | fail: |
8883 | return NULL__null; |
8884 | } |
8885 | |
8886 | |
8887 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_ebins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8888 | PyObject *resultobj = 0; |
8889 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8890 | void *argp1 = 0 ; |
8891 | int res1 = 0 ; |
8892 | PyObject * obj0 = 0 ; |
8893 | int result; |
8894 | |
8895 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_ebins",&obj0)) SWIG_failgoto fail; |
8896 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8897 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8898 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_ebins" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_ebins" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8899 | } |
8900 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8901 | { |
8902 | try { |
8903 | result = (int)((GLATEventCube const *)arg1)->ebins(); |
8904 | } |
8905 | catch (const GException::out_of_range& e) { |
8906 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8907 | } |
8908 | catch (const GExceptionHandler& e) { |
8909 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8910 | } |
8911 | catch (const std::exception& e) { |
8912 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8913 | } |
8914 | } |
8915 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8916 | return resultobj; |
8917 | fail: |
8918 | return NULL__null; |
8919 | } |
8920 | |
8921 | |
8922 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_ndiffrsp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8923 | PyObject *resultobj = 0; |
8924 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8925 | void *argp1 = 0 ; |
8926 | int res1 = 0 ; |
8927 | PyObject * obj0 = 0 ; |
8928 | int result; |
8929 | |
8930 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_ndiffrsp",&obj0)) SWIG_failgoto fail; |
8931 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8932 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_ndiffrsp" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_ndiffrsp" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8934 | } |
8935 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8936 | { |
8937 | try { |
8938 | result = (int)((GLATEventCube const *)arg1)->ndiffrsp(); |
8939 | } |
8940 | catch (const GException::out_of_range& e) { |
8941 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8942 | } |
8943 | catch (const GExceptionHandler& e) { |
8944 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8945 | } |
8946 | catch (const std::exception& e) { |
8947 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8948 | } |
8949 | } |
8950 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8951 | return resultobj; |
8952 | fail: |
8953 | return NULL__null; |
8954 | } |
8955 | |
8956 | |
8957 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_diffname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8958 | PyObject *resultobj = 0; |
8959 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
8960 | int *arg2 = 0 ; |
8961 | void *argp1 = 0 ; |
8962 | int res1 = 0 ; |
8963 | int temp2 ; |
8964 | int val2 ; |
8965 | int ecode2 = 0 ; |
8966 | PyObject * obj0 = 0 ; |
8967 | PyObject * obj1 = 0 ; |
8968 | std::string result; |
8969 | |
8970 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_diffname",&obj0,&obj1)) SWIG_failgoto fail; |
8971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
8972 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_diffname" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_diffname" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
8974 | } |
8975 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
8976 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
8977 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8978 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATEventCube_diffname" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATEventCube_diffname" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
8979 | } |
8980 | temp2 = static_cast< int >(val2); |
8981 | arg2 = &temp2; |
8982 | { |
8983 | try { |
8984 | result = ((GLATEventCube const *)arg1)->diffname((int const &)*arg2); |
8985 | } |
8986 | catch (const GException::out_of_range& e) { |
8987 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8988 | } |
8989 | catch (const GExceptionHandler& e) { |
8990 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8991 | } |
8992 | catch (const std::exception& e) { |
8993 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8994 | } |
8995 | } |
8996 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
8997 | return resultobj; |
8998 | fail: |
8999 | return NULL__null; |
9000 | } |
9001 | |
9002 | |
9003 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_diffrsp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9004 | PyObject *resultobj = 0; |
9005 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
9006 | int *arg2 = 0 ; |
9007 | void *argp1 = 0 ; |
9008 | int res1 = 0 ; |
9009 | int temp2 ; |
9010 | int val2 ; |
9011 | int ecode2 = 0 ; |
9012 | PyObject * obj0 = 0 ; |
9013 | PyObject * obj1 = 0 ; |
9014 | GSkymap *result = 0 ; |
9015 | |
9016 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_diffrsp",&obj0,&obj1)) SWIG_failgoto fail; |
9017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
9018 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_diffrsp" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_diffrsp" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
9020 | } |
9021 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
9022 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9023 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9024 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATEventCube_diffrsp" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATEventCube_diffrsp" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
9025 | } |
9026 | temp2 = static_cast< int >(val2); |
9027 | arg2 = &temp2; |
9028 | { |
9029 | try { |
9030 | result = (GSkymap *)((GLATEventCube const *)arg1)->diffrsp((int const &)*arg2); |
9031 | } |
9032 | catch (const GException::out_of_range& e) { |
9033 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9034 | } |
9035 | catch (const GExceptionHandler& e) { |
9036 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9037 | } |
9038 | catch (const std::exception& e) { |
9039 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9040 | } |
9041 | } |
9042 | 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[29], 0 | 0); |
9043 | return resultobj; |
9044 | fail: |
9045 | return NULL__null; |
9046 | } |
9047 | |
9048 | |
9049 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_maxrad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9050 | PyObject *resultobj = 0; |
9051 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
9052 | GSkyDir *arg2 = 0 ; |
9053 | void *argp1 = 0 ; |
9054 | int res1 = 0 ; |
9055 | void *argp2 = 0 ; |
9056 | int res2 = 0 ; |
9057 | PyObject * obj0 = 0 ; |
9058 | PyObject * obj1 = 0 ; |
9059 | double result; |
9060 | |
9061 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventCube_maxrad",&obj0,&obj1)) SWIG_failgoto fail; |
9062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
9063 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_maxrad" "', argument " "1"" of type '" "GLATEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_maxrad" "', argument " "1"" of type '" "GLATEventCube const *""'"); goto fail; } while (0); |
9065 | } |
9066 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
9067 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28] , 0 | 0, 0); |
9068 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventCube_maxrad" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventCube_maxrad" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
9070 | } |
9071 | if (!argp2) { |
9072 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventCube_maxrad" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventCube_maxrad" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
9073 | } |
9074 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
9075 | { |
9076 | try { |
9077 | result = (double)((GLATEventCube const *)arg1)->maxrad((GSkyDir const &)*arg2); |
9078 | } |
9079 | catch (const GException::out_of_range& e) { |
9080 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9081 | } |
9082 | catch (const GExceptionHandler& e) { |
9083 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9084 | } |
9085 | catch (const std::exception& e) { |
9086 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9087 | } |
9088 | } |
9089 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
9090 | return resultobj; |
9091 | fail: |
9092 | return NULL__null; |
9093 | } |
9094 | |
9095 | |
9096 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventCube_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9097 | PyObject *resultobj = 0; |
9098 | GLATEventCube *arg1 = (GLATEventCube *) 0 ; |
9099 | void *argp1 = 0 ; |
9100 | int res1 = 0 ; |
9101 | PyObject * obj0 = 0 ; |
9102 | GLATEventCube result; |
9103 | |
9104 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventCube_copy",&obj0)) SWIG_failgoto fail; |
9105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
9106 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventCube_copy" "', argument " "1"" of type '" "GLATEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventCube_copy" "', argument " "1"" of type '" "GLATEventCube *""'"); goto fail; } while(0); |
9108 | } |
9109 | arg1 = reinterpret_cast< GLATEventCube * >(argp1); |
9110 | { |
9111 | try { |
9112 | result = GLATEventCube_copy(arg1); |
9113 | } |
9114 | catch (const GException::out_of_range& e) { |
9115 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9116 | } |
9117 | catch (const GExceptionHandler& e) { |
9118 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9119 | } |
9120 | catch (const std::exception& e) { |
9121 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9122 | } |
9123 | } |
9124 | resultobj = SWIG_NewPointerObj((new GLATEventCube(static_cast< const GLATEventCube& >(result))), SWIGTYPE_p_GLATEventCube, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATEventCube(static_cast < const GLATEventCube& >(result))), swig_types[14], 0x1 | 0); |
9125 | return resultobj; |
9126 | fail: |
9127 | return NULL__null; |
9128 | } |
9129 | |
9130 | |
9131 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATEventCube_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9132 | PyObject *obj; |
9133 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
9134 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATEventCubeswig_types[14], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
9135 | return SWIG_Py_Void(); |
9136 | } |
9137 | |
9138 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9139 | PyObject *resultobj = 0; |
9140 | GLATEventList *result = 0 ; |
9141 | |
9142 | if (!PyArg_ParseTuple(args,(char *)":new_GLATEventList")) SWIG_failgoto fail; |
9143 | { |
9144 | try { |
9145 | result = (GLATEventList *)new GLATEventList(); |
9146 | } |
9147 | catch (const GException::out_of_range& e) { |
9148 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9149 | } |
9150 | catch (const GExceptionHandler& e) { |
9151 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9152 | } |
9153 | catch (const std::exception& e) { |
9154 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9155 | } |
9156 | } |
9157 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventList, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], ( (0x1 << 1) | 0x1) | 0); |
9158 | return resultobj; |
9159 | fail: |
9160 | return NULL__null; |
9161 | } |
9162 | |
9163 | |
9164 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9165 | PyObject *resultobj = 0; |
9166 | GLATEventList *arg1 = 0 ; |
9167 | void *argp1 = 0 ; |
9168 | int res1 = 0 ; |
9169 | PyObject * obj0 = 0 ; |
9170 | GLATEventList *result = 0 ; |
9171 | |
9172 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATEventList",&obj0)) SWIG_failgoto fail; |
9173 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATEventList, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9174 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATEventList" "', argument " "1"" of type '" "GLATEventList const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATEventList" "', argument " "1"" of type '" "GLATEventList const &""'"); goto fail; } while(0); |
9176 | } |
9177 | if (!argp1) { |
9178 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATEventList" "', argument " "1"" of type '" "GLATEventList const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATEventList" "', argument " "1"" of type '" "GLATEventList const &""'"); goto fail; } while(0); |
9179 | } |
9180 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9181 | { |
9182 | try { |
9183 | result = (GLATEventList *)new GLATEventList((GLATEventList const &)*arg1); |
9184 | } |
9185 | catch (const GException::out_of_range& e) { |
9186 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9187 | } |
9188 | catch (const GExceptionHandler& e) { |
9189 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9190 | } |
9191 | catch (const std::exception& e) { |
9192 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9193 | } |
9194 | } |
9195 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventList, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], ( (0x1 << 1) | 0x1) | 0); |
9196 | return resultobj; |
9197 | fail: |
9198 | return NULL__null; |
9199 | } |
9200 | |
9201 | |
9202 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATEventList(PyObject *self, PyObject *args) { |
9203 | int argc; |
9204 | PyObject *argv[2]; |
9205 | int ii; |
9206 | |
9207 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9208 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9209 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
9210 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9211 | } |
9212 | if (argc == 0) { |
9213 | return _wrap_new_GLATEventList__SWIG_0(self, args); |
9214 | } |
9215 | if (argc == 1) { |
9216 | int _v; |
9217 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[15], 0, 0 ); |
9218 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9219 | if (_v) { |
9220 | return _wrap_new_GLATEventList__SWIG_1(self, args); |
9221 | } |
9222 | } |
9223 | |
9224 | fail: |
9225 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATEventList'.\n" |
9226 | " Possible C/C++ prototypes are:\n" |
9227 | " GLATEventList::GLATEventList()\n" |
9228 | " GLATEventList::GLATEventList(GLATEventList const &)\n"); |
9229 | return 0; |
9230 | } |
9231 | |
9232 | |
9233 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATEventList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9234 | PyObject *resultobj = 0; |
9235 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9236 | void *argp1 = 0 ; |
9237 | int res1 = 0 ; |
9238 | PyObject * obj0 = 0 ; |
9239 | |
9240 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATEventList",&obj0)) SWIG_failgoto fail; |
9241 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0x1 | 0, 0); |
9242 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATEventList" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATEventList" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail; } while(0); |
9244 | } |
9245 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9246 | { |
9247 | try { |
9248 | delete arg1; |
9249 | } |
9250 | catch (const GException::out_of_range& e) { |
9251 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9252 | } |
9253 | catch (const GExceptionHandler& e) { |
9254 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9255 | } |
9256 | catch (const std::exception& e) { |
9257 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9258 | } |
9259 | } |
9260 | resultobj = SWIG_Py_Void(); |
9261 | return resultobj; |
9262 | fail: |
9263 | return NULL__null; |
9264 | } |
9265 | |
9266 | |
9267 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9268 | PyObject *resultobj = 0; |
9269 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9270 | void *argp1 = 0 ; |
9271 | int res1 = 0 ; |
9272 | PyObject * obj0 = 0 ; |
9273 | |
9274 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventList_clear",&obj0)) SWIG_failgoto fail; |
9275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9276 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_clear" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_clear" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail; } while(0); |
9278 | } |
9279 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9280 | { |
9281 | try { |
9282 | (arg1)->clear(); |
9283 | } |
9284 | catch (const GException::out_of_range& e) { |
9285 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9286 | } |
9287 | catch (const GExceptionHandler& e) { |
9288 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9289 | } |
9290 | catch (const std::exception& e) { |
9291 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9292 | } |
9293 | } |
9294 | resultobj = SWIG_Py_Void(); |
9295 | return resultobj; |
9296 | fail: |
9297 | return NULL__null; |
9298 | } |
9299 | |
9300 | |
9301 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9302 | PyObject *resultobj = 0; |
9303 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9304 | void *argp1 = 0 ; |
9305 | int res1 = 0 ; |
9306 | PyObject * obj0 = 0 ; |
9307 | GLATEventList *result = 0 ; |
9308 | |
9309 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventList_clone",&obj0)) SWIG_failgoto fail; |
9310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9311 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_clone" "', argument " "1"" of type '" "GLATEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_clone" "', argument " "1"" of type '" "GLATEventList const *""'"); goto fail; } while (0); |
9313 | } |
9314 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9315 | { |
9316 | try { |
9317 | result = (GLATEventList *)((GLATEventList const *)arg1)->clone(); |
9318 | } |
9319 | catch (const GException::out_of_range& e) { |
9320 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9321 | } |
9322 | catch (const GExceptionHandler& e) { |
9323 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9324 | } |
9325 | catch (const std::exception& e) { |
9326 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9327 | } |
9328 | } |
9329 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0 | 0); |
9330 | return resultobj; |
9331 | fail: |
9332 | return NULL__null; |
9333 | } |
9334 | |
9335 | |
9336 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9337 | PyObject *resultobj = 0; |
9338 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9339 | void *argp1 = 0 ; |
9340 | int res1 = 0 ; |
9341 | PyObject * obj0 = 0 ; |
9342 | int result; |
9343 | |
9344 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventList_size",&obj0)) SWIG_failgoto fail; |
9345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9346 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_size" "', argument " "1"" of type '" "GLATEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_size" "', argument " "1"" of type '" "GLATEventList const *""'"); goto fail; } while (0); |
9348 | } |
9349 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9350 | { |
9351 | try { |
9352 | result = (int)((GLATEventList const *)arg1)->size(); |
9353 | } |
9354 | catch (const GException::out_of_range& e) { |
9355 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9356 | } |
9357 | catch (const GExceptionHandler& e) { |
9358 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9359 | } |
9360 | catch (const std::exception& e) { |
9361 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9362 | } |
9363 | } |
9364 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9365 | return resultobj; |
9366 | fail: |
9367 | return NULL__null; |
9368 | } |
9369 | |
9370 | |
9371 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9372 | PyObject *resultobj = 0; |
9373 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9374 | std::string *arg2 = 0 ; |
9375 | void *argp1 = 0 ; |
9376 | int res1 = 0 ; |
9377 | int res2 = SWIG_OLDOBJ((0)) ; |
9378 | PyObject * obj0 = 0 ; |
9379 | PyObject * obj1 = 0 ; |
9380 | |
9381 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventList_load",&obj0,&obj1)) SWIG_failgoto fail; |
9382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9383 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_load" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_load" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail; } while(0); |
9385 | } |
9386 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9387 | { |
9388 | std::string *ptr = (std::string *)0; |
9389 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9390 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9391 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventList_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventList_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9392 | } |
9393 | if (!ptr) { |
9394 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventList_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventList_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9395 | } |
9396 | arg2 = ptr; |
9397 | } |
9398 | { |
9399 | try { |
9400 | (arg1)->load((std::string const &)*arg2); |
9401 | } |
9402 | catch (const GException::out_of_range& e) { |
9403 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9404 | } |
9405 | catch (const GExceptionHandler& e) { |
9406 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9407 | } |
9408 | catch (const std::exception& e) { |
9409 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9410 | } |
9411 | } |
9412 | resultobj = SWIG_Py_Void(); |
9413 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9414 | return resultobj; |
9415 | fail: |
9416 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9417 | return NULL__null; |
9418 | } |
9419 | |
9420 | |
9421 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9422 | PyObject *resultobj = 0; |
9423 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9424 | std::string *arg2 = 0 ; |
9425 | bool *arg3 = 0 ; |
9426 | void *argp1 = 0 ; |
9427 | int res1 = 0 ; |
9428 | int res2 = SWIG_OLDOBJ((0)) ; |
9429 | bool temp3 ; |
9430 | bool val3 ; |
9431 | int ecode3 = 0 ; |
9432 | PyObject * obj0 = 0 ; |
9433 | PyObject * obj1 = 0 ; |
9434 | PyObject * obj2 = 0 ; |
9435 | |
9436 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATEventList_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9438 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_save" "', argument " "1"" of type '" "GLATEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_save" "', argument " "1"" of type '" "GLATEventList const *""'"); goto fail; } while (0); |
9440 | } |
9441 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9442 | { |
9443 | std::string *ptr = (std::string *)0; |
9444 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9445 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9447 | } |
9448 | if (!ptr) { |
9449 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9450 | } |
9451 | arg2 = ptr; |
9452 | } |
9453 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
9454 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
9455 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATEventList_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATEventList_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
9456 | } |
9457 | temp3 = static_cast< bool >(val3); |
9458 | arg3 = &temp3; |
9459 | { |
9460 | try { |
9461 | ((GLATEventList const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3); |
9462 | } |
9463 | catch (const GException::out_of_range& e) { |
9464 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9465 | } |
9466 | catch (const GExceptionHandler& e) { |
9467 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9468 | } |
9469 | catch (const std::exception& e) { |
9470 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9471 | } |
9472 | } |
9473 | resultobj = SWIG_Py_Void(); |
9474 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9475 | return resultobj; |
9476 | fail: |
9477 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9478 | return NULL__null; |
9479 | } |
9480 | |
9481 | |
9482 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9483 | PyObject *resultobj = 0; |
9484 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9485 | std::string *arg2 = 0 ; |
9486 | void *argp1 = 0 ; |
9487 | int res1 = 0 ; |
9488 | int res2 = SWIG_OLDOBJ((0)) ; |
9489 | PyObject * obj0 = 0 ; |
9490 | PyObject * obj1 = 0 ; |
9491 | |
9492 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventList_save",&obj0,&obj1)) SWIG_failgoto fail; |
9493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9494 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_save" "', argument " "1"" of type '" "GLATEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_save" "', argument " "1"" of type '" "GLATEventList const *""'"); goto fail; } while (0); |
9496 | } |
9497 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9498 | { |
9499 | std::string *ptr = (std::string *)0; |
9500 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9501 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9502 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9503 | } |
9504 | if (!ptr) { |
9505 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventList_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9506 | } |
9507 | arg2 = ptr; |
9508 | } |
9509 | { |
9510 | try { |
9511 | ((GLATEventList const *)arg1)->save((std::string const &)*arg2); |
9512 | } |
9513 | catch (const GException::out_of_range& e) { |
9514 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9515 | } |
9516 | catch (const GExceptionHandler& e) { |
9517 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9518 | } |
9519 | catch (const std::exception& e) { |
9520 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9521 | } |
9522 | } |
9523 | resultobj = SWIG_Py_Void(); |
9524 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9525 | return resultobj; |
9526 | fail: |
9527 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9528 | return NULL__null; |
9529 | } |
9530 | |
9531 | |
9532 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_save(PyObject *self, PyObject *args) { |
9533 | int argc; |
9534 | PyObject *argv[4]; |
9535 | int ii; |
9536 | |
9537 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9538 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9539 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9540 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9541 | } |
9542 | if (argc == 2) { |
9543 | int _v; |
9544 | void *vptr = 0; |
9545 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
9546 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9547 | if (_v) { |
9548 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9549 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9550 | if (_v) { |
9551 | return _wrap_GLATEventList_save__SWIG_1(self, args); |
9552 | } |
9553 | } |
9554 | } |
9555 | if (argc == 3) { |
9556 | int _v; |
9557 | void *vptr = 0; |
9558 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
9559 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9560 | if (_v) { |
9561 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9562 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9563 | if (_v) { |
9564 | { |
9565 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
9566 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9567 | } |
9568 | if (_v) { |
9569 | return _wrap_GLATEventList_save__SWIG_0(self, args); |
9570 | } |
9571 | } |
9572 | } |
9573 | } |
9574 | |
9575 | fail: |
9576 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventList_save'.\n" |
9577 | " Possible C/C++ prototypes are:\n" |
9578 | " GLATEventList::save(std::string const &,bool const &) const\n" |
9579 | " GLATEventList::save(std::string const &) const\n"); |
9580 | return 0; |
9581 | } |
9582 | |
9583 | |
9584 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9585 | PyObject *resultobj = 0; |
9586 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9587 | GFits *arg2 = 0 ; |
9588 | void *argp1 = 0 ; |
9589 | int res1 = 0 ; |
9590 | void *argp2 = 0 ; |
9591 | int res2 = 0 ; |
9592 | PyObject * obj0 = 0 ; |
9593 | PyObject * obj1 = 0 ; |
9594 | |
9595 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventList_read",&obj0,&obj1)) SWIG_failgoto fail; |
9596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9597 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_read" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_read" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail; } while(0); |
9599 | } |
9600 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9601 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
9602 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9603 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventList_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventList_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while( 0); |
9604 | } |
9605 | if (!argp2) { |
9606 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventList_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventList_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while(0); |
9607 | } |
9608 | arg2 = reinterpret_cast< GFits * >(argp2); |
9609 | { |
9610 | try { |
9611 | (arg1)->read((GFits const &)*arg2); |
9612 | } |
9613 | catch (const GException::out_of_range& e) { |
9614 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9615 | } |
9616 | catch (const GExceptionHandler& e) { |
9617 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9618 | } |
9619 | catch (const std::exception& e) { |
9620 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9621 | } |
9622 | } |
9623 | resultobj = SWIG_Py_Void(); |
9624 | return resultobj; |
9625 | fail: |
9626 | return NULL__null; |
9627 | } |
9628 | |
9629 | |
9630 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9631 | PyObject *resultobj = 0; |
9632 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9633 | GFits *arg2 = 0 ; |
9634 | void *argp1 = 0 ; |
9635 | int res1 = 0 ; |
9636 | void *argp2 = 0 ; |
9637 | int res2 = 0 ; |
9638 | PyObject * obj0 = 0 ; |
9639 | PyObject * obj1 = 0 ; |
9640 | |
9641 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventList_write",&obj0,&obj1)) SWIG_failgoto fail; |
9642 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9643 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_write" "', argument " "1"" of type '" "GLATEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_write" "', argument " "1"" of type '" "GLATEventList const *""'"); goto fail; } while (0); |
9645 | } |
9646 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9647 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0, 0); |
9648 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9649 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventList_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventList_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
9650 | } |
9651 | if (!argp2) { |
9652 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventList_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventList_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
9653 | } |
9654 | arg2 = reinterpret_cast< GFits * >(argp2); |
9655 | { |
9656 | try { |
9657 | ((GLATEventList const *)arg1)->write(*arg2); |
9658 | } |
9659 | catch (const GException::out_of_range& e) { |
9660 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9661 | } |
9662 | catch (const GExceptionHandler& e) { |
9663 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9664 | } |
9665 | catch (const std::exception& e) { |
9666 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9667 | } |
9668 | } |
9669 | resultobj = SWIG_Py_Void(); |
9670 | return resultobj; |
9671 | fail: |
9672 | return NULL__null; |
9673 | } |
9674 | |
9675 | |
9676 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9677 | PyObject *resultobj = 0; |
9678 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9679 | void *argp1 = 0 ; |
9680 | int res1 = 0 ; |
9681 | PyObject * obj0 = 0 ; |
9682 | int result; |
9683 | |
9684 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventList_number",&obj0)) SWIG_failgoto fail; |
9685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9686 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_number" "', argument " "1"" of type '" "GLATEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_number" "', argument " "1"" of type '" "GLATEventList const *""'"); goto fail; } while (0); |
9688 | } |
9689 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9690 | { |
9691 | try { |
9692 | result = (int)((GLATEventList const *)arg1)->number(); |
9693 | } |
9694 | catch (const GException::out_of_range& e) { |
9695 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9696 | } |
9697 | catch (const GExceptionHandler& e) { |
9698 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9699 | } |
9700 | catch (const std::exception& e) { |
9701 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9702 | } |
9703 | } |
9704 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9705 | return resultobj; |
9706 | fail: |
9707 | return NULL__null; |
9708 | } |
9709 | |
9710 | |
9711 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_roi__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9712 | PyObject *resultobj = 0; |
9713 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9714 | GRoi *arg2 = 0 ; |
9715 | void *argp1 = 0 ; |
9716 | int res1 = 0 ; |
9717 | void *argp2 = 0 ; |
9718 | int res2 = 0 ; |
9719 | PyObject * obj0 = 0 ; |
9720 | PyObject * obj1 = 0 ; |
9721 | |
9722 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventList_roi",&obj0,&obj1)) SWIG_failgoto fail; |
9723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9724 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_roi" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_roi" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail; } while(0); |
9726 | } |
9727 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9728 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GRoi, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[27] , 0 | 0, 0); |
9729 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9730 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATEventList_roi" "', argument " "2"" of type '" "GRoi const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATEventList_roi" "', argument " "2"" of type '" "GRoi const &""'"); goto fail; } while(0 ); |
9731 | } |
9732 | if (!argp2) { |
9733 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventList_roi" "', argument " "2"" of type '" "GRoi const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventList_roi" "', argument " "2"" of type '" "GRoi const &""'"); goto fail; } while(0); |
9734 | } |
9735 | arg2 = reinterpret_cast< GRoi * >(argp2); |
9736 | { |
9737 | try { |
9738 | (arg1)->roi((GRoi const &)*arg2); |
9739 | } |
9740 | catch (const GException::out_of_range& e) { |
9741 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9742 | } |
9743 | catch (const GExceptionHandler& e) { |
9744 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9745 | } |
9746 | catch (const std::exception& e) { |
9747 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9748 | } |
9749 | } |
9750 | resultobj = SWIG_Py_Void(); |
9751 | return resultobj; |
9752 | fail: |
9753 | return NULL__null; |
9754 | } |
9755 | |
9756 | |
9757 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_roi__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9758 | PyObject *resultobj = 0; |
9759 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9760 | void *argp1 = 0 ; |
9761 | int res1 = 0 ; |
9762 | PyObject * obj0 = 0 ; |
9763 | GLATRoi *result = 0 ; |
9764 | |
9765 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventList_roi",&obj0)) SWIG_failgoto fail; |
9766 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9767 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_roi" "', argument " "1"" of type '" "GLATEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_roi" "', argument " "1"" of type '" "GLATEventList const *""'"); goto fail; } while (0); |
9769 | } |
9770 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9771 | { |
9772 | try { |
9773 | result = (GLATRoi *) &((GLATEventList const *)arg1)->roi(); |
9774 | } |
9775 | catch (const GException::out_of_range& e) { |
9776 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9777 | } |
9778 | catch (const GExceptionHandler& e) { |
9779 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9780 | } |
9781 | catch (const std::exception& e) { |
9782 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9783 | } |
9784 | } |
9785 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[22], 0 | 0); |
9786 | return resultobj; |
9787 | fail: |
9788 | return NULL__null; |
9789 | } |
9790 | |
9791 | |
9792 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_roi(PyObject *self, PyObject *args) { |
9793 | int argc; |
9794 | PyObject *argv[3]; |
9795 | int ii; |
9796 | |
9797 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9798 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9799 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9800 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9801 | } |
9802 | if (argc == 1) { |
9803 | int _v; |
9804 | void *vptr = 0; |
9805 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
9806 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9807 | if (_v) { |
9808 | return _wrap_GLATEventList_roi__SWIG_1(self, args); |
9809 | } |
9810 | } |
9811 | if (argc == 2) { |
9812 | int _v; |
9813 | void *vptr = 0; |
9814 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15 ], 0, 0); |
9815 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9816 | if (_v) { |
9817 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GRoi, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[27], 0, 0 ); |
9818 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9819 | if (_v) { |
9820 | return _wrap_GLATEventList_roi__SWIG_0(self, args); |
9821 | } |
9822 | } |
9823 | } |
9824 | |
9825 | fail: |
9826 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATEventList_roi'.\n" |
9827 | " Possible C/C++ prototypes are:\n" |
9828 | " GLATEventList::roi(GRoi const &)\n" |
9829 | " GLATEventList::roi() const\n"); |
9830 | return 0; |
9831 | } |
9832 | |
9833 | |
9834 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9835 | PyObject *resultobj = 0; |
9836 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9837 | void *argp1 = 0 ; |
9838 | int res1 = 0 ; |
9839 | PyObject * obj0 = 0 ; |
9840 | GLATEventList result; |
9841 | |
9842 | if (!PyArg_ParseTuple(args,(char *)"O:GLATEventList_copy",&obj0)) SWIG_failgoto fail; |
9843 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9844 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList_copy" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList_copy" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail; } while(0); |
9846 | } |
9847 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9848 | { |
9849 | try { |
9850 | result = GLATEventList_copy(arg1); |
9851 | } |
9852 | catch (const GException::out_of_range& e) { |
9853 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9854 | } |
9855 | catch (const GExceptionHandler& e) { |
9856 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9857 | } |
9858 | catch (const std::exception& e) { |
9859 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9860 | } |
9861 | } |
9862 | resultobj = SWIG_NewPointerObj((new GLATEventList(static_cast< const GLATEventList& >(result))), SWIGTYPE_p_GLATEventList, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATEventList(static_cast < const GLATEventList& >(result))), swig_types[15], 0x1 | 0); |
9863 | return resultobj; |
9864 | fail: |
9865 | return NULL__null; |
9866 | } |
9867 | |
9868 | |
9869 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9870 | PyObject *resultobj = 0; |
9871 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9872 | int *arg2 = 0 ; |
9873 | void *argp1 = 0 ; |
9874 | int res1 = 0 ; |
9875 | int temp2 ; |
9876 | int val2 ; |
9877 | int ecode2 = 0 ; |
9878 | PyObject * obj0 = 0 ; |
9879 | PyObject * obj1 = 0 ; |
9880 | GLATEventAtom *result = 0 ; |
9881 | |
9882 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATEventList___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
9883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9884 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList___getitem__" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList___getitem__" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail ; } while(0); |
9886 | } |
9887 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9888 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9889 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATEventList___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATEventList___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
9891 | } |
9892 | temp2 = static_cast< int >(val2); |
9893 | arg2 = &temp2; |
9894 | { |
9895 | try { |
9896 | result = (GLATEventAtom *)GLATEventList___getitem__(arg1,(int const &)*arg2); |
9897 | } |
9898 | catch (const GException::out_of_range& e) { |
9899 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9900 | } |
9901 | catch (const GExceptionHandler& e) { |
9902 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9903 | } |
9904 | catch (const std::exception& e) { |
9905 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9906 | } |
9907 | } |
9908 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEventAtom, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], 0 | 0); |
9909 | return resultobj; |
9910 | fail: |
9911 | return NULL__null; |
9912 | } |
9913 | |
9914 | |
9915 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATEventList___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9916 | PyObject *resultobj = 0; |
9917 | GLATEventList *arg1 = (GLATEventList *) 0 ; |
9918 | int *arg2 = 0 ; |
9919 | GLATEventAtom *arg3 = 0 ; |
9920 | void *argp1 = 0 ; |
9921 | int res1 = 0 ; |
9922 | int temp2 ; |
9923 | int val2 ; |
9924 | int ecode2 = 0 ; |
9925 | void *argp3 = 0 ; |
9926 | int res3 = 0 ; |
9927 | PyObject * obj0 = 0 ; |
9928 | PyObject * obj1 = 0 ; |
9929 | PyObject * obj2 = 0 ; |
9930 | |
9931 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATEventList___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
9933 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATEventList___setitem__" "', argument " "1"" of type '" "GLATEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATEventList___setitem__" "', argument " "1"" of type '" "GLATEventList *""'"); goto fail ; } while(0); |
9935 | } |
9936 | arg1 = reinterpret_cast< GLATEventList * >(argp1); |
9937 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9938 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9939 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATEventList___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATEventList___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
9940 | } |
9941 | temp2 = static_cast< int >(val2); |
9942 | arg2 = &temp2; |
9943 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLATEventAtom, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[12] , 0 | 0, 0); |
9944 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9945 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATEventList___setitem__" "', argument " "3"" of type '" "GLATEventAtom const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATEventList___setitem__" "', argument " "3"" of type '" "GLATEventAtom const &""'" ); goto fail; } while(0); |
9946 | } |
9947 | if (!argp3) { |
9948 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATEventList___setitem__" "', argument " "3"" of type '" "GLATEventAtom const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATEventList___setitem__" "', argument " "3" " of type '" "GLATEventAtom const &""'"); goto fail; } while (0); |
9949 | } |
9950 | arg3 = reinterpret_cast< GLATEventAtom * >(argp3); |
9951 | { |
9952 | try { |
9953 | GLATEventList___setitem__(arg1,(int const &)*arg2,(GLATEventAtom const &)*arg3); |
9954 | } |
9955 | catch (const GException::out_of_range& e) { |
9956 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9957 | } |
9958 | catch (const GExceptionHandler& e) { |
9959 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9960 | } |
9961 | catch (const std::exception& e) { |
9962 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9963 | } |
9964 | } |
9965 | resultobj = SWIG_Py_Void(); |
9966 | return resultobj; |
9967 | fail: |
9968 | return NULL__null; |
9969 | } |
9970 | |
9971 | |
9972 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATEventList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9973 | PyObject *obj; |
9974 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
9975 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATEventListswig_types[15], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
9976 | return SWIG_Py_Void(); |
9977 | } |
9978 | |
9979 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATInstDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9980 | PyObject *resultobj = 0; |
9981 | GLATInstDir *result = 0 ; |
9982 | |
9983 | if (!PyArg_ParseTuple(args,(char *)":new_GLATInstDir")) SWIG_failgoto fail; |
9984 | { |
9985 | try { |
9986 | result = (GLATInstDir *)new GLATInstDir(); |
9987 | } |
9988 | catch (const GException::out_of_range& e) { |
9989 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9990 | } |
9991 | catch (const GExceptionHandler& e) { |
9992 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9993 | } |
9994 | catch (const std::exception& e) { |
9995 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9996 | } |
9997 | } |
9998 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATInstDir, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], ( (0x1 << 1) | 0x1) | 0); |
9999 | return resultobj; |
10000 | fail: |
10001 | return NULL__null; |
10002 | } |
10003 | |
10004 | |
10005 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATInstDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10006 | PyObject *resultobj = 0; |
10007 | GSkyDir *arg1 = 0 ; |
10008 | void *argp1 = 0 ; |
10009 | int res1 = 0 ; |
10010 | PyObject * obj0 = 0 ; |
10011 | GLATInstDir *result = 0 ; |
10012 | |
10013 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATInstDir",&obj0)) SWIG_failgoto fail; |
10014 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28] , 0 | 0, 0); |
10015 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10016 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
10017 | } |
10018 | if (!argp1) { |
10019 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
10020 | } |
10021 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
10022 | { |
10023 | try { |
10024 | result = (GLATInstDir *)new GLATInstDir((GSkyDir const &)*arg1); |
10025 | } |
10026 | catch (const GException::out_of_range& e) { |
10027 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10028 | } |
10029 | catch (const GExceptionHandler& e) { |
10030 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10031 | } |
10032 | catch (const std::exception& e) { |
10033 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10034 | } |
10035 | } |
10036 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATInstDir, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], ( (0x1 << 1) | 0x1) | 0); |
10037 | return resultobj; |
10038 | fail: |
10039 | return NULL__null; |
10040 | } |
10041 | |
10042 | |
10043 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATInstDir__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10044 | PyObject *resultobj = 0; |
10045 | GLATInstDir *arg1 = 0 ; |
10046 | void *argp1 = 0 ; |
10047 | int res1 = 0 ; |
10048 | PyObject * obj0 = 0 ; |
10049 | GLATInstDir *result = 0 ; |
10050 | |
10051 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATInstDir",&obj0)) SWIG_failgoto fail; |
10052 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATInstDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
10053 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GLATInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GLATInstDir const &""'"); goto fail; } while (0); |
10055 | } |
10056 | if (!argp1) { |
10057 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GLATInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATInstDir" "', argument " "1"" of type '" "GLATInstDir const &""'"); goto fail; } while(0); |
10058 | } |
10059 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
10060 | { |
10061 | try { |
10062 | result = (GLATInstDir *)new GLATInstDir((GLATInstDir const &)*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(SWIG_as_voidptr(result), SWIGTYPE_p_GLATInstDir, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], ( (0x1 << 1) | 0x1) | 0); |
10075 | return resultobj; |
10076 | fail: |
10077 | return NULL__null; |
10078 | } |
10079 | |
10080 | |
10081 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATInstDir(PyObject *self, PyObject *args) { |
10082 | int argc; |
10083 | PyObject *argv[2]; |
10084 | int ii; |
10085 | |
10086 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10087 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10088 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
10089 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10090 | } |
10091 | if (argc == 0) { |
10092 | return _wrap_new_GLATInstDir__SWIG_0(self, args); |
10093 | } |
10094 | if (argc == 1) { |
10095 | int _v; |
10096 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[28], 0, 0 ); |
10097 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10098 | if (_v) { |
10099 | return _wrap_new_GLATInstDir__SWIG_1(self, args); |
10100 | } |
10101 | } |
10102 | if (argc == 1) { |
10103 | int _v; |
10104 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[16], 0, 0 ); |
10105 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10106 | if (_v) { |
10107 | return _wrap_new_GLATInstDir__SWIG_2(self, args); |
10108 | } |
10109 | } |
10110 | |
10111 | fail: |
10112 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATInstDir'.\n" |
10113 | " Possible C/C++ prototypes are:\n" |
10114 | " GLATInstDir::GLATInstDir()\n" |
10115 | " GLATInstDir::GLATInstDir(GSkyDir const &)\n" |
10116 | " GLATInstDir::GLATInstDir(GLATInstDir const &)\n"); |
10117 | return 0; |
10118 | } |
10119 | |
10120 | |
10121 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATInstDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10122 | PyObject *resultobj = 0; |
10123 | GLATInstDir *arg1 = (GLATInstDir *) 0 ; |
10124 | void *argp1 = 0 ; |
10125 | int res1 = 0 ; |
10126 | PyObject * obj0 = 0 ; |
10127 | |
10128 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATInstDir",&obj0)) SWIG_failgoto fail; |
10129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATInstDir, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0x1 | 0, 0); |
10130 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATInstDir" "', argument " "1"" of type '" "GLATInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATInstDir" "', argument " "1"" of type '" "GLATInstDir *""'"); goto fail; } while(0); |
10132 | } |
10133 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
10134 | { |
10135 | try { |
10136 | delete arg1; |
10137 | } |
10138 | catch (const GException::out_of_range& e) { |
10139 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10140 | } |
10141 | catch (const GExceptionHandler& e) { |
10142 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10143 | } |
10144 | catch (const std::exception& e) { |
10145 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10146 | } |
10147 | } |
10148 | resultobj = SWIG_Py_Void(); |
10149 | return resultobj; |
10150 | fail: |
10151 | return NULL__null; |
10152 | } |
10153 | |
10154 | |
10155 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATInstDir_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10156 | PyObject *resultobj = 0; |
10157 | GLATInstDir *arg1 = (GLATInstDir *) 0 ; |
10158 | void *argp1 = 0 ; |
10159 | int res1 = 0 ; |
10160 | PyObject * obj0 = 0 ; |
10161 | |
10162 | if (!PyArg_ParseTuple(args,(char *)"O:GLATInstDir_clear",&obj0)) SWIG_failgoto fail; |
10163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
10164 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATInstDir_clear" "', argument " "1"" of type '" "GLATInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATInstDir_clear" "', argument " "1"" of type '" "GLATInstDir *""'"); goto fail; } while(0); |
10166 | } |
10167 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
10168 | { |
10169 | try { |
10170 | (arg1)->clear(); |
10171 | } |
10172 | catch (const GException::out_of_range& e) { |
10173 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10174 | } |
10175 | catch (const GExceptionHandler& e) { |
10176 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10177 | } |
10178 | catch (const std::exception& e) { |
10179 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10180 | } |
10181 | } |
10182 | resultobj = SWIG_Py_Void(); |
10183 | return resultobj; |
10184 | fail: |
10185 | return NULL__null; |
10186 | } |
10187 | |
10188 | |
10189 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATInstDir_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10190 | PyObject *resultobj = 0; |
10191 | GLATInstDir *arg1 = (GLATInstDir *) 0 ; |
10192 | void *argp1 = 0 ; |
10193 | int res1 = 0 ; |
10194 | PyObject * obj0 = 0 ; |
10195 | GLATInstDir *result = 0 ; |
10196 | |
10197 | if (!PyArg_ParseTuple(args,(char *)"O:GLATInstDir_clone",&obj0)) SWIG_failgoto fail; |
10198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
10199 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATInstDir_clone" "', argument " "1"" of type '" "GLATInstDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATInstDir_clone" "', argument " "1"" of type '" "GLATInstDir const *""'"); goto fail; } while (0); |
10201 | } |
10202 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
10203 | { |
10204 | try { |
10205 | result = (GLATInstDir *)((GLATInstDir const *)arg1)->clone(); |
10206 | } |
10207 | catch (const GException::out_of_range& e) { |
10208 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10209 | } |
10210 | catch (const GExceptionHandler& e) { |
10211 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10212 | } |
10213 | catch (const std::exception& e) { |
10214 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10215 | } |
10216 | } |
10217 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], 0 | 0); |
10218 | return resultobj; |
10219 | fail: |
10220 | return NULL__null; |
10221 | } |
10222 | |
10223 | |
10224 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATInstDir_dir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10225 | PyObject *resultobj = 0; |
10226 | GLATInstDir *arg1 = (GLATInstDir *) 0 ; |
10227 | GSkyDir *arg2 = 0 ; |
10228 | void *argp1 = 0 ; |
10229 | int res1 = 0 ; |
10230 | void *argp2 = 0 ; |
10231 | int res2 = 0 ; |
10232 | PyObject * obj0 = 0 ; |
10233 | PyObject * obj1 = 0 ; |
10234 | |
10235 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATInstDir_dir",&obj0,&obj1)) SWIG_failgoto fail; |
10236 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
10237 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATInstDir_dir" "', argument " "1"" of type '" "GLATInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATInstDir_dir" "', argument " "1"" of type '" "GLATInstDir *""'"); goto fail; } while(0); |
10239 | } |
10240 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
10241 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28] , 0 | 0, 0); |
10242 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10243 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
10244 | } |
10245 | if (!argp2) { |
10246 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATInstDir_dir" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
10247 | } |
10248 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
10249 | { |
10250 | try { |
10251 | (arg1)->dir((GSkyDir const &)*arg2); |
10252 | } |
10253 | catch (const GException::out_of_range& e) { |
10254 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10255 | } |
10256 | catch (const GExceptionHandler& e) { |
10257 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10258 | } |
10259 | catch (const std::exception& e) { |
10260 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10261 | } |
10262 | } |
10263 | resultobj = SWIG_Py_Void(); |
10264 | return resultobj; |
10265 | fail: |
10266 | return NULL__null; |
10267 | } |
10268 | |
10269 | |
10270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATInstDir_dir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10271 | PyObject *resultobj = 0; |
10272 | GLATInstDir *arg1 = (GLATInstDir *) 0 ; |
10273 | void *argp1 = 0 ; |
10274 | int res1 = 0 ; |
10275 | PyObject * obj0 = 0 ; |
10276 | GSkyDir *result = 0 ; |
10277 | |
10278 | if (!PyArg_ParseTuple(args,(char *)"O:GLATInstDir_dir",&obj0)) SWIG_failgoto fail; |
10279 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
10280 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10281 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATInstDir_dir" "', argument " "1"" of type '" "GLATInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATInstDir_dir" "', argument " "1"" of type '" "GLATInstDir *""'"); goto fail; } while(0); |
10282 | } |
10283 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
10284 | { |
10285 | try { |
10286 | result = (GSkyDir *) &(arg1)->dir(); |
10287 | } |
10288 | catch (const GException::out_of_range& e) { |
10289 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10290 | } |
10291 | catch (const GExceptionHandler& e) { |
10292 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10293 | } |
10294 | catch (const std::exception& e) { |
10295 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10296 | } |
10297 | } |
10298 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[28], 0 | 0); |
10299 | return resultobj; |
10300 | fail: |
10301 | return NULL__null; |
10302 | } |
10303 | |
10304 | |
10305 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATInstDir_dir(PyObject *self, PyObject *args) { |
10306 | int argc; |
10307 | PyObject *argv[3]; |
10308 | int ii; |
10309 | |
10310 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10311 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10312 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
10313 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10314 | } |
10315 | if (argc == 1) { |
10316 | int _v; |
10317 | void *vptr = 0; |
10318 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16 ], 0, 0); |
10319 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10320 | if (_v) { |
10321 | return _wrap_GLATInstDir_dir__SWIG_1(self, args); |
10322 | } |
10323 | } |
10324 | if (argc == 2) { |
10325 | int _v; |
10326 | void *vptr = 0; |
10327 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[16 ], 0, 0); |
10328 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10329 | if (_v) { |
10330 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[28], 0, 0 ); |
10331 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10332 | if (_v) { |
10333 | return _wrap_GLATInstDir_dir__SWIG_0(self, args); |
10334 | } |
10335 | } |
10336 | } |
10337 | |
10338 | fail: |
10339 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATInstDir_dir'.\n" |
10340 | " Possible C/C++ prototypes are:\n" |
10341 | " GLATInstDir::dir(GSkyDir const &)\n" |
10342 | " GLATInstDir::dir()\n"); |
10343 | return 0; |
10344 | } |
10345 | |
10346 | |
10347 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATInstDir_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10348 | PyObject *resultobj = 0; |
10349 | GLATInstDir *arg1 = (GLATInstDir *) 0 ; |
10350 | void *argp1 = 0 ; |
10351 | int res1 = 0 ; |
10352 | PyObject * obj0 = 0 ; |
10353 | GLATInstDir result; |
10354 | |
10355 | if (!PyArg_ParseTuple(args,(char *)"O:GLATInstDir_copy",&obj0)) SWIG_failgoto fail; |
10356 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
10357 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10358 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATInstDir_copy" "', argument " "1"" of type '" "GLATInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATInstDir_copy" "', argument " "1"" of type '" "GLATInstDir *""'"); goto fail; } while(0); |
10359 | } |
10360 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
10361 | { |
10362 | try { |
10363 | result = GLATInstDir_copy(arg1); |
10364 | } |
10365 | catch (const GException::out_of_range& e) { |
10366 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10367 | } |
10368 | catch (const GExceptionHandler& e) { |
10369 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10370 | } |
10371 | catch (const std::exception& e) { |
10372 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10373 | } |
10374 | } |
10375 | resultobj = SWIG_NewPointerObj((new GLATInstDir(static_cast< const GLATInstDir& >(result))), SWIGTYPE_p_GLATInstDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATInstDir(static_cast < const GLATInstDir& >(result))), swig_types[16], 0x1 | 0); |
10376 | return resultobj; |
10377 | fail: |
10378 | return NULL__null; |
10379 | } |
10380 | |
10381 | |
10382 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATInstDir_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10383 | PyObject *obj; |
10384 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
10385 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATInstDirswig_types[16], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
10386 | return SWIG_Py_Void(); |
10387 | } |
10388 | |
10389 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATLtCube__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10390 | PyObject *resultobj = 0; |
10391 | GLATLtCube *result = 0 ; |
10392 | |
10393 | if (!PyArg_ParseTuple(args,(char *)":new_GLATLtCube")) SWIG_failgoto fail; |
10394 | { |
10395 | try { |
10396 | result = (GLATLtCube *)new GLATLtCube(); |
10397 | } |
10398 | catch (const GException::out_of_range& e) { |
10399 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10400 | } |
10401 | catch (const GExceptionHandler& e) { |
10402 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10403 | } |
10404 | catch (const std::exception& e) { |
10405 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10406 | } |
10407 | } |
10408 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATLtCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], ( (0x1 << 1) | 0x1) | 0); |
10409 | return resultobj; |
10410 | fail: |
10411 | return NULL__null; |
10412 | } |
10413 | |
10414 | |
10415 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATLtCube__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10416 | PyObject *resultobj = 0; |
10417 | std::string *arg1 = 0 ; |
10418 | int res1 = SWIG_OLDOBJ((0)) ; |
10419 | PyObject * obj0 = 0 ; |
10420 | GLATLtCube *result = 0 ; |
10421 | |
10422 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATLtCube",&obj0)) SWIG_failgoto fail; |
10423 | { |
10424 | std::string *ptr = (std::string *)0; |
10425 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
10426 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
10428 | } |
10429 | if (!ptr) { |
10430 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
10431 | } |
10432 | arg1 = ptr; |
10433 | } |
10434 | { |
10435 | try { |
10436 | result = (GLATLtCube *)new GLATLtCube((std::string const &)*arg1); |
10437 | } |
10438 | catch (const GException::out_of_range& e) { |
10439 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10440 | } |
10441 | catch (const GExceptionHandler& e) { |
10442 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10443 | } |
10444 | catch (const std::exception& e) { |
10445 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10446 | } |
10447 | } |
10448 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATLtCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], ( (0x1 << 1) | 0x1) | 0); |
10449 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
10450 | return resultobj; |
10451 | fail: |
10452 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
10453 | return NULL__null; |
10454 | } |
10455 | |
10456 | |
10457 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATLtCube__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10458 | PyObject *resultobj = 0; |
10459 | GLATLtCube *arg1 = 0 ; |
10460 | void *argp1 = 0 ; |
10461 | int res1 = 0 ; |
10462 | PyObject * obj0 = 0 ; |
10463 | GLATLtCube *result = 0 ; |
10464 | |
10465 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATLtCube",&obj0)) SWIG_failgoto fail; |
10466 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATLtCube, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
10467 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "GLATLtCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "GLATLtCube const &""'"); goto fail; } while (0); |
10469 | } |
10470 | if (!argp1) { |
10471 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "GLATLtCube const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATLtCube" "', argument " "1"" of type '" "GLATLtCube const &""'"); goto fail; } while(0); |
10472 | } |
10473 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
10474 | { |
10475 | try { |
10476 | result = (GLATLtCube *)new GLATLtCube((GLATLtCube const &)*arg1); |
10477 | } |
10478 | catch (const GException::out_of_range& e) { |
10479 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10480 | } |
10481 | catch (const GExceptionHandler& e) { |
10482 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10483 | } |
10484 | catch (const std::exception& e) { |
10485 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10486 | } |
10487 | } |
10488 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATLtCube, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], ( (0x1 << 1) | 0x1) | 0); |
10489 | return resultobj; |
10490 | fail: |
10491 | return NULL__null; |
10492 | } |
10493 | |
10494 | |
10495 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATLtCube(PyObject *self, PyObject *args) { |
10496 | int argc; |
10497 | PyObject *argv[2]; |
10498 | int ii; |
10499 | |
10500 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10501 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10502 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
10503 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10504 | } |
10505 | if (argc == 0) { |
10506 | return _wrap_new_GLATLtCube__SWIG_0(self, args); |
10507 | } |
10508 | if (argc == 1) { |
10509 | int _v; |
10510 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATLtCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[17], 0, 0 ); |
10511 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10512 | if (_v) { |
10513 | return _wrap_new_GLATLtCube__SWIG_2(self, args); |
10514 | } |
10515 | } |
10516 | if (argc == 1) { |
10517 | int _v; |
10518 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
10519 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10520 | if (_v) { |
10521 | return _wrap_new_GLATLtCube__SWIG_1(self, args); |
10522 | } |
10523 | } |
10524 | |
10525 | fail: |
10526 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATLtCube'.\n" |
10527 | " Possible C/C++ prototypes are:\n" |
10528 | " GLATLtCube::GLATLtCube()\n" |
10529 | " GLATLtCube::GLATLtCube(std::string const &)\n" |
10530 | " GLATLtCube::GLATLtCube(GLATLtCube const &)\n"); |
10531 | return 0; |
10532 | } |
10533 | |
10534 | |
10535 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATLtCube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10536 | PyObject *resultobj = 0; |
10537 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
10538 | void *argp1 = 0 ; |
10539 | int res1 = 0 ; |
10540 | PyObject * obj0 = 0 ; |
10541 | |
10542 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATLtCube",&obj0)) SWIG_failgoto fail; |
10543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0x1 | 0, 0); |
10544 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATLtCube" "', argument " "1"" of type '" "GLATLtCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATLtCube" "', argument " "1"" of type '" "GLATLtCube *""'"); goto fail; } while(0); |
10546 | } |
10547 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
10548 | { |
10549 | try { |
10550 | delete arg1; |
10551 | } |
10552 | catch (const GException::out_of_range& e) { |
10553 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10554 | } |
10555 | catch (const GExceptionHandler& e) { |
10556 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10557 | } |
10558 | catch (const std::exception& e) { |
10559 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10560 | } |
10561 | } |
10562 | resultobj = SWIG_Py_Void(); |
10563 | return resultobj; |
10564 | fail: |
10565 | return NULL__null; |
10566 | } |
10567 | |
10568 | |
10569 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube___call____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10570 | PyObject *resultobj = 0; |
10571 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
10572 | GSkyDir *arg2 = 0 ; |
10573 | GEnergy *arg3 = 0 ; |
10574 | _ltcube_ctheta arg4 ; |
10575 | void *argp1 = 0 ; |
10576 | int res1 = 0 ; |
10577 | void *argp2 = 0 ; |
10578 | int res2 = 0 ; |
10579 | void *argp3 = 0 ; |
10580 | int res3 = 0 ; |
10581 | void *argp4 ; |
10582 | int res4 = 0 ; |
10583 | PyObject * obj0 = 0 ; |
10584 | PyObject * obj1 = 0 ; |
10585 | PyObject * obj2 = 0 ; |
10586 | PyObject * obj3 = 0 ; |
10587 | double result; |
10588 | |
10589 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATLtCube___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
10590 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
10591 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10592 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'"); goto fail; } while (0); |
10593 | } |
10594 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
10595 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28] , 0 | 0, 0); |
10596 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10597 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
10598 | } |
10599 | if (!argp2) { |
10600 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
10601 | } |
10602 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
10603 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[1], 0 | 0, 0); |
10604 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10605 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while (0); |
10606 | } |
10607 | if (!argp3) { |
10608 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while(0); |
10609 | } |
10610 | arg3 = reinterpret_cast< GEnergy * >(argp3); |
10611 | { |
10612 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p__ltcube_ctheta, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[33] , 0 | 0, 0); |
10613 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
10614 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta""'"); goto fail; } while(0); |
10615 | } |
10616 | if (!argp4) { |
10617 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta""'"); goto fail; } while(0); |
10618 | } else { |
10619 | _ltcube_ctheta * temp = reinterpret_cast< _ltcube_ctheta * >(argp4); |
10620 | arg4 = *temp; |
10621 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete temp; |
10622 | } |
10623 | } |
10624 | { |
10625 | try { |
10626 | result = (double)((GLATLtCube const *)arg1)->operator ()((GSkyDir const &)*arg2,(GEnergy const &)*arg3,arg4); |
10627 | } |
10628 | catch (const GException::out_of_range& e) { |
10629 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10630 | } |
10631 | catch (const GExceptionHandler& e) { |
10632 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10633 | } |
10634 | catch (const std::exception& e) { |
10635 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10636 | } |
10637 | } |
10638 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
10639 | return resultobj; |
10640 | fail: |
10641 | return NULL__null; |
10642 | } |
10643 | |
10644 | |
10645 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube___call____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10646 | PyObject *resultobj = 0; |
10647 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
10648 | GSkyDir *arg2 = 0 ; |
10649 | GEnergy *arg3 = 0 ; |
10650 | _ltcube_ctheta_phi arg4 ; |
10651 | void *argp1 = 0 ; |
10652 | int res1 = 0 ; |
10653 | void *argp2 = 0 ; |
10654 | int res2 = 0 ; |
10655 | void *argp3 = 0 ; |
10656 | int res3 = 0 ; |
10657 | void *argp4 ; |
10658 | int res4 = 0 ; |
10659 | PyObject * obj0 = 0 ; |
10660 | PyObject * obj1 = 0 ; |
10661 | PyObject * obj2 = 0 ; |
10662 | PyObject * obj3 = 0 ; |
10663 | double result; |
10664 | |
10665 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATLtCube___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
10666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
10667 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'"); goto fail; } while (0); |
10669 | } |
10670 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
10671 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28] , 0 | 0, 0); |
10672 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10673 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
10674 | } |
10675 | if (!argp2) { |
10676 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
10677 | } |
10678 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
10679 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[1], 0 | 0, 0); |
10680 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10681 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while (0); |
10682 | } |
10683 | if (!argp3) { |
10684 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while(0); |
10685 | } |
10686 | arg3 = reinterpret_cast< GEnergy * >(argp3); |
10687 | { |
10688 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p__ltcube_ctheta_phi, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[34] , 0 | 0, 0); |
10689 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
10690 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta_phi""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta_phi""'"); goto fail; } while (0); |
10691 | } |
10692 | if (!argp4) { |
10693 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta_phi""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "_ltcube_ctheta_phi""'"); goto fail; } while(0); |
10694 | } else { |
10695 | _ltcube_ctheta_phi * temp = reinterpret_cast< _ltcube_ctheta_phi * >(argp4); |
10696 | arg4 = *temp; |
10697 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete temp; |
10698 | } |
10699 | } |
10700 | { |
10701 | try { |
10702 | result = (double)((GLATLtCube const *)arg1)->operator ()((GSkyDir const &)*arg2,(GEnergy const &)*arg3,arg4); |
10703 | } |
10704 | catch (const GException::out_of_range& e) { |
10705 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10706 | } |
10707 | catch (const GExceptionHandler& e) { |
10708 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10709 | } |
10710 | catch (const std::exception& e) { |
10711 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10712 | } |
10713 | } |
10714 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
10715 | return resultobj; |
10716 | fail: |
10717 | return NULL__null; |
10718 | } |
10719 | |
10720 | |
10721 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube___call____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10722 | PyObject *resultobj = 0; |
10723 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
10724 | GSkyDir *arg2 = 0 ; |
10725 | GEnergy *arg3 = 0 ; |
10726 | GLATAeff *arg4 = 0 ; |
10727 | void *argp1 = 0 ; |
10728 | int res1 = 0 ; |
10729 | void *argp2 = 0 ; |
10730 | int res2 = 0 ; |
10731 | void *argp3 = 0 ; |
10732 | int res3 = 0 ; |
10733 | void *argp4 = 0 ; |
10734 | int res4 = 0 ; |
10735 | PyObject * obj0 = 0 ; |
10736 | PyObject * obj1 = 0 ; |
10737 | PyObject * obj2 = 0 ; |
10738 | PyObject * obj3 = 0 ; |
10739 | double result; |
10740 | |
10741 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATLtCube___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
10742 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
10743 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10744 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'"); goto fail; } while (0); |
10745 | } |
10746 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
10747 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28] , 0 | 0, 0); |
10748 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10749 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
10750 | } |
10751 | if (!argp2) { |
10752 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
10753 | } |
10754 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
10755 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[1], 0 | 0, 0); |
10756 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10757 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while (0); |
10758 | } |
10759 | if (!argp3) { |
10760 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while(0); |
10761 | } |
10762 | arg3 = reinterpret_cast< GEnergy * >(argp3); |
10763 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GLATAeff, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[10] , 0 | 0, 0); |
10764 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
10765 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "GLATAeff const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "GLATAeff const &""'"); goto fail; } while (0); |
10766 | } |
10767 | if (!argp4) { |
10768 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "GLATAeff const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "GLATAeff const &""'"); goto fail; } while(0); |
10769 | } |
10770 | arg4 = reinterpret_cast< GLATAeff * >(argp4); |
10771 | { |
10772 | try { |
10773 | result = (double)((GLATLtCube const *)arg1)->operator ()((GSkyDir const &)*arg2,(GEnergy const &)*arg3,(GLATAeff const &)*arg4); |
10774 | } |
10775 | catch (const GException::out_of_range& e) { |
10776 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10777 | } |
10778 | catch (const GExceptionHandler& e) { |
10779 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10780 | } |
10781 | catch (const std::exception& e) { |
10782 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10783 | } |
10784 | } |
10785 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
10786 | return resultobj; |
10787 | fail: |
10788 | return NULL__null; |
10789 | } |
10790 | |
10791 | |
10792 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube___call____SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10793 | PyObject *resultobj = 0; |
10794 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
10795 | GSkyDir *arg2 = 0 ; |
10796 | GEnergy *arg3 = 0 ; |
10797 | double *arg4 = 0 ; |
10798 | GLATPsf *arg5 = 0 ; |
10799 | GLATAeff *arg6 = 0 ; |
10800 | void *argp1 = 0 ; |
10801 | int res1 = 0 ; |
10802 | void *argp2 = 0 ; |
10803 | int res2 = 0 ; |
10804 | void *argp3 = 0 ; |
10805 | int res3 = 0 ; |
10806 | double temp4 ; |
10807 | double val4 ; |
10808 | int ecode4 = 0 ; |
10809 | void *argp5 = 0 ; |
10810 | int res5 = 0 ; |
10811 | void *argp6 = 0 ; |
10812 | int res6 = 0 ; |
10813 | PyObject * obj0 = 0 ; |
10814 | PyObject * obj1 = 0 ; |
10815 | PyObject * obj2 = 0 ; |
10816 | PyObject * obj3 = 0 ; |
10817 | PyObject * obj4 = 0 ; |
10818 | PyObject * obj5 = 0 ; |
10819 | double result; |
10820 | |
10821 | if (!PyArg_ParseTuple(args,(char *)"OOOOOO:GLATLtCube___call__",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_failgoto fail; |
10822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
10823 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube___call__" "', argument " "1"" of type '" "GLATLtCube const *""'"); goto fail; } while (0); |
10825 | } |
10826 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
10827 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28] , 0 | 0, 0); |
10828 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10829 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
10830 | } |
10831 | if (!argp2) { |
10832 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
10833 | } |
10834 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
10835 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[1], 0 | 0, 0); |
10836 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10837 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while (0); |
10838 | } |
10839 | if (!argp3) { |
10840 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "3"" of type '" "GEnergy const &""'"); goto fail; } while(0); |
10841 | } |
10842 | arg3 = reinterpret_cast< GEnergy * >(argp3); |
10843 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
10844 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
10845 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GLATLtCube___call__" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
10846 | } |
10847 | temp4 = static_cast< double >(val4); |
10848 | arg4 = &temp4; |
10849 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_GLATPsf, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj4, &argp5, swig_types[20] , 0 | 0, 0); |
10850 | if (!SWIG_IsOK(res5)(res5 >= 0)) { |
10851 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GLATLtCube___call__" "', argument " "5"" of type '" "GLATPsf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != ( -1)) ? res5 : -5)), "in method '" "GLATLtCube___call__" "', argument " "5"" of type '" "GLATPsf const &""'"); goto fail; } while (0); |
10852 | } |
10853 | if (!argp5) { |
10854 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "5"" of type '" "GLATPsf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "5"" of type '" "GLATPsf const &""'"); goto fail; } while(0); |
10855 | } |
10856 | arg5 = reinterpret_cast< GLATPsf * >(argp5); |
10857 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_GLATAeff, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj5, &argp6, swig_types[10] , 0 | 0, 0); |
10858 | if (!SWIG_IsOK(res6)(res6 >= 0)) { |
10859 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GLATLtCube___call__" "', argument " "6"" of type '" "GLATAeff const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != ( -1)) ? res6 : -5)), "in method '" "GLATLtCube___call__" "', argument " "6"" of type '" "GLATAeff const &""'"); goto fail; } while (0); |
10860 | } |
10861 | if (!argp6) { |
10862 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "6"" of type '" "GLATAeff const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube___call__" "', argument " "6"" of type '" "GLATAeff const &""'"); goto fail; } while(0); |
10863 | } |
10864 | arg6 = reinterpret_cast< GLATAeff * >(argp6); |
10865 | { |
10866 | try { |
10867 | result = (double)((GLATLtCube const *)arg1)->operator ()((GSkyDir const &)*arg2,(GEnergy const &)*arg3,(double const &)*arg4,(GLATPsf const &)*arg5,(GLATAeff const &)*arg6); |
10868 | } |
10869 | catch (const GException::out_of_range& e) { |
10870 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10871 | } |
10872 | catch (const GExceptionHandler& e) { |
10873 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10874 | } |
10875 | catch (const std::exception& e) { |
10876 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10877 | } |
10878 | } |
10879 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
10880 | return resultobj; |
10881 | fail: |
10882 | return NULL__null; |
10883 | } |
10884 | |
10885 | |
10886 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube___call__(PyObject *self, PyObject *args) { |
10887 | int argc; |
10888 | PyObject *argv[7]; |
10889 | int ii; |
10890 | |
10891 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10892 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10893 | for (ii = 0; (ii < 6) && (ii < argc); ii++) { |
10894 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10895 | } |
10896 | if (argc == 4) { |
10897 | int _v; |
10898 | void *vptr = 0; |
10899 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATLtCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17 ], 0, 0); |
10900 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10901 | if (_v) { |
10902 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[28], 0, 0 ); |
10903 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10904 | if (_v) { |
10905 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[1], 0, 0); |
10906 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10907 | if (_v) { |
10908 | int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p__ltcube_ctheta, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[33], 0, 0 ); |
10909 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10910 | if (_v) { |
10911 | return _wrap_GLATLtCube___call____SWIG_0(self, args); |
10912 | } |
10913 | } |
10914 | } |
10915 | } |
10916 | } |
10917 | if (argc == 4) { |
10918 | int _v; |
10919 | void *vptr = 0; |
10920 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATLtCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17 ], 0, 0); |
10921 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10922 | if (_v) { |
10923 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[28], 0, 0 ); |
10924 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10925 | if (_v) { |
10926 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[1], 0, 0); |
10927 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10928 | if (_v) { |
10929 | int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p__ltcube_ctheta_phi, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[34], 0, 0 ); |
10930 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10931 | if (_v) { |
10932 | return _wrap_GLATLtCube___call____SWIG_1(self, args); |
10933 | } |
10934 | } |
10935 | } |
10936 | } |
10937 | } |
10938 | if (argc == 4) { |
10939 | int _v; |
10940 | void *vptr = 0; |
10941 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATLtCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17 ], 0, 0); |
10942 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10943 | if (_v) { |
10944 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[28], 0, 0 ); |
10945 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10946 | if (_v) { |
10947 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[1], 0, 0); |
10948 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10949 | if (_v) { |
10950 | int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[10], 0, 0 ); |
10951 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10952 | if (_v) { |
10953 | return _wrap_GLATLtCube___call____SWIG_2(self, args); |
10954 | } |
10955 | } |
10956 | } |
10957 | } |
10958 | } |
10959 | if (argc == 6) { |
10960 | int _v; |
10961 | void *vptr = 0; |
10962 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATLtCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17 ], 0, 0); |
10963 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10964 | if (_v) { |
10965 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[28], 0, 0 ); |
10966 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10967 | if (_v) { |
10968 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[1], 0, 0); |
10969 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10970 | if (_v) { |
10971 | { |
10972 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
10973 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10974 | } |
10975 | if (_v) { |
10976 | int res = SWIG_ConvertPtr(argv[4], 0, SWIGTYPE_p_GLATPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[4], 0, swig_types[20], 0, 0 ); |
10977 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10978 | if (_v) { |
10979 | int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_GLATAeff, 0)SWIG_Python_ConvertPtrAndOwn(argv[5], 0, swig_types[10], 0, 0 ); |
10980 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10981 | if (_v) { |
10982 | return _wrap_GLATLtCube___call____SWIG_3(self, args); |
10983 | } |
10984 | } |
10985 | } |
10986 | } |
10987 | } |
10988 | } |
10989 | } |
10990 | |
10991 | fail: |
10992 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATLtCube___call__'.\n" |
10993 | " Possible C/C++ prototypes are:\n" |
10994 | " GLATLtCube::operator ()(GSkyDir const &,GEnergy const &,_ltcube_ctheta) const\n" |
10995 | " GLATLtCube::operator ()(GSkyDir const &,GEnergy const &,_ltcube_ctheta_phi) const\n" |
10996 | " GLATLtCube::operator ()(GSkyDir const &,GEnergy const &,GLATAeff const &) const\n" |
10997 | " GLATLtCube::operator ()(GSkyDir const &,GEnergy const &,double const &,GLATPsf const &,GLATAeff const &) const\n"); |
10998 | return 0; |
10999 | } |
11000 | |
11001 | |
11002 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11003 | PyObject *resultobj = 0; |
11004 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
11005 | void *argp1 = 0 ; |
11006 | int res1 = 0 ; |
11007 | PyObject * obj0 = 0 ; |
11008 | |
11009 | if (!PyArg_ParseTuple(args,(char *)"O:GLATLtCube_clear",&obj0)) SWIG_failgoto fail; |
11010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
11011 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube_clear" "', argument " "1"" of type '" "GLATLtCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube_clear" "', argument " "1"" of type '" "GLATLtCube *""'"); goto fail; } while(0); |
11013 | } |
11014 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
11015 | { |
11016 | try { |
11017 | (arg1)->clear(); |
11018 | } |
11019 | catch (const GException::out_of_range& e) { |
11020 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11021 | } |
11022 | catch (const GExceptionHandler& e) { |
11023 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11024 | } |
11025 | catch (const std::exception& e) { |
11026 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11027 | } |
11028 | } |
11029 | resultobj = SWIG_Py_Void(); |
11030 | return resultobj; |
11031 | fail: |
11032 | return NULL__null; |
11033 | } |
11034 | |
11035 | |
11036 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11037 | PyObject *resultobj = 0; |
11038 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
11039 | void *argp1 = 0 ; |
11040 | int res1 = 0 ; |
11041 | PyObject * obj0 = 0 ; |
11042 | GLATLtCube *result = 0 ; |
11043 | |
11044 | if (!PyArg_ParseTuple(args,(char *)"O:GLATLtCube_clone",&obj0)) SWIG_failgoto fail; |
11045 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
11046 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube_clone" "', argument " "1"" of type '" "GLATLtCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube_clone" "', argument " "1"" of type '" "GLATLtCube const *""'"); goto fail; } while (0); |
11048 | } |
11049 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
11050 | { |
11051 | try { |
11052 | result = (GLATLtCube *)((GLATLtCube const *)arg1)->clone(); |
11053 | } |
11054 | catch (const GException::out_of_range& e) { |
11055 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11056 | } |
11057 | catch (const GExceptionHandler& e) { |
11058 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11059 | } |
11060 | catch (const std::exception& e) { |
11061 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11062 | } |
11063 | } |
11064 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], 0 | 0); |
11065 | return resultobj; |
11066 | fail: |
11067 | return NULL__null; |
11068 | } |
11069 | |
11070 | |
11071 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11072 | PyObject *resultobj = 0; |
11073 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
11074 | std::string *arg2 = 0 ; |
11075 | void *argp1 = 0 ; |
11076 | int res1 = 0 ; |
11077 | int res2 = SWIG_OLDOBJ((0)) ; |
11078 | PyObject * obj0 = 0 ; |
11079 | PyObject * obj1 = 0 ; |
11080 | |
11081 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATLtCube_load",&obj0,&obj1)) SWIG_failgoto fail; |
11082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
11083 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube_load" "', argument " "1"" of type '" "GLATLtCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube_load" "', argument " "1"" of type '" "GLATLtCube *""'"); goto fail; } while(0); |
11085 | } |
11086 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
11087 | { |
11088 | std::string *ptr = (std::string *)0; |
11089 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
11090 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11091 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATLtCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATLtCube_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
11092 | } |
11093 | if (!ptr) { |
11094 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
11095 | } |
11096 | arg2 = ptr; |
11097 | } |
11098 | { |
11099 | try { |
11100 | (arg1)->load((std::string const &)*arg2); |
11101 | } |
11102 | catch (const GException::out_of_range& e) { |
11103 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11104 | } |
11105 | catch (const GExceptionHandler& e) { |
11106 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11107 | } |
11108 | catch (const std::exception& e) { |
11109 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11110 | } |
11111 | } |
11112 | resultobj = SWIG_Py_Void(); |
11113 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11114 | return resultobj; |
11115 | fail: |
11116 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11117 | return NULL__null; |
11118 | } |
11119 | |
11120 | |
11121 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11122 | PyObject *resultobj = 0; |
11123 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
11124 | std::string *arg2 = 0 ; |
11125 | bool arg3 ; |
11126 | void *argp1 = 0 ; |
11127 | int res1 = 0 ; |
11128 | int res2 = SWIG_OLDOBJ((0)) ; |
11129 | bool val3 ; |
11130 | int ecode3 = 0 ; |
11131 | PyObject * obj0 = 0 ; |
11132 | PyObject * obj1 = 0 ; |
11133 | PyObject * obj2 = 0 ; |
11134 | |
11135 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATLtCube_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
11136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
11137 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube_save" "', argument " "1"" of type '" "GLATLtCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube_save" "', argument " "1"" of type '" "GLATLtCube const *""'"); goto fail; } while (0); |
11139 | } |
11140 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
11141 | { |
11142 | std::string *ptr = (std::string *)0; |
11143 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
11144 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11145 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
11146 | } |
11147 | if (!ptr) { |
11148 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
11149 | } |
11150 | arg2 = ptr; |
11151 | } |
11152 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
11153 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
11154 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATLtCube_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATLtCube_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
11155 | } |
11156 | arg3 = static_cast< bool >(val3); |
11157 | { |
11158 | try { |
11159 | ((GLATLtCube const *)arg1)->save((std::string const &)*arg2,arg3); |
11160 | } |
11161 | catch (const GException::out_of_range& e) { |
11162 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11163 | } |
11164 | catch (const GExceptionHandler& e) { |
11165 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11166 | } |
11167 | catch (const std::exception& e) { |
11168 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11169 | } |
11170 | } |
11171 | resultobj = SWIG_Py_Void(); |
11172 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11173 | return resultobj; |
11174 | fail: |
11175 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11176 | return NULL__null; |
11177 | } |
11178 | |
11179 | |
11180 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11181 | PyObject *resultobj = 0; |
11182 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
11183 | std::string *arg2 = 0 ; |
11184 | void *argp1 = 0 ; |
11185 | int res1 = 0 ; |
11186 | int res2 = SWIG_OLDOBJ((0)) ; |
11187 | PyObject * obj0 = 0 ; |
11188 | PyObject * obj1 = 0 ; |
11189 | |
11190 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATLtCube_save",&obj0,&obj1)) SWIG_failgoto fail; |
11191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
11192 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube_save" "', argument " "1"" of type '" "GLATLtCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube_save" "', argument " "1"" of type '" "GLATLtCube const *""'"); goto fail; } while (0); |
11194 | } |
11195 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
11196 | { |
11197 | std::string *ptr = (std::string *)0; |
11198 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
11199 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11200 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
11201 | } |
11202 | if (!ptr) { |
11203 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATLtCube_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
11204 | } |
11205 | arg2 = ptr; |
11206 | } |
11207 | { |
11208 | try { |
11209 | ((GLATLtCube const *)arg1)->save((std::string const &)*arg2); |
11210 | } |
11211 | catch (const GException::out_of_range& e) { |
11212 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11213 | } |
11214 | catch (const GExceptionHandler& e) { |
11215 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11216 | } |
11217 | catch (const std::exception& e) { |
11218 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11219 | } |
11220 | } |
11221 | resultobj = SWIG_Py_Void(); |
11222 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11223 | return resultobj; |
11224 | fail: |
11225 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11226 | return NULL__null; |
11227 | } |
11228 | |
11229 | |
11230 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube_save(PyObject *self, PyObject *args) { |
11231 | int argc; |
11232 | PyObject *argv[4]; |
11233 | int ii; |
11234 | |
11235 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11236 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11237 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
11238 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11239 | } |
11240 | if (argc == 2) { |
11241 | int _v; |
11242 | void *vptr = 0; |
11243 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATLtCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17 ], 0, 0); |
11244 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11245 | if (_v) { |
11246 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
11247 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11248 | if (_v) { |
11249 | return _wrap_GLATLtCube_save__SWIG_1(self, args); |
11250 | } |
11251 | } |
11252 | } |
11253 | if (argc == 3) { |
11254 | int _v; |
11255 | void *vptr = 0; |
11256 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATLtCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[17 ], 0, 0); |
11257 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11258 | if (_v) { |
11259 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
11260 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11261 | if (_v) { |
11262 | { |
11263 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
11264 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11265 | } |
11266 | if (_v) { |
11267 | return _wrap_GLATLtCube_save__SWIG_0(self, args); |
11268 | } |
11269 | } |
11270 | } |
11271 | } |
11272 | |
11273 | fail: |
11274 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATLtCube_save'.\n" |
11275 | " Possible C/C++ prototypes are:\n" |
11276 | " GLATLtCube::save(std::string const &,bool) const\n" |
11277 | " GLATLtCube::save(std::string const &) const\n"); |
11278 | return 0; |
11279 | } |
11280 | |
11281 | |
11282 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATLtCube_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11283 | PyObject *resultobj = 0; |
11284 | GLATLtCube *arg1 = (GLATLtCube *) 0 ; |
11285 | void *argp1 = 0 ; |
11286 | int res1 = 0 ; |
11287 | PyObject * obj0 = 0 ; |
11288 | GLATLtCube result; |
11289 | |
11290 | if (!PyArg_ParseTuple(args,(char *)"O:GLATLtCube_copy",&obj0)) SWIG_failgoto fail; |
11291 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
11292 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATLtCube_copy" "', argument " "1"" of type '" "GLATLtCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATLtCube_copy" "', argument " "1"" of type '" "GLATLtCube *""'"); goto fail; } while(0); |
11294 | } |
11295 | arg1 = reinterpret_cast< GLATLtCube * >(argp1); |
11296 | { |
11297 | try { |
11298 | result = GLATLtCube_copy(arg1); |
11299 | } |
11300 | catch (const GException::out_of_range& e) { |
11301 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11302 | } |
11303 | catch (const GExceptionHandler& e) { |
11304 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11305 | } |
11306 | catch (const std::exception& e) { |
11307 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11308 | } |
11309 | } |
11310 | resultobj = SWIG_NewPointerObj((new GLATLtCube(static_cast< const GLATLtCube& >(result))), SWIGTYPE_p_GLATLtCube, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATLtCube(static_cast < const GLATLtCube& >(result))), swig_types[17], 0x1 | 0); |
11311 | return resultobj; |
11312 | fail: |
11313 | return NULL__null; |
11314 | } |
11315 | |
11316 | |
11317 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATLtCube_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11318 | PyObject *obj; |
11319 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
11320 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATLtCubeswig_types[17], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
11321 | return SWIG_Py_Void(); |
11322 | } |
11323 | |
11324 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATMeanPsf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11325 | PyObject *resultobj = 0; |
11326 | GLATMeanPsf *result = 0 ; |
11327 | |
11328 | if (!PyArg_ParseTuple(args,(char *)":new_GLATMeanPsf")) SWIG_failgoto fail; |
11329 | { |
11330 | try { |
11331 | result = (GLATMeanPsf *)new GLATMeanPsf(); |
11332 | } |
11333 | catch (const GException::out_of_range& e) { |
11334 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11335 | } |
11336 | catch (const GExceptionHandler& e) { |
11337 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11338 | } |
11339 | catch (const std::exception& e) { |
11340 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11341 | } |
11342 | } |
11343 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATMeanPsf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], ( (0x1 << 1) | 0x1) | 0); |
11344 | return resultobj; |
11345 | fail: |
11346 | return NULL__null; |
11347 | } |
11348 | |
11349 | |
11350 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATMeanPsf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11351 | PyObject *resultobj = 0; |
11352 | GSkyDir *arg1 = 0 ; |
11353 | GLATObservation *arg2 = 0 ; |
11354 | void *argp1 = 0 ; |
11355 | int res1 = 0 ; |
11356 | void *argp2 = 0 ; |
11357 | int res2 = 0 ; |
11358 | PyObject * obj0 = 0 ; |
11359 | PyObject * obj1 = 0 ; |
11360 | GLATMeanPsf *result = 0 ; |
11361 | |
11362 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GLATMeanPsf",&obj0,&obj1)) SWIG_failgoto fail; |
11363 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28] , 0 | 0, 0); |
11364 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
11366 | } |
11367 | if (!argp1) { |
11368 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
11369 | } |
11370 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
11371 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLATObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[19] , 0 | 0, 0); |
11372 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11373 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GLATMeanPsf" "', argument " "2"" of type '" "GLATObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GLATMeanPsf" "', argument " "2"" of type '" "GLATObservation const &""'"); goto fail ; } while(0); |
11374 | } |
11375 | if (!argp2) { |
11376 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATMeanPsf" "', argument " "2"" of type '" "GLATObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATMeanPsf" "', argument " "2"" of type '" "GLATObservation const &""'"); goto fail; } while(0); |
11377 | } |
11378 | arg2 = reinterpret_cast< GLATObservation * >(argp2); |
11379 | { |
11380 | try { |
11381 | result = (GLATMeanPsf *)new GLATMeanPsf((GSkyDir const &)*arg1,(GLATObservation const &)*arg2); |
11382 | } |
11383 | catch (const GException::out_of_range& e) { |
11384 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11385 | } |
11386 | catch (const GExceptionHandler& e) { |
11387 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11388 | } |
11389 | catch (const std::exception& e) { |
11390 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11391 | } |
11392 | } |
11393 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATMeanPsf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], ( (0x1 << 1) | 0x1) | 0); |
11394 | return resultobj; |
11395 | fail: |
11396 | return NULL__null; |
11397 | } |
11398 | |
11399 | |
11400 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATMeanPsf__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11401 | PyObject *resultobj = 0; |
11402 | GLATMeanPsf *arg1 = 0 ; |
11403 | void *argp1 = 0 ; |
11404 | int res1 = 0 ; |
11405 | PyObject * obj0 = 0 ; |
11406 | GLATMeanPsf *result = 0 ; |
11407 | |
11408 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATMeanPsf",&obj0)) SWIG_failgoto fail; |
11409 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATMeanPsf, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11410 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11411 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GLATMeanPsf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GLATMeanPsf const &""'"); goto fail; } while (0); |
11412 | } |
11413 | if (!argp1) { |
11414 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GLATMeanPsf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATMeanPsf" "', argument " "1"" of type '" "GLATMeanPsf const &""'"); goto fail; } while(0); |
11415 | } |
11416 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11417 | { |
11418 | try { |
11419 | result = (GLATMeanPsf *)new GLATMeanPsf((GLATMeanPsf const &)*arg1); |
11420 | } |
11421 | catch (const GException::out_of_range& e) { |
11422 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11423 | } |
11424 | catch (const GExceptionHandler& e) { |
11425 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11426 | } |
11427 | catch (const std::exception& e) { |
11428 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11429 | } |
11430 | } |
11431 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATMeanPsf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], ( (0x1 << 1) | 0x1) | 0); |
11432 | return resultobj; |
11433 | fail: |
11434 | return NULL__null; |
11435 | } |
11436 | |
11437 | |
11438 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATMeanPsf(PyObject *self, PyObject *args) { |
11439 | int argc; |
11440 | PyObject *argv[3]; |
11441 | int ii; |
11442 | |
11443 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11444 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11445 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11446 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11447 | } |
11448 | if (argc == 0) { |
11449 | return _wrap_new_GLATMeanPsf__SWIG_0(self, args); |
11450 | } |
11451 | if (argc == 1) { |
11452 | int _v; |
11453 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATMeanPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[18], 0, 0 ); |
11454 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11455 | if (_v) { |
11456 | return _wrap_new_GLATMeanPsf__SWIG_2(self, args); |
11457 | } |
11458 | } |
11459 | if (argc == 2) { |
11460 | int _v; |
11461 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[28], 0, 0 ); |
11462 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11463 | if (_v) { |
11464 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLATObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[19], 0, 0 ); |
11465 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11466 | if (_v) { |
11467 | return _wrap_new_GLATMeanPsf__SWIG_1(self, args); |
11468 | } |
11469 | } |
11470 | } |
11471 | |
11472 | fail: |
11473 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATMeanPsf'.\n" |
11474 | " Possible C/C++ prototypes are:\n" |
11475 | " GLATMeanPsf::GLATMeanPsf()\n" |
11476 | " GLATMeanPsf::GLATMeanPsf(GSkyDir const &,GLATObservation const &)\n" |
11477 | " GLATMeanPsf::GLATMeanPsf(GLATMeanPsf const &)\n"); |
11478 | return 0; |
11479 | } |
11480 | |
11481 | |
11482 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATMeanPsf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11483 | PyObject *resultobj = 0; |
11484 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11485 | void *argp1 = 0 ; |
11486 | int res1 = 0 ; |
11487 | PyObject * obj0 = 0 ; |
11488 | |
11489 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATMeanPsf",&obj0)) SWIG_failgoto fail; |
11490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0x1 | 0, 0); |
11491 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATMeanPsf" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATMeanPsf" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
11493 | } |
11494 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11495 | { |
11496 | try { |
11497 | delete arg1; |
11498 | } |
11499 | catch (const GException::out_of_range& e) { |
11500 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11501 | } |
11502 | catch (const GExceptionHandler& e) { |
11503 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11504 | } |
11505 | catch (const std::exception& e) { |
11506 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11507 | } |
11508 | } |
11509 | resultobj = SWIG_Py_Void(); |
11510 | return resultobj; |
11511 | fail: |
11512 | return NULL__null; |
11513 | } |
11514 | |
11515 | |
11516 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11517 | PyObject *resultobj = 0; |
11518 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11519 | double *arg2 = 0 ; |
11520 | double *arg3 = 0 ; |
11521 | void *argp1 = 0 ; |
11522 | int res1 = 0 ; |
11523 | double temp2 ; |
11524 | double val2 ; |
11525 | int ecode2 = 0 ; |
11526 | double temp3 ; |
11527 | double val3 ; |
11528 | int ecode3 = 0 ; |
11529 | PyObject * obj0 = 0 ; |
11530 | PyObject * obj1 = 0 ; |
11531 | PyObject * obj2 = 0 ; |
11532 | double result; |
11533 | |
11534 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATMeanPsf___call__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
11535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11536 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf___call__" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf___call__" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
11538 | } |
11539 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11540 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
11541 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11542 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATMeanPsf___call__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATMeanPsf___call__" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
11543 | } |
11544 | temp2 = static_cast< double >(val2); |
11545 | arg2 = &temp2; |
11546 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
11547 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
11548 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATMeanPsf___call__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATMeanPsf___call__" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
11549 | } |
11550 | temp3 = static_cast< double >(val3); |
11551 | arg3 = &temp3; |
11552 | { |
11553 | try { |
11554 | result = (double)(arg1)->operator ()((double const &)*arg2,(double const &)*arg3); |
11555 | } |
11556 | catch (const GException::out_of_range& e) { |
11557 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11558 | } |
11559 | catch (const GExceptionHandler& e) { |
11560 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11561 | } |
11562 | catch (const std::exception& e) { |
11563 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11564 | } |
11565 | } |
11566 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
11567 | return resultobj; |
11568 | fail: |
11569 | return NULL__null; |
11570 | } |
11571 | |
11572 | |
11573 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11574 | PyObject *resultobj = 0; |
11575 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11576 | void *argp1 = 0 ; |
11577 | int res1 = 0 ; |
11578 | PyObject * obj0 = 0 ; |
11579 | |
11580 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_clear",&obj0)) SWIG_failgoto fail; |
11581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11582 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_clear" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_clear" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
11584 | } |
11585 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11586 | { |
11587 | try { |
11588 | (arg1)->clear(); |
11589 | } |
11590 | catch (const GException::out_of_range& e) { |
11591 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11592 | } |
11593 | catch (const GExceptionHandler& e) { |
11594 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11595 | } |
11596 | catch (const std::exception& e) { |
11597 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11598 | } |
11599 | } |
11600 | resultobj = SWIG_Py_Void(); |
11601 | return resultobj; |
11602 | fail: |
11603 | return NULL__null; |
11604 | } |
11605 | |
11606 | |
11607 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11608 | PyObject *resultobj = 0; |
11609 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11610 | void *argp1 = 0 ; |
11611 | int res1 = 0 ; |
11612 | PyObject * obj0 = 0 ; |
11613 | GLATMeanPsf *result = 0 ; |
11614 | |
11615 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_clone",&obj0)) SWIG_failgoto fail; |
11616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11617 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_clone" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_clone" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11619 | } |
11620 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11621 | { |
11622 | try { |
11623 | result = (GLATMeanPsf *)((GLATMeanPsf const *)arg1)->clone(); |
11624 | } |
11625 | catch (const GException::out_of_range& e) { |
11626 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11627 | } |
11628 | catch (const GExceptionHandler& e) { |
11629 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11630 | } |
11631 | catch (const std::exception& e) { |
11632 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11633 | } |
11634 | } |
11635 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], 0 | 0); |
11636 | return resultobj; |
11637 | fail: |
11638 | return NULL__null; |
11639 | } |
11640 | |
11641 | |
11642 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11643 | PyObject *resultobj = 0; |
11644 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11645 | void *argp1 = 0 ; |
11646 | int res1 = 0 ; |
11647 | PyObject * obj0 = 0 ; |
11648 | int result; |
11649 | |
11650 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_size",&obj0)) SWIG_failgoto fail; |
11651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11652 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_size" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_size" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11654 | } |
11655 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11656 | { |
11657 | try { |
11658 | result = (int)((GLATMeanPsf const *)arg1)->size(); |
11659 | } |
11660 | catch (const GException::out_of_range& e) { |
11661 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11662 | } |
11663 | catch (const GExceptionHandler& e) { |
11664 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11665 | } |
11666 | catch (const std::exception& e) { |
11667 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11668 | } |
11669 | } |
11670 | resultobj = SWIG_From_int(static_cast< int >(result)); |
11671 | return resultobj; |
11672 | fail: |
11673 | return NULL__null; |
11674 | } |
11675 | |
11676 | |
11677 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11678 | PyObject *resultobj = 0; |
11679 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11680 | GSkyDir *arg2 = 0 ; |
11681 | GLATObservation *arg3 = 0 ; |
11682 | void *argp1 = 0 ; |
11683 | int res1 = 0 ; |
11684 | void *argp2 = 0 ; |
11685 | int res2 = 0 ; |
11686 | void *argp3 = 0 ; |
11687 | int res3 = 0 ; |
11688 | PyObject * obj0 = 0 ; |
11689 | PyObject * obj1 = 0 ; |
11690 | PyObject * obj2 = 0 ; |
11691 | |
11692 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATMeanPsf_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
11693 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11694 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11695 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_set" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_set" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
11696 | } |
11697 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11698 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28] , 0 | 0, 0); |
11699 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11700 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATMeanPsf_set" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATMeanPsf_set" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
11701 | } |
11702 | if (!argp2) { |
11703 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATMeanPsf_set" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATMeanPsf_set" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
11704 | } |
11705 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
11706 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GLATObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[19] , 0 | 0, 0); |
11707 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
11708 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATMeanPsf_set" "', argument " "3"" of type '" "GLATObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATMeanPsf_set" "', argument " "3"" of type '" "GLATObservation const &""'"); goto fail ; } while(0); |
11709 | } |
11710 | if (!argp3) { |
11711 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATMeanPsf_set" "', argument " "3"" of type '" "GLATObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATMeanPsf_set" "', argument " "3"" of type '" "GLATObservation const &""'"); goto fail; } while(0); |
11712 | } |
11713 | arg3 = reinterpret_cast< GLATObservation * >(argp3); |
11714 | { |
11715 | try { |
11716 | (arg1)->set((GSkyDir const &)*arg2,(GLATObservation const &)*arg3); |
11717 | } |
11718 | catch (const GException::out_of_range& e) { |
11719 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11720 | } |
11721 | catch (const GExceptionHandler& e) { |
11722 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11723 | } |
11724 | catch (const std::exception& e) { |
11725 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11726 | } |
11727 | } |
11728 | resultobj = SWIG_Py_Void(); |
11729 | return resultobj; |
11730 | fail: |
11731 | return NULL__null; |
11732 | } |
11733 | |
11734 | |
11735 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_noffsets(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11736 | PyObject *resultobj = 0; |
11737 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11738 | void *argp1 = 0 ; |
11739 | int res1 = 0 ; |
11740 | PyObject * obj0 = 0 ; |
11741 | int result; |
11742 | |
11743 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_noffsets",&obj0)) SWIG_failgoto fail; |
11744 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11745 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_noffsets" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_noffsets" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11747 | } |
11748 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11749 | { |
11750 | try { |
11751 | result = (int)((GLATMeanPsf const *)arg1)->noffsets(); |
11752 | } |
11753 | catch (const GException::out_of_range& e) { |
11754 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11755 | } |
11756 | catch (const GExceptionHandler& e) { |
11757 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11758 | } |
11759 | catch (const std::exception& e) { |
11760 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11761 | } |
11762 | } |
11763 | resultobj = SWIG_From_int(static_cast< int >(result)); |
11764 | return resultobj; |
11765 | fail: |
11766 | return NULL__null; |
11767 | } |
11768 | |
11769 | |
11770 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_nenergies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11771 | PyObject *resultobj = 0; |
11772 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11773 | void *argp1 = 0 ; |
11774 | int res1 = 0 ; |
11775 | PyObject * obj0 = 0 ; |
11776 | int result; |
11777 | |
11778 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_nenergies",&obj0)) SWIG_failgoto fail; |
11779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11780 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_nenergies" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_nenergies" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11782 | } |
11783 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11784 | { |
11785 | try { |
11786 | result = (int)((GLATMeanPsf const *)arg1)->nenergies(); |
11787 | } |
11788 | catch (const GException::out_of_range& e) { |
11789 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11790 | } |
11791 | catch (const GExceptionHandler& e) { |
11792 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11793 | } |
11794 | catch (const std::exception& e) { |
11795 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11796 | } |
11797 | } |
11798 | resultobj = SWIG_From_int(static_cast< int >(result)); |
11799 | return resultobj; |
11800 | fail: |
11801 | return NULL__null; |
11802 | } |
11803 | |
11804 | |
11805 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11806 | PyObject *resultobj = 0; |
11807 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11808 | int *arg2 = 0 ; |
11809 | void *argp1 = 0 ; |
11810 | int res1 = 0 ; |
11811 | int temp2 ; |
11812 | int val2 ; |
11813 | int ecode2 = 0 ; |
11814 | PyObject * obj0 = 0 ; |
11815 | PyObject * obj1 = 0 ; |
11816 | double *result = 0 ; |
11817 | |
11818 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATMeanPsf_offset",&obj0,&obj1)) SWIG_failgoto fail; |
11819 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11820 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11821 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_offset" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_offset" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11822 | } |
11823 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11824 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
11825 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11826 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATMeanPsf_offset" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATMeanPsf_offset" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
11827 | } |
11828 | temp2 = static_cast< int >(val2); |
11829 | arg2 = &temp2; |
11830 | { |
11831 | try { |
11832 | result = (double *) &((GLATMeanPsf const *)arg1)->offset((int const &)*arg2); |
11833 | } |
11834 | catch (const GException::out_of_range& e) { |
11835 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11836 | } |
11837 | catch (const GExceptionHandler& e) { |
11838 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11839 | } |
11840 | catch (const std::exception& e) { |
11841 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11842 | } |
11843 | } |
11844 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
11845 | return resultobj; |
11846 | fail: |
11847 | return NULL__null; |
11848 | } |
11849 | |
11850 | |
11851 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11852 | PyObject *resultobj = 0; |
11853 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11854 | int *arg2 = 0 ; |
11855 | void *argp1 = 0 ; |
11856 | int res1 = 0 ; |
11857 | int temp2 ; |
11858 | int val2 ; |
11859 | int ecode2 = 0 ; |
11860 | PyObject * obj0 = 0 ; |
11861 | PyObject * obj1 = 0 ; |
11862 | double *result = 0 ; |
11863 | |
11864 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATMeanPsf_energy",&obj0,&obj1)) SWIG_failgoto fail; |
11865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11866 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_energy" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_energy" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11868 | } |
11869 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11870 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
11871 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11872 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATMeanPsf_energy" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATMeanPsf_energy" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
11873 | } |
11874 | temp2 = static_cast< int >(val2); |
11875 | arg2 = &temp2; |
11876 | { |
11877 | try { |
11878 | result = (double *) &((GLATMeanPsf const *)arg1)->energy((int const &)*arg2); |
11879 | } |
11880 | catch (const GException::out_of_range& e) { |
11881 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11882 | } |
11883 | catch (const GExceptionHandler& e) { |
11884 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11885 | } |
11886 | catch (const std::exception& e) { |
11887 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11888 | } |
11889 | } |
11890 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
11891 | return resultobj; |
11892 | fail: |
11893 | return NULL__null; |
11894 | } |
11895 | |
11896 | |
11897 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11898 | PyObject *resultobj = 0; |
11899 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11900 | void *argp1 = 0 ; |
11901 | int res1 = 0 ; |
11902 | PyObject * obj0 = 0 ; |
11903 | GSkyDir *result = 0 ; |
11904 | |
11905 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_dir",&obj0)) SWIG_failgoto fail; |
11906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11907 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_dir" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_dir" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11909 | } |
11910 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11911 | { |
11912 | try { |
11913 | result = (GSkyDir *) &((GLATMeanPsf const *)arg1)->dir(); |
11914 | } |
11915 | catch (const GException::out_of_range& e) { |
11916 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11917 | } |
11918 | catch (const GExceptionHandler& e) { |
11919 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11920 | } |
11921 | catch (const std::exception& e) { |
11922 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11923 | } |
11924 | } |
11925 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[28], 0 | 0); |
11926 | return resultobj; |
11927 | fail: |
11928 | return NULL__null; |
11929 | } |
11930 | |
11931 | |
11932 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11933 | PyObject *resultobj = 0; |
11934 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11935 | void *argp1 = 0 ; |
11936 | int res1 = 0 ; |
11937 | PyObject * obj0 = 0 ; |
11938 | std::string *result = 0 ; |
11939 | |
11940 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_name",&obj0)) SWIG_failgoto fail; |
11941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11942 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_name" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_name" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
11944 | } |
11945 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11946 | { |
11947 | try { |
11948 | result = (std::string *) &((GLATMeanPsf const *)arg1)->name(); |
11949 | } |
11950 | catch (const GException::out_of_range& e) { |
11951 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11952 | } |
11953 | catch (const GExceptionHandler& e) { |
11954 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11955 | } |
11956 | catch (const std::exception& e) { |
11957 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11958 | } |
11959 | } |
11960 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
11961 | return resultobj; |
11962 | fail: |
11963 | return NULL__null; |
11964 | } |
11965 | |
11966 | |
11967 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11968 | PyObject *resultobj = 0; |
11969 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
11970 | std::string *arg2 = 0 ; |
11971 | void *argp1 = 0 ; |
11972 | int res1 = 0 ; |
11973 | int res2 = SWIG_OLDOBJ((0)) ; |
11974 | PyObject * obj0 = 0 ; |
11975 | PyObject * obj1 = 0 ; |
11976 | |
11977 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATMeanPsf_name",&obj0,&obj1)) SWIG_failgoto fail; |
11978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
11979 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_name" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_name" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
11981 | } |
11982 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
11983 | { |
11984 | std::string *ptr = (std::string *)0; |
11985 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
11986 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11987 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATMeanPsf_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATMeanPsf_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
11988 | } |
11989 | if (!ptr) { |
11990 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATMeanPsf_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATMeanPsf_name" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
11991 | } |
11992 | arg2 = ptr; |
11993 | } |
11994 | { |
11995 | try { |
11996 | (arg1)->name((std::string const &)*arg2); |
11997 | } |
11998 | catch (const GException::out_of_range& e) { |
11999 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12000 | } |
12001 | catch (const GExceptionHandler& e) { |
12002 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12003 | } |
12004 | catch (const std::exception& e) { |
12005 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12006 | } |
12007 | } |
12008 | resultobj = SWIG_Py_Void(); |
12009 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12010 | return resultobj; |
12011 | fail: |
12012 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12013 | return NULL__null; |
12014 | } |
12015 | |
12016 | |
12017 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_name(PyObject *self, PyObject *args) { |
12018 | int argc; |
12019 | PyObject *argv[3]; |
12020 | int ii; |
12021 | |
12022 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
12023 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
12024 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
12025 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
12026 | } |
12027 | if (argc == 1) { |
12028 | int _v; |
12029 | void *vptr = 0; |
12030 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATMeanPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18 ], 0, 0); |
12031 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12032 | if (_v) { |
12033 | return _wrap_GLATMeanPsf_name__SWIG_0(self, args); |
12034 | } |
12035 | } |
12036 | if (argc == 2) { |
12037 | int _v; |
12038 | void *vptr = 0; |
12039 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATMeanPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18 ], 0, 0); |
12040 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12041 | if (_v) { |
12042 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
12043 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12044 | if (_v) { |
12045 | return _wrap_GLATMeanPsf_name__SWIG_1(self, args); |
12046 | } |
12047 | } |
12048 | } |
12049 | |
12050 | fail: |
12051 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATMeanPsf_name'.\n" |
12052 | " Possible C/C++ prototypes are:\n" |
12053 | " GLATMeanPsf::name() const\n" |
12054 | " GLATMeanPsf::name(std::string const &)\n"); |
12055 | return 0; |
12056 | } |
12057 | |
12058 | |
12059 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_thetamax__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12060 | PyObject *resultobj = 0; |
12061 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
12062 | void *argp1 = 0 ; |
12063 | int res1 = 0 ; |
12064 | PyObject * obj0 = 0 ; |
12065 | double *result = 0 ; |
12066 | |
12067 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_thetamax",&obj0)) SWIG_failgoto fail; |
12068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
12069 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_thetamax" "', argument " "1"" of type '" "GLATMeanPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_thetamax" "', argument " "1"" of type '" "GLATMeanPsf const *""'"); goto fail; } while (0); |
12071 | } |
12072 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
12073 | { |
12074 | try { |
12075 | result = (double *) &((GLATMeanPsf const *)arg1)->thetamax(); |
12076 | } |
12077 | catch (const GException::out_of_range& e) { |
12078 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12079 | } |
12080 | catch (const GExceptionHandler& e) { |
12081 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12082 | } |
12083 | catch (const std::exception& e) { |
12084 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12085 | } |
12086 | } |
12087 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
12088 | return resultobj; |
12089 | fail: |
12090 | return NULL__null; |
12091 | } |
12092 | |
12093 | |
12094 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_thetamax__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12095 | PyObject *resultobj = 0; |
12096 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
12097 | double *arg2 = 0 ; |
12098 | void *argp1 = 0 ; |
12099 | int res1 = 0 ; |
12100 | double temp2 ; |
12101 | double val2 ; |
12102 | int ecode2 = 0 ; |
12103 | PyObject * obj0 = 0 ; |
12104 | PyObject * obj1 = 0 ; |
12105 | |
12106 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATMeanPsf_thetamax",&obj0,&obj1)) SWIG_failgoto fail; |
12107 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
12108 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_thetamax" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_thetamax" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
12110 | } |
12111 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
12112 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
12113 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
12114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATMeanPsf_thetamax" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATMeanPsf_thetamax" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
12115 | } |
12116 | temp2 = static_cast< double >(val2); |
12117 | arg2 = &temp2; |
12118 | { |
12119 | try { |
12120 | (arg1)->thetamax((double const &)*arg2); |
12121 | } |
12122 | catch (const GException::out_of_range& e) { |
12123 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12124 | } |
12125 | catch (const GExceptionHandler& e) { |
12126 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12127 | } |
12128 | catch (const std::exception& e) { |
12129 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12130 | } |
12131 | } |
12132 | resultobj = SWIG_Py_Void(); |
12133 | return resultobj; |
12134 | fail: |
12135 | return NULL__null; |
12136 | } |
12137 | |
12138 | |
12139 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_thetamax(PyObject *self, PyObject *args) { |
12140 | int argc; |
12141 | PyObject *argv[3]; |
12142 | int ii; |
12143 | |
12144 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
12145 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
12146 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
12147 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
12148 | } |
12149 | if (argc == 1) { |
12150 | int _v; |
12151 | void *vptr = 0; |
12152 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATMeanPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18 ], 0, 0); |
12153 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12154 | if (_v) { |
12155 | return _wrap_GLATMeanPsf_thetamax__SWIG_0(self, args); |
12156 | } |
12157 | } |
12158 | if (argc == 2) { |
12159 | int _v; |
12160 | void *vptr = 0; |
12161 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATMeanPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18 ], 0, 0); |
12162 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12163 | if (_v) { |
12164 | { |
12165 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
12166 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12167 | } |
12168 | if (_v) { |
12169 | return _wrap_GLATMeanPsf_thetamax__SWIG_1(self, args); |
12170 | } |
12171 | } |
12172 | } |
12173 | |
12174 | fail: |
12175 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATMeanPsf_thetamax'.\n" |
12176 | " Possible C/C++ prototypes are:\n" |
12177 | " GLATMeanPsf::thetamax() const\n" |
12178 | " GLATMeanPsf::thetamax(double const &)\n"); |
12179 | return 0; |
12180 | } |
12181 | |
12182 | |
12183 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_psf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12184 | PyObject *resultobj = 0; |
12185 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
12186 | double *arg2 = 0 ; |
12187 | double *arg3 = 0 ; |
12188 | void *argp1 = 0 ; |
12189 | int res1 = 0 ; |
12190 | double temp2 ; |
12191 | double val2 ; |
12192 | int ecode2 = 0 ; |
12193 | double temp3 ; |
12194 | double val3 ; |
12195 | int ecode3 = 0 ; |
12196 | PyObject * obj0 = 0 ; |
12197 | PyObject * obj1 = 0 ; |
12198 | PyObject * obj2 = 0 ; |
12199 | double result; |
12200 | |
12201 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATMeanPsf_psf",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
12202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
12203 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_psf" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_psf" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
12205 | } |
12206 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
12207 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
12208 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
12209 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATMeanPsf_psf" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATMeanPsf_psf" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
12210 | } |
12211 | temp2 = static_cast< double >(val2); |
12212 | arg2 = &temp2; |
12213 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
12214 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
12215 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATMeanPsf_psf" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATMeanPsf_psf" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
12216 | } |
12217 | temp3 = static_cast< double >(val3); |
12218 | arg3 = &temp3; |
12219 | { |
12220 | try { |
12221 | result = (double)(arg1)->psf((double const &)*arg2,(double const &)*arg3); |
12222 | } |
12223 | catch (const GException::out_of_range& e) { |
12224 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12225 | } |
12226 | catch (const GExceptionHandler& e) { |
12227 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12228 | } |
12229 | catch (const std::exception& e) { |
12230 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12231 | } |
12232 | } |
12233 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
12234 | return resultobj; |
12235 | fail: |
12236 | return NULL__null; |
12237 | } |
12238 | |
12239 | |
12240 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_exposure(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12241 | PyObject *resultobj = 0; |
12242 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
12243 | double *arg2 = 0 ; |
12244 | void *argp1 = 0 ; |
12245 | int res1 = 0 ; |
12246 | double temp2 ; |
12247 | double val2 ; |
12248 | int ecode2 = 0 ; |
12249 | PyObject * obj0 = 0 ; |
12250 | PyObject * obj1 = 0 ; |
12251 | double result; |
12252 | |
12253 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATMeanPsf_exposure",&obj0,&obj1)) SWIG_failgoto fail; |
12254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
12255 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_exposure" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_exposure" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
12257 | } |
12258 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
12259 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
12260 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
12261 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATMeanPsf_exposure" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATMeanPsf_exposure" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
12262 | } |
12263 | temp2 = static_cast< double >(val2); |
12264 | arg2 = &temp2; |
12265 | { |
12266 | try { |
12267 | result = (double)(arg1)->exposure((double const &)*arg2); |
12268 | } |
12269 | catch (const GException::out_of_range& e) { |
12270 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12271 | } |
12272 | catch (const GExceptionHandler& e) { |
12273 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12274 | } |
12275 | catch (const std::exception& e) { |
12276 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12277 | } |
12278 | } |
12279 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
12280 | return resultobj; |
12281 | fail: |
12282 | return NULL__null; |
12283 | } |
12284 | |
12285 | |
12286 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATMeanPsf_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12287 | PyObject *resultobj = 0; |
12288 | GLATMeanPsf *arg1 = (GLATMeanPsf *) 0 ; |
12289 | void *argp1 = 0 ; |
12290 | int res1 = 0 ; |
12291 | PyObject * obj0 = 0 ; |
12292 | GLATMeanPsf result; |
12293 | |
12294 | if (!PyArg_ParseTuple(args,(char *)"O:GLATMeanPsf_copy",&obj0)) SWIG_failgoto fail; |
12295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATMeanPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
12296 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATMeanPsf_copy" "', argument " "1"" of type '" "GLATMeanPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATMeanPsf_copy" "', argument " "1"" of type '" "GLATMeanPsf *""'"); goto fail; } while(0); |
12298 | } |
12299 | arg1 = reinterpret_cast< GLATMeanPsf * >(argp1); |
12300 | { |
12301 | try { |
12302 | result = GLATMeanPsf_copy(arg1); |
12303 | } |
12304 | catch (const GException::out_of_range& e) { |
12305 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12306 | } |
12307 | catch (const GExceptionHandler& e) { |
12308 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12309 | } |
12310 | catch (const std::exception& e) { |
12311 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12312 | } |
12313 | } |
12314 | resultobj = SWIG_NewPointerObj((new GLATMeanPsf(static_cast< const GLATMeanPsf& >(result))), SWIGTYPE_p_GLATMeanPsf, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATMeanPsf(static_cast < const GLATMeanPsf& >(result))), swig_types[18], 0x1 | 0); |
12315 | return resultobj; |
12316 | fail: |
12317 | return NULL__null; |
12318 | } |
12319 | |
12320 | |
12321 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATMeanPsf_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12322 | PyObject *obj; |
12323 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
12324 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATMeanPsfswig_types[18], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
12325 | return SWIG_Py_Void(); |
12326 | } |
12327 | |
12328 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATObservation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12329 | PyObject *resultobj = 0; |
12330 | GLATObservation *result = 0 ; |
12331 | |
12332 | if (!PyArg_ParseTuple(args,(char *)":new_GLATObservation")) SWIG_failgoto fail; |
12333 | { |
12334 | try { |
12335 | result = (GLATObservation *)new GLATObservation(); |
12336 | } |
12337 | catch (const GException::out_of_range& e) { |
12338 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12339 | } |
12340 | catch (const GExceptionHandler& e) { |
12341 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12342 | } |
12343 | catch (const std::exception& e) { |
12344 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12345 | } |
12346 | } |
12347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[19], ( (0x1 << 1) | 0x1) | 0); |
12348 | return resultobj; |
12349 | fail: |
12350 | return NULL__null; |
12351 | } |
12352 | |
12353 | |
12354 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATObservation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12355 | PyObject *resultobj = 0; |
12356 | GLATObservation *arg1 = 0 ; |
12357 | void *argp1 = 0 ; |
12358 | int res1 = 0 ; |
12359 | PyObject * obj0 = 0 ; |
12360 | GLATObservation *result = 0 ; |
12361 | |
12362 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATObservation",&obj0)) SWIG_failgoto fail; |
12363 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12364 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATObservation" "', argument " "1"" of type '" "GLATObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATObservation" "', argument " "1"" of type '" "GLATObservation const &""'"); goto fail ; } while(0); |
12366 | } |
12367 | if (!argp1) { |
12368 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATObservation" "', argument " "1"" of type '" "GLATObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATObservation" "', argument " "1"" of type '" "GLATObservation const &""'"); goto fail; } while(0); |
12369 | } |
12370 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12371 | { |
12372 | try { |
12373 | result = (GLATObservation *)new GLATObservation((GLATObservation const &)*arg1); |
12374 | } |
12375 | catch (const GException::out_of_range& e) { |
12376 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12377 | } |
12378 | catch (const GExceptionHandler& e) { |
12379 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12380 | } |
12381 | catch (const std::exception& e) { |
12382 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12383 | } |
12384 | } |
12385 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[19], ( (0x1 << 1) | 0x1) | 0); |
12386 | return resultobj; |
12387 | fail: |
12388 | return NULL__null; |
12389 | } |
12390 | |
12391 | |
12392 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATObservation(PyObject *self, PyObject *args) { |
12393 | int argc; |
12394 | PyObject *argv[2]; |
12395 | int ii; |
12396 | |
12397 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
12398 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
12399 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
12400 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
12401 | } |
12402 | if (argc == 0) { |
12403 | return _wrap_new_GLATObservation__SWIG_0(self, args); |
12404 | } |
12405 | if (argc == 1) { |
12406 | int _v; |
12407 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[19], 0, 0 ); |
12408 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12409 | if (_v) { |
12410 | return _wrap_new_GLATObservation__SWIG_1(self, args); |
12411 | } |
12412 | } |
12413 | |
12414 | fail: |
12415 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATObservation'.\n" |
12416 | " Possible C/C++ prototypes are:\n" |
12417 | " GLATObservation::GLATObservation()\n" |
12418 | " GLATObservation::GLATObservation(GLATObservation const &)\n"); |
12419 | return 0; |
12420 | } |
12421 | |
12422 | |
12423 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATObservation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12424 | PyObject *resultobj = 0; |
12425 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12426 | void *argp1 = 0 ; |
12427 | int res1 = 0 ; |
12428 | PyObject * obj0 = 0 ; |
12429 | |
12430 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATObservation",&obj0)) SWIG_failgoto fail; |
12431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0x1 | 0, 0); |
12432 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATObservation" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATObservation" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while( 0); |
12434 | } |
12435 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12436 | { |
12437 | try { |
12438 | delete arg1; |
12439 | } |
12440 | catch (const GException::out_of_range& e) { |
12441 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12442 | } |
12443 | catch (const GExceptionHandler& e) { |
12444 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12445 | } |
12446 | catch (const std::exception& e) { |
12447 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12448 | } |
12449 | } |
12450 | resultobj = SWIG_Py_Void(); |
12451 | return resultobj; |
12452 | fail: |
12453 | return NULL__null; |
12454 | } |
12455 | |
12456 | |
12457 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12458 | PyObject *resultobj = 0; |
12459 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12460 | void *argp1 = 0 ; |
12461 | int res1 = 0 ; |
12462 | PyObject * obj0 = 0 ; |
12463 | |
12464 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_clear",&obj0)) SWIG_failgoto fail; |
12465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12466 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_clear" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_clear" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while( 0); |
12468 | } |
12469 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12470 | { |
12471 | try { |
12472 | (arg1)->clear(); |
12473 | } |
12474 | catch (const GException::out_of_range& e) { |
12475 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12476 | } |
12477 | catch (const GExceptionHandler& e) { |
12478 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12479 | } |
12480 | catch (const std::exception& e) { |
12481 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12482 | } |
12483 | } |
12484 | resultobj = SWIG_Py_Void(); |
12485 | return resultobj; |
12486 | fail: |
12487 | return NULL__null; |
12488 | } |
12489 | |
12490 | |
12491 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12492 | PyObject *resultobj = 0; |
12493 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12494 | void *argp1 = 0 ; |
12495 | int res1 = 0 ; |
12496 | PyObject * obj0 = 0 ; |
12497 | GLATObservation *result = 0 ; |
12498 | |
12499 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_clone",&obj0)) SWIG_failgoto fail; |
12500 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12501 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_clone" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_clone" "', argument " "1"" of type '" "GLATObservation const *""'"); goto fail; } while (0); |
12503 | } |
12504 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12505 | { |
12506 | try { |
12507 | result = (GLATObservation *)((GLATObservation const *)arg1)->clone(); |
12508 | } |
12509 | catch (const GException::out_of_range& e) { |
12510 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12511 | } |
12512 | catch (const GExceptionHandler& e) { |
12513 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12514 | } |
12515 | catch (const std::exception& e) { |
12516 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12517 | } |
12518 | } |
12519 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[19], 0 | 0); |
12520 | return resultobj; |
12521 | fail: |
12522 | return NULL__null; |
12523 | } |
12524 | |
12525 | |
12526 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_response__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12527 | PyObject *resultobj = 0; |
12528 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12529 | GResponse *arg2 = 0 ; |
12530 | void *argp1 = 0 ; |
12531 | int res1 = 0 ; |
12532 | void *argp2 = 0 ; |
12533 | int res2 = 0 ; |
12534 | PyObject * obj0 = 0 ; |
12535 | PyObject * obj1 = 0 ; |
12536 | |
12537 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATObservation_response",&obj0,&obj1)) SWIG_failgoto fail; |
12538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12539 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while( 0); |
12541 | } |
12542 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12543 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GResponse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[26] , 0 | 0, 0); |
12544 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_response" "', argument " "2"" of type '" "GResponse const &""'"); goto fail; } while (0); |
12546 | } |
12547 | if (!argp2) { |
12548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_response" "', argument " "2"" of type '" "GResponse const &""'"); goto fail; } while(0); |
12549 | } |
12550 | arg2 = reinterpret_cast< GResponse * >(argp2); |
12551 | { |
12552 | try { |
12553 | (arg1)->response((GResponse const &)*arg2); |
12554 | } |
12555 | catch (const GException::out_of_range& e) { |
12556 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12557 | } |
12558 | catch (const GExceptionHandler& e) { |
12559 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12560 | } |
12561 | catch (const std::exception& e) { |
12562 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12563 | } |
12564 | } |
12565 | resultobj = SWIG_Py_Void(); |
12566 | return resultobj; |
12567 | fail: |
12568 | return NULL__null; |
12569 | } |
12570 | |
12571 | |
12572 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_response__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12573 | PyObject *resultobj = 0; |
12574 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12575 | void *argp1 = 0 ; |
12576 | int res1 = 0 ; |
12577 | PyObject * obj0 = 0 ; |
12578 | GLATResponse *result = 0 ; |
12579 | |
12580 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_response",&obj0)) SWIG_failgoto fail; |
12581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12582 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation const *""'"); goto fail; } while (0); |
12584 | } |
12585 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12586 | { |
12587 | try { |
12588 | result = (GLATResponse *) &((GLATObservation const *)arg1)->response(); |
12589 | } |
12590 | catch (const GException::out_of_range& e) { |
12591 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12592 | } |
12593 | catch (const GExceptionHandler& e) { |
12594 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12595 | } |
12596 | catch (const std::exception& e) { |
12597 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12598 | } |
12599 | } |
12600 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], 0 | 0); |
12601 | return resultobj; |
12602 | fail: |
12603 | return NULL__null; |
12604 | } |
12605 | |
12606 | |
12607 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_instrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12608 | PyObject *resultobj = 0; |
12609 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12610 | void *argp1 = 0 ; |
12611 | int res1 = 0 ; |
12612 | PyObject * obj0 = 0 ; |
12613 | std::string result; |
12614 | |
12615 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_instrument",&obj0)) SWIG_failgoto fail; |
12616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12617 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_instrument" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_instrument" "', argument " "1"" of type '" "GLATObservation const *""'") ; goto fail; } while(0); |
12619 | } |
12620 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12621 | { |
12622 | try { |
12623 | result = ((GLATObservation const *)arg1)->instrument(); |
12624 | } |
12625 | catch (const GException::out_of_range& e) { |
12626 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12627 | } |
12628 | catch (const GExceptionHandler& e) { |
12629 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12630 | } |
12631 | catch (const std::exception& e) { |
12632 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12633 | } |
12634 | } |
12635 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
12636 | return resultobj; |
12637 | fail: |
12638 | return NULL__null; |
12639 | } |
12640 | |
12641 | |
12642 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_ontime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12643 | PyObject *resultobj = 0; |
12644 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12645 | void *argp1 = 0 ; |
12646 | int res1 = 0 ; |
12647 | PyObject * obj0 = 0 ; |
12648 | double result; |
12649 | |
12650 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_ontime",&obj0)) SWIG_failgoto fail; |
12651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12652 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_ontime" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_ontime" "', argument " "1"" of type '" "GLATObservation const *""'"); goto fail; } while (0); |
12654 | } |
12655 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12656 | { |
12657 | try { |
12658 | result = (double)((GLATObservation const *)arg1)->ontime(); |
12659 | } |
12660 | catch (const GException::out_of_range& e) { |
12661 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12662 | } |
12663 | catch (const GExceptionHandler& e) { |
12664 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12665 | } |
12666 | catch (const std::exception& e) { |
12667 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12668 | } |
12669 | } |
12670 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
12671 | return resultobj; |
12672 | fail: |
12673 | return NULL__null; |
12674 | } |
12675 | |
12676 | |
12677 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_livetime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12678 | PyObject *resultobj = 0; |
12679 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12680 | void *argp1 = 0 ; |
12681 | int res1 = 0 ; |
12682 | PyObject * obj0 = 0 ; |
12683 | double result; |
12684 | |
12685 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_livetime",&obj0)) SWIG_failgoto fail; |
12686 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12687 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12688 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_livetime" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_livetime" "', argument " "1"" of type '" "GLATObservation const *""'"); goto fail; } while (0); |
12689 | } |
12690 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12691 | { |
12692 | try { |
12693 | result = (double)((GLATObservation const *)arg1)->livetime(); |
12694 | } |
12695 | catch (const GException::out_of_range& e) { |
12696 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12697 | } |
12698 | catch (const GExceptionHandler& e) { |
12699 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12700 | } |
12701 | catch (const std::exception& e) { |
12702 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12703 | } |
12704 | } |
12705 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
12706 | return resultobj; |
12707 | fail: |
12708 | return NULL__null; |
12709 | } |
12710 | |
12711 | |
12712 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_deadc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12713 | PyObject *resultobj = 0; |
12714 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12715 | GTime *arg2 = 0 ; |
12716 | void *argp1 = 0 ; |
12717 | int res1 = 0 ; |
12718 | void *argp2 = 0 ; |
12719 | int res2 = 0 ; |
12720 | PyObject * obj0 = 0 ; |
12721 | PyObject * obj1 = 0 ; |
12722 | double result; |
12723 | |
12724 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATObservation_deadc",&obj0,&obj1)) SWIG_failgoto fail; |
12725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12726 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_deadc" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_deadc" "', argument " "1"" of type '" "GLATObservation const *""'"); goto fail; } while (0); |
12728 | } |
12729 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12730 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[31] , 0 | 0, 0); |
12731 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12732 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_deadc" "', argument " "2"" of type '" "GTime const &""'"); goto fail; } while( 0); |
12733 | } |
12734 | if (!argp2) { |
12735 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_deadc" "', argument " "2"" of type '" "GTime const &""'"); goto fail; } while(0); |
12736 | } |
12737 | arg2 = reinterpret_cast< GTime * >(argp2); |
12738 | { |
12739 | try { |
12740 | result = (double)((GLATObservation const *)arg1)->deadc((GTime const &)*arg2); |
12741 | } |
12742 | catch (const GException::out_of_range& e) { |
12743 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12744 | } |
12745 | catch (const GExceptionHandler& e) { |
12746 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12747 | } |
12748 | catch (const std::exception& e) { |
12749 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12750 | } |
12751 | } |
12752 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
12753 | return resultobj; |
12754 | fail: |
12755 | return NULL__null; |
12756 | } |
12757 | |
12758 | |
12759 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12760 | PyObject *resultobj = 0; |
12761 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12762 | GXmlElement *arg2 = 0 ; |
12763 | void *argp1 = 0 ; |
12764 | int res1 = 0 ; |
12765 | void *argp2 = 0 ; |
12766 | int res2 = 0 ; |
12767 | PyObject * obj0 = 0 ; |
12768 | PyObject * obj1 = 0 ; |
12769 | |
12770 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATObservation_read",&obj0,&obj1)) SWIG_failgoto fail; |
12771 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12772 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12773 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_read" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_read" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while( 0); |
12774 | } |
12775 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12776 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32] , 0 | 0, 0); |
12777 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12778 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'"); goto fail; } while (0); |
12779 | } |
12780 | if (!argp2) { |
12781 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'"); goto fail; } while(0); |
12782 | } |
12783 | arg2 = reinterpret_cast< GXmlElement * >(argp2); |
12784 | { |
12785 | try { |
12786 | (arg1)->read((GXmlElement const &)*arg2); |
12787 | } |
12788 | catch (const GException::out_of_range& e) { |
12789 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12790 | } |
12791 | catch (const GExceptionHandler& e) { |
12792 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12793 | } |
12794 | catch (const std::exception& e) { |
12795 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12796 | } |
12797 | } |
12798 | resultobj = SWIG_Py_Void(); |
12799 | return resultobj; |
12800 | fail: |
12801 | return NULL__null; |
12802 | } |
12803 | |
12804 | |
12805 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12806 | PyObject *resultobj = 0; |
12807 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12808 | GXmlElement *arg2 = 0 ; |
12809 | void *argp1 = 0 ; |
12810 | int res1 = 0 ; |
12811 | void *argp2 = 0 ; |
12812 | int res2 = 0 ; |
12813 | PyObject * obj0 = 0 ; |
12814 | PyObject * obj1 = 0 ; |
12815 | |
12816 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATObservation_write",&obj0,&obj1)) SWIG_failgoto fail; |
12817 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12818 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_write" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_write" "', argument " "1"" of type '" "GLATObservation const *""'"); goto fail; } while (0); |
12820 | } |
12821 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12822 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32] , 0, 0); |
12823 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12824 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_write" "', argument " "2"" of type '" "GXmlElement &""'"); goto fail; } while( 0); |
12825 | } |
12826 | if (!argp2) { |
12827 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_write" "', argument " "2"" of type '" "GXmlElement &""'"); goto fail; } while(0); |
12828 | } |
12829 | arg2 = reinterpret_cast< GXmlElement * >(argp2); |
12830 | { |
12831 | try { |
12832 | ((GLATObservation const *)arg1)->write(*arg2); |
12833 | } |
12834 | catch (const GException::out_of_range& e) { |
12835 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12836 | } |
12837 | catch (const GExceptionHandler& e) { |
12838 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12839 | } |
12840 | catch (const std::exception& e) { |
12841 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12842 | } |
12843 | } |
12844 | resultobj = SWIG_Py_Void(); |
12845 | return resultobj; |
12846 | fail: |
12847 | return NULL__null; |
12848 | } |
12849 | |
12850 | |
12851 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_load_unbinned(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12852 | PyObject *resultobj = 0; |
12853 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12854 | std::string *arg2 = 0 ; |
12855 | std::string *arg3 = 0 ; |
12856 | std::string *arg4 = 0 ; |
12857 | void *argp1 = 0 ; |
12858 | int res1 = 0 ; |
12859 | int res2 = SWIG_OLDOBJ((0)) ; |
12860 | int res3 = SWIG_OLDOBJ((0)) ; |
12861 | int res4 = SWIG_OLDOBJ((0)) ; |
12862 | PyObject * obj0 = 0 ; |
12863 | PyObject * obj1 = 0 ; |
12864 | PyObject * obj2 = 0 ; |
12865 | PyObject * obj3 = 0 ; |
12866 | |
12867 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATObservation_load_unbinned",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
12868 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12869 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_load_unbinned" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_load_unbinned" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while(0); |
12871 | } |
12872 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12873 | { |
12874 | std::string *ptr = (std::string *)0; |
12875 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
12876 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_load_unbinned" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_load_unbinned" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
12878 | } |
12879 | if (!ptr) { |
12880 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_load_unbinned" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_load_unbinned" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
12881 | } |
12882 | arg2 = ptr; |
12883 | } |
12884 | { |
12885 | std::string *ptr = (std::string *)0; |
12886 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
12887 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
12888 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATObservation_load_unbinned" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATObservation_load_unbinned" "', argument " "3"" of type '" "std::string const &""'") ; goto fail; } while(0); |
12889 | } |
12890 | if (!ptr) { |
12891 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_load_unbinned" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_load_unbinned" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
12892 | } |
12893 | arg3 = ptr; |
12894 | } |
12895 | { |
12896 | std::string *ptr = (std::string *)0; |
12897 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
12898 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
12899 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATObservation_load_unbinned" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATObservation_load_unbinned" "', argument " "4"" of type '" "std::string const &""'") ; goto fail; } while(0); |
12900 | } |
12901 | if (!ptr) { |
12902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_load_unbinned" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_load_unbinned" "', argument " "4"" of type '" "std::string const &""'"); goto fail; } while (0); |
12903 | } |
12904 | arg4 = ptr; |
12905 | } |
12906 | { |
12907 | try { |
12908 | (arg1)->load_unbinned((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4); |
12909 | } |
12910 | catch (const GException::out_of_range& e) { |
12911 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12912 | } |
12913 | catch (const GExceptionHandler& e) { |
12914 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12915 | } |
12916 | catch (const std::exception& e) { |
12917 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12918 | } |
12919 | } |
12920 | resultobj = SWIG_Py_Void(); |
12921 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12922 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
12923 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
12924 | return resultobj; |
12925 | fail: |
12926 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12927 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
12928 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
12929 | return NULL__null; |
12930 | } |
12931 | |
12932 | |
12933 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_load_binned(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12934 | PyObject *resultobj = 0; |
12935 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
12936 | std::string *arg2 = 0 ; |
12937 | std::string *arg3 = 0 ; |
12938 | std::string *arg4 = 0 ; |
12939 | void *argp1 = 0 ; |
12940 | int res1 = 0 ; |
12941 | int res2 = SWIG_OLDOBJ((0)) ; |
12942 | int res3 = SWIG_OLDOBJ((0)) ; |
12943 | int res4 = SWIG_OLDOBJ((0)) ; |
12944 | PyObject * obj0 = 0 ; |
12945 | PyObject * obj1 = 0 ; |
12946 | PyObject * obj2 = 0 ; |
12947 | PyObject * obj3 = 0 ; |
12948 | |
12949 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATObservation_load_binned",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
12950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
12951 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_load_binned" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_load_binned" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while(0); |
12953 | } |
12954 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
12955 | { |
12956 | std::string *ptr = (std::string *)0; |
12957 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
12958 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12959 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_load_binned" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_load_binned" "', argument " "2"" of type '" "std::string const &""'") ; goto fail; } while(0); |
12960 | } |
12961 | if (!ptr) { |
12962 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_load_binned" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_load_binned" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
12963 | } |
12964 | arg2 = ptr; |
12965 | } |
12966 | { |
12967 | std::string *ptr = (std::string *)0; |
12968 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
12969 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
12970 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATObservation_load_binned" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATObservation_load_binned" "', argument " "3"" of type '" "std::string const &""'") ; goto fail; } while(0); |
12971 | } |
12972 | if (!ptr) { |
12973 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_load_binned" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_load_binned" "', argument " "3" " of type '" "std::string const &""'"); goto fail; } while (0); |
12974 | } |
12975 | arg3 = ptr; |
12976 | } |
12977 | { |
12978 | std::string *ptr = (std::string *)0; |
12979 | res4 = SWIG_AsPtr_std_string(obj3, &ptr); |
12980 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
12981 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATObservation_load_binned" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATObservation_load_binned" "', argument " "4"" of type '" "std::string const &""'") ; goto fail; } while(0); |
12982 | } |
12983 | if (!ptr) { |
12984 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_load_binned" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_load_binned" "', argument " "4" " of type '" "std::string const &""'"); goto fail; } while (0); |
12985 | } |
12986 | arg4 = ptr; |
12987 | } |
12988 | { |
12989 | try { |
12990 | (arg1)->load_binned((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4); |
12991 | } |
12992 | catch (const GException::out_of_range& e) { |
12993 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12994 | } |
12995 | catch (const GExceptionHandler& e) { |
12996 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12997 | } |
12998 | catch (const std::exception& e) { |
12999 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13000 | } |
13001 | } |
13002 | resultobj = SWIG_Py_Void(); |
13003 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13004 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
13005 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
13006 | return resultobj; |
13007 | fail: |
13008 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13009 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
13010 | if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) << 1)))) delete arg4; |
13011 | return NULL__null; |
13012 | } |
13013 | |
13014 | |
13015 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_response__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13016 | PyObject *resultobj = 0; |
13017 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
13018 | std::string *arg2 = 0 ; |
13019 | std::string *arg3 = 0 ; |
13020 | void *argp1 = 0 ; |
13021 | int res1 = 0 ; |
13022 | int res2 = SWIG_OLDOBJ((0)) ; |
13023 | int res3 = SWIG_OLDOBJ((0)) ; |
13024 | PyObject * obj0 = 0 ; |
13025 | PyObject * obj1 = 0 ; |
13026 | PyObject * obj2 = 0 ; |
13027 | |
13028 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATObservation_response",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
13029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13030 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while( 0); |
13032 | } |
13033 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
13034 | { |
13035 | std::string *ptr = (std::string *)0; |
13036 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
13037 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13038 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
13039 | } |
13040 | if (!ptr) { |
13041 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
13042 | } |
13043 | arg2 = ptr; |
13044 | } |
13045 | { |
13046 | std::string *ptr = (std::string *)0; |
13047 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
13048 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
13049 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATObservation_response" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATObservation_response" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
13050 | } |
13051 | if (!ptr) { |
13052 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_response" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_response" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while(0); |
13053 | } |
13054 | arg3 = ptr; |
13055 | } |
13056 | { |
13057 | try { |
13058 | (arg1)->response((std::string const &)*arg2,(std::string const &)*arg3); |
13059 | } |
13060 | catch (const GException::out_of_range& e) { |
13061 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13062 | } |
13063 | catch (const GExceptionHandler& e) { |
13064 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13065 | } |
13066 | catch (const std::exception& e) { |
13067 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13068 | } |
13069 | } |
13070 | resultobj = SWIG_Py_Void(); |
13071 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13072 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
13073 | return resultobj; |
13074 | fail: |
13075 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13076 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
13077 | return NULL__null; |
13078 | } |
13079 | |
13080 | |
13081 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_response__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13082 | PyObject *resultobj = 0; |
13083 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
13084 | std::string *arg2 = 0 ; |
13085 | void *argp1 = 0 ; |
13086 | int res1 = 0 ; |
13087 | int res2 = SWIG_OLDOBJ((0)) ; |
13088 | PyObject * obj0 = 0 ; |
13089 | PyObject * obj1 = 0 ; |
13090 | |
13091 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATObservation_response",&obj0,&obj1)) SWIG_failgoto fail; |
13092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13093 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_response" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while( 0); |
13095 | } |
13096 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
13097 | { |
13098 | std::string *ptr = (std::string *)0; |
13099 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
13100 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
13102 | } |
13103 | if (!ptr) { |
13104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATObservation_response" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
13105 | } |
13106 | arg2 = ptr; |
13107 | } |
13108 | { |
13109 | try { |
13110 | (arg1)->response((std::string const &)*arg2); |
13111 | } |
13112 | catch (const GException::out_of_range& e) { |
13113 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13114 | } |
13115 | catch (const GExceptionHandler& e) { |
13116 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13117 | } |
13118 | catch (const std::exception& e) { |
13119 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13120 | } |
13121 | } |
13122 | resultobj = SWIG_Py_Void(); |
13123 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13124 | return resultobj; |
13125 | fail: |
13126 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13127 | return NULL__null; |
13128 | } |
13129 | |
13130 | |
13131 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_response(PyObject *self, PyObject *args) { |
13132 | int argc; |
13133 | PyObject *argv[4]; |
13134 | int ii; |
13135 | |
13136 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
13137 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
13138 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
13139 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
13140 | } |
13141 | if (argc == 1) { |
13142 | int _v; |
13143 | void *vptr = 0; |
13144 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19 ], 0, 0); |
13145 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13146 | if (_v) { |
13147 | return _wrap_GLATObservation_response__SWIG_1(self, args); |
13148 | } |
13149 | } |
13150 | if (argc == 2) { |
13151 | int _v; |
13152 | void *vptr = 0; |
13153 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19 ], 0, 0); |
13154 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13155 | if (_v) { |
13156 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[26], 0, 0 ); |
13157 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13158 | if (_v) { |
13159 | return _wrap_GLATObservation_response__SWIG_0(self, args); |
13160 | } |
13161 | } |
13162 | } |
13163 | if (argc == 2) { |
13164 | int _v; |
13165 | void *vptr = 0; |
13166 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19 ], 0, 0); |
13167 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13168 | if (_v) { |
13169 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
13170 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13171 | if (_v) { |
13172 | return _wrap_GLATObservation_response__SWIG_3(self, args); |
13173 | } |
13174 | } |
13175 | } |
13176 | if (argc == 3) { |
13177 | int _v; |
13178 | void *vptr = 0; |
13179 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[19 ], 0, 0); |
13180 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13181 | if (_v) { |
13182 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
13183 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13184 | if (_v) { |
13185 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
13186 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13187 | if (_v) { |
13188 | return _wrap_GLATObservation_response__SWIG_2(self, args); |
13189 | } |
13190 | } |
13191 | } |
13192 | } |
13193 | |
13194 | fail: |
13195 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATObservation_response'.\n" |
13196 | " Possible C/C++ prototypes are:\n" |
13197 | " GLATObservation::response(GResponse const &)\n" |
13198 | " GLATObservation::response() const\n" |
13199 | " GLATObservation::response(std::string const &,std::string const &)\n" |
13200 | " GLATObservation::response(std::string const &)\n"); |
13201 | return 0; |
13202 | } |
13203 | |
13204 | |
13205 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_ltcube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13206 | PyObject *resultobj = 0; |
13207 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
13208 | void *argp1 = 0 ; |
13209 | int res1 = 0 ; |
13210 | PyObject * obj0 = 0 ; |
13211 | GLATLtCube *result = 0 ; |
13212 | |
13213 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_ltcube",&obj0)) SWIG_failgoto fail; |
13214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13215 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_ltcube" "', argument " "1"" of type '" "GLATObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_ltcube" "', argument " "1"" of type '" "GLATObservation const *""'"); goto fail; } while (0); |
13217 | } |
13218 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
13219 | { |
13220 | try { |
13221 | result = (GLATLtCube *)((GLATObservation const *)arg1)->ltcube(); |
13222 | } |
13223 | catch (const GException::out_of_range& e) { |
13224 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13225 | } |
13226 | catch (const GExceptionHandler& e) { |
13227 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13228 | } |
13229 | catch (const std::exception& e) { |
13230 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13231 | } |
13232 | } |
13233 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATLtCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], 0 | 0); |
13234 | return resultobj; |
13235 | fail: |
13236 | return NULL__null; |
13237 | } |
13238 | |
13239 | |
13240 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATObservation_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13241 | PyObject *resultobj = 0; |
13242 | GLATObservation *arg1 = (GLATObservation *) 0 ; |
13243 | void *argp1 = 0 ; |
13244 | int res1 = 0 ; |
13245 | PyObject * obj0 = 0 ; |
13246 | GLATObservation result; |
13247 | |
13248 | if (!PyArg_ParseTuple(args,(char *)"O:GLATObservation_copy",&obj0)) SWIG_failgoto fail; |
13249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13250 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATObservation_copy" "', argument " "1"" of type '" "GLATObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATObservation_copy" "', argument " "1"" of type '" "GLATObservation *""'"); goto fail; } while( 0); |
13252 | } |
13253 | arg1 = reinterpret_cast< GLATObservation * >(argp1); |
13254 | { |
13255 | try { |
13256 | result = GLATObservation_copy(arg1); |
13257 | } |
13258 | catch (const GException::out_of_range& e) { |
13259 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13260 | } |
13261 | catch (const GExceptionHandler& e) { |
13262 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13263 | } |
13264 | catch (const std::exception& e) { |
13265 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13266 | } |
13267 | } |
13268 | resultobj = SWIG_NewPointerObj((new GLATObservation(static_cast< const GLATObservation& >(result))), SWIGTYPE_p_GLATObservation, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATObservation(static_cast < const GLATObservation& >(result))), swig_types[19 ], 0x1 | 0); |
13269 | return resultobj; |
13270 | fail: |
13271 | return NULL__null; |
13272 | } |
13273 | |
13274 | |
13275 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATObservation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13276 | PyObject *obj; |
13277 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
13278 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATObservationswig_types[19], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
13279 | return SWIG_Py_Void(); |
13280 | } |
13281 | |
13282 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATPsf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13283 | PyObject *resultobj = 0; |
13284 | GLATPsf *result = 0 ; |
13285 | |
13286 | if (!PyArg_ParseTuple(args,(char *)":new_GLATPsf")) SWIG_failgoto fail; |
13287 | { |
13288 | try { |
13289 | result = (GLATPsf *)new GLATPsf(); |
13290 | } |
13291 | catch (const GException::out_of_range& e) { |
13292 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13293 | } |
13294 | catch (const GExceptionHandler& e) { |
13295 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13296 | } |
13297 | catch (const std::exception& e) { |
13298 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13299 | } |
13300 | } |
13301 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATPsf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], ( (0x1 << 1) | 0x1) | 0); |
13302 | return resultobj; |
13303 | fail: |
13304 | return NULL__null; |
13305 | } |
13306 | |
13307 | |
13308 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATPsf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13309 | PyObject *resultobj = 0; |
13310 | std::string *arg1 = 0 ; |
13311 | int res1 = SWIG_OLDOBJ((0)) ; |
13312 | PyObject * obj0 = 0 ; |
13313 | GLATPsf *result = 0 ; |
13314 | |
13315 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATPsf",&obj0)) SWIG_failgoto fail; |
13316 | { |
13317 | std::string *ptr = (std::string *)0; |
13318 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
13319 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATPsf" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATPsf" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
13321 | } |
13322 | if (!ptr) { |
13323 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATPsf" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATPsf" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
13324 | } |
13325 | arg1 = ptr; |
13326 | } |
13327 | { |
13328 | try { |
13329 | result = (GLATPsf *)new GLATPsf((std::string const &)*arg1); |
13330 | } |
13331 | catch (const GException::out_of_range& e) { |
13332 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13333 | } |
13334 | catch (const GExceptionHandler& e) { |
13335 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13336 | } |
13337 | catch (const std::exception& e) { |
13338 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13339 | } |
13340 | } |
13341 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATPsf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], ( (0x1 << 1) | 0x1) | 0); |
13342 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
13343 | return resultobj; |
13344 | fail: |
13345 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
13346 | return NULL__null; |
13347 | } |
13348 | |
13349 | |
13350 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATPsf__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13351 | PyObject *resultobj = 0; |
13352 | GLATPsf *arg1 = 0 ; |
13353 | void *argp1 = 0 ; |
13354 | int res1 = 0 ; |
13355 | PyObject * obj0 = 0 ; |
13356 | GLATPsf *result = 0 ; |
13357 | |
13358 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATPsf",&obj0)) SWIG_failgoto fail; |
13359 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATPsf, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13360 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATPsf" "', argument " "1"" of type '" "GLATPsf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATPsf" "', argument " "1"" of type '" "GLATPsf const &""'"); goto fail; } while (0); |
13362 | } |
13363 | if (!argp1) { |
13364 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATPsf" "', argument " "1"" of type '" "GLATPsf const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATPsf" "', argument " "1"" of type '" "GLATPsf const &" "'"); goto fail; } while(0); |
13365 | } |
13366 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13367 | { |
13368 | try { |
13369 | result = (GLATPsf *)new GLATPsf((GLATPsf const &)*arg1); |
13370 | } |
13371 | catch (const GException::out_of_range& e) { |
13372 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13373 | } |
13374 | catch (const GExceptionHandler& e) { |
13375 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13376 | } |
13377 | catch (const std::exception& e) { |
13378 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13379 | } |
13380 | } |
13381 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATPsf, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], ( (0x1 << 1) | 0x1) | 0); |
13382 | return resultobj; |
13383 | fail: |
13384 | return NULL__null; |
13385 | } |
13386 | |
13387 | |
13388 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATPsf(PyObject *self, PyObject *args) { |
13389 | int argc; |
13390 | PyObject *argv[2]; |
13391 | int ii; |
13392 | |
13393 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
13394 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
13395 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
13396 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
13397 | } |
13398 | if (argc == 0) { |
13399 | return _wrap_new_GLATPsf__SWIG_0(self, args); |
13400 | } |
13401 | if (argc == 1) { |
13402 | int _v; |
13403 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[20], 0, 0 ); |
13404 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13405 | if (_v) { |
13406 | return _wrap_new_GLATPsf__SWIG_2(self, args); |
13407 | } |
13408 | } |
13409 | if (argc == 1) { |
13410 | int _v; |
13411 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
13412 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13413 | if (_v) { |
13414 | return _wrap_new_GLATPsf__SWIG_1(self, args); |
13415 | } |
13416 | } |
13417 | |
13418 | fail: |
13419 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATPsf'.\n" |
13420 | " Possible C/C++ prototypes are:\n" |
13421 | " GLATPsf::GLATPsf()\n" |
13422 | " GLATPsf::GLATPsf(std::string const &)\n" |
13423 | " GLATPsf::GLATPsf(GLATPsf const &)\n"); |
13424 | return 0; |
13425 | } |
13426 | |
13427 | |
13428 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATPsf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13429 | PyObject *resultobj = 0; |
13430 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13431 | void *argp1 = 0 ; |
13432 | int res1 = 0 ; |
13433 | PyObject * obj0 = 0 ; |
13434 | |
13435 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATPsf",&obj0)) SWIG_failgoto fail; |
13436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0x1 | 0, 0); |
13437 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATPsf" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATPsf" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
13439 | } |
13440 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13441 | { |
13442 | try { |
13443 | delete arg1; |
13444 | } |
13445 | catch (const GException::out_of_range& e) { |
13446 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13447 | } |
13448 | catch (const GExceptionHandler& e) { |
13449 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13450 | } |
13451 | catch (const std::exception& e) { |
13452 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13453 | } |
13454 | } |
13455 | resultobj = SWIG_Py_Void(); |
13456 | return resultobj; |
13457 | fail: |
13458 | return NULL__null; |
13459 | } |
13460 | |
13461 | |
13462 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf___call__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13463 | PyObject *resultobj = 0; |
13464 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13465 | double *arg2 = 0 ; |
13466 | double *arg3 = 0 ; |
13467 | double *arg4 = 0 ; |
13468 | void *argp1 = 0 ; |
13469 | int res1 = 0 ; |
13470 | double temp2 ; |
13471 | double val2 ; |
13472 | int ecode2 = 0 ; |
13473 | double temp3 ; |
13474 | double val3 ; |
13475 | int ecode3 = 0 ; |
13476 | double temp4 ; |
13477 | double val4 ; |
13478 | int ecode4 = 0 ; |
13479 | PyObject * obj0 = 0 ; |
13480 | PyObject * obj1 = 0 ; |
13481 | PyObject * obj2 = 0 ; |
13482 | PyObject * obj3 = 0 ; |
13483 | double result; |
13484 | |
13485 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATPsf___call__",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
13486 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13487 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13488 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf___call__" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf___call__" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
13489 | } |
13490 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13491 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
13492 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
13493 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATPsf___call__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATPsf___call__" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
13494 | } |
13495 | temp2 = static_cast< double >(val2); |
13496 | arg2 = &temp2; |
13497 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
13498 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
13499 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATPsf___call__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATPsf___call__" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
13500 | } |
13501 | temp3 = static_cast< double >(val3); |
13502 | arg3 = &temp3; |
13503 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
13504 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
13505 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GLATPsf___call__" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GLATPsf___call__" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
13506 | } |
13507 | temp4 = static_cast< double >(val4); |
13508 | arg4 = &temp4; |
13509 | { |
13510 | try { |
13511 | result = (double)(arg1)->operator ()((double const &)*arg2,(double const &)*arg3,(double const &)*arg4); |
13512 | } |
13513 | catch (const GException::out_of_range& e) { |
13514 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13515 | } |
13516 | catch (const GExceptionHandler& e) { |
13517 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13518 | } |
13519 | catch (const std::exception& e) { |
13520 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13521 | } |
13522 | } |
13523 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
13524 | return resultobj; |
13525 | fail: |
13526 | return NULL__null; |
13527 | } |
13528 | |
13529 | |
13530 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13531 | PyObject *resultobj = 0; |
13532 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13533 | void *argp1 = 0 ; |
13534 | int res1 = 0 ; |
13535 | PyObject * obj0 = 0 ; |
13536 | |
13537 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_clear",&obj0)) SWIG_failgoto fail; |
13538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13539 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_clear" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_clear" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
13541 | } |
13542 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13543 | { |
13544 | try { |
13545 | (arg1)->clear(); |
13546 | } |
13547 | catch (const GException::out_of_range& e) { |
13548 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13549 | } |
13550 | catch (const GExceptionHandler& e) { |
13551 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13552 | } |
13553 | catch (const std::exception& e) { |
13554 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13555 | } |
13556 | } |
13557 | resultobj = SWIG_Py_Void(); |
13558 | return resultobj; |
13559 | fail: |
13560 | return NULL__null; |
13561 | } |
13562 | |
13563 | |
13564 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13565 | PyObject *resultobj = 0; |
13566 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13567 | void *argp1 = 0 ; |
13568 | int res1 = 0 ; |
13569 | PyObject * obj0 = 0 ; |
13570 | GLATPsf *result = 0 ; |
13571 | |
13572 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_clone",&obj0)) SWIG_failgoto fail; |
13573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13574 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_clone" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_clone" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
13576 | } |
13577 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13578 | { |
13579 | try { |
13580 | result = (GLATPsf *)((GLATPsf const *)arg1)->clone(); |
13581 | } |
13582 | catch (const GException::out_of_range& e) { |
13583 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13584 | } |
13585 | catch (const GExceptionHandler& e) { |
13586 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13587 | } |
13588 | catch (const std::exception& e) { |
13589 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13590 | } |
13591 | } |
13592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], 0 | 0); |
13593 | return resultobj; |
13594 | fail: |
13595 | return NULL__null; |
13596 | } |
13597 | |
13598 | |
13599 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13600 | PyObject *resultobj = 0; |
13601 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13602 | std::string *arg2 = 0 ; |
13603 | void *argp1 = 0 ; |
13604 | int res1 = 0 ; |
13605 | int res2 = SWIG_OLDOBJ((0)) ; |
13606 | PyObject * obj0 = 0 ; |
13607 | PyObject * obj1 = 0 ; |
13608 | |
13609 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATPsf_load",&obj0,&obj1)) SWIG_failgoto fail; |
13610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13611 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_load" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_load" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
13613 | } |
13614 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13615 | { |
13616 | std::string *ptr = (std::string *)0; |
13617 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
13618 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13619 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATPsf_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATPsf_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
13620 | } |
13621 | if (!ptr) { |
13622 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATPsf_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATPsf_load" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
13623 | } |
13624 | arg2 = ptr; |
13625 | } |
13626 | { |
13627 | try { |
13628 | (arg1)->load((std::string const &)*arg2); |
13629 | } |
13630 | catch (const GException::out_of_range& e) { |
13631 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13632 | } |
13633 | catch (const GExceptionHandler& e) { |
13634 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13635 | } |
13636 | catch (const std::exception& e) { |
13637 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13638 | } |
13639 | } |
13640 | resultobj = SWIG_Py_Void(); |
13641 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13642 | return resultobj; |
13643 | fail: |
13644 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13645 | return NULL__null; |
13646 | } |
13647 | |
13648 | |
13649 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13650 | PyObject *resultobj = 0; |
13651 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13652 | std::string *arg2 = 0 ; |
13653 | bool *arg3 = 0 ; |
13654 | void *argp1 = 0 ; |
13655 | int res1 = 0 ; |
13656 | int res2 = SWIG_OLDOBJ((0)) ; |
13657 | bool temp3 ; |
13658 | bool val3 ; |
13659 | int ecode3 = 0 ; |
13660 | PyObject * obj0 = 0 ; |
13661 | PyObject * obj1 = 0 ; |
13662 | PyObject * obj2 = 0 ; |
13663 | |
13664 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATPsf_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
13665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13666 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_save" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_save" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
13668 | } |
13669 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13670 | { |
13671 | std::string *ptr = (std::string *)0; |
13672 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
13673 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13674 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
13675 | } |
13676 | if (!ptr) { |
13677 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
13678 | } |
13679 | arg2 = ptr; |
13680 | } |
13681 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
13682 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
13683 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GLATPsf_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GLATPsf_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
13684 | } |
13685 | temp3 = static_cast< bool >(val3); |
13686 | arg3 = &temp3; |
13687 | { |
13688 | try { |
13689 | (arg1)->save((std::string const &)*arg2,(bool const &)*arg3); |
13690 | } |
13691 | catch (const GException::out_of_range& e) { |
13692 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13693 | } |
13694 | catch (const GExceptionHandler& e) { |
13695 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13696 | } |
13697 | catch (const std::exception& e) { |
13698 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13699 | } |
13700 | } |
13701 | resultobj = SWIG_Py_Void(); |
13702 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13703 | return resultobj; |
13704 | fail: |
13705 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13706 | return NULL__null; |
13707 | } |
13708 | |
13709 | |
13710 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13711 | PyObject *resultobj = 0; |
13712 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13713 | std::string *arg2 = 0 ; |
13714 | void *argp1 = 0 ; |
13715 | int res1 = 0 ; |
13716 | int res2 = SWIG_OLDOBJ((0)) ; |
13717 | PyObject * obj0 = 0 ; |
13718 | PyObject * obj1 = 0 ; |
13719 | |
13720 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATPsf_save",&obj0,&obj1)) SWIG_failgoto fail; |
13721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13722 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_save" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_save" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
13724 | } |
13725 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13726 | { |
13727 | std::string *ptr = (std::string *)0; |
13728 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
13729 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13730 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
13731 | } |
13732 | if (!ptr) { |
13733 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATPsf_save" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
13734 | } |
13735 | arg2 = ptr; |
13736 | } |
13737 | { |
13738 | try { |
13739 | (arg1)->save((std::string const &)*arg2); |
13740 | } |
13741 | catch (const GException::out_of_range& e) { |
13742 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13743 | } |
13744 | catch (const GExceptionHandler& e) { |
13745 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13746 | } |
13747 | catch (const std::exception& e) { |
13748 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13749 | } |
13750 | } |
13751 | resultobj = SWIG_Py_Void(); |
13752 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13753 | return resultobj; |
13754 | fail: |
13755 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13756 | return NULL__null; |
13757 | } |
13758 | |
13759 | |
13760 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_save(PyObject *self, PyObject *args) { |
13761 | int argc; |
13762 | PyObject *argv[4]; |
13763 | int ii; |
13764 | |
13765 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
13766 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
13767 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
13768 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
13769 | } |
13770 | if (argc == 2) { |
13771 | int _v; |
13772 | void *vptr = 0; |
13773 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20 ], 0, 0); |
13774 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13775 | if (_v) { |
13776 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
13777 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13778 | if (_v) { |
13779 | return _wrap_GLATPsf_save__SWIG_1(self, args); |
13780 | } |
13781 | } |
13782 | } |
13783 | if (argc == 3) { |
13784 | int _v; |
13785 | void *vptr = 0; |
13786 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20 ], 0, 0); |
13787 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13788 | if (_v) { |
13789 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
13790 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13791 | if (_v) { |
13792 | { |
13793 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
13794 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13795 | } |
13796 | if (_v) { |
13797 | return _wrap_GLATPsf_save__SWIG_0(self, args); |
13798 | } |
13799 | } |
13800 | } |
13801 | } |
13802 | |
13803 | fail: |
13804 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATPsf_save'.\n" |
13805 | " Possible C/C++ prototypes are:\n" |
13806 | " GLATPsf::save(std::string const &,bool const &)\n" |
13807 | " GLATPsf::save(std::string const &)\n"); |
13808 | return 0; |
13809 | } |
13810 | |
13811 | |
13812 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13813 | PyObject *resultobj = 0; |
13814 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13815 | GFits *arg2 = 0 ; |
13816 | void *argp1 = 0 ; |
13817 | int res1 = 0 ; |
13818 | void *argp2 = 0 ; |
13819 | int res2 = 0 ; |
13820 | PyObject * obj0 = 0 ; |
13821 | PyObject * obj1 = 0 ; |
13822 | |
13823 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATPsf_read",&obj0,&obj1)) SWIG_failgoto fail; |
13824 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13825 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_read" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_read" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
13827 | } |
13828 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13829 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
13830 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13831 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATPsf_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATPsf_read" "', argument " "2"" of type '" "GFits const &""'"); goto fail; } while( 0); |
13832 | } |
13833 | if (!argp2) { |
13834 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATPsf_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATPsf_read" "', argument " "2"" of type '" "GFits const &" "'"); goto fail; } while(0); |
13835 | } |
13836 | arg2 = reinterpret_cast< GFits * >(argp2); |
13837 | { |
13838 | try { |
13839 | (arg1)->read((GFits const &)*arg2); |
13840 | } |
13841 | catch (const GException::out_of_range& e) { |
13842 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13843 | } |
13844 | catch (const GExceptionHandler& e) { |
13845 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13846 | } |
13847 | catch (const std::exception& e) { |
13848 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13849 | } |
13850 | } |
13851 | resultobj = SWIG_Py_Void(); |
13852 | return resultobj; |
13853 | fail: |
13854 | return NULL__null; |
13855 | } |
13856 | |
13857 | |
13858 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13859 | PyObject *resultobj = 0; |
13860 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13861 | GFits *arg2 = 0 ; |
13862 | void *argp1 = 0 ; |
13863 | int res1 = 0 ; |
13864 | void *argp2 = 0 ; |
13865 | int res2 = 0 ; |
13866 | PyObject * obj0 = 0 ; |
13867 | PyObject * obj1 = 0 ; |
13868 | |
13869 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATPsf_write",&obj0,&obj1)) SWIG_failgoto fail; |
13870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13871 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_write" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_write" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
13873 | } |
13874 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13875 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0, 0); |
13876 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATPsf_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATPsf_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
13878 | } |
13879 | if (!argp2) { |
13880 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATPsf_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATPsf_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
13881 | } |
13882 | arg2 = reinterpret_cast< GFits * >(argp2); |
13883 | { |
13884 | try { |
13885 | ((GLATPsf const *)arg1)->write(*arg2); |
13886 | } |
13887 | catch (const GException::out_of_range& e) { |
13888 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13889 | } |
13890 | catch (const GExceptionHandler& e) { |
13891 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13892 | } |
13893 | catch (const std::exception& e) { |
13894 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13895 | } |
13896 | } |
13897 | resultobj = SWIG_Py_Void(); |
13898 | return resultobj; |
13899 | fail: |
13900 | return NULL__null; |
13901 | } |
13902 | |
13903 | |
13904 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13905 | PyObject *resultobj = 0; |
13906 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13907 | void *argp1 = 0 ; |
13908 | int res1 = 0 ; |
13909 | PyObject * obj0 = 0 ; |
13910 | int result; |
13911 | |
13912 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_size",&obj0)) SWIG_failgoto fail; |
13913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13914 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_size" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_size" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
13916 | } |
13917 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13918 | { |
13919 | try { |
13920 | result = (int)((GLATPsf const *)arg1)->size(); |
13921 | } |
13922 | catch (const GException::out_of_range& e) { |
13923 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13924 | } |
13925 | catch (const GExceptionHandler& e) { |
13926 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13927 | } |
13928 | catch (const std::exception& e) { |
13929 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13930 | } |
13931 | } |
13932 | resultobj = SWIG_From_int(static_cast< int >(result)); |
13933 | return resultobj; |
13934 | fail: |
13935 | return NULL__null; |
13936 | } |
13937 | |
13938 | |
13939 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_nenergies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13940 | PyObject *resultobj = 0; |
13941 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13942 | void *argp1 = 0 ; |
13943 | int res1 = 0 ; |
13944 | PyObject * obj0 = 0 ; |
13945 | int result; |
13946 | |
13947 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_nenergies",&obj0)) SWIG_failgoto fail; |
13948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13949 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_nenergies" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_nenergies" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
13951 | } |
13952 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13953 | { |
13954 | try { |
13955 | result = (int)((GLATPsf const *)arg1)->nenergies(); |
13956 | } |
13957 | catch (const GException::out_of_range& e) { |
13958 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13959 | } |
13960 | catch (const GExceptionHandler& e) { |
13961 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13962 | } |
13963 | catch (const std::exception& e) { |
13964 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13965 | } |
13966 | } |
13967 | resultobj = SWIG_From_int(static_cast< int >(result)); |
13968 | return resultobj; |
13969 | fail: |
13970 | return NULL__null; |
13971 | } |
13972 | |
13973 | |
13974 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_ncostheta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13975 | PyObject *resultobj = 0; |
13976 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
13977 | void *argp1 = 0 ; |
13978 | int res1 = 0 ; |
13979 | PyObject * obj0 = 0 ; |
13980 | int result; |
13981 | |
13982 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_ncostheta",&obj0)) SWIG_failgoto fail; |
13983 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
13984 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_ncostheta" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_ncostheta" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
13986 | } |
13987 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
13988 | { |
13989 | try { |
13990 | result = (int)((GLATPsf const *)arg1)->ncostheta(); |
13991 | } |
13992 | catch (const GException::out_of_range& e) { |
13993 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13994 | } |
13995 | catch (const GExceptionHandler& e) { |
13996 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13997 | } |
13998 | catch (const std::exception& e) { |
13999 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14000 | } |
14001 | } |
14002 | resultobj = SWIG_From_int(static_cast< int >(result)); |
14003 | return resultobj; |
14004 | fail: |
14005 | return NULL__null; |
14006 | } |
14007 | |
14008 | |
14009 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_costhetamin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14010 | PyObject *resultobj = 0; |
14011 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
14012 | void *argp1 = 0 ; |
14013 | int res1 = 0 ; |
14014 | PyObject * obj0 = 0 ; |
14015 | double result; |
14016 | |
14017 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_costhetamin",&obj0)) SWIG_failgoto fail; |
14018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
14019 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_costhetamin" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_costhetamin" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
14021 | } |
14022 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
14023 | { |
14024 | try { |
14025 | result = (double)((GLATPsf const *)arg1)->costhetamin(); |
14026 | } |
14027 | catch (const GException::out_of_range& e) { |
14028 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14029 | } |
14030 | catch (const GExceptionHandler& e) { |
14031 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14032 | } |
14033 | catch (const std::exception& e) { |
14034 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14035 | } |
14036 | } |
14037 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14038 | return resultobj; |
14039 | fail: |
14040 | return NULL__null; |
14041 | } |
14042 | |
14043 | |
14044 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_costhetamin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14045 | PyObject *resultobj = 0; |
14046 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
14047 | double *arg2 = 0 ; |
14048 | void *argp1 = 0 ; |
14049 | int res1 = 0 ; |
14050 | double temp2 ; |
14051 | double val2 ; |
14052 | int ecode2 = 0 ; |
14053 | PyObject * obj0 = 0 ; |
14054 | PyObject * obj1 = 0 ; |
14055 | |
14056 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATPsf_costhetamin",&obj0,&obj1)) SWIG_failgoto fail; |
14057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
14058 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_costhetamin" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_costhetamin" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
14060 | } |
14061 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
14062 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
14063 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
14064 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATPsf_costhetamin" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATPsf_costhetamin" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
14065 | } |
14066 | temp2 = static_cast< double >(val2); |
14067 | arg2 = &temp2; |
14068 | { |
14069 | try { |
14070 | (arg1)->costhetamin((double const &)*arg2); |
14071 | } |
14072 | catch (const GException::out_of_range& e) { |
14073 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14074 | } |
14075 | catch (const GExceptionHandler& e) { |
14076 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14077 | } |
14078 | catch (const std::exception& e) { |
14079 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14080 | } |
14081 | } |
14082 | resultobj = SWIG_Py_Void(); |
14083 | return resultobj; |
14084 | fail: |
14085 | return NULL__null; |
14086 | } |
14087 | |
14088 | |
14089 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_costhetamin(PyObject *self, PyObject *args) { |
14090 | int argc; |
14091 | PyObject *argv[3]; |
14092 | int ii; |
14093 | |
14094 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
14095 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
14096 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
14097 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
14098 | } |
14099 | if (argc == 1) { |
14100 | int _v; |
14101 | void *vptr = 0; |
14102 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20 ], 0, 0); |
14103 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14104 | if (_v) { |
14105 | return _wrap_GLATPsf_costhetamin__SWIG_0(self, args); |
14106 | } |
14107 | } |
14108 | if (argc == 2) { |
14109 | int _v; |
14110 | void *vptr = 0; |
14111 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATPsf, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20 ], 0, 0); |
14112 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14113 | if (_v) { |
14114 | { |
14115 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
14116 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14117 | } |
14118 | if (_v) { |
14119 | return _wrap_GLATPsf_costhetamin__SWIG_1(self, args); |
14120 | } |
14121 | } |
14122 | } |
14123 | |
14124 | fail: |
14125 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATPsf_costhetamin'.\n" |
14126 | " Possible C/C++ prototypes are:\n" |
14127 | " GLATPsf::costhetamin() const\n" |
14128 | " GLATPsf::costhetamin(double const &)\n"); |
14129 | return 0; |
14130 | } |
14131 | |
14132 | |
14133 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_hasphi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14134 | PyObject *resultobj = 0; |
14135 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
14136 | void *argp1 = 0 ; |
14137 | int res1 = 0 ; |
14138 | PyObject * obj0 = 0 ; |
14139 | bool result; |
14140 | |
14141 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_hasphi",&obj0)) SWIG_failgoto fail; |
14142 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
14143 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_hasphi" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_hasphi" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
14145 | } |
14146 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
14147 | { |
14148 | try { |
14149 | result = (bool)((GLATPsf const *)arg1)->hasphi(); |
14150 | } |
14151 | catch (const GException::out_of_range& e) { |
14152 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14153 | } |
14154 | catch (const GExceptionHandler& e) { |
14155 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14156 | } |
14157 | catch (const std::exception& e) { |
14158 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14159 | } |
14160 | } |
14161 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
14162 | return resultobj; |
14163 | fail: |
14164 | return NULL__null; |
14165 | } |
14166 | |
14167 | |
14168 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_isfront(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14169 | PyObject *resultobj = 0; |
14170 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
14171 | void *argp1 = 0 ; |
14172 | int res1 = 0 ; |
14173 | PyObject * obj0 = 0 ; |
14174 | bool result; |
14175 | |
14176 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_isfront",&obj0)) SWIG_failgoto fail; |
14177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
14178 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_isfront" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_isfront" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
14180 | } |
14181 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
14182 | { |
14183 | try { |
14184 | result = (bool)((GLATPsf const *)arg1)->isfront(); |
14185 | } |
14186 | catch (const GException::out_of_range& e) { |
14187 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14188 | } |
14189 | catch (const GExceptionHandler& e) { |
14190 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14191 | } |
14192 | catch (const std::exception& e) { |
14193 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14194 | } |
14195 | } |
14196 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
14197 | return resultobj; |
14198 | fail: |
14199 | return NULL__null; |
14200 | } |
14201 | |
14202 | |
14203 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_isback(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14204 | PyObject *resultobj = 0; |
14205 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
14206 | void *argp1 = 0 ; |
14207 | int res1 = 0 ; |
14208 | PyObject * obj0 = 0 ; |
14209 | bool result; |
14210 | |
14211 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_isback",&obj0)) SWIG_failgoto fail; |
14212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
14213 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_isback" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_isback" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
14215 | } |
14216 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
14217 | { |
14218 | try { |
14219 | result = (bool)((GLATPsf const *)arg1)->isback(); |
14220 | } |
14221 | catch (const GException::out_of_range& e) { |
14222 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14223 | } |
14224 | catch (const GExceptionHandler& e) { |
14225 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14226 | } |
14227 | catch (const std::exception& e) { |
14228 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14229 | } |
14230 | } |
14231 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
14232 | return resultobj; |
14233 | fail: |
14234 | return NULL__null; |
14235 | } |
14236 | |
14237 | |
14238 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14239 | PyObject *resultobj = 0; |
14240 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
14241 | void *argp1 = 0 ; |
14242 | int res1 = 0 ; |
14243 | PyObject * obj0 = 0 ; |
14244 | int result; |
14245 | |
14246 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_version",&obj0)) SWIG_failgoto fail; |
14247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
14248 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_version" "', argument " "1"" of type '" "GLATPsf const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_version" "', argument " "1"" of type '" "GLATPsf const *""'"); goto fail; } while(0); |
14250 | } |
14251 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
14252 | { |
14253 | try { |
14254 | result = (int)((GLATPsf const *)arg1)->version(); |
14255 | } |
14256 | catch (const GException::out_of_range& e) { |
14257 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14258 | } |
14259 | catch (const GExceptionHandler& e) { |
14260 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14261 | } |
14262 | catch (const std::exception& e) { |
14263 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14264 | } |
14265 | } |
14266 | resultobj = SWIG_From_int(static_cast< int >(result)); |
14267 | return resultobj; |
14268 | fail: |
14269 | return NULL__null; |
14270 | } |
14271 | |
14272 | |
14273 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATPsf_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14274 | PyObject *resultobj = 0; |
14275 | GLATPsf *arg1 = (GLATPsf *) 0 ; |
14276 | void *argp1 = 0 ; |
14277 | int res1 = 0 ; |
14278 | PyObject * obj0 = 0 ; |
14279 | GLATPsf result; |
14280 | |
14281 | if (!PyArg_ParseTuple(args,(char *)"O:GLATPsf_copy",&obj0)) SWIG_failgoto fail; |
14282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
14283 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATPsf_copy" "', argument " "1"" of type '" "GLATPsf *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATPsf_copy" "', argument " "1"" of type '" "GLATPsf *""'"); goto fail; } while(0); |
14285 | } |
14286 | arg1 = reinterpret_cast< GLATPsf * >(argp1); |
14287 | { |
14288 | try { |
14289 | result = GLATPsf_copy(arg1); |
14290 | } |
14291 | catch (const GException::out_of_range& e) { |
14292 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14293 | } |
14294 | catch (const GExceptionHandler& e) { |
14295 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14296 | } |
14297 | catch (const std::exception& e) { |
14298 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14299 | } |
14300 | } |
14301 | resultobj = SWIG_NewPointerObj((new GLATPsf(static_cast< const GLATPsf& >(result))), SWIGTYPE_p_GLATPsf, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATPsf(static_cast< const GLATPsf& >(result))), swig_types[20], 0x1 | 0); |
14302 | return resultobj; |
14303 | fail: |
14304 | return NULL__null; |
14305 | } |
14306 | |
14307 | |
14308 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATPsf_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14309 | PyObject *obj; |
14310 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
14311 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATPsfswig_types[20], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
14312 | return SWIG_Py_Void(); |
14313 | } |
14314 | |
14315 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATResponse__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14316 | PyObject *resultobj = 0; |
14317 | GLATResponse *result = 0 ; |
14318 | |
14319 | if (!PyArg_ParseTuple(args,(char *)":new_GLATResponse")) SWIG_failgoto fail; |
14320 | { |
14321 | try { |
14322 | result = (GLATResponse *)new GLATResponse(); |
14323 | } |
14324 | catch (const GException::out_of_range& e) { |
14325 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14326 | } |
14327 | catch (const GExceptionHandler& e) { |
14328 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14329 | } |
14330 | catch (const std::exception& e) { |
14331 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14332 | } |
14333 | } |
14334 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATResponse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], ( (0x1 << 1) | 0x1) | 0); |
14335 | return resultobj; |
14336 | fail: |
14337 | return NULL__null; |
14338 | } |
14339 | |
14340 | |
14341 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATResponse__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14342 | PyObject *resultobj = 0; |
14343 | GLATResponse *arg1 = 0 ; |
14344 | void *argp1 = 0 ; |
14345 | int res1 = 0 ; |
14346 | PyObject * obj0 = 0 ; |
14347 | GLATResponse *result = 0 ; |
14348 | |
14349 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATResponse",&obj0)) SWIG_failgoto fail; |
14350 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATResponse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14351 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATResponse" "', argument " "1"" of type '" "GLATResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATResponse" "', argument " "1"" of type '" "GLATResponse const &""'"); goto fail; } while(0); |
14353 | } |
14354 | if (!argp1) { |
14355 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATResponse" "', argument " "1"" of type '" "GLATResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATResponse" "', argument " "1"" of type '" "GLATResponse const &""'"); goto fail; } while(0); |
14356 | } |
14357 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14358 | { |
14359 | try { |
14360 | result = (GLATResponse *)new GLATResponse((GLATResponse const &)*arg1); |
14361 | } |
14362 | catch (const GException::out_of_range& e) { |
14363 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14364 | } |
14365 | catch (const GExceptionHandler& e) { |
14366 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14367 | } |
14368 | catch (const std::exception& e) { |
14369 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14370 | } |
14371 | } |
14372 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATResponse, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], ( (0x1 << 1) | 0x1) | 0); |
14373 | return resultobj; |
14374 | fail: |
14375 | return NULL__null; |
14376 | } |
14377 | |
14378 | |
14379 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATResponse(PyObject *self, PyObject *args) { |
14380 | int argc; |
14381 | PyObject *argv[2]; |
14382 | int ii; |
14383 | |
14384 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
14385 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
14386 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
14387 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
14388 | } |
14389 | if (argc == 0) { |
14390 | return _wrap_new_GLATResponse__SWIG_0(self, args); |
14391 | } |
14392 | if (argc == 1) { |
14393 | int _v; |
14394 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[21], 0, 0 ); |
14395 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14396 | if (_v) { |
14397 | return _wrap_new_GLATResponse__SWIG_1(self, args); |
14398 | } |
14399 | } |
14400 | |
14401 | fail: |
14402 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATResponse'.\n" |
14403 | " Possible C/C++ prototypes are:\n" |
14404 | " GLATResponse::GLATResponse()\n" |
14405 | " GLATResponse::GLATResponse(GLATResponse const &)\n"); |
14406 | return 0; |
14407 | } |
14408 | |
14409 | |
14410 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14411 | PyObject *resultobj = 0; |
14412 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14413 | void *argp1 = 0 ; |
14414 | int res1 = 0 ; |
14415 | PyObject * obj0 = 0 ; |
14416 | |
14417 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATResponse",&obj0)) SWIG_failgoto fail; |
14418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0x1 | 0, 0); |
14419 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATResponse" "', argument " "1"" of type '" "GLATResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATResponse" "', argument " "1"" of type '" "GLATResponse *""'"); goto fail; } while(0); |
14421 | } |
14422 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14423 | { |
14424 | try { |
14425 | delete arg1; |
14426 | } |
14427 | catch (const GException::out_of_range& e) { |
14428 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14429 | } |
14430 | catch (const GExceptionHandler& e) { |
14431 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14432 | } |
14433 | catch (const std::exception& e) { |
14434 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14435 | } |
14436 | } |
14437 | resultobj = SWIG_Py_Void(); |
14438 | return resultobj; |
14439 | fail: |
14440 | return NULL__null; |
14441 | } |
14442 | |
14443 | |
14444 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14445 | PyObject *resultobj = 0; |
14446 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14447 | void *argp1 = 0 ; |
14448 | int res1 = 0 ; |
14449 | PyObject * obj0 = 0 ; |
14450 | |
14451 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_clear",&obj0)) SWIG_failgoto fail; |
14452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14453 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_clear" "', argument " "1"" of type '" "GLATResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_clear" "', argument " "1"" of type '" "GLATResponse *""'"); goto fail; } while(0); |
14455 | } |
14456 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14457 | { |
14458 | try { |
14459 | (arg1)->clear(); |
14460 | } |
14461 | catch (const GException::out_of_range& e) { |
14462 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14463 | } |
14464 | catch (const GExceptionHandler& e) { |
14465 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14466 | } |
14467 | catch (const std::exception& e) { |
14468 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14469 | } |
14470 | } |
14471 | resultobj = SWIG_Py_Void(); |
14472 | return resultobj; |
14473 | fail: |
14474 | return NULL__null; |
14475 | } |
14476 | |
14477 | |
14478 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14479 | PyObject *resultobj = 0; |
14480 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14481 | void *argp1 = 0 ; |
14482 | int res1 = 0 ; |
14483 | PyObject * obj0 = 0 ; |
14484 | GLATResponse *result = 0 ; |
14485 | |
14486 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_clone",&obj0)) SWIG_failgoto fail; |
14487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14488 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_clone" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_clone" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14490 | } |
14491 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14492 | { |
14493 | try { |
14494 | result = (GLATResponse *)((GLATResponse const *)arg1)->clone(); |
14495 | } |
14496 | catch (const GException::out_of_range& e) { |
14497 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14498 | } |
14499 | catch (const GExceptionHandler& e) { |
14500 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14501 | } |
14502 | catch (const std::exception& e) { |
14503 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14504 | } |
14505 | } |
14506 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], 0 | 0); |
14507 | return resultobj; |
14508 | fail: |
14509 | return NULL__null; |
14510 | } |
14511 | |
14512 | |
14513 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_hasedisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14514 | PyObject *resultobj = 0; |
14515 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14516 | void *argp1 = 0 ; |
14517 | int res1 = 0 ; |
14518 | PyObject * obj0 = 0 ; |
14519 | bool result; |
14520 | |
14521 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_hasedisp",&obj0)) SWIG_failgoto fail; |
14522 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14523 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14524 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_hasedisp" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_hasedisp" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14525 | } |
14526 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14527 | { |
14528 | try { |
14529 | result = (bool)((GLATResponse const *)arg1)->hasedisp(); |
14530 | } |
14531 | catch (const GException::out_of_range& e) { |
14532 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14533 | } |
14534 | catch (const GExceptionHandler& e) { |
14535 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14536 | } |
14537 | catch (const std::exception& e) { |
14538 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14539 | } |
14540 | } |
14541 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
14542 | return resultobj; |
14543 | fail: |
14544 | return NULL__null; |
14545 | } |
14546 | |
14547 | |
14548 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_hastdisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14549 | PyObject *resultobj = 0; |
14550 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14551 | void *argp1 = 0 ; |
14552 | int res1 = 0 ; |
14553 | PyObject * obj0 = 0 ; |
14554 | bool result; |
14555 | |
14556 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_hastdisp",&obj0)) SWIG_failgoto fail; |
14557 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14558 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14559 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_hastdisp" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_hastdisp" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14560 | } |
14561 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14562 | { |
14563 | try { |
14564 | result = (bool)((GLATResponse const *)arg1)->hastdisp(); |
14565 | } |
14566 | catch (const GException::out_of_range& e) { |
14567 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14568 | } |
14569 | catch (const GExceptionHandler& e) { |
14570 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14571 | } |
14572 | catch (const std::exception& e) { |
14573 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14574 | } |
14575 | } |
14576 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
14577 | return resultobj; |
14578 | fail: |
14579 | return NULL__null; |
14580 | } |
14581 | |
14582 | |
14583 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_irf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14584 | PyObject *resultobj = 0; |
14585 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14586 | GEvent *arg2 = 0 ; |
14587 | GPhoton *arg3 = 0 ; |
14588 | GObservation *arg4 = 0 ; |
14589 | void *argp1 = 0 ; |
14590 | int res1 = 0 ; |
14591 | void *argp2 = 0 ; |
14592 | int res2 = 0 ; |
14593 | void *argp3 = 0 ; |
14594 | int res3 = 0 ; |
14595 | void *argp4 = 0 ; |
14596 | int res4 = 0 ; |
14597 | PyObject * obj0 = 0 ; |
14598 | PyObject * obj1 = 0 ; |
14599 | PyObject * obj2 = 0 ; |
14600 | PyObject * obj3 = 0 ; |
14601 | double result; |
14602 | |
14603 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATResponse_irf",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
14604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14605 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14607 | } |
14608 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14609 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2], 0 | 0, 0); |
14610 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14611 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while (0); |
14612 | } |
14613 | if (!argp2) { |
14614 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while(0); |
14615 | } |
14616 | arg2 = reinterpret_cast< GEvent * >(argp2); |
14617 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[25] , 0 | 0, 0); |
14618 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
14619 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'"); goto fail; } while (0); |
14620 | } |
14621 | if (!argp3) { |
14622 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'"); goto fail; } while(0); |
14623 | } |
14624 | arg3 = reinterpret_cast< GPhoton * >(argp3); |
14625 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[24] , 0 | 0, 0); |
14626 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
14627 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
14628 | } |
14629 | if (!argp4) { |
14630 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
14631 | } |
14632 | arg4 = reinterpret_cast< GObservation * >(argp4); |
14633 | { |
14634 | try { |
14635 | result = (double)((GLATResponse const *)arg1)->irf((GEvent const &)*arg2,(GPhoton const &)*arg3,(GObservation const &)*arg4); |
14636 | } |
14637 | catch (const GException::out_of_range& e) { |
14638 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14639 | } |
14640 | catch (const GExceptionHandler& e) { |
14641 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14642 | } |
14643 | catch (const std::exception& e) { |
14644 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14645 | } |
14646 | } |
14647 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14648 | return resultobj; |
14649 | fail: |
14650 | return NULL__null; |
14651 | } |
14652 | |
14653 | |
14654 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_npred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14655 | PyObject *resultobj = 0; |
14656 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14657 | GPhoton *arg2 = 0 ; |
14658 | GObservation *arg3 = 0 ; |
14659 | void *argp1 = 0 ; |
14660 | int res1 = 0 ; |
14661 | void *argp2 = 0 ; |
14662 | int res2 = 0 ; |
14663 | void *argp3 = 0 ; |
14664 | int res3 = 0 ; |
14665 | PyObject * obj0 = 0 ; |
14666 | PyObject * obj1 = 0 ; |
14667 | PyObject * obj2 = 0 ; |
14668 | double result; |
14669 | |
14670 | if (!PyArg_ParseTuple(args,(char *)"OOO:GLATResponse_npred",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
14671 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14672 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14673 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_npred" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_npred" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14674 | } |
14675 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14676 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25] , 0 | 0, 0); |
14677 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14678 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'"); goto fail; } while (0); |
14679 | } |
14680 | if (!argp2) { |
14681 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'"); goto fail; } while(0); |
14682 | } |
14683 | arg2 = reinterpret_cast< GPhoton * >(argp2); |
14684 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[24] , 0 | 0, 0); |
14685 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
14686 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATResponse_npred" "', argument " "3"" of type '" "GObservation const &""'"); goto fail; } while(0); |
14687 | } |
14688 | if (!argp3) { |
14689 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_npred" "', argument " "3"" of type '" "GObservation const &""'"); goto fail; } while(0); |
14690 | } |
14691 | arg3 = reinterpret_cast< GObservation * >(argp3); |
14692 | { |
14693 | try { |
14694 | result = (double)((GLATResponse const *)arg1)->npred((GPhoton const &)*arg2,(GObservation const &)*arg3); |
14695 | } |
14696 | catch (const GException::out_of_range& e) { |
14697 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14698 | } |
14699 | catch (const GExceptionHandler& e) { |
14700 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14701 | } |
14702 | catch (const std::exception& e) { |
14703 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14704 | } |
14705 | } |
14706 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14707 | return resultobj; |
14708 | fail: |
14709 | return NULL__null; |
14710 | } |
14711 | |
14712 | |
14713 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_irf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14714 | PyObject *resultobj = 0; |
14715 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14716 | GEvent *arg2 = 0 ; |
14717 | GSource *arg3 = 0 ; |
14718 | GObservation *arg4 = 0 ; |
14719 | void *argp1 = 0 ; |
14720 | int res1 = 0 ; |
14721 | void *argp2 = 0 ; |
14722 | int res2 = 0 ; |
14723 | void *argp3 = 0 ; |
14724 | int res3 = 0 ; |
14725 | void *argp4 = 0 ; |
14726 | int res4 = 0 ; |
14727 | PyObject * obj0 = 0 ; |
14728 | PyObject * obj1 = 0 ; |
14729 | PyObject * obj2 = 0 ; |
14730 | PyObject * obj3 = 0 ; |
14731 | double result; |
14732 | |
14733 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATResponse_irf",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
14734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14735 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14737 | } |
14738 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14739 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2], 0 | 0, 0); |
14740 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14741 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while (0); |
14742 | } |
14743 | if (!argp2) { |
14744 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while(0); |
14745 | } |
14746 | arg2 = reinterpret_cast< GEvent * >(argp2); |
14747 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[30] , 0 | 0, 0); |
14748 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
14749 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'"); goto fail; } while (0); |
14750 | } |
14751 | if (!argp3) { |
14752 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'"); goto fail; } while(0); |
14753 | } |
14754 | arg3 = reinterpret_cast< GSource * >(argp3); |
14755 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[24] , 0 | 0, 0); |
14756 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
14757 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
14758 | } |
14759 | if (!argp4) { |
14760 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
14761 | } |
14762 | arg4 = reinterpret_cast< GObservation * >(argp4); |
14763 | { |
14764 | try { |
14765 | result = (double)((GLATResponse const *)arg1)->irf((GEvent const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4); |
14766 | } |
14767 | catch (const GException::out_of_range& e) { |
14768 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14769 | } |
14770 | catch (const GExceptionHandler& e) { |
14771 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14772 | } |
14773 | catch (const std::exception& e) { |
14774 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14775 | } |
14776 | } |
14777 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14778 | return resultobj; |
14779 | fail: |
14780 | return NULL__null; |
14781 | } |
14782 | |
14783 | |
14784 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14785 | PyObject *resultobj = 0; |
14786 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14787 | void *argp1 = 0 ; |
14788 | int res1 = 0 ; |
14789 | PyObject * obj0 = 0 ; |
14790 | int result; |
14791 | |
14792 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_size",&obj0)) SWIG_failgoto fail; |
14793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14794 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_size" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_size" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14796 | } |
14797 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14798 | { |
14799 | try { |
14800 | result = (int)((GLATResponse const *)arg1)->size(); |
14801 | } |
14802 | catch (const GException::out_of_range& e) { |
14803 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14804 | } |
14805 | catch (const GExceptionHandler& e) { |
14806 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14807 | } |
14808 | catch (const std::exception& e) { |
14809 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14810 | } |
14811 | } |
14812 | resultobj = SWIG_From_int(static_cast< int >(result)); |
14813 | return resultobj; |
14814 | fail: |
14815 | return NULL__null; |
14816 | } |
14817 | |
14818 | |
14819 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_caldb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14820 | PyObject *resultobj = 0; |
14821 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14822 | std::string *arg2 = 0 ; |
14823 | void *argp1 = 0 ; |
14824 | int res1 = 0 ; |
14825 | int res2 = SWIG_OLDOBJ((0)) ; |
14826 | PyObject * obj0 = 0 ; |
14827 | PyObject * obj1 = 0 ; |
14828 | |
14829 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATResponse_caldb",&obj0,&obj1)) SWIG_failgoto fail; |
14830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14831 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_caldb" "', argument " "1"" of type '" "GLATResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_caldb" "', argument " "1"" of type '" "GLATResponse *""'"); goto fail; } while(0); |
14833 | } |
14834 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14835 | { |
14836 | std::string *ptr = (std::string *)0; |
14837 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
14838 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14839 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_caldb" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_caldb" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
14840 | } |
14841 | if (!ptr) { |
14842 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_caldb" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_caldb" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
14843 | } |
14844 | arg2 = ptr; |
14845 | } |
14846 | { |
14847 | try { |
14848 | (arg1)->caldb((std::string const &)*arg2); |
14849 | } |
14850 | catch (const GException::out_of_range& e) { |
14851 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14852 | } |
14853 | catch (const GExceptionHandler& e) { |
14854 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14855 | } |
14856 | catch (const std::exception& e) { |
14857 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14858 | } |
14859 | } |
14860 | resultobj = SWIG_Py_Void(); |
14861 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
14862 | return resultobj; |
14863 | fail: |
14864 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
14865 | return NULL__null; |
14866 | } |
14867 | |
14868 | |
14869 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_caldb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14870 | PyObject *resultobj = 0; |
14871 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14872 | void *argp1 = 0 ; |
14873 | int res1 = 0 ; |
14874 | PyObject * obj0 = 0 ; |
14875 | std::string *result = 0 ; |
14876 | |
14877 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_caldb",&obj0)) SWIG_failgoto fail; |
14878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14879 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_caldb" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_caldb" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14881 | } |
14882 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14883 | { |
14884 | try { |
14885 | result = (std::string *) &((GLATResponse const *)arg1)->caldb(); |
14886 | } |
14887 | catch (const GException::out_of_range& e) { |
14888 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14889 | } |
14890 | catch (const GExceptionHandler& e) { |
14891 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14892 | } |
14893 | catch (const std::exception& e) { |
14894 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14895 | } |
14896 | } |
14897 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
14898 | return resultobj; |
14899 | fail: |
14900 | return NULL__null; |
14901 | } |
14902 | |
14903 | |
14904 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_caldb(PyObject *self, PyObject *args) { |
14905 | int argc; |
14906 | PyObject *argv[3]; |
14907 | int ii; |
14908 | |
14909 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
14910 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
14911 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
14912 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
14913 | } |
14914 | if (argc == 1) { |
14915 | int _v; |
14916 | void *vptr = 0; |
14917 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
14918 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14919 | if (_v) { |
14920 | return _wrap_GLATResponse_caldb__SWIG_1(self, args); |
14921 | } |
14922 | } |
14923 | if (argc == 2) { |
14924 | int _v; |
14925 | void *vptr = 0; |
14926 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
14927 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14928 | if (_v) { |
14929 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
14930 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14931 | if (_v) { |
14932 | return _wrap_GLATResponse_caldb__SWIG_0(self, args); |
14933 | } |
14934 | } |
14935 | } |
14936 | |
14937 | fail: |
14938 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATResponse_caldb'.\n" |
14939 | " Possible C/C++ prototypes are:\n" |
14940 | " GLATResponse::caldb(std::string const &)\n" |
14941 | " GLATResponse::caldb() const\n"); |
14942 | return 0; |
14943 | } |
14944 | |
14945 | |
14946 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_rspname(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14947 | PyObject *resultobj = 0; |
14948 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14949 | void *argp1 = 0 ; |
14950 | int res1 = 0 ; |
14951 | PyObject * obj0 = 0 ; |
14952 | std::string *result = 0 ; |
14953 | |
14954 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_rspname",&obj0)) SWIG_failgoto fail; |
14955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14956 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_rspname" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_rspname" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
14958 | } |
14959 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14960 | { |
14961 | try { |
14962 | result = (std::string *) &((GLATResponse const *)arg1)->rspname(); |
14963 | } |
14964 | catch (const GException::out_of_range& e) { |
14965 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14966 | } |
14967 | catch (const GExceptionHandler& e) { |
14968 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14969 | } |
14970 | catch (const std::exception& e) { |
14971 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14972 | } |
14973 | } |
14974 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
14975 | return resultobj; |
14976 | fail: |
14977 | return NULL__null; |
14978 | } |
14979 | |
14980 | |
14981 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14982 | PyObject *resultobj = 0; |
14983 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
14984 | std::string *arg2 = 0 ; |
14985 | void *argp1 = 0 ; |
14986 | int res1 = 0 ; |
14987 | int res2 = SWIG_OLDOBJ((0)) ; |
14988 | PyObject * obj0 = 0 ; |
14989 | PyObject * obj1 = 0 ; |
14990 | |
14991 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATResponse_load",&obj0,&obj1)) SWIG_failgoto fail; |
14992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
14993 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_load" "', argument " "1"" of type '" "GLATResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_load" "', argument " "1"" of type '" "GLATResponse *""'"); goto fail; } while(0); |
14995 | } |
14996 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
14997 | { |
14998 | std::string *ptr = (std::string *)0; |
14999 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
15000 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
15001 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
15002 | } |
15003 | if (!ptr) { |
15004 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
15005 | } |
15006 | arg2 = ptr; |
15007 | } |
15008 | { |
15009 | try { |
15010 | (arg1)->load((std::string const &)*arg2); |
15011 | } |
15012 | catch (const GException::out_of_range& e) { |
15013 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15014 | } |
15015 | catch (const GExceptionHandler& e) { |
15016 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15017 | } |
15018 | catch (const std::exception& e) { |
15019 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15020 | } |
15021 | } |
15022 | resultobj = SWIG_Py_Void(); |
15023 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
15024 | return resultobj; |
15025 | fail: |
15026 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
15027 | return NULL__null; |
15028 | } |
15029 | |
15030 | |
15031 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15032 | PyObject *resultobj = 0; |
15033 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15034 | std::string *arg2 = 0 ; |
15035 | void *argp1 = 0 ; |
15036 | int res1 = 0 ; |
15037 | int res2 = SWIG_OLDOBJ((0)) ; |
15038 | PyObject * obj0 = 0 ; |
15039 | PyObject * obj1 = 0 ; |
15040 | |
15041 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATResponse_save",&obj0,&obj1)) SWIG_failgoto fail; |
15042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15043 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_save" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_save" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
15045 | } |
15046 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15047 | { |
15048 | std::string *ptr = (std::string *)0; |
15049 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
15050 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
15051 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
15052 | } |
15053 | if (!ptr) { |
15054 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
15055 | } |
15056 | arg2 = ptr; |
15057 | } |
15058 | { |
15059 | try { |
15060 | ((GLATResponse const *)arg1)->save((std::string const &)*arg2); |
15061 | } |
15062 | catch (const GException::out_of_range& e) { |
15063 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15064 | } |
15065 | catch (const GExceptionHandler& e) { |
15066 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15067 | } |
15068 | catch (const std::exception& e) { |
15069 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15070 | } |
15071 | } |
15072 | resultobj = SWIG_Py_Void(); |
15073 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
15074 | return resultobj; |
15075 | fail: |
15076 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
15077 | return NULL__null; |
15078 | } |
15079 | |
15080 | |
15081 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_force_mean__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15082 | PyObject *resultobj = 0; |
15083 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15084 | void *argp1 = 0 ; |
15085 | int res1 = 0 ; |
15086 | PyObject * obj0 = 0 ; |
15087 | bool *result = 0 ; |
15088 | |
15089 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_force_mean",&obj0)) SWIG_failgoto fail; |
15090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15091 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_force_mean" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_force_mean" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
15093 | } |
15094 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15095 | { |
15096 | try { |
15097 | result = (bool *) &((GLATResponse const *)arg1)->force_mean(); |
15098 | } |
15099 | catch (const GException::out_of_range& e) { |
15100 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15101 | } |
15102 | catch (const GExceptionHandler& e) { |
15103 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15104 | } |
15105 | catch (const std::exception& e) { |
15106 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15107 | } |
15108 | } |
15109 | resultobj = SWIG_From_bool(static_cast< bool >(*result)); |
15110 | return resultobj; |
15111 | fail: |
15112 | return NULL__null; |
15113 | } |
15114 | |
15115 | |
15116 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_force_mean__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15117 | PyObject *resultobj = 0; |
15118 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15119 | bool *arg2 = 0 ; |
15120 | void *argp1 = 0 ; |
15121 | int res1 = 0 ; |
15122 | bool temp2 ; |
15123 | bool val2 ; |
15124 | int ecode2 = 0 ; |
15125 | PyObject * obj0 = 0 ; |
15126 | PyObject * obj1 = 0 ; |
15127 | |
15128 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATResponse_force_mean",&obj0,&obj1)) SWIG_failgoto fail; |
15129 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15130 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_force_mean" "', argument " "1"" of type '" "GLATResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_force_mean" "', argument " "1"" of type '" "GLATResponse *""'"); goto fail; } while(0); |
15132 | } |
15133 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15134 | ecode2 = SWIG_AsVal_bool(obj1, &val2); |
15135 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
15136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATResponse_force_mean" "', argument " "2"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATResponse_force_mean" "', argument " "2"" of type '" "bool""'"); goto fail; } while (0); |
15137 | } |
15138 | temp2 = static_cast< bool >(val2); |
15139 | arg2 = &temp2; |
15140 | { |
15141 | try { |
15142 | (arg1)->force_mean((bool const &)*arg2); |
15143 | } |
15144 | catch (const GException::out_of_range& e) { |
15145 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15146 | } |
15147 | catch (const GExceptionHandler& e) { |
15148 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15149 | } |
15150 | catch (const std::exception& e) { |
15151 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15152 | } |
15153 | } |
15154 | resultobj = SWIG_Py_Void(); |
15155 | return resultobj; |
15156 | fail: |
15157 | return NULL__null; |
15158 | } |
15159 | |
15160 | |
15161 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_force_mean(PyObject *self, PyObject *args) { |
15162 | int argc; |
15163 | PyObject *argv[3]; |
15164 | int ii; |
15165 | |
15166 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
15167 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
15168 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
15169 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
15170 | } |
15171 | if (argc == 1) { |
15172 | int _v; |
15173 | void *vptr = 0; |
15174 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
15175 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15176 | if (_v) { |
15177 | return _wrap_GLATResponse_force_mean__SWIG_0(self, args); |
15178 | } |
15179 | } |
15180 | if (argc == 2) { |
15181 | int _v; |
15182 | void *vptr = 0; |
15183 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
15184 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15185 | if (_v) { |
15186 | { |
15187 | int res = SWIG_AsVal_bool(argv[1], NULL__null); |
15188 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15189 | } |
15190 | if (_v) { |
15191 | return _wrap_GLATResponse_force_mean__SWIG_1(self, args); |
15192 | } |
15193 | } |
15194 | } |
15195 | |
15196 | fail: |
15197 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATResponse_force_mean'.\n" |
15198 | " Possible C/C++ prototypes are:\n" |
15199 | " GLATResponse::force_mean() const\n" |
15200 | " GLATResponse::force_mean(bool const &)\n"); |
15201 | return 0; |
15202 | } |
15203 | |
15204 | |
15205 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_aeff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15206 | PyObject *resultobj = 0; |
15207 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15208 | int *arg2 = 0 ; |
15209 | void *argp1 = 0 ; |
15210 | int res1 = 0 ; |
15211 | int temp2 ; |
15212 | int val2 ; |
15213 | int ecode2 = 0 ; |
15214 | PyObject * obj0 = 0 ; |
15215 | PyObject * obj1 = 0 ; |
15216 | GLATAeff *result = 0 ; |
15217 | |
15218 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATResponse_aeff",&obj0,&obj1)) SWIG_failgoto fail; |
15219 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15220 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15221 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_aeff" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_aeff" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
15222 | } |
15223 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15224 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
15225 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
15226 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATResponse_aeff" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATResponse_aeff" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
15227 | } |
15228 | temp2 = static_cast< int >(val2); |
15229 | arg2 = &temp2; |
15230 | { |
15231 | try { |
15232 | result = (GLATAeff *)((GLATResponse const *)arg1)->aeff((int const &)*arg2); |
15233 | } |
15234 | catch (const GException::out_of_range& e) { |
15235 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15236 | } |
15237 | catch (const GExceptionHandler& e) { |
15238 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15239 | } |
15240 | catch (const std::exception& e) { |
15241 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15242 | } |
15243 | } |
15244 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATAeff, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], 0 | 0); |
15245 | return resultobj; |
15246 | fail: |
15247 | return NULL__null; |
15248 | } |
15249 | |
15250 | |
15251 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_psf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15252 | PyObject *resultobj = 0; |
15253 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15254 | int *arg2 = 0 ; |
15255 | void *argp1 = 0 ; |
15256 | int res1 = 0 ; |
15257 | int temp2 ; |
15258 | int val2 ; |
15259 | int ecode2 = 0 ; |
15260 | PyObject * obj0 = 0 ; |
15261 | PyObject * obj1 = 0 ; |
15262 | GLATPsf *result = 0 ; |
15263 | |
15264 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATResponse_psf",&obj0,&obj1)) SWIG_failgoto fail; |
15265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15266 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_psf" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_psf" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
15268 | } |
15269 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15270 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
15271 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
15272 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATResponse_psf" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATResponse_psf" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
15273 | } |
15274 | temp2 = static_cast< int >(val2); |
15275 | arg2 = &temp2; |
15276 | { |
15277 | try { |
15278 | result = (GLATPsf *)((GLATResponse const *)arg1)->psf((int const &)*arg2); |
15279 | } |
15280 | catch (const GException::out_of_range& e) { |
15281 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15282 | } |
15283 | catch (const GExceptionHandler& e) { |
15284 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15285 | } |
15286 | catch (const std::exception& e) { |
15287 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15288 | } |
15289 | } |
15290 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATPsf, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], 0 | 0); |
15291 | return resultobj; |
15292 | fail: |
15293 | return NULL__null; |
15294 | } |
15295 | |
15296 | |
15297 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_edisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15298 | PyObject *resultobj = 0; |
15299 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15300 | int *arg2 = 0 ; |
15301 | void *argp1 = 0 ; |
15302 | int res1 = 0 ; |
15303 | int temp2 ; |
15304 | int val2 ; |
15305 | int ecode2 = 0 ; |
15306 | PyObject * obj0 = 0 ; |
15307 | PyObject * obj1 = 0 ; |
15308 | GLATEdisp *result = 0 ; |
15309 | |
15310 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATResponse_edisp",&obj0,&obj1)) SWIG_failgoto fail; |
15311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15312 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_edisp" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_edisp" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
15314 | } |
15315 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15316 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
15317 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
15318 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATResponse_edisp" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATResponse_edisp" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
15319 | } |
15320 | temp2 = static_cast< int >(val2); |
15321 | arg2 = &temp2; |
15322 | { |
15323 | try { |
15324 | result = (GLATEdisp *)((GLATResponse const *)arg1)->edisp((int const &)*arg2); |
15325 | } |
15326 | catch (const GException::out_of_range& e) { |
15327 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15328 | } |
15329 | catch (const GExceptionHandler& e) { |
15330 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15331 | } |
15332 | catch (const std::exception& e) { |
15333 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15334 | } |
15335 | } |
15336 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATEdisp, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
15337 | return resultobj; |
15338 | fail: |
15339 | return NULL__null; |
15340 | } |
15341 | |
15342 | |
15343 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_irf__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15344 | PyObject *resultobj = 0; |
15345 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15346 | GLATEventAtom *arg2 = 0 ; |
15347 | GSource *arg3 = 0 ; |
15348 | GObservation *arg4 = 0 ; |
15349 | void *argp1 = 0 ; |
15350 | int res1 = 0 ; |
15351 | void *argp2 = 0 ; |
15352 | int res2 = 0 ; |
15353 | void *argp3 = 0 ; |
15354 | int res3 = 0 ; |
15355 | void *argp4 = 0 ; |
15356 | int res4 = 0 ; |
15357 | PyObject * obj0 = 0 ; |
15358 | PyObject * obj1 = 0 ; |
15359 | PyObject * obj2 = 0 ; |
15360 | PyObject * obj3 = 0 ; |
15361 | double result; |
15362 | |
15363 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATResponse_irf",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
15364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15365 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
15367 | } |
15368 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15369 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLATEventAtom, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12] , 0 | 0, 0); |
15370 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
15371 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventAtom const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventAtom const &""'"); goto fail; } while(0); |
15372 | } |
15373 | if (!argp2) { |
15374 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventAtom const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventAtom const &""'"); goto fail; } while(0); |
15375 | } |
15376 | arg2 = reinterpret_cast< GLATEventAtom * >(argp2); |
15377 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[30] , 0 | 0, 0); |
15378 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
15379 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'"); goto fail; } while (0); |
15380 | } |
15381 | if (!argp3) { |
15382 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'"); goto fail; } while(0); |
15383 | } |
15384 | arg3 = reinterpret_cast< GSource * >(argp3); |
15385 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[24] , 0 | 0, 0); |
15386 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
15387 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
15388 | } |
15389 | if (!argp4) { |
15390 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
15391 | } |
15392 | arg4 = reinterpret_cast< GObservation * >(argp4); |
15393 | { |
15394 | try { |
15395 | result = (double)((GLATResponse const *)arg1)->irf((GLATEventAtom const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4); |
15396 | } |
15397 | catch (const GException::out_of_range& e) { |
15398 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15399 | } |
15400 | catch (const GExceptionHandler& e) { |
15401 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15402 | } |
15403 | catch (const std::exception& e) { |
15404 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15405 | } |
15406 | } |
15407 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
15408 | return resultobj; |
15409 | fail: |
15410 | return NULL__null; |
15411 | } |
15412 | |
15413 | |
15414 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_irf__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15415 | PyObject *resultobj = 0; |
15416 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15417 | GLATEventBin *arg2 = 0 ; |
15418 | GSource *arg3 = 0 ; |
15419 | GObservation *arg4 = 0 ; |
15420 | void *argp1 = 0 ; |
15421 | int res1 = 0 ; |
15422 | void *argp2 = 0 ; |
15423 | int res2 = 0 ; |
15424 | void *argp3 = 0 ; |
15425 | int res3 = 0 ; |
15426 | void *argp4 = 0 ; |
15427 | int res4 = 0 ; |
15428 | PyObject * obj0 = 0 ; |
15429 | PyObject * obj1 = 0 ; |
15430 | PyObject * obj2 = 0 ; |
15431 | PyObject * obj3 = 0 ; |
15432 | double result; |
15433 | |
15434 | if (!PyArg_ParseTuple(args,(char *)"OOOO:GLATResponse_irf",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
15435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15436 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_irf" "', argument " "1"" of type '" "GLATResponse const *""'"); goto fail; } while (0); |
15438 | } |
15439 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15440 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLATEventBin, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13] , 0 | 0, 0); |
15441 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
15442 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventBin const &""'"); goto fail; } while(0); |
15443 | } |
15444 | if (!argp2) { |
15445 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventBin const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "2"" of type '" "GLATEventBin const &""'"); goto fail; } while(0); |
15446 | } |
15447 | arg2 = reinterpret_cast< GLATEventBin * >(argp2); |
15448 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[30] , 0 | 0, 0); |
15449 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
15450 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'"); goto fail; } while (0); |
15451 | } |
15452 | if (!argp3) { |
15453 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "3"" of type '" "GSource const &""'"); goto fail; } while(0); |
15454 | } |
15455 | arg3 = reinterpret_cast< GSource * >(argp3); |
15456 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[24] , 0 | 0, 0); |
15457 | if (!SWIG_IsOK(res4)(res4 >= 0)) { |
15458 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != ( -1)) ? res4 : -5)), "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
15459 | } |
15460 | if (!argp4) { |
15461 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATResponse_irf" "', argument " "4"" of type '" "GObservation const &""'"); goto fail; } while(0); |
15462 | } |
15463 | arg4 = reinterpret_cast< GObservation * >(argp4); |
15464 | { |
15465 | try { |
15466 | result = (double)((GLATResponse const *)arg1)->irf((GLATEventBin const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4); |
15467 | } |
15468 | catch (const GException::out_of_range& e) { |
15469 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15470 | } |
15471 | catch (const GExceptionHandler& e) { |
15472 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15473 | } |
15474 | catch (const std::exception& e) { |
15475 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15476 | } |
15477 | } |
15478 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
15479 | return resultobj; |
15480 | fail: |
15481 | return NULL__null; |
15482 | } |
15483 | |
15484 | |
15485 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_irf(PyObject *self, PyObject *args) { |
15486 | int argc; |
15487 | PyObject *argv[5]; |
15488 | int ii; |
15489 | |
15490 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
15491 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
15492 | for (ii = 0; (ii < 4) && (ii < argc); ii++) { |
15493 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
15494 | } |
15495 | if (argc == 4) { |
15496 | int _v; |
15497 | void *vptr = 0; |
15498 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
15499 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15500 | if (_v) { |
15501 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLATEventAtom, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[12], 0, 0 ); |
15502 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15503 | if (_v) { |
15504 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[30], 0, 0 ); |
15505 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15506 | if (_v) { |
15507 | int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[24], 0, 0 ); |
15508 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15509 | if (_v) { |
15510 | return _wrap_GLATResponse_irf__SWIG_2(self, args); |
15511 | } |
15512 | } |
15513 | } |
15514 | } |
15515 | } |
15516 | if (argc == 4) { |
15517 | int _v; |
15518 | void *vptr = 0; |
15519 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
15520 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15521 | if (_v) { |
15522 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLATEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[13], 0, 0 ); |
15523 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15524 | if (_v) { |
15525 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[30], 0, 0 ); |
15526 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15527 | if (_v) { |
15528 | int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[24], 0, 0 ); |
15529 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15530 | if (_v) { |
15531 | return _wrap_GLATResponse_irf__SWIG_3(self, args); |
15532 | } |
15533 | } |
15534 | } |
15535 | } |
15536 | } |
15537 | if (argc == 4) { |
15538 | int _v; |
15539 | void *vptr = 0; |
15540 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
15541 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15542 | if (_v) { |
15543 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEvent, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[2], 0, 0); |
15544 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15545 | if (_v) { |
15546 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[25], 0, 0 ); |
15547 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15548 | if (_v) { |
15549 | int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[24], 0, 0 ); |
15550 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15551 | if (_v) { |
15552 | return _wrap_GLATResponse_irf__SWIG_0(self, args); |
15553 | } |
15554 | } |
15555 | } |
15556 | } |
15557 | } |
15558 | if (argc == 4) { |
15559 | int _v; |
15560 | void *vptr = 0; |
15561 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[21 ], 0, 0); |
15562 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15563 | if (_v) { |
15564 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEvent, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[2], 0, 0); |
15565 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15566 | if (_v) { |
15567 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[30], 0, 0 ); |
15568 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15569 | if (_v) { |
15570 | int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[24], 0, 0 ); |
15571 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15572 | if (_v) { |
15573 | return _wrap_GLATResponse_irf__SWIG_1(self, args); |
15574 | } |
15575 | } |
15576 | } |
15577 | } |
15578 | } |
15579 | |
15580 | fail: |
15581 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATResponse_irf'.\n" |
15582 | " Possible C/C++ prototypes are:\n" |
15583 | " GLATResponse::irf(GEvent const &,GPhoton const &,GObservation const &) const\n" |
15584 | " GLATResponse::irf(GEvent const &,GSource const &,GObservation const &) const\n" |
15585 | " GLATResponse::irf(GLATEventAtom const &,GSource const &,GObservation const &) const\n" |
15586 | " GLATResponse::irf(GLATEventBin const &,GSource const &,GObservation const &) const\n"); |
15587 | return 0; |
15588 | } |
15589 | |
15590 | |
15591 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATResponse_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15592 | PyObject *resultobj = 0; |
15593 | GLATResponse *arg1 = (GLATResponse *) 0 ; |
15594 | void *argp1 = 0 ; |
15595 | int res1 = 0 ; |
15596 | PyObject * obj0 = 0 ; |
15597 | GLATResponse result; |
15598 | |
15599 | if (!PyArg_ParseTuple(args,(char *)"O:GLATResponse_copy",&obj0)) SWIG_failgoto fail; |
15600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
15601 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATResponse_copy" "', argument " "1"" of type '" "GLATResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATResponse_copy" "', argument " "1"" of type '" "GLATResponse *""'"); goto fail; } while(0); |
15603 | } |
15604 | arg1 = reinterpret_cast< GLATResponse * >(argp1); |
15605 | { |
15606 | try { |
15607 | result = GLATResponse_copy(arg1); |
15608 | } |
15609 | catch (const GException::out_of_range& e) { |
15610 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15611 | } |
15612 | catch (const GExceptionHandler& e) { |
15613 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15614 | } |
15615 | catch (const std::exception& e) { |
15616 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15617 | } |
15618 | } |
15619 | resultobj = SWIG_NewPointerObj((new GLATResponse(static_cast< const GLATResponse& >(result))), SWIGTYPE_p_GLATResponse, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATResponse(static_cast < const GLATResponse& >(result))), swig_types[21], 0x1 | 0); |
15620 | return resultobj; |
15621 | fail: |
15622 | return NULL__null; |
15623 | } |
15624 | |
15625 | |
15626 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15627 | PyObject *obj; |
15628 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
15629 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATResponseswig_types[21], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
15630 | return SWIG_Py_Void(); |
15631 | } |
15632 | |
15633 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATRoi__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15634 | PyObject *resultobj = 0; |
15635 | GLATRoi *result = 0 ; |
15636 | |
15637 | if (!PyArg_ParseTuple(args,(char *)":new_GLATRoi")) SWIG_failgoto fail; |
15638 | { |
15639 | try { |
15640 | result = (GLATRoi *)new GLATRoi(); |
15641 | } |
15642 | catch (const GException::out_of_range& e) { |
15643 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15644 | } |
15645 | catch (const GExceptionHandler& e) { |
15646 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15647 | } |
15648 | catch (const std::exception& e) { |
15649 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15650 | } |
15651 | } |
15652 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATRoi, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[22], ( (0x1 << 1) | 0x1) | 0); |
15653 | return resultobj; |
15654 | fail: |
15655 | return NULL__null; |
15656 | } |
15657 | |
15658 | |
15659 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATRoi__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15660 | PyObject *resultobj = 0; |
15661 | GLATInstDir *arg1 = 0 ; |
15662 | double *arg2 = 0 ; |
15663 | void *argp1 = 0 ; |
15664 | int res1 = 0 ; |
15665 | double temp2 ; |
15666 | double val2 ; |
15667 | int ecode2 = 0 ; |
15668 | PyObject * obj0 = 0 ; |
15669 | PyObject * obj1 = 0 ; |
15670 | GLATRoi *result = 0 ; |
15671 | |
15672 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GLATRoi",&obj0,&obj1)) SWIG_failgoto fail; |
15673 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATInstDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
15674 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATInstDir const &""'"); goto fail; } while (0); |
15676 | } |
15677 | if (!argp1) { |
15678 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATInstDir const &" "'"); goto fail; } while(0); |
15679 | } |
15680 | arg1 = reinterpret_cast< GLATInstDir * >(argp1); |
15681 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
15682 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
15683 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GLATRoi" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GLATRoi" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
15684 | } |
15685 | temp2 = static_cast< double >(val2); |
15686 | arg2 = &temp2; |
15687 | { |
15688 | try { |
15689 | result = (GLATRoi *)new GLATRoi((GLATInstDir const &)*arg1,(double const &)*arg2); |
15690 | } |
15691 | catch (const GException::out_of_range& e) { |
15692 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15693 | } |
15694 | catch (const GExceptionHandler& e) { |
15695 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15696 | } |
15697 | catch (const std::exception& e) { |
15698 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15699 | } |
15700 | } |
15701 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATRoi, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[22], ( (0x1 << 1) | 0x1) | 0); |
15702 | return resultobj; |
15703 | fail: |
15704 | return NULL__null; |
15705 | } |
15706 | |
15707 | |
15708 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATRoi__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15709 | PyObject *resultobj = 0; |
15710 | GLATRoi *arg1 = 0 ; |
15711 | void *argp1 = 0 ; |
15712 | int res1 = 0 ; |
15713 | PyObject * obj0 = 0 ; |
15714 | GLATRoi *result = 0 ; |
15715 | |
15716 | if (!PyArg_ParseTuple(args,(char *)"O:new_GLATRoi",&obj0)) SWIG_failgoto fail; |
15717 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GLATRoi, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
15718 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATRoi const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATRoi const &""'"); goto fail; } while (0); |
15720 | } |
15721 | if (!argp1) { |
15722 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATRoi const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GLATRoi" "', argument " "1"" of type '" "GLATRoi const &" "'"); goto fail; } while(0); |
15723 | } |
15724 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
15725 | { |
15726 | try { |
15727 | result = (GLATRoi *)new GLATRoi((GLATRoi const &)*arg1); |
15728 | } |
15729 | catch (const GException::out_of_range& e) { |
15730 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15731 | } |
15732 | catch (const GExceptionHandler& e) { |
15733 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15734 | } |
15735 | catch (const std::exception& e) { |
15736 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15737 | } |
15738 | } |
15739 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATRoi, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[22], ( (0x1 << 1) | 0x1) | 0); |
15740 | return resultobj; |
15741 | fail: |
15742 | return NULL__null; |
15743 | } |
15744 | |
15745 | |
15746 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GLATRoi(PyObject *self, PyObject *args) { |
15747 | int argc; |
15748 | PyObject *argv[3]; |
15749 | int ii; |
15750 | |
15751 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
15752 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
15753 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
15754 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
15755 | } |
15756 | if (argc == 0) { |
15757 | return _wrap_new_GLATRoi__SWIG_0(self, args); |
15758 | } |
15759 | if (argc == 1) { |
15760 | int _v; |
15761 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATRoi, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[22], 0, 0 ); |
15762 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15763 | if (_v) { |
15764 | return _wrap_new_GLATRoi__SWIG_2(self, args); |
15765 | } |
15766 | } |
15767 | if (argc == 2) { |
15768 | int _v; |
15769 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GLATInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[16], 0, 0 ); |
15770 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15771 | if (_v) { |
15772 | { |
15773 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
15774 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15775 | } |
15776 | if (_v) { |
15777 | return _wrap_new_GLATRoi__SWIG_1(self, args); |
15778 | } |
15779 | } |
15780 | } |
15781 | |
15782 | fail: |
15783 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GLATRoi'.\n" |
15784 | " Possible C/C++ prototypes are:\n" |
15785 | " GLATRoi::GLATRoi()\n" |
15786 | " GLATRoi::GLATRoi(GLATInstDir const &,double const &)\n" |
15787 | " GLATRoi::GLATRoi(GLATRoi const &)\n"); |
15788 | return 0; |
15789 | } |
15790 | |
15791 | |
15792 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GLATRoi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15793 | PyObject *resultobj = 0; |
15794 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
15795 | void *argp1 = 0 ; |
15796 | int res1 = 0 ; |
15797 | PyObject * obj0 = 0 ; |
15798 | |
15799 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GLATRoi",&obj0)) SWIG_failgoto fail; |
15800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0x1 | 0, 0); |
15801 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GLATRoi" "', argument " "1"" of type '" "GLATRoi *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GLATRoi" "', argument " "1"" of type '" "GLATRoi *""'"); goto fail; } while(0); |
15803 | } |
15804 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
15805 | { |
15806 | try { |
15807 | delete arg1; |
15808 | } |
15809 | catch (const GException::out_of_range& e) { |
15810 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15811 | } |
15812 | catch (const GExceptionHandler& e) { |
15813 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15814 | } |
15815 | catch (const std::exception& e) { |
15816 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15817 | } |
15818 | } |
15819 | resultobj = SWIG_Py_Void(); |
15820 | return resultobj; |
15821 | fail: |
15822 | return NULL__null; |
15823 | } |
15824 | |
15825 | |
15826 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15827 | PyObject *resultobj = 0; |
15828 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
15829 | void *argp1 = 0 ; |
15830 | int res1 = 0 ; |
15831 | PyObject * obj0 = 0 ; |
15832 | |
15833 | if (!PyArg_ParseTuple(args,(char *)"O:GLATRoi_clear",&obj0)) SWIG_failgoto fail; |
15834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
15835 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_clear" "', argument " "1"" of type '" "GLATRoi *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_clear" "', argument " "1"" of type '" "GLATRoi *""'"); goto fail; } while(0); |
15837 | } |
15838 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
15839 | { |
15840 | try { |
15841 | (arg1)->clear(); |
15842 | } |
15843 | catch (const GException::out_of_range& e) { |
15844 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15845 | } |
15846 | catch (const GExceptionHandler& e) { |
15847 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15848 | } |
15849 | catch (const std::exception& e) { |
15850 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15851 | } |
15852 | } |
15853 | resultobj = SWIG_Py_Void(); |
15854 | return resultobj; |
15855 | fail: |
15856 | return NULL__null; |
15857 | } |
15858 | |
15859 | |
15860 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15861 | PyObject *resultobj = 0; |
15862 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
15863 | void *argp1 = 0 ; |
15864 | int res1 = 0 ; |
15865 | PyObject * obj0 = 0 ; |
15866 | GLATRoi *result = 0 ; |
15867 | |
15868 | if (!PyArg_ParseTuple(args,(char *)"O:GLATRoi_clone",&obj0)) SWIG_failgoto fail; |
15869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
15870 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_clone" "', argument " "1"" of type '" "GLATRoi const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_clone" "', argument " "1"" of type '" "GLATRoi const *""'"); goto fail; } while(0); |
15872 | } |
15873 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
15874 | { |
15875 | try { |
15876 | result = (GLATRoi *)((GLATRoi const *)arg1)->clone(); |
15877 | } |
15878 | catch (const GException::out_of_range& e) { |
15879 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15880 | } |
15881 | catch (const GExceptionHandler& e) { |
15882 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15883 | } |
15884 | catch (const std::exception& e) { |
15885 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15886 | } |
15887 | } |
15888 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[22], 0 | 0); |
15889 | return resultobj; |
15890 | fail: |
15891 | return NULL__null; |
15892 | } |
15893 | |
15894 | |
15895 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15896 | PyObject *resultobj = 0; |
15897 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
15898 | GEvent *arg2 = 0 ; |
15899 | void *argp1 = 0 ; |
15900 | int res1 = 0 ; |
15901 | void *argp2 = 0 ; |
15902 | int res2 = 0 ; |
15903 | PyObject * obj0 = 0 ; |
15904 | PyObject * obj1 = 0 ; |
15905 | bool result; |
15906 | |
15907 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATRoi_contains",&obj0,&obj1)) SWIG_failgoto fail; |
15908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
15909 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_contains" "', argument " "1"" of type '" "GLATRoi const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_contains" "', argument " "1"" of type '" "GLATRoi const *""'"); goto fail; } while(0); |
15911 | } |
15912 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
15913 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2], 0 | 0, 0); |
15914 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
15915 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATRoi_contains" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATRoi_contains" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while (0); |
15916 | } |
15917 | if (!argp2) { |
15918 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATRoi_contains" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATRoi_contains" "', argument " "2"" of type '" "GEvent const &""'"); goto fail; } while(0); |
15919 | } |
15920 | arg2 = reinterpret_cast< GEvent * >(argp2); |
15921 | { |
15922 | try { |
15923 | result = (bool)((GLATRoi const *)arg1)->contains((GEvent const &)*arg2); |
15924 | } |
15925 | catch (const GException::out_of_range& e) { |
15926 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15927 | } |
15928 | catch (const GExceptionHandler& e) { |
15929 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15930 | } |
15931 | catch (const std::exception& e) { |
15932 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15933 | } |
15934 | } |
15935 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
15936 | return resultobj; |
15937 | fail: |
15938 | return NULL__null; |
15939 | } |
15940 | |
15941 | |
15942 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_centre__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15943 | PyObject *resultobj = 0; |
15944 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
15945 | void *argp1 = 0 ; |
15946 | int res1 = 0 ; |
15947 | PyObject * obj0 = 0 ; |
15948 | GLATInstDir *result = 0 ; |
15949 | |
15950 | if (!PyArg_ParseTuple(args,(char *)"O:GLATRoi_centre",&obj0)) SWIG_failgoto fail; |
15951 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
15952 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_centre" "', argument " "1"" of type '" "GLATRoi const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_centre" "', argument " "1"" of type '" "GLATRoi const *""'"); goto fail; } while(0); |
15954 | } |
15955 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
15956 | { |
15957 | try { |
15958 | result = (GLATInstDir *) &((GLATRoi const *)arg1)->centre(); |
15959 | } |
15960 | catch (const GException::out_of_range& e) { |
15961 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15962 | } |
15963 | catch (const GExceptionHandler& e) { |
15964 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15965 | } |
15966 | catch (const std::exception& e) { |
15967 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15968 | } |
15969 | } |
15970 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GLATInstDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], 0 | 0); |
15971 | return resultobj; |
15972 | fail: |
15973 | return NULL__null; |
15974 | } |
15975 | |
15976 | |
15977 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_radius__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15978 | PyObject *resultobj = 0; |
15979 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
15980 | void *argp1 = 0 ; |
15981 | int res1 = 0 ; |
15982 | PyObject * obj0 = 0 ; |
15983 | double *result = 0 ; |
15984 | |
15985 | if (!PyArg_ParseTuple(args,(char *)"O:GLATRoi_radius",&obj0)) SWIG_failgoto fail; |
15986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
15987 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_radius" "', argument " "1"" of type '" "GLATRoi const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_radius" "', argument " "1"" of type '" "GLATRoi const *""'"); goto fail; } while(0); |
15989 | } |
15990 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
15991 | { |
15992 | try { |
15993 | result = (double *) &((GLATRoi const *)arg1)->radius(); |
15994 | } |
15995 | catch (const GException::out_of_range& e) { |
15996 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15997 | } |
15998 | catch (const GExceptionHandler& e) { |
15999 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16000 | } |
16001 | catch (const std::exception& e) { |
16002 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16003 | } |
16004 | } |
16005 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
16006 | return resultobj; |
16007 | fail: |
16008 | return NULL__null; |
16009 | } |
16010 | |
16011 | |
16012 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_centre__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16013 | PyObject *resultobj = 0; |
16014 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
16015 | GLATInstDir *arg2 = 0 ; |
16016 | void *argp1 = 0 ; |
16017 | int res1 = 0 ; |
16018 | void *argp2 = 0 ; |
16019 | int res2 = 0 ; |
16020 | PyObject * obj0 = 0 ; |
16021 | PyObject * obj1 = 0 ; |
16022 | |
16023 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATRoi_centre",&obj0,&obj1)) SWIG_failgoto fail; |
16024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
16025 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_centre" "', argument " "1"" of type '" "GLATRoi *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_centre" "', argument " "1"" of type '" "GLATRoi *""'"); goto fail; } while(0); |
16027 | } |
16028 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
16029 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GLATInstDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[16] , 0 | 0, 0); |
16030 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
16031 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GLATRoi_centre" "', argument " "2"" of type '" "GLATInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GLATRoi_centre" "', argument " "2"" of type '" "GLATInstDir const &""'"); goto fail; } while (0); |
16032 | } |
16033 | if (!argp2) { |
16034 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GLATRoi_centre" "', argument " "2"" of type '" "GLATInstDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GLATRoi_centre" "', argument " "2"" of type '" "GLATInstDir const &""'"); goto fail; } while(0); |
16035 | } |
16036 | arg2 = reinterpret_cast< GLATInstDir * >(argp2); |
16037 | { |
16038 | try { |
16039 | (arg1)->centre((GLATInstDir const &)*arg2); |
16040 | } |
16041 | catch (const GException::out_of_range& e) { |
16042 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16043 | } |
16044 | catch (const GExceptionHandler& e) { |
16045 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16046 | } |
16047 | catch (const std::exception& e) { |
16048 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16049 | } |
16050 | } |
16051 | resultobj = SWIG_Py_Void(); |
16052 | return resultobj; |
16053 | fail: |
16054 | return NULL__null; |
16055 | } |
16056 | |
16057 | |
16058 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_centre(PyObject *self, PyObject *args) { |
16059 | int argc; |
16060 | PyObject *argv[3]; |
16061 | int ii; |
16062 | |
16063 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
16064 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
16065 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
16066 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
16067 | } |
16068 | if (argc == 1) { |
16069 | int _v; |
16070 | void *vptr = 0; |
16071 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATRoi, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22 ], 0, 0); |
16072 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16073 | if (_v) { |
16074 | return _wrap_GLATRoi_centre__SWIG_0(self, args); |
16075 | } |
16076 | } |
16077 | if (argc == 2) { |
16078 | int _v; |
16079 | void *vptr = 0; |
16080 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATRoi, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22 ], 0, 0); |
16081 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16082 | if (_v) { |
16083 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GLATInstDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[16], 0, 0 ); |
16084 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16085 | if (_v) { |
16086 | return _wrap_GLATRoi_centre__SWIG_1(self, args); |
16087 | } |
16088 | } |
16089 | } |
16090 | |
16091 | fail: |
16092 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATRoi_centre'.\n" |
16093 | " Possible C/C++ prototypes are:\n" |
16094 | " GLATRoi::centre() const\n" |
16095 | " GLATRoi::centre(GLATInstDir const &)\n"); |
16096 | return 0; |
16097 | } |
16098 | |
16099 | |
16100 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_radius__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16101 | PyObject *resultobj = 0; |
16102 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
16103 | double *arg2 = 0 ; |
16104 | void *argp1 = 0 ; |
16105 | int res1 = 0 ; |
16106 | double temp2 ; |
16107 | double val2 ; |
16108 | int ecode2 = 0 ; |
16109 | PyObject * obj0 = 0 ; |
16110 | PyObject * obj1 = 0 ; |
16111 | |
16112 | if (!PyArg_ParseTuple(args,(char *)"OO:GLATRoi_radius",&obj0,&obj1)) SWIG_failgoto fail; |
16113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
16114 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_radius" "', argument " "1"" of type '" "GLATRoi *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_radius" "', argument " "1"" of type '" "GLATRoi *""'"); goto fail; } while(0); |
16116 | } |
16117 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
16118 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
16119 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
16120 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GLATRoi_radius" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GLATRoi_radius" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
16121 | } |
16122 | temp2 = static_cast< double >(val2); |
16123 | arg2 = &temp2; |
16124 | { |
16125 | try { |
16126 | (arg1)->radius((double const &)*arg2); |
16127 | } |
16128 | catch (const GException::out_of_range& e) { |
16129 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16130 | } |
16131 | catch (const GExceptionHandler& e) { |
16132 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16133 | } |
16134 | catch (const std::exception& e) { |
16135 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16136 | } |
16137 | } |
16138 | resultobj = SWIG_Py_Void(); |
16139 | return resultobj; |
16140 | fail: |
16141 | return NULL__null; |
16142 | } |
16143 | |
16144 | |
16145 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_radius(PyObject *self, PyObject *args) { |
16146 | int argc; |
16147 | PyObject *argv[3]; |
16148 | int ii; |
16149 | |
16150 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
16151 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
16152 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
16153 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
16154 | } |
16155 | if (argc == 1) { |
16156 | int _v; |
16157 | void *vptr = 0; |
16158 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATRoi, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22 ], 0, 0); |
16159 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16160 | if (_v) { |
16161 | return _wrap_GLATRoi_radius__SWIG_0(self, args); |
16162 | } |
16163 | } |
16164 | if (argc == 2) { |
16165 | int _v; |
16166 | void *vptr = 0; |
16167 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GLATRoi, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22 ], 0, 0); |
16168 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16169 | if (_v) { |
16170 | { |
16171 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
16172 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16173 | } |
16174 | if (_v) { |
16175 | return _wrap_GLATRoi_radius__SWIG_1(self, args); |
16176 | } |
16177 | } |
16178 | } |
16179 | |
16180 | fail: |
16181 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GLATRoi_radius'.\n" |
16182 | " Possible C/C++ prototypes are:\n" |
16183 | " GLATRoi::radius() const\n" |
16184 | " GLATRoi::radius(double const &)\n"); |
16185 | return 0; |
16186 | } |
16187 | |
16188 | |
16189 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GLATRoi_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16190 | PyObject *resultobj = 0; |
16191 | GLATRoi *arg1 = (GLATRoi *) 0 ; |
16192 | void *argp1 = 0 ; |
16193 | int res1 = 0 ; |
16194 | PyObject * obj0 = 0 ; |
16195 | GLATRoi result; |
16196 | |
16197 | if (!PyArg_ParseTuple(args,(char *)"O:GLATRoi_copy",&obj0)) SWIG_failgoto fail; |
16198 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GLATRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22] , 0 | 0, 0); |
16199 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16200 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GLATRoi_copy" "', argument " "1"" of type '" "GLATRoi *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GLATRoi_copy" "', argument " "1"" of type '" "GLATRoi *""'"); goto fail; } while(0); |
16201 | } |
16202 | arg1 = reinterpret_cast< GLATRoi * >(argp1); |
16203 | { |
16204 | try { |
16205 | result = GLATRoi_copy(arg1); |
16206 | } |
16207 | catch (const GException::out_of_range& e) { |
16208 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16209 | } |
16210 | catch (const GExceptionHandler& e) { |
16211 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16212 | } |
16213 | catch (const std::exception& e) { |
16214 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16215 | } |
16216 | } |
16217 | resultobj = SWIG_NewPointerObj((new GLATRoi(static_cast< const GLATRoi& >(result))), SWIGTYPE_p_GLATRoi, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GLATRoi(static_cast< const GLATRoi& >(result))), swig_types[22], 0x1 | 0); |
16218 | return resultobj; |
16219 | fail: |
16220 | return NULL__null; |
16221 | } |
16222 | |
16223 | |
16224 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GLATRoi_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16225 | PyObject *obj; |
16226 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
16227 | SWIG_TypeNewClientData(SWIGTYPE_p_GLATRoiswig_types[22], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
16228 | return SWIG_Py_Void(); |
16229 | } |
16230 | |
16231 | static PyMethodDef SwigMethods[] = { |
16232 | { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null}, |
16233 | { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"}, |
16234 | { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"}, |
16235 | { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n" |
16236 | "incr(size_t n=1) -> SwigPyIterator\n" |
16237 | "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n" |
16238 | ""}, |
16239 | { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n" |
16240 | "decr(size_t n=1) -> SwigPyIterator\n" |
16241 | "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n" |
16242 | ""}, |
16243 | { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"}, |
16244 | { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
16245 | { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"}, |
16246 | { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"}, |
16247 | { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"}, |
16248 | { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"}, |
16249 | { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
16250 | { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
16251 | { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
16252 | { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
16253 | { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
16254 | { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
16255 | { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n" |
16256 | "__sub__(ptrdiff_t n) -> SwigPyIterator\n" |
16257 | "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n" |
16258 | ""}, |
16259 | { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null}, |
16260 | { (char *)"new_GLATAeff", _wrap_new_GLATAeff, METH_VARARGS0x0001, (char *)"\n" |
16261 | "GLATAeff()\n" |
16262 | "GLATAeff(std::string const & filename)\n" |
16263 | "new_GLATAeff(GLATAeff aeff) -> GLATAeff\n" |
16264 | ""}, |
16265 | { (char *)"delete_GLATAeff", _wrap_delete_GLATAeff, METH_VARARGS0x0001, (char *)"delete_GLATAeff(GLATAeff self)"}, |
16266 | { (char *)"GLATAeff___call__", _wrap_GLATAeff___call__, METH_VARARGS0x0001, (char *)"\n" |
16267 | "__call__(double const & logE, double const & ctheta) -> double\n" |
16268 | "GLATAeff___call__(GLATAeff self, double const & logE, double const & ctheta, double const & phi) -> double\n" |
16269 | ""}, |
16270 | { (char *)"GLATAeff_clear", _wrap_GLATAeff_clear, METH_VARARGS0x0001, (char *)"GLATAeff_clear(GLATAeff self)"}, |
16271 | { (char *)"GLATAeff_clone", _wrap_GLATAeff_clone, METH_VARARGS0x0001, (char *)"GLATAeff_clone(GLATAeff self) -> GLATAeff"}, |
16272 | { (char *)"GLATAeff_load", _wrap_GLATAeff_load, METH_VARARGS0x0001, (char *)"GLATAeff_load(GLATAeff self, std::string const filename)"}, |
16273 | { (char *)"GLATAeff_save", _wrap_GLATAeff_save, METH_VARARGS0x0001, (char *)"\n" |
16274 | "save(std::string const filename, bool const & clobber=False)\n" |
16275 | "GLATAeff_save(GLATAeff self, std::string const filename)\n" |
16276 | ""}, |
16277 | { (char *)"GLATAeff_read", _wrap_GLATAeff_read, METH_VARARGS0x0001, (char *)"GLATAeff_read(GLATAeff self, GFits const & file)"}, |
16278 | { (char *)"GLATAeff_write", _wrap_GLATAeff_write, METH_VARARGS0x0001, (char *)"GLATAeff_write(GLATAeff self, GFits & file)"}, |
16279 | { (char *)"GLATAeff_size", _wrap_GLATAeff_size, METH_VARARGS0x0001, (char *)"GLATAeff_size(GLATAeff self) -> int"}, |
16280 | { (char *)"GLATAeff_nenergies", _wrap_GLATAeff_nenergies, METH_VARARGS0x0001, (char *)"GLATAeff_nenergies(GLATAeff self) -> int"}, |
16281 | { (char *)"GLATAeff_ncostheta", _wrap_GLATAeff_ncostheta, METH_VARARGS0x0001, (char *)"GLATAeff_ncostheta(GLATAeff self) -> int"}, |
16282 | { (char *)"GLATAeff_costhetamin", _wrap_GLATAeff_costhetamin, METH_VARARGS0x0001, (char *)"\n" |
16283 | "costhetamin() -> double\n" |
16284 | "GLATAeff_costhetamin(GLATAeff self, double const & ctheta)\n" |
16285 | ""}, |
16286 | { (char *)"GLATAeff_hasphi", _wrap_GLATAeff_hasphi, METH_VARARGS0x0001, (char *)"GLATAeff_hasphi(GLATAeff self) -> bool"}, |
16287 | { (char *)"GLATAeff_hasefficiency", _wrap_GLATAeff_hasefficiency, METH_VARARGS0x0001, (char *)"GLATAeff_hasefficiency(GLATAeff self) -> bool"}, |
16288 | { (char *)"GLATAeff_efficiency_factor1", _wrap_GLATAeff_efficiency_factor1, METH_VARARGS0x0001, (char *)"GLATAeff_efficiency_factor1(GLATAeff self, GEnergy const & srcEng) -> double"}, |
16289 | { (char *)"GLATAeff_efficiency_factor2", _wrap_GLATAeff_efficiency_factor2, METH_VARARGS0x0001, (char *)"GLATAeff_efficiency_factor2(GLATAeff self, GEnergy const & srcEng) -> double"}, |
16290 | { (char *)"GLATAeff_copy", _wrap_GLATAeff_copy, METH_VARARGS0x0001, (char *)"GLATAeff_copy(GLATAeff self) -> GLATAeff"}, |
16291 | { (char *)"GLATAeff_swigregister", GLATAeff_swigregister, METH_VARARGS0x0001, NULL__null}, |
16292 | { (char *)"new_GLATEdisp", _wrap_new_GLATEdisp, METH_VARARGS0x0001, (char *)"\n" |
16293 | "GLATEdisp()\n" |
16294 | "GLATEdisp(std::string const filename)\n" |
16295 | "new_GLATEdisp(GLATEdisp edisp) -> GLATEdisp\n" |
16296 | ""}, |
16297 | { (char *)"delete_GLATEdisp", _wrap_delete_GLATEdisp, METH_VARARGS0x0001, (char *)"delete_GLATEdisp(GLATEdisp self)"}, |
16298 | { (char *)"GLATEdisp_clear", _wrap_GLATEdisp_clear, METH_VARARGS0x0001, (char *)"GLATEdisp_clear(GLATEdisp self)"}, |
16299 | { (char *)"GLATEdisp_clone", _wrap_GLATEdisp_clone, METH_VARARGS0x0001, (char *)"GLATEdisp_clone(GLATEdisp self) -> GLATEdisp"}, |
16300 | { (char *)"GLATEdisp_load", _wrap_GLATEdisp_load, METH_VARARGS0x0001, (char *)"GLATEdisp_load(GLATEdisp self, std::string const filename)"}, |
16301 | { (char *)"GLATEdisp_save", _wrap_GLATEdisp_save, METH_VARARGS0x0001, (char *)"\n" |
16302 | "save(std::string const filename, bool const & clobber=False)\n" |
16303 | "GLATEdisp_save(GLATEdisp self, std::string const filename)\n" |
16304 | ""}, |
16305 | { (char *)"GLATEdisp_read", _wrap_GLATEdisp_read, METH_VARARGS0x0001, (char *)"GLATEdisp_read(GLATEdisp self, GFits const & file)"}, |
16306 | { (char *)"GLATEdisp_write", _wrap_GLATEdisp_write, METH_VARARGS0x0001, (char *)"GLATEdisp_write(GLATEdisp self, GFits & file)"}, |
16307 | { (char *)"GLATEdisp_size", _wrap_GLATEdisp_size, METH_VARARGS0x0001, (char *)"GLATEdisp_size(GLATEdisp self) -> int"}, |
16308 | { (char *)"GLATEdisp_nenergies", _wrap_GLATEdisp_nenergies, METH_VARARGS0x0001, (char *)"GLATEdisp_nenergies(GLATEdisp self) -> int"}, |
16309 | { (char *)"GLATEdisp_ncostheta", _wrap_GLATEdisp_ncostheta, METH_VARARGS0x0001, (char *)"GLATEdisp_ncostheta(GLATEdisp self) -> int"}, |
16310 | { (char *)"GLATEdisp_hasphi", _wrap_GLATEdisp_hasphi, METH_VARARGS0x0001, (char *)"GLATEdisp_hasphi(GLATEdisp self) -> bool"}, |
16311 | { (char *)"GLATEdisp_copy", _wrap_GLATEdisp_copy, METH_VARARGS0x0001, (char *)"GLATEdisp_copy(GLATEdisp self) -> GLATEdisp"}, |
16312 | { (char *)"GLATEdisp_swigregister", GLATEdisp_swigregister, METH_VARARGS0x0001, NULL__null}, |
16313 | { (char *)"new_GLATEventAtom", _wrap_new_GLATEventAtom, METH_VARARGS0x0001, (char *)"\n" |
16314 | "GLATEventAtom()\n" |
16315 | "new_GLATEventAtom(GLATEventAtom atom) -> GLATEventAtom\n" |
16316 | ""}, |
16317 | { (char *)"delete_GLATEventAtom", _wrap_delete_GLATEventAtom, METH_VARARGS0x0001, (char *)"delete_GLATEventAtom(GLATEventAtom self)"}, |
16318 | { (char *)"GLATEventAtom_clear", _wrap_GLATEventAtom_clear, METH_VARARGS0x0001, (char *)"GLATEventAtom_clear(GLATEventAtom self)"}, |
16319 | { (char *)"GLATEventAtom_clone", _wrap_GLATEventAtom_clone, METH_VARARGS0x0001, (char *)"GLATEventAtom_clone(GLATEventAtom self) -> GLATEventAtom"}, |
16320 | { (char *)"GLATEventAtom_dir", _wrap_GLATEventAtom_dir, METH_VARARGS0x0001, (char *)"GLATEventAtom_dir(GLATEventAtom self) -> GLATInstDir"}, |
16321 | { (char *)"GLATEventAtom_energy", _wrap_GLATEventAtom_energy, METH_VARARGS0x0001, (char *)"GLATEventAtom_energy(GLATEventAtom self) -> GEnergy const &"}, |
16322 | { (char *)"GLATEventAtom_time", _wrap_GLATEventAtom_time, METH_VARARGS0x0001, (char *)"GLATEventAtom_time(GLATEventAtom self) -> GTime const &"}, |
16323 | { (char *)"GLATEventAtom_copy", _wrap_GLATEventAtom_copy, METH_VARARGS0x0001, (char *)"GLATEventAtom_copy(GLATEventAtom self) -> GLATEventAtom"}, |
16324 | { (char *)"GLATEventAtom_swigregister", GLATEventAtom_swigregister, METH_VARARGS0x0001, NULL__null}, |
16325 | { (char *)"new_GLATEventBin", _wrap_new_GLATEventBin, METH_VARARGS0x0001, (char *)"\n" |
16326 | "GLATEventBin()\n" |
16327 | "new_GLATEventBin(GLATEventBin bin) -> GLATEventBin\n" |
16328 | ""}, |
16329 | { (char *)"delete_GLATEventBin", _wrap_delete_GLATEventBin, METH_VARARGS0x0001, (char *)"delete_GLATEventBin(GLATEventBin self)"}, |
16330 | { (char *)"GLATEventBin_clear", _wrap_GLATEventBin_clear, METH_VARARGS0x0001, (char *)"GLATEventBin_clear(GLATEventBin self)"}, |
16331 | { (char *)"GLATEventBin_clone", _wrap_GLATEventBin_clone, METH_VARARGS0x0001, (char *)"GLATEventBin_clone(GLATEventBin self) -> GLATEventBin"}, |
16332 | { (char *)"GLATEventBin_size", _wrap_GLATEventBin_size, METH_VARARGS0x0001, (char *)"GLATEventBin_size(GLATEventBin self) -> double"}, |
16333 | { (char *)"GLATEventBin_dir", _wrap_GLATEventBin_dir, METH_VARARGS0x0001, (char *)"GLATEventBin_dir(GLATEventBin self) -> GLATInstDir"}, |
16334 | { (char *)"GLATEventBin_energy", _wrap_GLATEventBin_energy, METH_VARARGS0x0001, (char *)"GLATEventBin_energy(GLATEventBin self) -> GEnergy const &"}, |
16335 | { (char *)"GLATEventBin_time", _wrap_GLATEventBin_time, METH_VARARGS0x0001, (char *)"GLATEventBin_time(GLATEventBin self) -> GTime const &"}, |
16336 | { (char *)"GLATEventBin_error", _wrap_GLATEventBin_error, METH_VARARGS0x0001, (char *)"GLATEventBin_error(GLATEventBin self) -> double"}, |
16337 | { (char *)"GLATEventBin_counts", _wrap_GLATEventBin_counts, METH_VARARGS0x0001, (char *)"\n" |
16338 | "counts() -> double\n" |
16339 | "GLATEventBin_counts(GLATEventBin self, double const & counts)\n" |
16340 | ""}, |
16341 | { (char *)"GLATEventBin_omega", _wrap_GLATEventBin_omega, METH_VARARGS0x0001, (char *)"GLATEventBin_omega(GLATEventBin self) -> double const &"}, |
16342 | { (char *)"GLATEventBin_ewidth", _wrap_GLATEventBin_ewidth, METH_VARARGS0x0001, (char *)"GLATEventBin_ewidth(GLATEventBin self) -> GEnergy const &"}, |
16343 | { (char *)"GLATEventBin_ontime", _wrap_GLATEventBin_ontime, METH_VARARGS0x0001, (char *)"GLATEventBin_ontime(GLATEventBin self) -> double const &"}, |
16344 | { (char *)"GLATEventBin_index", _wrap_GLATEventBin_index, METH_VARARGS0x0001, (char *)"GLATEventBin_index(GLATEventBin self) -> int const &"}, |
16345 | { (char *)"GLATEventBin_ipix", _wrap_GLATEventBin_ipix, METH_VARARGS0x0001, (char *)"GLATEventBin_ipix(GLATEventBin self) -> int const &"}, |
16346 | { (char *)"GLATEventBin_ieng", _wrap_GLATEventBin_ieng, METH_VARARGS0x0001, (char *)"GLATEventBin_ieng(GLATEventBin self) -> int const &"}, |
16347 | { (char *)"GLATEventBin_cube", _wrap_GLATEventBin_cube, METH_VARARGS0x0001, (char *)"GLATEventBin_cube(GLATEventBin self) -> GLATEventCube"}, |
16348 | { (char *)"GLATEventBin_copy", _wrap_GLATEventBin_copy, METH_VARARGS0x0001, (char *)"GLATEventBin_copy(GLATEventBin self) -> GLATEventBin"}, |
16349 | { (char *)"GLATEventBin_swigregister", GLATEventBin_swigregister, METH_VARARGS0x0001, NULL__null}, |
16350 | { (char *)"new_GLATEventCube", _wrap_new_GLATEventCube, METH_VARARGS0x0001, (char *)"\n" |
16351 | "GLATEventCube()\n" |
16352 | "new_GLATEventCube(GLATEventCube cube) -> GLATEventCube\n" |
16353 | ""}, |
16354 | { (char *)"delete_GLATEventCube", _wrap_delete_GLATEventCube, METH_VARARGS0x0001, (char *)"delete_GLATEventCube(GLATEventCube self)"}, |
16355 | { (char *)"GLATEventCube_clear", _wrap_GLATEventCube_clear, METH_VARARGS0x0001, (char *)"GLATEventCube_clear(GLATEventCube self)"}, |
16356 | { (char *)"GLATEventCube_clone", _wrap_GLATEventCube_clone, METH_VARARGS0x0001, (char *)"GLATEventCube_clone(GLATEventCube self) -> GLATEventCube"}, |
16357 | { (char *)"GLATEventCube_size", _wrap_GLATEventCube_size, METH_VARARGS0x0001, (char *)"GLATEventCube_size(GLATEventCube self) -> int"}, |
16358 | { (char *)"GLATEventCube_dim", _wrap_GLATEventCube_dim, METH_VARARGS0x0001, (char *)"GLATEventCube_dim(GLATEventCube self) -> int"}, |
16359 | { (char *)"GLATEventCube_naxis", _wrap_GLATEventCube_naxis, METH_VARARGS0x0001, (char *)"GLATEventCube_naxis(GLATEventCube self, int const & axis) -> int"}, |
16360 | { (char *)"GLATEventCube_load", _wrap_GLATEventCube_load, METH_VARARGS0x0001, (char *)"GLATEventCube_load(GLATEventCube self, std::string const & filename)"}, |
16361 | { (char *)"GLATEventCube_save", _wrap_GLATEventCube_save, METH_VARARGS0x0001, (char *)"\n" |
16362 | "save(std::string const & filename, bool const & clobber=False)\n" |
16363 | "GLATEventCube_save(GLATEventCube self, std::string const & filename)\n" |
16364 | ""}, |
16365 | { (char *)"GLATEventCube_read", _wrap_GLATEventCube_read, METH_VARARGS0x0001, (char *)"GLATEventCube_read(GLATEventCube self, GFits const & file)"}, |
16366 | { (char *)"GLATEventCube_write", _wrap_GLATEventCube_write, METH_VARARGS0x0001, (char *)"GLATEventCube_write(GLATEventCube self, GFits & file)"}, |
16367 | { (char *)"GLATEventCube_number", _wrap_GLATEventCube_number, METH_VARARGS0x0001, (char *)"GLATEventCube_number(GLATEventCube self) -> int"}, |
16368 | { (char *)"GLATEventCube_time", _wrap_GLATEventCube_time, METH_VARARGS0x0001, (char *)"\n" |
16369 | "time(GTime const & time)\n" |
16370 | "GLATEventCube_time(GLATEventCube self) -> GTime const &\n" |
16371 | ""}, |
16372 | { (char *)"GLATEventCube_map", _wrap_GLATEventCube_map, METH_VARARGS0x0001, (char *)"\n" |
16373 | "map(GSkymap const & map)\n" |
16374 | "GLATEventCube_map(GLATEventCube self) -> GSkymap const &\n" |
16375 | ""}, |
16376 | { (char *)"GLATEventCube_enodes", _wrap_GLATEventCube_enodes, METH_VARARGS0x0001, (char *)"\n" |
16377 | "enodes(GNodeArray const & enodes)\n" |
16378 | "GLATEventCube_enodes(GLATEventCube self) -> GNodeArray const &\n" |
16379 | ""}, |
16380 | { (char *)"GLATEventCube_ontime", _wrap_GLATEventCube_ontime, METH_VARARGS0x0001, (char *)"\n" |
16381 | "ontime(double const & ontime)\n" |
16382 | "GLATEventCube_ontime(GLATEventCube self) -> double const &\n" |
16383 | ""}, |
16384 | { (char *)"GLATEventCube_nx", _wrap_GLATEventCube_nx, METH_VARARGS0x0001, (char *)"GLATEventCube_nx(GLATEventCube self) -> int"}, |
16385 | { (char *)"GLATEventCube_ny", _wrap_GLATEventCube_ny, METH_VARARGS0x0001, (char *)"GLATEventCube_ny(GLATEventCube self) -> int"}, |
16386 | { (char *)"GLATEventCube_npix", _wrap_GLATEventCube_npix, METH_VARARGS0x0001, (char *)"GLATEventCube_npix(GLATEventCube self) -> int"}, |
16387 | { (char *)"GLATEventCube_ebins", _wrap_GLATEventCube_ebins, METH_VARARGS0x0001, (char *)"GLATEventCube_ebins(GLATEventCube self) -> int"}, |
16388 | { (char *)"GLATEventCube_ndiffrsp", _wrap_GLATEventCube_ndiffrsp, METH_VARARGS0x0001, (char *)"GLATEventCube_ndiffrsp(GLATEventCube self) -> int"}, |
16389 | { (char *)"GLATEventCube_diffname", _wrap_GLATEventCube_diffname, METH_VARARGS0x0001, (char *)"GLATEventCube_diffname(GLATEventCube self, int const & index) -> std::string"}, |
16390 | { (char *)"GLATEventCube_diffrsp", _wrap_GLATEventCube_diffrsp, METH_VARARGS0x0001, (char *)"GLATEventCube_diffrsp(GLATEventCube self, int const & index) -> GSkymap *"}, |
16391 | { (char *)"GLATEventCube_maxrad", _wrap_GLATEventCube_maxrad, METH_VARARGS0x0001, (char *)"GLATEventCube_maxrad(GLATEventCube self, GSkyDir const & dir) -> double"}, |
16392 | { (char *)"GLATEventCube_copy", _wrap_GLATEventCube_copy, METH_VARARGS0x0001, (char *)"GLATEventCube_copy(GLATEventCube self) -> GLATEventCube"}, |
16393 | { (char *)"GLATEventCube_swigregister", GLATEventCube_swigregister, METH_VARARGS0x0001, NULL__null}, |
16394 | { (char *)"new_GLATEventList", _wrap_new_GLATEventList, METH_VARARGS0x0001, (char *)"\n" |
16395 | "GLATEventList()\n" |
16396 | "new_GLATEventList(GLATEventList list) -> GLATEventList\n" |
16397 | ""}, |
16398 | { (char *)"delete_GLATEventList", _wrap_delete_GLATEventList, METH_VARARGS0x0001, (char *)"delete_GLATEventList(GLATEventList self)"}, |
16399 | { (char *)"GLATEventList_clear", _wrap_GLATEventList_clear, METH_VARARGS0x0001, (char *)"GLATEventList_clear(GLATEventList self)"}, |
16400 | { (char *)"GLATEventList_clone", _wrap_GLATEventList_clone, METH_VARARGS0x0001, (char *)"GLATEventList_clone(GLATEventList self) -> GLATEventList"}, |
16401 | { (char *)"GLATEventList_size", _wrap_GLATEventList_size, METH_VARARGS0x0001, (char *)"GLATEventList_size(GLATEventList self) -> int"}, |
16402 | { (char *)"GLATEventList_load", _wrap_GLATEventList_load, METH_VARARGS0x0001, (char *)"GLATEventList_load(GLATEventList self, std::string const & filename)"}, |
16403 | { (char *)"GLATEventList_save", _wrap_GLATEventList_save, METH_VARARGS0x0001, (char *)"\n" |
16404 | "save(std::string const & filename, bool const & clobber=False)\n" |
16405 | "GLATEventList_save(GLATEventList self, std::string const & filename)\n" |
16406 | ""}, |
16407 | { (char *)"GLATEventList_read", _wrap_GLATEventList_read, METH_VARARGS0x0001, (char *)"GLATEventList_read(GLATEventList self, GFits const & file)"}, |
16408 | { (char *)"GLATEventList_write", _wrap_GLATEventList_write, METH_VARARGS0x0001, (char *)"GLATEventList_write(GLATEventList self, GFits & file)"}, |
16409 | { (char *)"GLATEventList_number", _wrap_GLATEventList_number, METH_VARARGS0x0001, (char *)"GLATEventList_number(GLATEventList self) -> int"}, |
16410 | { (char *)"GLATEventList_roi", _wrap_GLATEventList_roi, METH_VARARGS0x0001, (char *)"\n" |
16411 | "roi(GRoi roi)\n" |
16412 | "GLATEventList_roi(GLATEventList self) -> GLATRoi\n" |
16413 | ""}, |
16414 | { (char *)"GLATEventList_copy", _wrap_GLATEventList_copy, METH_VARARGS0x0001, (char *)"GLATEventList_copy(GLATEventList self) -> GLATEventList"}, |
16415 | { (char *)"GLATEventList___getitem__", _wrap_GLATEventList___getitem__, METH_VARARGS0x0001, (char *)"GLATEventList___getitem__(GLATEventList self, int const & index) -> GLATEventAtom"}, |
16416 | { (char *)"GLATEventList___setitem__", _wrap_GLATEventList___setitem__, METH_VARARGS0x0001, (char *)"GLATEventList___setitem__(GLATEventList self, int const & index, GLATEventAtom value)"}, |
16417 | { (char *)"GLATEventList_swigregister", GLATEventList_swigregister, METH_VARARGS0x0001, NULL__null}, |
16418 | { (char *)"new_GLATInstDir", _wrap_new_GLATInstDir, METH_VARARGS0x0001, (char *)"\n" |
16419 | "GLATInstDir()\n" |
16420 | "GLATInstDir(GSkyDir const & dir)\n" |
16421 | "new_GLATInstDir(GLATInstDir dir) -> GLATInstDir\n" |
16422 | ""}, |
16423 | { (char *)"delete_GLATInstDir", _wrap_delete_GLATInstDir, METH_VARARGS0x0001, (char *)"delete_GLATInstDir(GLATInstDir self)"}, |
16424 | { (char *)"GLATInstDir_clear", _wrap_GLATInstDir_clear, METH_VARARGS0x0001, (char *)"GLATInstDir_clear(GLATInstDir self)"}, |
16425 | { (char *)"GLATInstDir_clone", _wrap_GLATInstDir_clone, METH_VARARGS0x0001, (char *)"GLATInstDir_clone(GLATInstDir self) -> GLATInstDir"}, |
16426 | { (char *)"GLATInstDir_dir", _wrap_GLATInstDir_dir, METH_VARARGS0x0001, (char *)"\n" |
16427 | "dir(GSkyDir const & dir)\n" |
16428 | "GLATInstDir_dir(GLATInstDir self) -> GSkyDir &\n" |
16429 | ""}, |
16430 | { (char *)"GLATInstDir_copy", _wrap_GLATInstDir_copy, METH_VARARGS0x0001, (char *)"GLATInstDir_copy(GLATInstDir self) -> GLATInstDir"}, |
16431 | { (char *)"GLATInstDir_swigregister", GLATInstDir_swigregister, METH_VARARGS0x0001, NULL__null}, |
16432 | { (char *)"new_GLATLtCube", _wrap_new_GLATLtCube, METH_VARARGS0x0001, (char *)"\n" |
16433 | "GLATLtCube()\n" |
16434 | "GLATLtCube(std::string const & filename)\n" |
16435 | "new_GLATLtCube(GLATLtCube cube) -> GLATLtCube\n" |
16436 | ""}, |
16437 | { (char *)"delete_GLATLtCube", _wrap_delete_GLATLtCube, METH_VARARGS0x0001, (char *)"delete_GLATLtCube(GLATLtCube self)"}, |
16438 | { (char *)"GLATLtCube___call__", _wrap_GLATLtCube___call__, METH_VARARGS0x0001, (char *)"\n" |
16439 | "__call__(GSkyDir const & dir, GEnergy const & energy, _ltcube_ctheta fct) -> double\n" |
16440 | "__call__(GSkyDir const & dir, GEnergy const & energy, _ltcube_ctheta_phi fct) -> double\n" |
16441 | "__call__(GSkyDir const & dir, GEnergy const & energy, GLATAeff aeff) -> double\n" |
16442 | "GLATLtCube___call__(GLATLtCube self, GSkyDir const & dir, GEnergy const & energy, double const & offset, \n" |
16443 | " GLATPsf psf, GLATAeff aeff) -> double\n" |
16444 | ""}, |
16445 | { (char *)"GLATLtCube_clear", _wrap_GLATLtCube_clear, METH_VARARGS0x0001, (char *)"GLATLtCube_clear(GLATLtCube self)"}, |
16446 | { (char *)"GLATLtCube_clone", _wrap_GLATLtCube_clone, METH_VARARGS0x0001, (char *)"GLATLtCube_clone(GLATLtCube self) -> GLATLtCube"}, |
16447 | { (char *)"GLATLtCube_load", _wrap_GLATLtCube_load, METH_VARARGS0x0001, (char *)"GLATLtCube_load(GLATLtCube self, std::string const & filename)"}, |
16448 | { (char *)"GLATLtCube_save", _wrap_GLATLtCube_save, METH_VARARGS0x0001, (char *)"\n" |
16449 | "save(std::string const & filename, bool clobber=False)\n" |
16450 | "GLATLtCube_save(GLATLtCube self, std::string const & filename)\n" |
16451 | ""}, |
16452 | { (char *)"GLATLtCube_copy", _wrap_GLATLtCube_copy, METH_VARARGS0x0001, (char *)"GLATLtCube_copy(GLATLtCube self) -> GLATLtCube"}, |
16453 | { (char *)"GLATLtCube_swigregister", GLATLtCube_swigregister, METH_VARARGS0x0001, NULL__null}, |
16454 | { (char *)"new_GLATMeanPsf", _wrap_new_GLATMeanPsf, METH_VARARGS0x0001, (char *)"\n" |
16455 | "GLATMeanPsf()\n" |
16456 | "GLATMeanPsf(GSkyDir const & dir, GLATObservation obs)\n" |
16457 | "new_GLATMeanPsf(GLATMeanPsf cube) -> GLATMeanPsf\n" |
16458 | ""}, |
16459 | { (char *)"delete_GLATMeanPsf", _wrap_delete_GLATMeanPsf, METH_VARARGS0x0001, (char *)"delete_GLATMeanPsf(GLATMeanPsf self)"}, |
16460 | { (char *)"GLATMeanPsf___call__", _wrap_GLATMeanPsf___call__, METH_VARARGS0x0001, (char *)"GLATMeanPsf___call__(GLATMeanPsf self, double const & offset, double const & logE) -> double"}, |
16461 | { (char *)"GLATMeanPsf_clear", _wrap_GLATMeanPsf_clear, METH_VARARGS0x0001, (char *)"GLATMeanPsf_clear(GLATMeanPsf self)"}, |
16462 | { (char *)"GLATMeanPsf_clone", _wrap_GLATMeanPsf_clone, METH_VARARGS0x0001, (char *)"GLATMeanPsf_clone(GLATMeanPsf self) -> GLATMeanPsf"}, |
16463 | { (char *)"GLATMeanPsf_size", _wrap_GLATMeanPsf_size, METH_VARARGS0x0001, (char *)"GLATMeanPsf_size(GLATMeanPsf self) -> int"}, |
16464 | { (char *)"GLATMeanPsf_set", _wrap_GLATMeanPsf_set, METH_VARARGS0x0001, (char *)"GLATMeanPsf_set(GLATMeanPsf self, GSkyDir const & dir, GLATObservation obs)"}, |
16465 | { (char *)"GLATMeanPsf_noffsets", _wrap_GLATMeanPsf_noffsets, METH_VARARGS0x0001, (char *)"GLATMeanPsf_noffsets(GLATMeanPsf self) -> int"}, |
16466 | { (char *)"GLATMeanPsf_nenergies", _wrap_GLATMeanPsf_nenergies, METH_VARARGS0x0001, (char *)"GLATMeanPsf_nenergies(GLATMeanPsf self) -> int"}, |
16467 | { (char *)"GLATMeanPsf_offset", _wrap_GLATMeanPsf_offset, METH_VARARGS0x0001, (char *)"GLATMeanPsf_offset(GLATMeanPsf self, int const & inx) -> double const &"}, |
16468 | { (char *)"GLATMeanPsf_energy", _wrap_GLATMeanPsf_energy, METH_VARARGS0x0001, (char *)"GLATMeanPsf_energy(GLATMeanPsf self, int const & inx) -> double const &"}, |
16469 | { (char *)"GLATMeanPsf_dir", _wrap_GLATMeanPsf_dir, METH_VARARGS0x0001, (char *)"GLATMeanPsf_dir(GLATMeanPsf self) -> GSkyDir const &"}, |
16470 | { (char *)"GLATMeanPsf_name", _wrap_GLATMeanPsf_name, METH_VARARGS0x0001, (char *)"\n" |
16471 | "name() -> std::string const\n" |
16472 | "GLATMeanPsf_name(GLATMeanPsf self, std::string const & name)\n" |
16473 | ""}, |
16474 | { (char *)"GLATMeanPsf_thetamax", _wrap_GLATMeanPsf_thetamax, METH_VARARGS0x0001, (char *)"\n" |
16475 | "thetamax() -> double const\n" |
16476 | "GLATMeanPsf_thetamax(GLATMeanPsf self, double const & value)\n" |
16477 | ""}, |
16478 | { (char *)"GLATMeanPsf_psf", _wrap_GLATMeanPsf_psf, METH_VARARGS0x0001, (char *)"GLATMeanPsf_psf(GLATMeanPsf self, double const & offset, double const & logE) -> double"}, |
16479 | { (char *)"GLATMeanPsf_exposure", _wrap_GLATMeanPsf_exposure, METH_VARARGS0x0001, (char *)"GLATMeanPsf_exposure(GLATMeanPsf self, double const & logE) -> double"}, |
16480 | { (char *)"GLATMeanPsf_copy", _wrap_GLATMeanPsf_copy, METH_VARARGS0x0001, (char *)"GLATMeanPsf_copy(GLATMeanPsf self) -> GLATMeanPsf"}, |
16481 | { (char *)"GLATMeanPsf_swigregister", GLATMeanPsf_swigregister, METH_VARARGS0x0001, NULL__null}, |
16482 | { (char *)"new_GLATObservation", _wrap_new_GLATObservation, METH_VARARGS0x0001, (char *)"\n" |
16483 | "GLATObservation()\n" |
16484 | "new_GLATObservation(GLATObservation obs) -> GLATObservation\n" |
16485 | ""}, |
16486 | { (char *)"delete_GLATObservation", _wrap_delete_GLATObservation, METH_VARARGS0x0001, (char *)"delete_GLATObservation(GLATObservation self)"}, |
16487 | { (char *)"GLATObservation_clear", _wrap_GLATObservation_clear, METH_VARARGS0x0001, (char *)"GLATObservation_clear(GLATObservation self)"}, |
16488 | { (char *)"GLATObservation_clone", _wrap_GLATObservation_clone, METH_VARARGS0x0001, (char *)"GLATObservation_clone(GLATObservation self) -> GLATObservation"}, |
16489 | { (char *)"GLATObservation_instrument", _wrap_GLATObservation_instrument, METH_VARARGS0x0001, (char *)"GLATObservation_instrument(GLATObservation self) -> std::string"}, |
16490 | { (char *)"GLATObservation_ontime", _wrap_GLATObservation_ontime, METH_VARARGS0x0001, (char *)"GLATObservation_ontime(GLATObservation self) -> double"}, |
16491 | { (char *)"GLATObservation_livetime", _wrap_GLATObservation_livetime, METH_VARARGS0x0001, (char *)"GLATObservation_livetime(GLATObservation self) -> double"}, |
16492 | { (char *)"GLATObservation_deadc", _wrap_GLATObservation_deadc, METH_VARARGS0x0001, (char *)"GLATObservation_deadc(GLATObservation self, GTime const & time) -> double"}, |
16493 | { (char *)"GLATObservation_read", _wrap_GLATObservation_read, METH_VARARGS0x0001, (char *)"GLATObservation_read(GLATObservation self, GXmlElement const & xml)"}, |
16494 | { (char *)"GLATObservation_write", _wrap_GLATObservation_write, METH_VARARGS0x0001, (char *)"GLATObservation_write(GLATObservation self, GXmlElement & xml)"}, |
16495 | { (char *)"GLATObservation_load_unbinned", _wrap_GLATObservation_load_unbinned, METH_VARARGS0x0001, (char *)"GLATObservation_load_unbinned(GLATObservation self, std::string const & ft1name, std::string const & ft2name, std::string const & ltcube_name)"}, |
16496 | { (char *)"GLATObservation_load_binned", _wrap_GLATObservation_load_binned, METH_VARARGS0x0001, (char *)"\n" |
16497 | "GLATObservation_load_binned(GLATObservation self, std::string const & cntmap_name, std::string const & expmap_name, \n" |
16498 | " std::string const & ltcube_name)\n" |
16499 | ""}, |
16500 | { (char *)"GLATObservation_response", _wrap_GLATObservation_response, METH_VARARGS0x0001, (char *)"\n" |
16501 | "response(GResponse rsp)\n" |
16502 | "response() -> GLATResponse\n" |
16503 | "response(std::string const & irfname, std::string const & caldb=\"\")\n" |
16504 | "GLATObservation_response(GLATObservation self, std::string const & irfname)\n" |
16505 | ""}, |
16506 | { (char *)"GLATObservation_ltcube", _wrap_GLATObservation_ltcube, METH_VARARGS0x0001, (char *)"GLATObservation_ltcube(GLATObservation self) -> GLATLtCube"}, |
16507 | { (char *)"GLATObservation_copy", _wrap_GLATObservation_copy, METH_VARARGS0x0001, (char *)"GLATObservation_copy(GLATObservation self) -> GLATObservation"}, |
16508 | { (char *)"GLATObservation_swigregister", GLATObservation_swigregister, METH_VARARGS0x0001, NULL__null}, |
16509 | { (char *)"new_GLATPsf", _wrap_new_GLATPsf, METH_VARARGS0x0001, (char *)"\n" |
16510 | "GLATPsf()\n" |
16511 | "GLATPsf(std::string const & filename)\n" |
16512 | "new_GLATPsf(GLATPsf psf) -> GLATPsf\n" |
16513 | ""}, |
16514 | { (char *)"delete_GLATPsf", _wrap_delete_GLATPsf, METH_VARARGS0x0001, (char *)"delete_GLATPsf(GLATPsf self)"}, |
16515 | { (char *)"GLATPsf___call__", _wrap_GLATPsf___call__, METH_VARARGS0x0001, (char *)"GLATPsf___call__(GLATPsf self, double const & offset, double const & logE, double const & ctheta) -> double"}, |
16516 | { (char *)"GLATPsf_clear", _wrap_GLATPsf_clear, METH_VARARGS0x0001, (char *)"GLATPsf_clear(GLATPsf self)"}, |
16517 | { (char *)"GLATPsf_clone", _wrap_GLATPsf_clone, METH_VARARGS0x0001, (char *)"GLATPsf_clone(GLATPsf self) -> GLATPsf"}, |
16518 | { (char *)"GLATPsf_load", _wrap_GLATPsf_load, METH_VARARGS0x0001, (char *)"GLATPsf_load(GLATPsf self, std::string const & filename)"}, |
16519 | { (char *)"GLATPsf_save", _wrap_GLATPsf_save, METH_VARARGS0x0001, (char *)"\n" |
16520 | "save(std::string const & filename, bool const & clobber=False)\n" |
16521 | "GLATPsf_save(GLATPsf self, std::string const & filename)\n" |
16522 | ""}, |
16523 | { (char *)"GLATPsf_read", _wrap_GLATPsf_read, METH_VARARGS0x0001, (char *)"GLATPsf_read(GLATPsf self, GFits const & file)"}, |
16524 | { (char *)"GLATPsf_write", _wrap_GLATPsf_write, METH_VARARGS0x0001, (char *)"GLATPsf_write(GLATPsf self, GFits & file)"}, |
16525 | { (char *)"GLATPsf_size", _wrap_GLATPsf_size, METH_VARARGS0x0001, (char *)"GLATPsf_size(GLATPsf self) -> int"}, |
16526 | { (char *)"GLATPsf_nenergies", _wrap_GLATPsf_nenergies, METH_VARARGS0x0001, (char *)"GLATPsf_nenergies(GLATPsf self) -> int"}, |
16527 | { (char *)"GLATPsf_ncostheta", _wrap_GLATPsf_ncostheta, METH_VARARGS0x0001, (char *)"GLATPsf_ncostheta(GLATPsf self) -> int"}, |
16528 | { (char *)"GLATPsf_costhetamin", _wrap_GLATPsf_costhetamin, METH_VARARGS0x0001, (char *)"\n" |
16529 | "costhetamin() -> double\n" |
16530 | "GLATPsf_costhetamin(GLATPsf self, double const & ctheta)\n" |
16531 | ""}, |
16532 | { (char *)"GLATPsf_hasphi", _wrap_GLATPsf_hasphi, METH_VARARGS0x0001, (char *)"GLATPsf_hasphi(GLATPsf self) -> bool"}, |
16533 | { (char *)"GLATPsf_isfront", _wrap_GLATPsf_isfront, METH_VARARGS0x0001, (char *)"GLATPsf_isfront(GLATPsf self) -> bool"}, |
16534 | { (char *)"GLATPsf_isback", _wrap_GLATPsf_isback, METH_VARARGS0x0001, (char *)"GLATPsf_isback(GLATPsf self) -> bool"}, |
16535 | { (char *)"GLATPsf_version", _wrap_GLATPsf_version, METH_VARARGS0x0001, (char *)"GLATPsf_version(GLATPsf self) -> int"}, |
16536 | { (char *)"GLATPsf_copy", _wrap_GLATPsf_copy, METH_VARARGS0x0001, (char *)"GLATPsf_copy(GLATPsf self) -> GLATPsf"}, |
16537 | { (char *)"GLATPsf_swigregister", GLATPsf_swigregister, METH_VARARGS0x0001, NULL__null}, |
16538 | { (char *)"new_GLATResponse", _wrap_new_GLATResponse, METH_VARARGS0x0001, (char *)"\n" |
16539 | "GLATResponse()\n" |
16540 | "new_GLATResponse(GLATResponse rsp) -> GLATResponse\n" |
16541 | ""}, |
16542 | { (char *)"delete_GLATResponse", _wrap_delete_GLATResponse, METH_VARARGS0x0001, (char *)"delete_GLATResponse(GLATResponse self)"}, |
16543 | { (char *)"GLATResponse_clear", _wrap_GLATResponse_clear, METH_VARARGS0x0001, (char *)"GLATResponse_clear(GLATResponse self)"}, |
16544 | { (char *)"GLATResponse_clone", _wrap_GLATResponse_clone, METH_VARARGS0x0001, (char *)"GLATResponse_clone(GLATResponse self) -> GLATResponse"}, |
16545 | { (char *)"GLATResponse_hasedisp", _wrap_GLATResponse_hasedisp, METH_VARARGS0x0001, (char *)"GLATResponse_hasedisp(GLATResponse self) -> bool"}, |
16546 | { (char *)"GLATResponse_hastdisp", _wrap_GLATResponse_hastdisp, METH_VARARGS0x0001, (char *)"GLATResponse_hastdisp(GLATResponse self) -> bool"}, |
16547 | { (char *)"GLATResponse_npred", _wrap_GLATResponse_npred, METH_VARARGS0x0001, (char *)"GLATResponse_npred(GLATResponse self, GPhoton const & photon, GObservation obs) -> double"}, |
16548 | { (char *)"GLATResponse_size", _wrap_GLATResponse_size, METH_VARARGS0x0001, (char *)"GLATResponse_size(GLATResponse self) -> int"}, |
16549 | { (char *)"GLATResponse_caldb", _wrap_GLATResponse_caldb, METH_VARARGS0x0001, (char *)"\n" |
16550 | "caldb(std::string const & caldb)\n" |
16551 | "GLATResponse_caldb(GLATResponse self) -> std::string const &\n" |
16552 | ""}, |
16553 | { (char *)"GLATResponse_rspname", _wrap_GLATResponse_rspname, METH_VARARGS0x0001, (char *)"GLATResponse_rspname(GLATResponse self) -> std::string const &"}, |
16554 | { (char *)"GLATResponse_load", _wrap_GLATResponse_load, METH_VARARGS0x0001, (char *)"GLATResponse_load(GLATResponse self, std::string const & rspname)"}, |
16555 | { (char *)"GLATResponse_save", _wrap_GLATResponse_save, METH_VARARGS0x0001, (char *)"GLATResponse_save(GLATResponse self, std::string const & rspname)"}, |
16556 | { (char *)"GLATResponse_force_mean", _wrap_GLATResponse_force_mean, METH_VARARGS0x0001, (char *)"\n" |
16557 | "force_mean() -> bool const\n" |
16558 | "GLATResponse_force_mean(GLATResponse self, bool const & value)\n" |
16559 | ""}, |
16560 | { (char *)"GLATResponse_aeff", _wrap_GLATResponse_aeff, METH_VARARGS0x0001, (char *)"GLATResponse_aeff(GLATResponse self, int const & index) -> GLATAeff"}, |
16561 | { (char *)"GLATResponse_psf", _wrap_GLATResponse_psf, METH_VARARGS0x0001, (char *)"GLATResponse_psf(GLATResponse self, int const & index) -> GLATPsf"}, |
16562 | { (char *)"GLATResponse_edisp", _wrap_GLATResponse_edisp, METH_VARARGS0x0001, (char *)"GLATResponse_edisp(GLATResponse self, int const & index) -> GLATEdisp"}, |
16563 | { (char *)"GLATResponse_irf", _wrap_GLATResponse_irf, METH_VARARGS0x0001, (char *)"\n" |
16564 | "irf(GEvent event, GPhoton const & photon, GObservation obs) -> double\n" |
16565 | "irf(GEvent event, GSource const & source, GObservation obs) -> double\n" |
16566 | "irf(GLATEventAtom event, GSource const & source, GObservation obs) -> double\n" |
16567 | "GLATResponse_irf(GLATResponse self, GLATEventBin event, GSource const & source, GObservation obs) -> double\n" |
16568 | ""}, |
16569 | { (char *)"GLATResponse_copy", _wrap_GLATResponse_copy, METH_VARARGS0x0001, (char *)"GLATResponse_copy(GLATResponse self) -> GLATResponse"}, |
16570 | { (char *)"GLATResponse_swigregister", GLATResponse_swigregister, METH_VARARGS0x0001, NULL__null}, |
16571 | { (char *)"new_GLATRoi", _wrap_new_GLATRoi, METH_VARARGS0x0001, (char *)"\n" |
16572 | "GLATRoi()\n" |
16573 | "GLATRoi(GLATInstDir centre, double const & radius)\n" |
16574 | "new_GLATRoi(GLATRoi roi) -> GLATRoi\n" |
16575 | ""}, |
16576 | { (char *)"delete_GLATRoi", _wrap_delete_GLATRoi, METH_VARARGS0x0001, (char *)"delete_GLATRoi(GLATRoi self)"}, |
16577 | { (char *)"GLATRoi_clear", _wrap_GLATRoi_clear, METH_VARARGS0x0001, (char *)"GLATRoi_clear(GLATRoi self)"}, |
16578 | { (char *)"GLATRoi_clone", _wrap_GLATRoi_clone, METH_VARARGS0x0001, (char *)"GLATRoi_clone(GLATRoi self) -> GLATRoi"}, |
16579 | { (char *)"GLATRoi_contains", _wrap_GLATRoi_contains, METH_VARARGS0x0001, (char *)"GLATRoi_contains(GLATRoi self, GEvent event) -> bool"}, |
16580 | { (char *)"GLATRoi_centre", _wrap_GLATRoi_centre, METH_VARARGS0x0001, (char *)"\n" |
16581 | "centre() -> GLATInstDir\n" |
16582 | "GLATRoi_centre(GLATRoi self, GLATInstDir centre)\n" |
16583 | ""}, |
16584 | { (char *)"GLATRoi_radius", _wrap_GLATRoi_radius, METH_VARARGS0x0001, (char *)"\n" |
16585 | "radius() -> double const\n" |
16586 | "GLATRoi_radius(GLATRoi self, double const & radius)\n" |
16587 | ""}, |
16588 | { (char *)"GLATRoi_copy", _wrap_GLATRoi_copy, METH_VARARGS0x0001, (char *)"GLATRoi_copy(GLATRoi self) -> GLATRoi"}, |
16589 | { (char *)"GLATRoi_swigregister", GLATRoi_swigregister, METH_VARARGS0x0001, NULL__null}, |
16590 | { NULL__null, NULL__null, 0, NULL__null } |
16591 | }; |
16592 | |
16593 | |
16594 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
16595 | |
16596 | static void *_p_GLATInstDirTo_p_GInstDir(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16597 | return (void *)((GInstDir *) ((GLATInstDir *) x)); |
16598 | } |
16599 | static void *_p_GEventBinTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16600 | return (void *)((GEvent *) ((GEventBin *) x)); |
16601 | } |
16602 | static void *_p_GLATEventBinTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16603 | return (void *)((GEvent *) (GEventBin *) ((GLATEventBin *) x)); |
16604 | } |
16605 | static void *_p_GEventAtomTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16606 | return (void *)((GEvent *) ((GEventAtom *) x)); |
16607 | } |
16608 | static void *_p_GLATEventAtomTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16609 | return (void *)((GEvent *) (GEventAtom *) ((GLATEventAtom *) x)); |
16610 | } |
16611 | static void *_p_GLATEventCubeTo_p_GEventCube(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16612 | return (void *)((GEventCube *) ((GLATEventCube *) x)); |
16613 | } |
16614 | static void *_p_GLATRoiTo_p_GRoi(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16615 | return (void *)((GRoi *) ((GLATRoi *) x)); |
16616 | } |
16617 | static void *_p_GLATEventBinTo_p_GEventBin(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16618 | return (void *)((GEventBin *) ((GLATEventBin *) x)); |
16619 | } |
16620 | static void *_p_GLATResponseTo_p_GResponse(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16621 | return (void *)((GResponse *) ((GLATResponse *) x)); |
16622 | } |
16623 | static void *_p_GLATObservationTo_p_GObservation(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16624 | return (void *)((GObservation *) ((GLATObservation *) x)); |
16625 | } |
16626 | static void *_p_GLATEventAtomTo_p_GEventAtom(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16627 | return (void *)((GEventAtom *) ((GLATEventAtom *) x)); |
16628 | } |
16629 | static void *_p_GEventListTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16630 | return (void *)((GEvents *) ((GEventList *) x)); |
16631 | } |
16632 | static void *_p_GLATEventListTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16633 | return (void *)((GEvents *) (GEventList *) ((GLATEventList *) x)); |
16634 | } |
16635 | static void *_p_GEventCubeTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16636 | return (void *)((GEvents *) ((GEventCube *) x)); |
16637 | } |
16638 | static void *_p_GLATEventCubeTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16639 | return (void *)((GEvents *) (GEventCube *) ((GLATEventCube *) x)); |
16640 | } |
16641 | static void *_p_GLATEventListTo_p_GEventList(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16642 | return (void *)((GEventList *) ((GLATEventList *) x)); |
16643 | } |
16644 | static void *_p_GRoiTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16645 | return (void *)((GBase *) ((GRoi *) x)); |
16646 | } |
16647 | static void *_p_GLATLtCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16648 | return (void *)((GBase *) ((GLATLtCube *) x)); |
16649 | } |
16650 | static void *_p_GEventListTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16651 | return (void *)((GBase *) (GEvents *) ((GEventList *) x)); |
16652 | } |
16653 | static void *_p_GLATEventListTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16654 | return (void *)((GBase *) (GEvents *)(GEventList *) ((GLATEventList *) x)); |
16655 | } |
16656 | static void *_p_GLATPsfTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16657 | return (void *)((GBase *) ((GLATPsf *) x)); |
16658 | } |
16659 | static void *_p_GObservationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16660 | return (void *)((GBase *) ((GObservation *) x)); |
16661 | } |
16662 | static void *_p_GLATObservationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16663 | return (void *)((GBase *) (GObservation *) ((GLATObservation *) x)); |
16664 | } |
16665 | static void *_p_GEventCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16666 | return (void *)((GBase *) (GEvents *) ((GEventCube *) x)); |
16667 | } |
16668 | static void *_p_GLATEventCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16669 | return (void *)((GBase *) (GEvents *)(GEventCube *) ((GLATEventCube *) x)); |
16670 | } |
16671 | static void *_p_GLATRoiTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16672 | return (void *)((GBase *) (GRoi *) ((GLATRoi *) x)); |
16673 | } |
16674 | static void *_p_GLATAeffTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16675 | return (void *)((GBase *) ((GLATAeff *) x)); |
16676 | } |
16677 | static void *_p_GLATMeanPsfTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16678 | return (void *)((GBase *) ((GLATMeanPsf *) x)); |
16679 | } |
16680 | static void *_p_GInstDirTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16681 | return (void *)((GBase *) ((GInstDir *) x)); |
16682 | } |
16683 | static void *_p_GLATInstDirTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16684 | return (void *)((GBase *) (GInstDir *) ((GLATInstDir *) x)); |
16685 | } |
16686 | static void *_p_GResponseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16687 | return (void *)((GBase *) ((GResponse *) x)); |
16688 | } |
16689 | static void *_p_GLATResponseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16690 | return (void *)((GBase *) (GResponse *) ((GLATResponse *) x)); |
16691 | } |
16692 | static void *_p_GLATEdispTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16693 | return (void *)((GBase *) ((GLATEdisp *) x)); |
16694 | } |
16695 | static void *_p_GLATEventAtomTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16696 | return (void *)((GBase *) (GEvent *)(GEventAtom *) ((GLATEventAtom *) x)); |
16697 | } |
16698 | static void *_p_GEventAtomTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16699 | return (void *)((GBase *) (GEvent *) ((GEventAtom *) x)); |
16700 | } |
16701 | static void *_p_GEventsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16702 | return (void *)((GBase *) ((GEvents *) x)); |
16703 | } |
16704 | static void *_p_GEventTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16705 | return (void *)((GBase *) ((GEvent *) x)); |
16706 | } |
16707 | static void *_p_GLATEventBinTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16708 | return (void *)((GBase *) (GEvent *)(GEventBin *) ((GLATEventBin *) x)); |
16709 | } |
16710 | static void *_p_GEventBinTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
16711 | return (void *)((GBase *) (GEvent *) ((GEventBin *) x)); |
16712 | } |
16713 | static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0}; |
16714 | static swig_type_info _swigt__p_GEnergy = {"_p_GEnergy", "GEnergy *", 0, 0, (void*)0, 0}; |
16715 | static swig_type_info _swigt__p_GEvent = {"_p_GEvent", "GEvent *", 0, 0, (void*)0, 0}; |
16716 | static swig_type_info _swigt__p_GEventAtom = {"_p_GEventAtom", "GEventAtom *", 0, 0, (void*)0, 0}; |
16717 | static swig_type_info _swigt__p_GEventBin = {"_p_GEventBin", "GEventBin *", 0, 0, (void*)0, 0}; |
16718 | static swig_type_info _swigt__p_GEventCube = {"_p_GEventCube", "GEventCube *", 0, 0, (void*)0, 0}; |
16719 | static swig_type_info _swigt__p_GEventList = {"_p_GEventList", "GEventList *", 0, 0, (void*)0, 0}; |
16720 | static swig_type_info _swigt__p_GEvents = {"_p_GEvents", "GEvents *", 0, 0, (void*)0, 0}; |
16721 | static swig_type_info _swigt__p_GFits = {"_p_GFits", "GFits *", 0, 0, (void*)0, 0}; |
16722 | static swig_type_info _swigt__p_GInstDir = {"_p_GInstDir", "GInstDir *", 0, 0, (void*)0, 0}; |
16723 | static swig_type_info _swigt__p_GLATAeff = {"_p_GLATAeff", "GLATAeff *", 0, 0, (void*)0, 0}; |
16724 | static swig_type_info _swigt__p_GLATEdisp = {"_p_GLATEdisp", "GLATEdisp *", 0, 0, (void*)0, 0}; |
16725 | static swig_type_info _swigt__p_GLATEventAtom = {"_p_GLATEventAtom", "GLATEventAtom *", 0, 0, (void*)0, 0}; |
16726 | static swig_type_info _swigt__p_GLATEventBin = {"_p_GLATEventBin", "GLATEventBin *", 0, 0, (void*)0, 0}; |
16727 | static swig_type_info _swigt__p_GLATEventCube = {"_p_GLATEventCube", "GLATEventCube *", 0, 0, (void*)0, 0}; |
16728 | static swig_type_info _swigt__p_GLATEventList = {"_p_GLATEventList", "GLATEventList *", 0, 0, (void*)0, 0}; |
16729 | static swig_type_info _swigt__p_GLATInstDir = {"_p_GLATInstDir", "GLATInstDir *", 0, 0, (void*)0, 0}; |
16730 | static swig_type_info _swigt__p_GLATLtCube = {"_p_GLATLtCube", "GLATLtCube *", 0, 0, (void*)0, 0}; |
16731 | static swig_type_info _swigt__p_GLATMeanPsf = {"_p_GLATMeanPsf", "GLATMeanPsf *", 0, 0, (void*)0, 0}; |
16732 | static swig_type_info _swigt__p_GLATObservation = {"_p_GLATObservation", "GLATObservation *", 0, 0, (void*)0, 0}; |
16733 | static swig_type_info _swigt__p_GLATPsf = {"_p_GLATPsf", "GLATPsf *", 0, 0, (void*)0, 0}; |
16734 | static swig_type_info _swigt__p_GLATResponse = {"_p_GLATResponse", "GLATResponse *", 0, 0, (void*)0, 0}; |
16735 | static swig_type_info _swigt__p_GLATRoi = {"_p_GLATRoi", "GLATRoi *", 0, 0, (void*)0, 0}; |
16736 | static swig_type_info _swigt__p_GNodeArray = {"_p_GNodeArray", "GNodeArray *", 0, 0, (void*)0, 0}; |
16737 | static swig_type_info _swigt__p_GObservation = {"_p_GObservation", "GObservation *", 0, 0, (void*)0, 0}; |
16738 | static swig_type_info _swigt__p_GPhoton = {"_p_GPhoton", "GPhoton *", 0, 0, (void*)0, 0}; |
16739 | static swig_type_info _swigt__p_GResponse = {"_p_GResponse", "GResponse *", 0, 0, (void*)0, 0}; |
16740 | static swig_type_info _swigt__p_GRoi = {"_p_GRoi", "GRoi *", 0, 0, (void*)0, 0}; |
16741 | static swig_type_info _swigt__p_GSkyDir = {"_p_GSkyDir", "GSkyDir *", 0, 0, (void*)0, 0}; |
16742 | static swig_type_info _swigt__p_GSkymap = {"_p_GSkymap", "GSkymap *", 0, 0, (void*)0, 0}; |
16743 | static swig_type_info _swigt__p_GSource = {"_p_GSource", "GSource *", 0, 0, (void*)0, 0}; |
16744 | static swig_type_info _swigt__p_GTime = {"_p_GTime", "GTime *", 0, 0, (void*)0, 0}; |
16745 | static swig_type_info _swigt__p_GXmlElement = {"_p_GXmlElement", "GXmlElement *", 0, 0, (void*)0, 0}; |
16746 | static swig_type_info _swigt__p__ltcube_ctheta = {"_p__ltcube_ctheta", "_ltcube_ctheta *", 0, 0, (void*)0, 0}; |
16747 | static swig_type_info _swigt__p__ltcube_ctheta_phi = {"_p__ltcube_ctheta_phi", "_ltcube_ctheta_phi *", 0, 0, (void*)0, 0}; |
16748 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
16749 | static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; |
16750 | static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; |
16751 | |
16752 | static swig_type_info *swig_type_initial[] = { |
16753 | &_swigt__p_GBase, |
16754 | &_swigt__p_GEnergy, |
16755 | &_swigt__p_GEvent, |
16756 | &_swigt__p_GEventAtom, |
16757 | &_swigt__p_GEventBin, |
16758 | &_swigt__p_GEventCube, |
16759 | &_swigt__p_GEventList, |
16760 | &_swigt__p_GEvents, |
16761 | &_swigt__p_GFits, |
16762 | &_swigt__p_GInstDir, |
16763 | &_swigt__p_GLATAeff, |
16764 | &_swigt__p_GLATEdisp, |
16765 | &_swigt__p_GLATEventAtom, |
16766 | &_swigt__p_GLATEventBin, |
16767 | &_swigt__p_GLATEventCube, |
16768 | &_swigt__p_GLATEventList, |
16769 | &_swigt__p_GLATInstDir, |
16770 | &_swigt__p_GLATLtCube, |
16771 | &_swigt__p_GLATMeanPsf, |
16772 | &_swigt__p_GLATObservation, |
16773 | &_swigt__p_GLATPsf, |
16774 | &_swigt__p_GLATResponse, |
16775 | &_swigt__p_GLATRoi, |
16776 | &_swigt__p_GNodeArray, |
16777 | &_swigt__p_GObservation, |
16778 | &_swigt__p_GPhoton, |
16779 | &_swigt__p_GResponse, |
16780 | &_swigt__p_GRoi, |
16781 | &_swigt__p_GSkyDir, |
16782 | &_swigt__p_GSkymap, |
16783 | &_swigt__p_GSource, |
16784 | &_swigt__p_GTime, |
16785 | &_swigt__p_GXmlElement, |
16786 | &_swigt__p__ltcube_ctheta, |
16787 | &_swigt__p__ltcube_ctheta_phi, |
16788 | &_swigt__p_char, |
16789 | &_swigt__p_std__invalid_argument, |
16790 | &_swigt__p_swig__SwigPyIterator, |
16791 | }; |
16792 | |
16793 | static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GLATLtCube, _p_GLATLtCubeTo_p_GBase, 0, 0}, {&_swigt__p_GEventList, _p_GEventListTo_p_GBase, 0, 0}, {&_swigt__p_GLATEventList, _p_GLATEventListTo_p_GBase, 0, 0}, {&_swigt__p_GLATPsf, _p_GLATPsfTo_p_GBase, 0, 0}, {&_swigt__p_GObservation, _p_GObservationTo_p_GBase, 0, 0}, {&_swigt__p_GLATObservation, _p_GLATObservationTo_p_GBase, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GBase, 0, 0}, {&_swigt__p_GLATEventCube, _p_GLATEventCubeTo_p_GBase, 0, 0}, {&_swigt__p_GLATRoi, _p_GLATRoiTo_p_GBase, 0, 0}, {&_swigt__p_GRoi, _p_GRoiTo_p_GBase, 0, 0}, {&_swigt__p_GLATAeff, _p_GLATAeffTo_p_GBase, 0, 0}, {&_swigt__p_GLATMeanPsf, _p_GLATMeanPsfTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GInstDir, _p_GInstDirTo_p_GBase, 0, 0}, {&_swigt__p_GLATInstDir, _p_GLATInstDirTo_p_GBase, 0, 0}, {&_swigt__p_GEvent, _p_GEventTo_p_GBase, 0, 0}, {&_swigt__p_GResponse, _p_GResponseTo_p_GBase, 0, 0}, {&_swigt__p_GLATResponse, _p_GLATResponseTo_p_GBase, 0, 0}, {&_swigt__p_GLATEdisp, _p_GLATEdispTo_p_GBase, 0, 0}, {&_swigt__p_GEventAtom, _p_GEventAtomTo_p_GBase, 0, 0}, {&_swigt__p_GLATEventAtom, _p_GLATEventAtomTo_p_GBase, 0, 0}, {&_swigt__p_GEvents, _p_GEventsTo_p_GBase, 0, 0}, {&_swigt__p_GEventBin, _p_GEventBinTo_p_GBase, 0, 0}, {&_swigt__p_GLATEventBin, _p_GLATEventBinTo_p_GBase, 0, 0},{0, 0, 0, 0}}; |
16794 | static swig_cast_info _swigc__p_GEnergy[] = { {&_swigt__p_GEnergy, 0, 0, 0},{0, 0, 0, 0}}; |
16795 | static swig_cast_info _swigc__p_GEvent[] = { {&_swigt__p_GEventBin, _p_GEventBinTo_p_GEvent, 0, 0}, {&_swigt__p_GLATEventBin, _p_GLATEventBinTo_p_GEvent, 0, 0}, {&_swigt__p_GEvent, 0, 0, 0}, {&_swigt__p_GEventAtom, _p_GEventAtomTo_p_GEvent, 0, 0}, {&_swigt__p_GLATEventAtom, _p_GLATEventAtomTo_p_GEvent, 0, 0},{0, 0, 0, 0}}; |
16796 | static swig_cast_info _swigc__p_GEventAtom[] = { {&_swigt__p_GEventAtom, 0, 0, 0}, {&_swigt__p_GLATEventAtom, _p_GLATEventAtomTo_p_GEventAtom, 0, 0},{0, 0, 0, 0}}; |
16797 | static swig_cast_info _swigc__p_GEventBin[] = { {&_swigt__p_GEventBin, 0, 0, 0}, {&_swigt__p_GLATEventBin, _p_GLATEventBinTo_p_GEventBin, 0, 0},{0, 0, 0, 0}}; |
16798 | static swig_cast_info _swigc__p_GEventCube[] = { {&_swigt__p_GEventCube, 0, 0, 0}, {&_swigt__p_GLATEventCube, _p_GLATEventCubeTo_p_GEventCube, 0, 0},{0, 0, 0, 0}}; |
16799 | static swig_cast_info _swigc__p_GEventList[] = { {&_swigt__p_GEventList, 0, 0, 0}, {&_swigt__p_GLATEventList, _p_GLATEventListTo_p_GEventList, 0, 0},{0, 0, 0, 0}}; |
16800 | static swig_cast_info _swigc__p_GEvents[] = { {&_swigt__p_GEventList, _p_GEventListTo_p_GEvents, 0, 0}, {&_swigt__p_GLATEventList, _p_GLATEventListTo_p_GEvents, 0, 0}, {&_swigt__p_GEvents, 0, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GEvents, 0, 0}, {&_swigt__p_GLATEventCube, _p_GLATEventCubeTo_p_GEvents, 0, 0},{0, 0, 0, 0}}; |
16801 | static swig_cast_info _swigc__p_GFits[] = { {&_swigt__p_GFits, 0, 0, 0},{0, 0, 0, 0}}; |
16802 | static swig_cast_info _swigc__p_GInstDir[] = { {&_swigt__p_GInstDir, 0, 0, 0}, {&_swigt__p_GLATInstDir, _p_GLATInstDirTo_p_GInstDir, 0, 0},{0, 0, 0, 0}}; |
16803 | static swig_cast_info _swigc__p_GLATAeff[] = { {&_swigt__p_GLATAeff, 0, 0, 0},{0, 0, 0, 0}}; |
16804 | static swig_cast_info _swigc__p_GLATEdisp[] = { {&_swigt__p_GLATEdisp, 0, 0, 0},{0, 0, 0, 0}}; |
16805 | static swig_cast_info _swigc__p_GLATEventAtom[] = { {&_swigt__p_GLATEventAtom, 0, 0, 0},{0, 0, 0, 0}}; |
16806 | static swig_cast_info _swigc__p_GLATEventBin[] = { {&_swigt__p_GLATEventBin, 0, 0, 0},{0, 0, 0, 0}}; |
16807 | static swig_cast_info _swigc__p_GLATEventCube[] = { {&_swigt__p_GLATEventCube, 0, 0, 0},{0, 0, 0, 0}}; |
16808 | static swig_cast_info _swigc__p_GLATEventList[] = { {&_swigt__p_GLATEventList, 0, 0, 0},{0, 0, 0, 0}}; |
16809 | static swig_cast_info _swigc__p_GLATInstDir[] = { {&_swigt__p_GLATInstDir, 0, 0, 0},{0, 0, 0, 0}}; |
16810 | static swig_cast_info _swigc__p_GLATLtCube[] = { {&_swigt__p_GLATLtCube, 0, 0, 0},{0, 0, 0, 0}}; |
16811 | static swig_cast_info _swigc__p_GLATMeanPsf[] = { {&_swigt__p_GLATMeanPsf, 0, 0, 0},{0, 0, 0, 0}}; |
16812 | static swig_cast_info _swigc__p_GLATObservation[] = { {&_swigt__p_GLATObservation, 0, 0, 0},{0, 0, 0, 0}}; |
16813 | static swig_cast_info _swigc__p_GLATPsf[] = { {&_swigt__p_GLATPsf, 0, 0, 0},{0, 0, 0, 0}}; |
16814 | static swig_cast_info _swigc__p_GLATResponse[] = { {&_swigt__p_GLATResponse, 0, 0, 0},{0, 0, 0, 0}}; |
16815 | static swig_cast_info _swigc__p_GLATRoi[] = { {&_swigt__p_GLATRoi, 0, 0, 0},{0, 0, 0, 0}}; |
16816 | static swig_cast_info _swigc__p_GNodeArray[] = { {&_swigt__p_GNodeArray, 0, 0, 0},{0, 0, 0, 0}}; |
16817 | static swig_cast_info _swigc__p_GObservation[] = { {&_swigt__p_GObservation, 0, 0, 0}, {&_swigt__p_GLATObservation, _p_GLATObservationTo_p_GObservation, 0, 0},{0, 0, 0, 0}}; |
16818 | static swig_cast_info _swigc__p_GPhoton[] = { {&_swigt__p_GPhoton, 0, 0, 0},{0, 0, 0, 0}}; |
16819 | static swig_cast_info _swigc__p_GResponse[] = { {&_swigt__p_GResponse, 0, 0, 0}, {&_swigt__p_GLATResponse, _p_GLATResponseTo_p_GResponse, 0, 0},{0, 0, 0, 0}}; |
16820 | static swig_cast_info _swigc__p_GRoi[] = { {&_swigt__p_GLATRoi, _p_GLATRoiTo_p_GRoi, 0, 0}, {&_swigt__p_GRoi, 0, 0, 0},{0, 0, 0, 0}}; |
16821 | static swig_cast_info _swigc__p_GSkyDir[] = { {&_swigt__p_GSkyDir, 0, 0, 0},{0, 0, 0, 0}}; |
16822 | static swig_cast_info _swigc__p_GSkymap[] = { {&_swigt__p_GSkymap, 0, 0, 0},{0, 0, 0, 0}}; |
16823 | static swig_cast_info _swigc__p_GSource[] = { {&_swigt__p_GSource, 0, 0, 0},{0, 0, 0, 0}}; |
16824 | static swig_cast_info _swigc__p_GTime[] = { {&_swigt__p_GTime, 0, 0, 0},{0, 0, 0, 0}}; |
16825 | static swig_cast_info _swigc__p_GXmlElement[] = { {&_swigt__p_GXmlElement, 0, 0, 0},{0, 0, 0, 0}}; |
16826 | static swig_cast_info _swigc__p__ltcube_ctheta[] = { {&_swigt__p__ltcube_ctheta, 0, 0, 0},{0, 0, 0, 0}}; |
16827 | static swig_cast_info _swigc__p__ltcube_ctheta_phi[] = { {&_swigt__p__ltcube_ctheta_phi, 0, 0, 0},{0, 0, 0, 0}}; |
16828 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
16829 | static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; |
16830 | static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; |
16831 | |
16832 | static swig_cast_info *swig_cast_initial[] = { |
16833 | _swigc__p_GBase, |
16834 | _swigc__p_GEnergy, |
16835 | _swigc__p_GEvent, |
16836 | _swigc__p_GEventAtom, |
16837 | _swigc__p_GEventBin, |
16838 | _swigc__p_GEventCube, |
16839 | _swigc__p_GEventList, |
16840 | _swigc__p_GEvents, |
16841 | _swigc__p_GFits, |
16842 | _swigc__p_GInstDir, |
16843 | _swigc__p_GLATAeff, |
16844 | _swigc__p_GLATEdisp, |
16845 | _swigc__p_GLATEventAtom, |
16846 | _swigc__p_GLATEventBin, |
16847 | _swigc__p_GLATEventCube, |
16848 | _swigc__p_GLATEventList, |
16849 | _swigc__p_GLATInstDir, |
16850 | _swigc__p_GLATLtCube, |
16851 | _swigc__p_GLATMeanPsf, |
16852 | _swigc__p_GLATObservation, |
16853 | _swigc__p_GLATPsf, |
16854 | _swigc__p_GLATResponse, |
16855 | _swigc__p_GLATRoi, |
16856 | _swigc__p_GNodeArray, |
16857 | _swigc__p_GObservation, |
16858 | _swigc__p_GPhoton, |
16859 | _swigc__p_GResponse, |
16860 | _swigc__p_GRoi, |
16861 | _swigc__p_GSkyDir, |
16862 | _swigc__p_GSkymap, |
16863 | _swigc__p_GSource, |
16864 | _swigc__p_GTime, |
16865 | _swigc__p_GXmlElement, |
16866 | _swigc__p__ltcube_ctheta, |
16867 | _swigc__p__ltcube_ctheta_phi, |
16868 | _swigc__p_char, |
16869 | _swigc__p_std__invalid_argument, |
16870 | _swigc__p_swig__SwigPyIterator, |
16871 | }; |
16872 | |
16873 | |
16874 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
16875 | |
16876 | static swig_const_info swig_const_table[] = { |
16877 | {0, 0, 0, 0.0, 0, 0}}; |
16878 | |
16879 | #ifdef __cplusplus199711L |
16880 | } |
16881 | #endif |
16882 | /* ----------------------------------------------------------------------------- |
16883 | * Type initialization: |
16884 | * This problem is tough by the requirement that no dynamic |
16885 | * memory is used. Also, since swig_type_info structures store pointers to |
16886 | * swig_cast_info structures and swig_cast_info structures store pointers back |
16887 | * to swig_type_info structures, we need some lookup code at initialization. |
16888 | * The idea is that swig generates all the structures that are needed. |
16889 | * The runtime then collects these partially filled structures. |
16890 | * The SWIG_InitializeModule function takes these initial arrays out of |
16891 | * swig_module, and does all the lookup, filling in the swig_module.types |
16892 | * array with the correct data and linking the correct swig_cast_info |
16893 | * structures together. |
16894 | * |
16895 | * The generated swig_type_info structures are assigned staticly to an initial |
16896 | * array. We just loop through that array, and handle each type individually. |
16897 | * First we lookup if this type has been already loaded, and if so, use the |
16898 | * loaded structure instead of the generated one. Then we have to fill in the |
16899 | * cast linked list. The cast data is initially stored in something like a |
16900 | * two-dimensional array. Each row corresponds to a type (there are the same |
16901 | * number of rows as there are in the swig_type_initial array). Each entry in |
16902 | * a column is one of the swig_cast_info structures for that type. |
16903 | * The cast_initial array is actually an array of arrays, because each row has |
16904 | * a variable number of columns. So to actually build the cast linked list, |
16905 | * we find the array of casts associated with the type, and loop through it |
16906 | * adding the casts to the list. The one last trick we need to do is making |
16907 | * sure the type pointer in the swig_cast_info struct is correct. |
16908 | * |
16909 | * First off, we lookup the cast->type name to see if it is already loaded. |
16910 | * There are three cases to handle: |
16911 | * 1) If the cast->type has already been loaded AND the type we are adding |
16912 | * casting info to has not been loaded (it is in this module), THEN we |
16913 | * replace the cast->type pointer with the type pointer that has already |
16914 | * been loaded. |
16915 | * 2) If BOTH types (the one we are adding casting info to, and the |
16916 | * cast->type) are loaded, THEN the cast info has already been loaded by |
16917 | * the previous module so we just ignore it. |
16918 | * 3) Finally, if cast->type has not already been loaded, then we add that |
16919 | * swig_cast_info to the linked list (because the cast->type) pointer will |
16920 | * be correct. |
16921 | * ----------------------------------------------------------------------------- */ |
16922 | |
16923 | #ifdef __cplusplus199711L |
16924 | extern "C" { |
16925 | #if 0 |
16926 | } /* c-mode */ |
16927 | #endif |
16928 | #endif |
16929 | |
16930 | #if 0 |
16931 | #define SWIGRUNTIME_DEBUG |
16932 | #endif |
16933 | |
16934 | |
16935 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
16936 | SWIG_InitializeModule(void *clientdata) { |
16937 | size_t i; |
16938 | swig_module_info *module_head, *iter; |
16939 | int found, init; |
16940 | |
16941 | /* check to see if the circular list has been setup, if not, set it up */ |
16942 | if (swig_module.next==0) { |
16943 | /* Initialize the swig_module */ |
16944 | swig_module.type_initial = swig_type_initial; |
16945 | swig_module.cast_initial = swig_cast_initial; |
16946 | swig_module.next = &swig_module; |
16947 | init = 1; |
16948 | } else { |
16949 | init = 0; |
16950 | } |
16951 | |
16952 | /* Try and load any already created modules */ |
16953 | module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata); |
16954 | if (!module_head) { |
16955 | /* This is the first module loaded for this interpreter */ |
16956 | /* so set the swig module into the interpreter */ |
16957 | SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module); |
16958 | module_head = &swig_module; |
Value stored to 'module_head' is never read | |
16959 | } else { |
16960 | /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
16961 | found=0; |
16962 | iter=module_head; |
16963 | do { |
16964 | if (iter==&swig_module) { |
16965 | found=1; |
16966 | break; |
16967 | } |
16968 | iter=iter->next; |
16969 | } while (iter!= module_head); |
16970 | |
16971 | /* if the is found in the list, then all is done and we may leave */ |
16972 | if (found) return; |
16973 | /* otherwise we must add out module into the list */ |
16974 | swig_module.next = module_head->next; |
16975 | module_head->next = &swig_module; |
16976 | } |
16977 | |
16978 | /* When multiple interpreters are used, a module could have already been initialized in |
16979 | a different interpreter, but not yet have a pointer in this interpreter. |
16980 | In this case, we do not want to continue adding types... everything should be |
16981 | set up already */ |
16982 | if (init == 0) return; |
16983 | |
16984 | /* Now work on filling in swig_module.types */ |
16985 | #ifdef SWIGRUNTIME_DEBUG |
16986 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
16987 | #endif |
16988 | for (i = 0; i < swig_module.size; ++i) { |
16989 | swig_type_info *type = 0; |
16990 | swig_type_info *ret; |
16991 | swig_cast_info *cast; |
16992 | |
16993 | #ifdef SWIGRUNTIME_DEBUG |
16994 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
16995 | #endif |
16996 | |
16997 | /* if there is another module already loaded */ |
16998 | if (swig_module.next != &swig_module) { |
16999 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
17000 | } |
17001 | if (type) { |
17002 | /* Overwrite clientdata field */ |
17003 | #ifdef SWIGRUNTIME_DEBUG |
17004 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
17005 | #endif |
17006 | if (swig_module.type_initial[i]->clientdata) { |
17007 | type->clientdata = swig_module.type_initial[i]->clientdata; |
17008 | #ifdef SWIGRUNTIME_DEBUG |
17009 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
17010 | #endif |
17011 | } |
17012 | } else { |
17013 | type = swig_module.type_initial[i]; |
17014 | } |
17015 | |
17016 | /* Insert casting types */ |
17017 | cast = swig_module.cast_initial[i]; |
17018 | while (cast->type) { |
17019 | /* Don't need to add information already in the list */ |
17020 | ret = 0; |
17021 | #ifdef SWIGRUNTIME_DEBUG |
17022 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
17023 | #endif |
17024 | if (swig_module.next != &swig_module) { |
17025 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
17026 | #ifdef SWIGRUNTIME_DEBUG |
17027 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
17028 | #endif |
17029 | } |
17030 | if (ret) { |
17031 | if (type == swig_module.type_initial[i]) { |
17032 | #ifdef SWIGRUNTIME_DEBUG |
17033 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
17034 | #endif |
17035 | cast->type = ret; |
17036 | ret = 0; |
17037 | } else { |
17038 | /* Check for casting already in the list */ |
17039 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
17040 | #ifdef SWIGRUNTIME_DEBUG |
17041 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
17042 | #endif |
17043 | if (!ocast) ret = 0; |
17044 | } |
17045 | } |
17046 | |
17047 | if (!ret) { |
17048 | #ifdef SWIGRUNTIME_DEBUG |
17049 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
17050 | #endif |
17051 | if (type->cast) { |
17052 | type->cast->prev = cast; |
17053 | cast->next = type->cast; |
17054 | } |
17055 | type->cast = cast; |
17056 | } |
17057 | cast++; |
17058 | } |
17059 | /* Set entry in modules->types array equal to the type */ |
17060 | swig_module.types[i] = type; |
17061 | } |
17062 | swig_module.types[i] = 0; |
17063 | |
17064 | #ifdef SWIGRUNTIME_DEBUG |
17065 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
17066 | for (i = 0; i < swig_module.size; ++i) { |
17067 | int j = 0; |
17068 | swig_cast_info *cast = swig_module.cast_initial[i]; |
17069 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
17070 | while (cast->type) { |
17071 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
17072 | cast++; |
17073 | ++j; |
17074 | } |
17075 | printf("---- Total casts: %d\n",j); |
17076 | } |
17077 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
17078 | #endif |
17079 | } |
17080 | |
17081 | /* This function will propagate the clientdata field of type to |
17082 | * any new swig_type_info structures that have been added into the list |
17083 | * of equivalent types. It is like calling |
17084 | * SWIG_TypeClientData(type, clientdata) a second time. |
17085 | */ |
17086 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
17087 | SWIG_PropagateClientData(void) { |
17088 | size_t i; |
17089 | swig_cast_info *equiv; |
17090 | static int init_run = 0; |
17091 | |
17092 | if (init_run) return; |
17093 | init_run = 1; |
17094 | |
17095 | for (i = 0; i < swig_module.size; i++) { |
17096 | if (swig_module.types[i]->clientdata) { |
17097 | equiv = swig_module.types[i]->cast; |
17098 | while (equiv) { |
17099 | if (!equiv->converter) { |
17100 | if (equiv->type && !equiv->type->clientdata) |
17101 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
17102 | } |
17103 | equiv = equiv->next; |
17104 | } |
17105 | } |
17106 | } |
17107 | } |
17108 | |
17109 | #ifdef __cplusplus199711L |
17110 | #if 0 |
17111 | { |
17112 | /* c-mode */ |
17113 | #endif |
17114 | } |
17115 | #endif |
17116 | |
17117 | |
17118 | |
17119 | #ifdef __cplusplus199711L |
17120 | extern "C" { |
17121 | #endif |
17122 | |
17123 | /* Python-specific SWIG API */ |
17124 | #define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink() |
17125 | #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) |
17126 | #define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) |
17127 | |
17128 | /* ----------------------------------------------------------------------------- |
17129 | * global variable support code. |
17130 | * ----------------------------------------------------------------------------- */ |
17131 | |
17132 | typedef struct swig_globalvar { |
17133 | char *name; /* Name of global variable */ |
17134 | PyObject *(*get_attr)(void); /* Return the current value */ |
17135 | int (*set_attr)(PyObject *); /* Set the value */ |
17136 | struct swig_globalvar *next; |
17137 | } swig_globalvar; |
17138 | |
17139 | typedef struct swig_varlinkobject { |
17140 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
17141 | swig_globalvar *vars; |
17142 | } swig_varlinkobject; |
17143 | |
17144 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
17145 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { |
17146 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17147 | return PyUnicode_InternFromString("<Swig global variables>"); |
17148 | #else |
17149 | return PyString_FromString("<Swig global variables>"); |
17150 | #endif |
17151 | } |
17152 | |
17153 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
17154 | swig_varlink_str(swig_varlinkobject *v) { |
17155 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17156 | PyObject *str = PyUnicode_InternFromString("("); |
17157 | PyObject *tail; |
17158 | PyObject *joined; |
17159 | swig_globalvar *var; |
17160 | for (var = v->vars; var; var=var->next) { |
17161 | tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name); |
17162 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
17163 | Py_DecRef(str); |
17164 | Py_DecRef(tail); |
17165 | str = joined; |
17166 | if (var->next) { |
17167 | tail = PyUnicode_InternFromString(", "); |
17168 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
17169 | Py_DecRef(str); |
17170 | Py_DecRef(tail); |
17171 | str = joined; |
17172 | } |
17173 | } |
17174 | tail = PyUnicode_InternFromString(")"); |
17175 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
17176 | Py_DecRef(str); |
17177 | Py_DecRef(tail); |
17178 | str = joined; |
17179 | #else |
17180 | PyObject *str = PyString_FromString("("); |
17181 | swig_globalvar *var; |
17182 | for (var = v->vars; var; var=var->next) { |
17183 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); |
17184 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); |
17185 | } |
17186 | PyString_ConcatAndDel(&str,PyString_FromString(")")); |
17187 | #endif |
17188 | return str; |
17189 | } |
17190 | |
17191 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
17192 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { |
17193 | char *tmp; |
17194 | PyObject *str = swig_varlink_str(v); |
17195 | fprintf(fp,"Swig global variables "); |
17196 | fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); |
17197 | SWIG_Python_str_DelForPy3(tmp); |
17198 | Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(str)))); } while (0); |
17199 | return 0; |
17200 | } |
17201 | |
17202 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
17203 | swig_varlink_dealloc(swig_varlinkobject *v) { |
17204 | swig_globalvar *var = v->vars; |
17205 | while (var) { |
17206 | swig_globalvar *n = var->next; |
17207 | free(var->name); |
17208 | free(var); |
17209 | var = n; |
17210 | } |
17211 | } |
17212 | |
17213 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
17214 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
17215 | PyObject *res = NULL__null; |
17216 | swig_globalvar *var = v->vars; |
17217 | while (var) { |
17218 | if (strcmp(var->name,n) == 0) { |
17219 | res = (*var->get_attr)(); |
17220 | break; |
17221 | } |
17222 | var = var->next; |
17223 | } |
17224 | if (res == NULL__null && !PyErr_Occurred()) { |
17225 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
17226 | } |
17227 | return res; |
17228 | } |
17229 | |
17230 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
17231 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
17232 | int res = 1; |
17233 | swig_globalvar *var = v->vars; |
17234 | while (var) { |
17235 | if (strcmp(var->name,n) == 0) { |
17236 | res = (*var->set_attr)(p); |
17237 | break; |
17238 | } |
17239 | var = var->next; |
17240 | } |
17241 | if (res == 1 && !PyErr_Occurred()) { |
17242 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
17243 | } |
17244 | return res; |
17245 | } |
17246 | |
17247 | SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject* |
17248 | swig_varlink_type(void) { |
17249 | static char varlink__doc__[] = "Swig var link object"; |
17250 | static PyTypeObject varlink_type; |
17251 | static int type_init = 0; |
17252 | if (!type_init) { |
17253 | const PyTypeObject tmp = { |
17254 | /* PyObject header changed in Python 3 */ |
17255 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17256 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
17257 | #else |
17258 | PyObject_HEAD_INIT(NULL)1, __null, |
17259 | 0, /* ob_size */ |
17260 | #endif |
17261 | (char *)"swigvarlink", /* tp_name */ |
17262 | sizeof(swig_varlinkobject), /* tp_basicsize */ |
17263 | 0, /* tp_itemsize */ |
17264 | (destructor) swig_varlink_dealloc, /* tp_dealloc */ |
17265 | (printfunc) swig_varlink_print, /* tp_print */ |
17266 | (getattrfunc) swig_varlink_getattr, /* tp_getattr */ |
17267 | (setattrfunc) swig_varlink_setattr, /* tp_setattr */ |
17268 | 0, /* tp_compare */ |
17269 | (reprfunc) swig_varlink_repr, /* tp_repr */ |
17270 | 0, /* tp_as_number */ |
17271 | 0, /* tp_as_sequence */ |
17272 | 0, /* tp_as_mapping */ |
17273 | 0, /* tp_hash */ |
17274 | 0, /* tp_call */ |
17275 | (reprfunc) swig_varlink_str, /* tp_str */ |
17276 | 0, /* tp_getattro */ |
17277 | 0, /* tp_setattro */ |
17278 | 0, /* tp_as_buffer */ |
17279 | 0, /* tp_flags */ |
17280 | varlink__doc__, /* tp_doc */ |
17281 | 0, /* tp_traverse */ |
17282 | 0, /* tp_clear */ |
17283 | 0, /* tp_richcompare */ |
17284 | 0, /* tp_weaklistoffset */ |
17285 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
17286 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
17287 | #endif |
17288 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
17289 | 0, /* tp_del */ |
17290 | #endif |
17291 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
17292 | 0, /* tp_version */ |
17293 | #endif |
17294 | #ifdef COUNT_ALLOCS |
17295 | 0,0,0,0 /* tp_alloc -> tp_next */ |
17296 | #endif |
17297 | }; |
17298 | varlink_type = tmp; |
17299 | type_init = 1; |
17300 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
17301 | varlink_type.ob_type = &PyType_Type; |
17302 | #else |
17303 | if (PyType_Ready(&varlink_type) < 0) |
17304 | return NULL__null; |
17305 | #endif |
17306 | } |
17307 | return &varlink_type; |
17308 | } |
17309 | |
17310 | /* Create a variable linking object for use later */ |
17311 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
17312 | SWIG_Python_newvarlink(void) { |
17313 | 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 ())) ); |
17314 | if (result) { |
17315 | result->vars = 0; |
17316 | } |
17317 | return ((PyObject*) result); |
17318 | } |
17319 | |
17320 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
17321 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
17322 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
17323 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); |
17324 | if (gv) { |
17325 | size_t size = strlen(name)+1; |
17326 | gv->name = (char *)malloc(size); |
17327 | if (gv->name) { |
17328 | strncpy(gv->name,name,size); |
17329 | gv->get_attr = get_attr; |
17330 | gv->set_attr = set_attr; |
17331 | gv->next = v->vars; |
17332 | } |
17333 | } |
17334 | v->vars = gv; |
17335 | } |
17336 | |
17337 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
17338 | SWIG_globals(void) { |
17339 | static PyObject *_SWIG_globals = 0; |
17340 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink(); |
17341 | return _SWIG_globals; |
17342 | } |
17343 | |
17344 | /* ----------------------------------------------------------------------------- |
17345 | * constants/methods manipulation |
17346 | * ----------------------------------------------------------------------------- */ |
17347 | |
17348 | /* Install Constants */ |
17349 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
17350 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
17351 | PyObject *obj = 0; |
17352 | size_t i; |
17353 | for (i = 0; constants[i].type; ++i) { |
17354 | switch(constants[i].type) { |
17355 | case SWIG_PY_POINTER4: |
17356 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants [i]).ptype, 0); |
17357 | break; |
17358 | case SWIG_PY_BINARY5: |
17359 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue , *(constants[i].ptype)); |
17360 | break; |
17361 | default: |
17362 | obj = 0; |
17363 | break; |
17364 | } |
17365 | if (obj) { |
17366 | PyDict_SetItemString(d, constants[i].name, obj); |
17367 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
17368 | } |
17369 | } |
17370 | } |
17371 | |
17372 | /* -----------------------------------------------------------------------------*/ |
17373 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
17374 | /* -----------------------------------------------------------------------------*/ |
17375 | |
17376 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
17377 | SWIG_Python_FixMethods(PyMethodDef *methods, |
17378 | swig_const_info *const_table, |
17379 | swig_type_info **types, |
17380 | swig_type_info **types_initial) { |
17381 | size_t i; |
17382 | for (i = 0; methods[i].ml_name; ++i) { |
17383 | const char *c = methods[i].ml_doc; |
17384 | if (c && (c = strstr(c, "swig_ptr: "))) { |
17385 | int j; |
17386 | swig_const_info *ci = 0; |
17387 | const char *name = c + 10; |
17388 | for (j = 0; const_table[j].type; ++j) { |
17389 | if (strncmp(const_table[j].name, name, |
17390 | strlen(const_table[j].name)) == 0) { |
17391 | ci = &(const_table[j]); |
17392 | break; |
17393 | } |
17394 | } |
17395 | if (ci) { |
17396 | void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0; |
17397 | if (ptr) { |
17398 | size_t shift = (ci->ptype) - types; |
17399 | swig_type_info *ty = types_initial[shift]; |
17400 | size_t ldoc = (c - methods[i].ml_doc); |
17401 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; |
17402 | char *ndoc = (char*)malloc(ldoc + lptr + 10); |
17403 | if (ndoc) { |
17404 | char *buff = ndoc; |
17405 | strncpy(buff, methods[i].ml_doc, ldoc); |
17406 | buff += ldoc; |
17407 | strncpy(buff, "swig_ptr: ", 10); |
17408 | buff += 10; |
17409 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); |
17410 | methods[i].ml_doc = ndoc; |
17411 | } |
17412 | } |
17413 | } |
17414 | } |
17415 | } |
17416 | } |
17417 | |
17418 | #ifdef __cplusplus199711L |
17419 | } |
17420 | #endif |
17421 | |
17422 | /* -----------------------------------------------------------------------------* |
17423 | * Partial Init method |
17424 | * -----------------------------------------------------------------------------*/ |
17425 | |
17426 | #ifdef __cplusplus199711L |
17427 | extern "C" |
17428 | #endif |
17429 | |
17430 | SWIGEXPORT__attribute__ ((visibility("default"))) |
17431 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17432 | PyObject* |
17433 | #else |
17434 | void |
17435 | #endif |
17436 | SWIG_initinit_lat(void) { |
17437 | PyObject *m, *d, *md; |
17438 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17439 | static struct PyModuleDef SWIG_module = { |
17440 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
17441 | PyModuleDef_HEAD_INIT, |
17442 | # else |
17443 | { |
17444 | PyObject_HEAD_INIT(NULL)1, __null, |
17445 | NULL__null, /* m_init */ |
17446 | 0, /* m_index */ |
17447 | NULL__null, /* m_copy */ |
17448 | }, |
17449 | # endif |
17450 | (char *) SWIG_name"_lat", |
17451 | NULL__null, |
17452 | -1, |
17453 | SwigMethods, |
17454 | NULL__null, |
17455 | NULL__null, |
17456 | NULL__null, |
17457 | NULL__null |
17458 | }; |
17459 | #endif |
17460 | |
17461 | #if defined(SWIGPYTHON_BUILTIN) |
17462 | static SwigPyClientData SwigPyObject_clientdata = { |
17463 | 0, 0, 0, 0, 0, 0, 0 |
17464 | }; |
17465 | static PyGetSetDef this_getset_def = { |
17466 | (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null |
17467 | }; |
17468 | static SwigPyGetSet thisown_getset_closure = { |
17469 | (PyCFunction) SwigPyObject_own, |
17470 | (PyCFunction) SwigPyObject_own |
17471 | }; |
17472 | static PyGetSetDef thisown_getset_def = { |
17473 | (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure |
17474 | }; |
17475 | PyObject *metatype_args; |
17476 | PyTypeObject *builtin_pytype; |
17477 | int builtin_base_count; |
17478 | swig_type_info *builtin_basetype; |
17479 | PyObject *tuple; |
17480 | PyGetSetDescrObject *static_getset; |
17481 | PyTypeObject *metatype; |
17482 | SwigPyClientData *cd; |
17483 | PyObject *public_interface, *public_symbol; |
17484 | PyObject *this_descr; |
17485 | PyObject *thisown_descr; |
17486 | int i; |
17487 | |
17488 | (void)builtin_pytype; |
17489 | (void)builtin_base_count; |
17490 | (void)builtin_basetype; |
17491 | (void)tuple; |
17492 | (void)static_getset; |
17493 | |
17494 | /* metatype is used to implement static member variables. */ |
17495 | metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); |
17496 | assert(metatype_args)((void)0); |
17497 | metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null); |
17498 | assert(metatype)((void)0); |
17499 | 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); |
17500 | metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; |
17501 | assert(PyType_Ready(metatype) >= 0)((void)0); |
17502 | #endif |
17503 | |
17504 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
17505 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
17506 | |
17507 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17508 | m = PyModule_Create(&SWIG_module); |
17509 | #else |
17510 | m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_lat", SwigMethods, (char *)__null , (PyObject *)__null, 1013); |
17511 | #endif |
17512 | md = d = PyModule_GetDict(m); |
17513 | (void)md; |
17514 | |
17515 | SWIG_InitializeModule(0); |
17516 | |
17517 | #ifdef SWIGPYTHON_BUILTIN |
17518 | SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module , "_p_SwigPyObject"); |
17519 | assert(SwigPyObject_stype)((void)0); |
17520 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
17521 | if (!cd) { |
17522 | SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; |
17523 | SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); |
17524 | } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { |
17525 | PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); |
17526 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17527 | return NULL__null; |
17528 | # else |
17529 | return; |
17530 | # endif |
17531 | } |
17532 | |
17533 | /* All objects have a 'this' attribute */ |
17534 | this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); |
17535 | (void)this_descr; |
17536 | |
17537 | /* All objects have a 'thisown' attribute */ |
17538 | thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); |
17539 | (void)thisown_descr; |
17540 | |
17541 | public_interface = PyList_New(0); |
17542 | public_symbol = 0; |
17543 | (void)public_symbol; |
17544 | |
17545 | PyDict_SetItemString(md, "__all__", public_interface); |
17546 | 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); |
17547 | for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i) |
17548 | SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); |
17549 | for (i = 0; swig_const_table[i].name != 0; ++i) |
17550 | SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); |
17551 | #endif |
17552 | |
17553 | SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table); |
17554 | |
17555 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
17556 | return m; |
17557 | #else |
17558 | return; |
17559 | #endif |
17560 | } |
17561 |