File: | pyext/gammalib/sky_wrap.cpp |
Location: | line 18071, column 5 |
Description: | Value stored to 'module_head' is never read |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). |
3 | * Version 2.0.11 |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of |
6 | * coding conventions designed to improve portability and efficiency. Do not make |
7 | * changes to this file unless you know what you are doing--modify the SWIG |
8 | * interface file instead. |
9 | * ----------------------------------------------------------------------------- */ |
10 | |
11 | #define SWIGPYTHON |
12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
13 | |
14 | |
15 | #ifdef __cplusplus199711L |
16 | /* SwigValueWrapper is described in swig.swg */ |
17 | template<typename T> class SwigValueWrapper { |
18 | struct SwigMovePointer { |
19 | T *ptr; |
20 | SwigMovePointer(T *p) : ptr(p) { } |
21 | ~SwigMovePointer() { delete ptr; } |
22 | SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; } |
23 | } pointer; |
24 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); |
25 | SwigValueWrapper(const SwigValueWrapper<T>& rhs); |
26 | public: |
27 | SwigValueWrapper() : pointer(0) { } |
28 | SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; } |
29 | operator T&() const { return *pointer.ptr; } |
30 | T *operator&() { return pointer.ptr; } |
31 | }; |
32 | |
33 | template <typename T> T SwigValueInit() { |
34 | return T(); |
35 | } |
36 | #endif |
37 | |
38 | /* ----------------------------------------------------------------------------- |
39 | * This section contains generic SWIG labels for method/variable |
40 | * declarations/attributes, and other compiler dependent labels. |
41 | * ----------------------------------------------------------------------------- */ |
42 | |
43 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
44 | #ifndef SWIGTEMPLATEDISAMBIGUATOR |
45 | # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560) |
46 | # define SWIGTEMPLATEDISAMBIGUATOR template |
47 | # elif defined(__HP_aCC) |
48 | /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */ |
49 | /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */ |
50 | # define SWIGTEMPLATEDISAMBIGUATOR template |
51 | # else |
52 | # define SWIGTEMPLATEDISAMBIGUATOR |
53 | # endif |
54 | #endif |
55 | |
56 | /* inline attribute */ |
57 | #ifndef SWIGINLINEinline |
58 | # if defined(__cplusplus199711L) || (defined(__GNUC__4) && !defined(__STRICT_ANSI__)) |
59 | # define SWIGINLINEinline inline |
60 | # else |
61 | # define SWIGINLINEinline |
62 | # endif |
63 | #endif |
64 | |
65 | /* attribute recognised by some compilers to avoid 'unused' warnings */ |
66 | #ifndef SWIGUNUSED__attribute__ ((__unused__)) |
67 | # if defined(__GNUC__4) |
68 | # if !(defined(__cplusplus199711L)) || (__GNUC__4 > 3 || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4)) |
69 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
70 | # else |
71 | # define SWIGUNUSED__attribute__ ((__unused__)) |
72 | # endif |
73 | # elif defined(__ICC) |
74 | # define SWIGUNUSED__attribute__ ((__unused__)) __attribute__ ((__unused__)) |
75 | # else |
76 | # define SWIGUNUSED__attribute__ ((__unused__)) |
77 | # endif |
78 | #endif |
79 | |
80 | #ifndef SWIG_MSC_UNSUPPRESS_4505 |
81 | # if defined(_MSC_VER) |
82 | # pragma warning(disable : 4505) /* unreferenced local function has been removed */ |
83 | # endif |
84 | #endif |
85 | |
86 | #ifndef SWIGUNUSEDPARM |
87 | # ifdef __cplusplus199711L |
88 | # define SWIGUNUSEDPARM(p) |
89 | # else |
90 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED__attribute__ ((__unused__)) |
91 | # endif |
92 | #endif |
93 | |
94 | /* internal SWIG method */ |
95 | #ifndef SWIGINTERNstatic __attribute__ ((__unused__)) |
96 | # define SWIGINTERNstatic __attribute__ ((__unused__)) static SWIGUNUSED__attribute__ ((__unused__)) |
97 | #endif |
98 | |
99 | /* internal inline SWIG method */ |
100 | #ifndef SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline |
101 | # define SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline SWIGINTERNstatic __attribute__ ((__unused__)) SWIGINLINEinline |
102 | #endif |
103 | |
104 | /* exporting methods */ |
105 | #if (__GNUC__4 >= 4) || (__GNUC__4 == 3 && __GNUC_MINOR__2 >= 4) |
106 | # ifndef GCC_HASCLASSVISIBILITY |
107 | # define GCC_HASCLASSVISIBILITY |
108 | # endif |
109 | #endif |
110 | |
111 | #ifndef SWIGEXPORT__attribute__ ((visibility("default"))) |
112 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
113 | # if defined(STATIC_LINKED) |
114 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
115 | # else |
116 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __declspec(dllexport) |
117 | # endif |
118 | # else |
119 | # if defined(__GNUC__4) && defined(GCC_HASCLASSVISIBILITY) |
120 | # define SWIGEXPORT__attribute__ ((visibility("default"))) __attribute__ ((visibility("default"))) |
121 | # else |
122 | # define SWIGEXPORT__attribute__ ((visibility("default"))) |
123 | # endif |
124 | # endif |
125 | #endif |
126 | |
127 | /* calling conventions for Windows */ |
128 | #ifndef SWIGSTDCALL |
129 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
130 | # define SWIGSTDCALL __stdcall |
131 | # else |
132 | # define SWIGSTDCALL |
133 | # endif |
134 | #endif |
135 | |
136 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
137 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE) |
138 | # define _CRT_SECURE_NO_DEPRECATE |
139 | #endif |
140 | |
141 | /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */ |
142 | #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE) |
143 | # define _SCL_SECURE_NO_DEPRECATE |
144 | #endif |
145 | |
146 | |
147 | |
148 | #if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG) |
149 | /* Use debug wrappers with the Python release dll */ |
150 | # undef _DEBUG |
151 | # include <Python.h> |
152 | # define _DEBUG |
153 | #else |
154 | # include <Python.h> |
155 | #endif |
156 | |
157 | /* ----------------------------------------------------------------------------- |
158 | * swigrun.swg |
159 | * |
160 | * This file contains generic C API SWIG runtime support for pointer |
161 | * type checking. |
162 | * ----------------------------------------------------------------------------- */ |
163 | |
164 | /* This should only be incremented when either the layout of swig_type_info changes, |
165 | or for whatever reason, the runtime changes incompatibly */ |
166 | #define SWIG_RUNTIME_VERSION"4" "4" |
167 | |
168 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
169 | #ifdef SWIG_TYPE_TABLE |
170 | # define SWIG_QUOTE_STRING(x) #x |
171 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) |
172 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) |
173 | #else |
174 | # define SWIG_TYPE_TABLE_NAME |
175 | #endif |
176 | |
177 | /* |
178 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for |
179 | creating a static or dynamic library from the SWIG runtime code. |
180 | In 99.9% of the cases, SWIG just needs to declare them as 'static'. |
181 | |
182 | But only do this if strictly necessary, ie, if you have problems |
183 | with your compiler or suchlike. |
184 | */ |
185 | |
186 | #ifndef SWIGRUNTIMEstatic __attribute__ ((__unused__)) |
187 | # define SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINTERNstatic __attribute__ ((__unused__)) |
188 | #endif |
189 | |
190 | #ifndef SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline |
191 | # define SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline SWIGRUNTIMEstatic __attribute__ ((__unused__)) SWIGINLINEinline |
192 | #endif |
193 | |
194 | /* Generic buffer size */ |
195 | #ifndef SWIG_BUFFER_SIZE1024 |
196 | # define SWIG_BUFFER_SIZE1024 1024 |
197 | #endif |
198 | |
199 | /* Flags for pointer conversions */ |
200 | #define SWIG_POINTER_DISOWN0x1 0x1 |
201 | #define SWIG_CAST_NEW_MEMORY0x2 0x2 |
202 | |
203 | /* Flags for new pointer objects */ |
204 | #define SWIG_POINTER_OWN0x1 0x1 |
205 | |
206 | |
207 | /* |
208 | Flags/methods for returning states. |
209 | |
210 | The SWIG conversion methods, as ConvertPtr, return an integer |
211 | that tells if the conversion was successful or not. And if not, |
212 | an error code can be returned (see swigerrors.swg for the codes). |
213 | |
214 | Use the following macros/flags to set or process the returning |
215 | states. |
216 | |
217 | In old versions of SWIG, code such as the following was usually written: |
218 | |
219 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { |
220 | // success code |
221 | } else { |
222 | //fail code |
223 | } |
224 | |
225 | Now you can be more explicit: |
226 | |
227 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); |
228 | if (SWIG_IsOK(res)) { |
229 | // success code |
230 | } else { |
231 | // fail code |
232 | } |
233 | |
234 | which is the same really, but now you can also do |
235 | |
236 | Type *ptr; |
237 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); |
238 | if (SWIG_IsOK(res)) { |
239 | // success code |
240 | if (SWIG_IsNewObj(res) { |
241 | ... |
242 | delete *ptr; |
243 | } else { |
244 | ... |
245 | } |
246 | } else { |
247 | // fail code |
248 | } |
249 | |
250 | I.e., now SWIG_ConvertPtr can return new objects and you can |
251 | identify the case and take care of the deallocation. Of course that |
252 | also requires SWIG_ConvertPtr to return new result values, such as |
253 | |
254 | int SWIG_ConvertPtr(obj, ptr,...) { |
255 | if (<obj is ok>) { |
256 | if (<need new object>) { |
257 | *ptr = <ptr to new allocated object>; |
258 | return SWIG_NEWOBJ; |
259 | } else { |
260 | *ptr = <ptr to old object>; |
261 | return SWIG_OLDOBJ; |
262 | } |
263 | } else { |
264 | return SWIG_BADOBJ; |
265 | } |
266 | } |
267 | |
268 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be |
269 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the |
270 | SWIG errors code. |
271 | |
272 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code |
273 | allows to return the 'cast rank', for example, if you have this |
274 | |
275 | int food(double) |
276 | int fooi(int); |
277 | |
278 | and you call |
279 | |
280 | food(1) // cast rank '1' (1 -> 1.0) |
281 | fooi(1) // cast rank '0' |
282 | |
283 | just use the SWIG_AddCast()/SWIG_CheckState() |
284 | */ |
285 | |
286 | #define SWIG_OK(0) (0) |
287 | #define SWIG_ERROR(-1) (-1) |
288 | #define SWIG_IsOK(r)(r >= 0) (r >= 0) |
289 | #define SWIG_ArgError(r)((r != (-1)) ? r : -5) ((r != SWIG_ERROR(-1)) ? r : SWIG_TypeError-5) |
290 | |
291 | /* The CastRankLimit says how many bits are used for the cast rank */ |
292 | #define SWIG_CASTRANKLIMIT(1 << 8) (1 << 8) |
293 | /* The NewMask denotes the object was created (using new/malloc) */ |
294 | #define SWIG_NEWOBJMASK((1 << 8) << 1) (SWIG_CASTRANKLIMIT(1 << 8) << 1) |
295 | /* The TmpMask is for in/out typemaps that use temporal objects */ |
296 | #define SWIG_TMPOBJMASK(((1 << 8) << 1) << 1) (SWIG_NEWOBJMASK((1 << 8) << 1) << 1) |
297 | /* Simple returning values */ |
298 | #define SWIG_BADOBJ((-1)) (SWIG_ERROR(-1)) |
299 | #define SWIG_OLDOBJ((0)) (SWIG_OK(0)) |
300 | #define SWIG_NEWOBJ((0) | ((1 << 8) << 1)) (SWIG_OK(0) | SWIG_NEWOBJMASK((1 << 8) << 1)) |
301 | #define SWIG_TMPOBJ((0) | (((1 << 8) << 1) << 1)) (SWIG_OK(0) | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) |
302 | /* Check, add and del mask methods */ |
303 | #define SWIG_AddNewMask(r)((r >= 0) ? (r | ((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
304 | #define SWIG_DelNewMask(r)((r >= 0) ? (r & ~((1 << 8) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_NEWOBJMASK((1 << 8) << 1)) : r) |
305 | #define SWIG_IsNewObj(r)((r >= 0) && (r & ((1 << 8) << 1)) ) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_NEWOBJMASK((1 << 8) << 1))) |
306 | #define SWIG_AddTmpMask(r)((r >= 0) ? (r | (((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r | SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
307 | #define SWIG_DelTmpMask(r)((r >= 0) ? (r & ~(((1 << 8) << 1) << 1)) : r) (SWIG_IsOK(r)(r >= 0) ? (r & ~SWIG_TMPOBJMASK(((1 << 8) << 1) << 1)) : r) |
308 | #define SWIG_IsTmpObj(r)((r >= 0) && (r & (((1 << 8) << 1) << 1))) (SWIG_IsOK(r)(r >= 0) && (r & SWIG_TMPOBJMASK(((1 << 8) << 1) << 1))) |
309 | |
310 | /* Cast-Rank Mode */ |
311 | #if defined(SWIG_CASTRANK_MODE) |
312 | # ifndef SWIG_TypeRank |
313 | # define SWIG_TypeRank unsigned long |
314 | # endif |
315 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ |
316 | # define SWIG_MAXCASTRANK (2) |
317 | # endif |
318 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT(1 << 8)) -1) |
319 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) |
320 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_AddCast(int r)(int r) { |
321 | return SWIG_IsOK(r)(r >= 0) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR(-1)) : r; |
322 | } |
323 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int SWIG_CheckState(int r)((int r >= 0) ? 1 : 0) { |
324 | return SWIG_IsOK(r)(r >= 0) ? SWIG_CastRank(r) + 1 : 0; |
325 | } |
326 | #else /* no cast-rank mode */ |
327 | # define SWIG_AddCast(r)(r) (r) |
328 | # define SWIG_CheckState(r)((r >= 0) ? 1 : 0) (SWIG_IsOK(r)(r >= 0) ? 1 : 0) |
329 | #endif |
330 | |
331 | |
332 | #include <string.h> |
333 | |
334 | #ifdef __cplusplus199711L |
335 | extern "C" { |
336 | #endif |
337 | |
338 | typedef void *(*swig_converter_func)(void *, int *); |
339 | typedef struct swig_type_info *(*swig_dycast_func)(void **); |
340 | |
341 | /* Structure to store information on one type */ |
342 | typedef struct swig_type_info { |
343 | const char *name; /* mangled name of this type */ |
344 | const char *str; /* human readable name of this type */ |
345 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ |
346 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ |
347 | void *clientdata; /* language specific type data */ |
348 | int owndata; /* flag if the structure owns the clientdata */ |
349 | } swig_type_info; |
350 | |
351 | /* Structure to store a type and conversion function used for casting */ |
352 | typedef struct swig_cast_info { |
353 | swig_type_info *type; /* pointer to type that is equivalent to this type */ |
354 | swig_converter_func converter; /* function to cast the void pointers */ |
355 | struct swig_cast_info *next; /* pointer to next cast in linked list */ |
356 | struct swig_cast_info *prev; /* pointer to the previous cast */ |
357 | } swig_cast_info; |
358 | |
359 | /* Structure used to store module information |
360 | * Each module generates one structure like this, and the runtime collects |
361 | * all of these structures and stores them in a circularly linked list.*/ |
362 | typedef struct swig_module_info { |
363 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ |
364 | size_t size; /* Number of types in this module */ |
365 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ |
366 | swig_type_info **type_initial; /* Array of initially generated type structures */ |
367 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ |
368 | void *clientdata; /* Language specific module data */ |
369 | } swig_module_info; |
370 | |
371 | /* |
372 | Compare two type names skipping the space characters, therefore |
373 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. |
374 | |
375 | Return 0 when the two name types are equivalent, as in |
376 | strncmp, but skipping ' '. |
377 | */ |
378 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
379 | SWIG_TypeNameComp(const char *f1, const char *l1, |
380 | const char *f2, const char *l2) { |
381 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { |
382 | while ((*f1 == ' ') && (f1 != l1)) ++f1; |
383 | while ((*f2 == ' ') && (f2 != l2)) ++f2; |
384 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
385 | } |
386 | return (int)((l1 - f1) - (l2 - f2)); |
387 | } |
388 | |
389 | /* |
390 | Check type equivalence in a name list like <name1>|<name2>|... |
391 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb |
392 | */ |
393 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
394 | SWIG_TypeCmp(const char *nb, const char *tb) { |
395 | int equiv = 1; |
396 | const char* te = tb + strlen(tb); |
397 | const char* ne = nb; |
398 | while (equiv != 0 && *ne) { |
399 | for (nb = ne; *ne; ++ne) { |
400 | if (*ne == '|') break; |
401 | } |
402 | equiv = SWIG_TypeNameComp(nb, ne, tb, te); |
403 | if (*ne) ++ne; |
404 | } |
405 | return equiv; |
406 | } |
407 | |
408 | /* |
409 | Check type equivalence in a name list like <name1>|<name2>|... |
410 | Return 0 if not equal, 1 if equal |
411 | */ |
412 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
413 | SWIG_TypeEquiv(const char *nb, const char *tb) { |
414 | return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0; |
415 | } |
416 | |
417 | /* |
418 | Check the typename |
419 | */ |
420 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
421 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
422 | if (ty) { |
423 | swig_cast_info *iter = ty->cast; |
424 | while (iter) { |
425 | if (strcmp(iter->type->name, c) == 0) { |
426 | if (iter == ty->cast) |
427 | return iter; |
428 | /* Move iter to the top of the linked list */ |
429 | iter->prev->next = iter->next; |
430 | if (iter->next) |
431 | iter->next->prev = iter->prev; |
432 | iter->next = ty->cast; |
433 | iter->prev = 0; |
434 | if (ty->cast) ty->cast->prev = iter; |
435 | ty->cast = iter; |
436 | return iter; |
437 | } |
438 | iter = iter->next; |
439 | } |
440 | } |
441 | return 0; |
442 | } |
443 | |
444 | /* |
445 | Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison |
446 | */ |
447 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info * |
448 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) { |
449 | if (ty) { |
450 | swig_cast_info *iter = ty->cast; |
451 | while (iter) { |
452 | if (iter->type == from) { |
453 | if (iter == ty->cast) |
454 | return iter; |
455 | /* Move iter to the top of the linked list */ |
456 | iter->prev->next = iter->next; |
457 | if (iter->next) |
458 | iter->next->prev = iter->prev; |
459 | iter->next = ty->cast; |
460 | iter->prev = 0; |
461 | if (ty->cast) ty->cast->prev = iter; |
462 | ty->cast = iter; |
463 | return iter; |
464 | } |
465 | iter = iter->next; |
466 | } |
467 | } |
468 | return 0; |
469 | } |
470 | |
471 | /* |
472 | Cast a pointer up an inheritance hierarchy |
473 | */ |
474 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void * |
475 | SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { |
476 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); |
477 | } |
478 | |
479 | /* |
480 | Dynamic pointer casting. Down an inheritance hierarchy |
481 | */ |
482 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
483 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { |
484 | swig_type_info *lastty = ty; |
485 | if (!ty || !ty->dcast) return ty; |
486 | while (ty && (ty->dcast)) { |
487 | ty = (*ty->dcast)(ptr); |
488 | if (ty) lastty = ty; |
489 | } |
490 | return lastty; |
491 | } |
492 | |
493 | /* |
494 | Return the name associated with this type |
495 | */ |
496 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
497 | SWIG_TypeName(const swig_type_info *ty) { |
498 | return ty->name; |
499 | } |
500 | |
501 | /* |
502 | Return the pretty name associated with this type, |
503 | that is an unmangled type name in a form presentable to the user. |
504 | */ |
505 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
506 | SWIG_TypePrettyName(const swig_type_info *type) { |
507 | /* The "str" field contains the equivalent pretty names of the |
508 | type, separated by vertical-bar characters. We choose |
509 | to print the last name, as it is often (?) the most |
510 | specific. */ |
511 | if (!type) return NULL__null; |
512 | if (type->str != NULL__null) { |
513 | const char *last_name = type->str; |
514 | const char *s; |
515 | for (s = type->str; *s; s++) |
516 | if (*s == '|') last_name = s+1; |
517 | return last_name; |
518 | } |
519 | else |
520 | return type->name; |
521 | } |
522 | |
523 | /* |
524 | Set the clientdata field for a type |
525 | */ |
526 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
527 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
528 | swig_cast_info *cast = ti->cast; |
529 | /* if (ti->clientdata == clientdata) return; */ |
530 | ti->clientdata = clientdata; |
531 | |
532 | while (cast) { |
533 | if (!cast->converter) { |
534 | swig_type_info *tc = cast->type; |
535 | if (!tc->clientdata) { |
536 | SWIG_TypeClientData(tc, clientdata); |
537 | } |
538 | } |
539 | cast = cast->next; |
540 | } |
541 | } |
542 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
543 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { |
544 | SWIG_TypeClientData(ti, clientdata); |
545 | ti->owndata = 1; |
546 | } |
547 | |
548 | /* |
549 | Search for a swig_type_info structure only by mangled name |
550 | Search is a O(log #types) |
551 | |
552 | We start searching at module start, and finish searching when start == end. |
553 | Note: if start == end at the beginning of the function, we go all the way around |
554 | the circular list. |
555 | */ |
556 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
557 | SWIG_MangledTypeQueryModule(swig_module_info *start, |
558 | swig_module_info *end, |
559 | const char *name) { |
560 | swig_module_info *iter = start; |
561 | do { |
562 | if (iter->size) { |
563 | register size_t l = 0; |
564 | register size_t r = iter->size - 1; |
565 | do { |
566 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ |
567 | register size_t i = (l + r) >> 1; |
568 | const char *iname = iter->types[i]->name; |
569 | if (iname) { |
570 | register int compare = strcmp(name, iname); |
571 | if (compare == 0) { |
572 | return iter->types[i]; |
573 | } else if (compare < 0) { |
574 | if (i) { |
575 | r = i - 1; |
576 | } else { |
577 | break; |
578 | } |
579 | } else if (compare > 0) { |
580 | l = i + 1; |
581 | } |
582 | } else { |
583 | break; /* should never happen */ |
584 | } |
585 | } while (l <= r); |
586 | } |
587 | iter = iter->next; |
588 | } while (iter != end); |
589 | return 0; |
590 | } |
591 | |
592 | /* |
593 | Search for a swig_type_info structure for either a mangled name or a human readable name. |
594 | It first searches the mangled names of the types, which is a O(log #types) |
595 | If a type is not found it then searches the human readable names, which is O(#types). |
596 | |
597 | We start searching at module start, and finish searching when start == end. |
598 | Note: if start == end at the beginning of the function, we go all the way around |
599 | the circular list. |
600 | */ |
601 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
602 | SWIG_TypeQueryModule(swig_module_info *start, |
603 | swig_module_info *end, |
604 | const char *name) { |
605 | /* STEP 1: Search the name field using binary search */ |
606 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); |
607 | if (ret) { |
608 | return ret; |
609 | } else { |
610 | /* STEP 2: If the type hasn't been found, do a complete search |
611 | of the str field (the human readable name) */ |
612 | swig_module_info *iter = start; |
613 | do { |
614 | register size_t i = 0; |
615 | for (; i < iter->size; ++i) { |
616 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) |
617 | return iter->types[i]; |
618 | } |
619 | iter = iter->next; |
620 | } while (iter != end); |
621 | } |
622 | |
623 | /* neither found a match */ |
624 | return 0; |
625 | } |
626 | |
627 | /* |
628 | Pack binary data into a string |
629 | */ |
630 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
631 | SWIG_PackData(char *c, void *ptr, size_t sz) { |
632 | static const char hex[17] = "0123456789abcdef"; |
633 | register const unsigned char *u = (unsigned char *) ptr; |
634 | register const unsigned char *eu = u + sz; |
635 | for (; u != eu; ++u) { |
636 | register unsigned char uu = *u; |
637 | *(c++) = hex[(uu & 0xf0) >> 4]; |
638 | *(c++) = hex[uu & 0xf]; |
639 | } |
640 | return c; |
641 | } |
642 | |
643 | /* |
644 | Unpack binary data from a string |
645 | */ |
646 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
647 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { |
648 | register unsigned char *u = (unsigned char *) ptr; |
649 | register const unsigned char *eu = u + sz; |
650 | for (; u != eu; ++u) { |
651 | register char d = *(c++); |
652 | register unsigned char uu; |
653 | if ((d >= '0') && (d <= '9')) |
654 | uu = ((d - '0') << 4); |
655 | else if ((d >= 'a') && (d <= 'f')) |
656 | uu = ((d - ('a'-10)) << 4); |
657 | else |
658 | return (char *) 0; |
659 | d = *(c++); |
660 | if ((d >= '0') && (d <= '9')) |
661 | uu |= (d - '0'); |
662 | else if ((d >= 'a') && (d <= 'f')) |
663 | uu |= (d - ('a'-10)); |
664 | else |
665 | return (char *) 0; |
666 | *u = uu; |
667 | } |
668 | return c; |
669 | } |
670 | |
671 | /* |
672 | Pack 'void *' into a string buffer. |
673 | */ |
674 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
675 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { |
676 | char *r = buff; |
677 | if ((2*sizeof(void *) + 2) > bsz) return 0; |
678 | *(r++) = '_'; |
679 | r = SWIG_PackData(r,&ptr,sizeof(void *)); |
680 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; |
681 | strcpy(r,name); |
682 | return buff; |
683 | } |
684 | |
685 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
686 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { |
687 | if (*c != '_') { |
688 | if (strcmp(c,"NULL") == 0) { |
689 | *ptr = (void *) 0; |
690 | return name; |
691 | } else { |
692 | return 0; |
693 | } |
694 | } |
695 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); |
696 | } |
697 | |
698 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) char * |
699 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { |
700 | char *r = buff; |
701 | size_t lname = (name ? strlen(name) : 0); |
702 | if ((2*sz + 2 + lname) > bsz) return 0; |
703 | *(r++) = '_'; |
704 | r = SWIG_PackData(r,ptr,sz); |
705 | if (lname) { |
706 | strncpy(r,name,lname+1); |
707 | } else { |
708 | *r = 0; |
709 | } |
710 | return buff; |
711 | } |
712 | |
713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char * |
714 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { |
715 | if (*c != '_') { |
716 | if (strcmp(c,"NULL") == 0) { |
717 | memset(ptr,0,sz); |
718 | return name; |
719 | } else { |
720 | return 0; |
721 | } |
722 | } |
723 | return SWIG_UnpackData(++c,ptr,sz); |
724 | } |
725 | |
726 | #ifdef __cplusplus199711L |
727 | } |
728 | #endif |
729 | |
730 | /* Errors in SWIG */ |
731 | #define SWIG_UnknownError-1 -1 |
732 | #define SWIG_IOError-2 -2 |
733 | #define SWIG_RuntimeError-3 -3 |
734 | #define SWIG_IndexError-4 -4 |
735 | #define SWIG_TypeError-5 -5 |
736 | #define SWIG_DivisionByZero-6 -6 |
737 | #define SWIG_OverflowError-7 -7 |
738 | #define SWIG_SyntaxError-8 -8 |
739 | #define SWIG_ValueError-9 -9 |
740 | #define SWIG_SystemError-10 -10 |
741 | #define SWIG_AttributeError-11 -11 |
742 | #define SWIG_MemoryError-12 -12 |
743 | #define SWIG_NullReferenceError-13 -13 |
744 | |
745 | |
746 | |
747 | /* Compatibility macros for Python 3 */ |
748 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
749 | |
750 | #define PyClass_Check(obj)((obj)->ob_type == &PyClass_Type) PyObject_IsInstance(obj, (PyObject *)&PyType_Type) |
751 | #define PyInt_Check(x)((((x)->ob_type)->tp_flags & ((1L<<23))) != 0 ) PyLong_Check(x)((((((PyObject*)(x))->ob_type))->tp_flags & ((1L<< 24))) != 0) |
752 | #define PyInt_AsLong(x) PyLong_AsLong(x) |
753 | #define PyInt_FromLong(x) PyLong_FromLong(x) |
754 | #define PyInt_FromSize_t(x) PyLong_FromSize_t(x) |
755 | #define PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) PyBytes_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0) |
756 | #define PyString_FromString(x) PyUnicode_FromStringPyUnicodeUCS2_FromString(x) |
757 | #define PyString_Format(fmt, args) PyUnicode_FormatPyUnicodeUCS2_Format(fmt, args) |
758 | #define PyString_AsString(str) PyBytes_AsStringPyString_AsString(str) |
759 | #define PyString_Size(str) PyBytes_SizePyString_Size(str) |
760 | #define PyString_InternFromString(key) PyUnicode_InternFromString(key) |
761 | #define Py_TPFLAGS_HAVE_CLASS(1L<<8) Py_TPFLAGS_BASETYPE(1L<<10) |
762 | #define PyString_AS_STRING(x)(((PyStringObject *)(x))->ob_sval) PyUnicode_AS_STRING(x) |
763 | #define _PyLong_FromSsize_tPyLong_FromSsize_t(x) PyLong_FromSsize_t(x) |
764 | |
765 | #endif |
766 | |
767 | #ifndef Py_TYPE |
768 | # define Py_TYPE(op)(((PyObject*)(op))->ob_type) ((op)->ob_type) |
769 | #endif |
770 | |
771 | /* SWIG APIs for compatibility of both Python 2 & 3 */ |
772 | |
773 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
774 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyUnicode_FromFormatPyUnicodeUCS2_FromFormat |
775 | #else |
776 | # define SWIG_Python_str_FromFormatPyString_FromFormat PyString_FromFormat |
777 | #endif |
778 | |
779 | |
780 | /* Warning: This function will allocate a new string in Python 3, |
781 | * so please call SWIG_Python_str_DelForPy3(x) to free the space. |
782 | */ |
783 | SWIGINTERNstatic __attribute__ ((__unused__)) char* |
784 | SWIG_Python_str_AsChar(PyObject *str) |
785 | { |
786 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
787 | char *cstr; |
788 | char *newstr; |
789 | Py_ssize_t len; |
790 | str = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(str); |
791 | PyBytes_AsStringAndSizePyString_AsStringAndSize(str, &cstr, &len); |
792 | newstr = (char *) malloc(len+1); |
793 | memcpy(newstr, cstr, len+1); |
794 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
795 | return newstr; |
796 | #else |
797 | return PyString_AsString(str); |
798 | #endif |
799 | } |
800 | |
801 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
802 | # define SWIG_Python_str_DelForPy3(x) free( (void*) (x) ) |
803 | #else |
804 | # define SWIG_Python_str_DelForPy3(x) |
805 | #endif |
806 | |
807 | |
808 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
809 | SWIG_Python_str_FromChar(const char *c) |
810 | { |
811 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
812 | return PyUnicode_FromStringPyUnicodeUCS2_FromString(c); |
813 | #else |
814 | return PyString_FromString(c); |
815 | #endif |
816 | } |
817 | |
818 | /* Add PyOS_snprintf for old Pythons */ |
819 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
820 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) |
821 | # define PyOS_snprintf _snprintf |
822 | # else |
823 | # define PyOS_snprintf snprintf |
824 | # endif |
825 | #endif |
826 | |
827 | /* A crude PyString_FromFormat implementation for old Pythons */ |
828 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
829 | |
830 | #ifndef SWIG_PYBUFFER_SIZE |
831 | # define SWIG_PYBUFFER_SIZE 1024 |
832 | #endif |
833 | |
834 | static PyObject * |
835 | PyString_FromFormat(const char *fmt, ...) { |
836 | va_list ap; |
837 | char buf[SWIG_PYBUFFER_SIZE * 2]; |
838 | int res; |
839 | va_start(ap, fmt)__builtin_va_start(ap, fmt); |
840 | res = vsnprintf(buf, sizeof(buf), fmt, ap); |
841 | va_end(ap)__builtin_va_end(ap); |
842 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); |
843 | } |
844 | #endif |
845 | |
846 | /* Add PyObject_Del for old Pythons */ |
847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x01060000 |
848 | # define PyObject_DelPyObject_Free(op) PyMem_DELfree((op)) |
849 | #endif |
850 | #ifndef PyObject_DELPyObject_Free |
851 | # define PyObject_DELPyObject_Free PyObject_DelPyObject_Free |
852 | #endif |
853 | |
854 | /* A crude PyExc_StopIteration exception for old Pythons */ |
855 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
856 | # ifndef PyExc_StopIteration |
857 | # define PyExc_StopIteration PyExc_RuntimeError |
858 | # endif |
859 | # ifndef PyObject_GenericGetAttr |
860 | # define PyObject_GenericGetAttr 0 |
861 | # endif |
862 | #endif |
863 | |
864 | /* Py_NotImplemented is defined in 2.1 and up. */ |
865 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
866 | # ifndef Py_NotImplemented(&_Py_NotImplementedStruct) |
867 | # define Py_NotImplemented(&_Py_NotImplementedStruct) PyExc_RuntimeError |
868 | # endif |
869 | #endif |
870 | |
871 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ |
872 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02010000 |
873 | # ifndef PyString_AsStringAndSize |
874 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} |
875 | # endif |
876 | #endif |
877 | |
878 | /* PySequence_Size for old Pythons */ |
879 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02000000 |
880 | # ifndef PySequence_Size |
881 | # define PySequence_Size PySequence_LengthPySequence_Size |
882 | # endif |
883 | #endif |
884 | |
885 | /* PyBool_FromLong for old Pythons */ |
886 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
887 | static |
888 | PyObject *PyBool_FromLong(long ok) |
889 | { |
890 | PyObject *result = ok ? Py_True((PyObject *) &_Py_TrueStruct) : Py_False((PyObject *) &_Py_ZeroStruct); |
891 | Py_INCREF(result)( ((PyObject*)(result))->ob_refcnt++); |
892 | return result; |
893 | } |
894 | #endif |
895 | |
896 | /* Py_ssize_t for old Pythons */ |
897 | /* This code is as recommended by: */ |
898 | /* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */ |
899 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 && !defined(PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1)) |
900 | typedef int Py_ssize_t; |
901 | # define PY_SSIZE_T_MAX((Py_ssize_t)(((size_t)-1)>>1)) INT_MAX2147483647 |
902 | # define PY_SSIZE_T_MIN(-((Py_ssize_t)(((size_t)-1)>>1))-1) INT_MIN(-2147483647 -1) |
903 | typedef inquiry lenfunc; |
904 | typedef intargfunc ssizeargfunc; |
905 | typedef intintargfunc ssizessizeargfunc; |
906 | typedef intobjargproc ssizeobjargproc; |
907 | typedef intintobjargproc ssizessizeobjargproc; |
908 | typedef getreadbufferproc readbufferproc; |
909 | typedef getwritebufferproc writebufferproc; |
910 | typedef getsegcountproc segcountproc; |
911 | typedef getcharbufferproc charbufferproc; |
912 | static long PyNumber_AsSsize_t (PyObject *x, void *SWIGUNUSEDPARM(exc)) |
913 | { |
914 | long result = 0; |
915 | PyObject *i = PyNumber_Int(x); |
916 | if (i) { |
917 | result = PyInt_AsLong(i); |
918 | Py_DECREF(i)do { if ( --((PyObject*)(i))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(i)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(i)))); } while (0); |
919 | } |
920 | return result; |
921 | } |
922 | #endif |
923 | |
924 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000 |
925 | #define PyInt_FromSize_t(x) PyInt_FromLong((long)x) |
926 | #endif |
927 | |
928 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02040000 |
929 | #define Py_VISIT(op)do { if (op) { int vret = visit((PyObject *)(op), arg); if (vret ) return vret; } } while (0) \ |
930 | do { \ |
931 | if (op) { \ |
932 | int vret = visit((op), arg); \ |
933 | if (vret) \ |
934 | return vret; \ |
935 | } \ |
936 | } while (0) |
937 | #endif |
938 | |
939 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
940 | typedef struct { |
941 | PyTypeObject type; |
942 | PyNumberMethods as_number; |
943 | PyMappingMethods as_mapping; |
944 | PySequenceMethods as_sequence; |
945 | PyBufferProcs as_buffer; |
946 | PyObject *name, *slots; |
947 | } PyHeapTypeObject; |
948 | #endif |
949 | |
950 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
951 | typedef destructor freefunc; |
952 | #endif |
953 | |
954 | #if ((PY_MAJOR_VERSION2 == 2 && PY_MINOR_VERSION7 > 6) || \ |
955 | (PY_MAJOR_VERSION2 == 3 && PY_MINOR_VERSION7 > 0) || \ |
956 | (PY_MAJOR_VERSION2 > 3)) |
957 | # define SWIGPY_USE_CAPSULE |
958 | # define SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ) ((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4" ".type_pointer_capsule" SWIG_TYPE_TABLE_NAME) |
959 | #endif |
960 | |
961 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03020000 |
962 | #define PyDescr_TYPE(x)(((PyDescrObject *)(x))->d_type) (((PyDescrObject *)(x))->d_type) |
963 | #define PyDescr_NAME(x)(((PyDescrObject *)(x))->d_name) (((PyDescrObject *)(x))->d_name) |
964 | #endif |
965 | |
966 | /* ----------------------------------------------------------------------------- |
967 | * error manipulation |
968 | * ----------------------------------------------------------------------------- */ |
969 | |
970 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
971 | SWIG_Python_ErrorType(int code) { |
972 | PyObject* type = 0; |
973 | switch(code) { |
974 | case SWIG_MemoryError-12: |
975 | type = PyExc_MemoryError; |
976 | break; |
977 | case SWIG_IOError-2: |
978 | type = PyExc_IOError; |
979 | break; |
980 | case SWIG_RuntimeError-3: |
981 | type = PyExc_RuntimeError; |
982 | break; |
983 | case SWIG_IndexError-4: |
984 | type = PyExc_IndexError; |
985 | break; |
986 | case SWIG_TypeError-5: |
987 | type = PyExc_TypeError; |
988 | break; |
989 | case SWIG_DivisionByZero-6: |
990 | type = PyExc_ZeroDivisionError; |
991 | break; |
992 | case SWIG_OverflowError-7: |
993 | type = PyExc_OverflowError; |
994 | break; |
995 | case SWIG_SyntaxError-8: |
996 | type = PyExc_SyntaxError; |
997 | break; |
998 | case SWIG_ValueError-9: |
999 | type = PyExc_ValueError; |
1000 | break; |
1001 | case SWIG_SystemError-10: |
1002 | type = PyExc_SystemError; |
1003 | break; |
1004 | case SWIG_AttributeError-11: |
1005 | type = PyExc_AttributeError; |
1006 | break; |
1007 | default: |
1008 | type = PyExc_RuntimeError; |
1009 | } |
1010 | return type; |
1011 | } |
1012 | |
1013 | |
1014 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1015 | SWIG_Python_AddErrorMsg(const char* mesg) |
1016 | { |
1017 | PyObject *type = 0; |
1018 | PyObject *value = 0; |
1019 | PyObject *traceback = 0; |
1020 | |
1021 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); |
1022 | if (value) { |
1023 | char *tmp; |
1024 | PyObject *old_str = PyObject_Str(value); |
1025 | PyErr_Clear(); |
1026 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
1027 | |
1028 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
1029 | SWIG_Python_str_DelForPy3(tmp); |
1030 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
1031 | Py_DECREF(value)do { if ( --((PyObject*)(value))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(value)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(value)))); } while (0); |
1032 | } else { |
1033 | PyErr_SetString(PyExc_RuntimeError, mesg); |
1034 | } |
1035 | } |
1036 | |
1037 | #if defined(SWIG_PYTHON_NO_THREADS) |
1038 | # if defined(SWIG_PYTHON_THREADS) |
1039 | # undef SWIG_PYTHON_THREADS |
1040 | # endif |
1041 | #endif |
1042 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ |
1043 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) |
1044 | # if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ |
1045 | # define SWIG_PYTHON_USE_GIL |
1046 | # endif |
1047 | # endif |
1048 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ |
1049 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS |
1050 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() |
1051 | # endif |
1052 | # ifdef __cplusplus199711L /* C++ code */ |
1053 | class SWIG_Python_Thread_Block { |
1054 | bool status; |
1055 | PyGILState_STATE state; |
1056 | public: |
1057 | void end() { if (status) { PyGILState_Release(state); status = false;} } |
1058 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} |
1059 | ~SWIG_Python_Thread_Block() { end(); } |
1060 | }; |
1061 | class SWIG_Python_Thread_Allow { |
1062 | bool status; |
1063 | PyThreadState *save; |
1064 | public: |
1065 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} |
1066 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} |
1067 | ~SWIG_Python_Thread_Allow() { end(); } |
1068 | }; |
1069 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block |
1070 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() |
1071 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow |
1072 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() |
1073 | # else /* C code */ |
1074 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() |
1075 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) |
1076 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() |
1077 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) |
1078 | # endif |
1079 | # else /* Old thread way, not implemented, user must provide it */ |
1080 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) |
1081 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1082 | # endif |
1083 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) |
1084 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1085 | # endif |
1086 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) |
1087 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1088 | # endif |
1089 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) |
1090 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1091 | # endif |
1092 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) |
1093 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1094 | # endif |
1095 | # endif |
1096 | #else /* No thread support */ |
1097 | # define SWIG_PYTHON_INITIALIZE_THREADS |
1098 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK |
1099 | # define SWIG_PYTHON_THREAD_END_BLOCK |
1100 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW |
1101 | # define SWIG_PYTHON_THREAD_END_ALLOW |
1102 | #endif |
1103 | |
1104 | /* ----------------------------------------------------------------------------- |
1105 | * Python API portion that goes into the runtime |
1106 | * ----------------------------------------------------------------------------- */ |
1107 | |
1108 | #ifdef __cplusplus199711L |
1109 | extern "C" { |
1110 | #endif |
1111 | |
1112 | /* ----------------------------------------------------------------------------- |
1113 | * Constant declarations |
1114 | * ----------------------------------------------------------------------------- */ |
1115 | |
1116 | /* Constant Types */ |
1117 | #define SWIG_PY_POINTER4 4 |
1118 | #define SWIG_PY_BINARY5 5 |
1119 | |
1120 | /* Constant information structure */ |
1121 | typedef struct swig_const_info { |
1122 | int type; |
1123 | char *name; |
1124 | long lvalue; |
1125 | double dvalue; |
1126 | void *pvalue; |
1127 | swig_type_info **ptype; |
1128 | } swig_const_info; |
1129 | |
1130 | |
1131 | /* ----------------------------------------------------------------------------- |
1132 | * Wrapper of PyInstanceMethod_New() used in Python 3 |
1133 | * It is exported to the generated module, used for -fastproxy |
1134 | * ----------------------------------------------------------------------------- */ |
1135 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1136 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func) |
1137 | { |
1138 | return PyInstanceMethod_New(func); |
1139 | } |
1140 | #else |
1141 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(func)) |
1142 | { |
1143 | return NULL__null; |
1144 | } |
1145 | #endif |
1146 | |
1147 | #ifdef __cplusplus199711L |
1148 | } |
1149 | #endif |
1150 | |
1151 | |
1152 | /* ----------------------------------------------------------------------------- |
1153 | * pyrun.swg |
1154 | * |
1155 | * This file contains the runtime support for Python modules |
1156 | * and includes code for managing global variables and pointer |
1157 | * type checking. |
1158 | * |
1159 | * ----------------------------------------------------------------------------- */ |
1160 | |
1161 | /* Common SWIG API */ |
1162 | |
1163 | /* for raw pointers */ |
1164 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1165 | #define SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_Python_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1166 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) |
1167 | |
1168 | #ifdef SWIGPYTHON_BUILTIN |
1169 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(self, ptr, type, flags) |
1170 | #else |
1171 | #define SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1172 | #endif |
1173 | |
1174 | #define SWIG_InternalNewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_Python_NewPointerObj(NULL__null, ptr, type, flags) |
1175 | |
1176 | #define SWIG_CheckImplicit(ty)SWIG_Python_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) |
1177 | #define SWIG_AcquirePtr(ptr, src)SWIG_Python_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) |
1178 | #define swig_owntypeint int |
1179 | |
1180 | /* for raw packed data */ |
1181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1182 | #define SWIG_NewPackedObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1183 | |
1184 | /* for class or struct pointers */ |
1185 | #define SWIG_ConvertInstance(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) SWIG_ConvertPtr(obj, pptr, type, flags)SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) |
1186 | #define SWIG_NewInstanceObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)SWIG_Python_NewPointerObj(__null, ptr, type, flags) |
1187 | |
1188 | /* for C or C++ function pointers */ |
1189 | #define SWIG_ConvertFunctionPtr(obj, pptr, type)SWIG_Python_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) |
1190 | #define SWIG_NewFunctionPtrObj(ptr, type)SWIG_Python_NewPointerObj(__null, ptr, type, 0) SWIG_Python_NewPointerObj(NULL__null, ptr, type, 0) |
1191 | |
1192 | /* for C++ member pointers, ie, member methods */ |
1193 | #define SWIG_ConvertMember(obj, ptr, sz, ty)SWIG_Python_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) |
1194 | #define SWIG_NewMemberObj(ptr, sz, type)SWIG_Python_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) |
1195 | |
1196 | |
1197 | /* Runtime API */ |
1198 | |
1199 | #define SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata) SWIG_Python_GetModule(clientdata) |
1200 | #define SWIG_SetModule(clientdata, pointer)SWIG_Python_SetModule(pointer) SWIG_Python_SetModule(pointer) |
1201 | #define SWIG_NewClientData(obj)SwigPyClientData_New(obj) SwigPyClientData_New(obj) |
1202 | |
1203 | #define SWIG_SetErrorObjSWIG_Python_SetErrorObj SWIG_Python_SetErrorObj |
1204 | #define SWIG_SetErrorMsgSWIG_Python_SetErrorMsg SWIG_Python_SetErrorMsg |
1205 | #define SWIG_ErrorType(code)SWIG_Python_ErrorType(code) SWIG_Python_ErrorType(code) |
1206 | #define SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code)SWIG_Python_ErrorType(code), msg) |
1207 | #define SWIG_failgoto fail goto fail |
1208 | |
1209 | |
1210 | /* Runtime API implementation */ |
1211 | |
1212 | /* Error manipulation */ |
1213 | |
1214 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1215 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { |
1216 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1217 | PyErr_SetObject(errtype, obj); |
1218 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1219 | SWIG_PYTHON_THREAD_END_BLOCK; |
1220 | } |
1221 | |
1222 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1223 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { |
1224 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; |
1225 | PyErr_SetString(errtype, msg); |
1226 | SWIG_PYTHON_THREAD_END_BLOCK; |
1227 | } |
1228 | |
1229 | #define SWIG_Python_Raise(obj, type, desc)SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
1230 | |
1231 | /* Set a constant value */ |
1232 | |
1233 | #if defined(SWIGPYTHON_BUILTIN) |
1234 | |
1235 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1236 | SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) { |
1237 | PyObject *s = PyString_InternFromString(key); |
1238 | PyList_Append(seq, s); |
1239 | Py_DECREF(s)do { if ( --((PyObject*)(s))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(s)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(s)))); } while (0); |
1240 | } |
1241 | |
1242 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1243 | SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) { |
1244 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1245 | PyDict_SetItemString(d, (char *)name, obj); |
1246 | #else |
1247 | PyDict_SetItemString(d, name, obj); |
1248 | #endif |
1249 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1250 | if (public_interface) |
1251 | SwigPyBuiltin_AddPublicSymbol(public_interface, name); |
1252 | } |
1253 | |
1254 | #else |
1255 | |
1256 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
1257 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { |
1258 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02030000 |
1259 | PyDict_SetItemString(d, (char *)name, obj); |
1260 | #else |
1261 | PyDict_SetItemString(d, name, obj); |
1262 | #endif |
1263 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1264 | } |
1265 | |
1266 | #endif |
1267 | |
1268 | /* Append a value to the result obj */ |
1269 | |
1270 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1271 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { |
1272 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) |
1273 | if (!result) { |
1274 | result = obj; |
1275 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1276 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1277 | result = obj; |
1278 | } else { |
1279 | if (!PyList_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<25))) != 0)) { |
1280 | PyObject *o2 = result; |
1281 | result = PyList_New(1); |
1282 | PyList_SetItem(result, 0, o2); |
1283 | } |
1284 | PyList_Append(result,obj); |
1285 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
1286 | } |
1287 | return result; |
1288 | #else |
1289 | PyObject* o2; |
1290 | PyObject* o3; |
1291 | if (!result) { |
1292 | result = obj; |
1293 | } else if (result == Py_None(&_Py_NoneStruct)) { |
1294 | Py_DECREF(result)do { if ( --((PyObject*)(result))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(result)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(result)))); } while (0); |
1295 | result = obj; |
1296 | } else { |
1297 | if (!PyTuple_Check(result)((((((PyObject*)(result))->ob_type))->tp_flags & (( 1L<<26))) != 0)) { |
1298 | o2 = result; |
1299 | result = PyTuple_New(1); |
1300 | PyTuple_SET_ITEM(result, 0, o2)(((PyTupleObject *)(result))->ob_item[0] = o2); |
1301 | } |
1302 | o3 = PyTuple_New(1); |
1303 | PyTuple_SET_ITEM(o3, 0, obj)(((PyTupleObject *)(o3))->ob_item[0] = obj); |
1304 | o2 = result; |
1305 | result = PySequence_Concat(o2, o3); |
1306 | Py_DECREF(o2)do { if ( --((PyObject*)(o2))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o2)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o2)))); } while (0); |
1307 | Py_DECREF(o3)do { if ( --((PyObject*)(o3))->ob_refcnt != 0) ; else ( (* (((PyObject*)((PyObject *)(o3)))->ob_type)->tp_dealloc) ((PyObject *)((PyObject *)(o3)))); } while (0); |
1308 | } |
1309 | return result; |
1310 | #endif |
1311 | } |
1312 | |
1313 | /* Unpack the argument tuple */ |
1314 | |
1315 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
1316 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs) |
1317 | { |
1318 | if (!args) { |
1319 | if (!min && !max) { |
1320 | return 1; |
1321 | } else { |
1322 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", |
1323 | name, (min == max ? "" : "at least "), (int)min); |
1324 | return 0; |
1325 | } |
1326 | } |
1327 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) { |
1328 | if (min <= 1 && max >= 1) { |
1329 | register int i; |
1330 | objs[0] = args; |
1331 | for (i = 1; i < max; ++i) { |
1332 | objs[i] = 0; |
1333 | } |
1334 | return 2; |
1335 | } |
1336 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); |
1337 | return 0; |
1338 | } else { |
1339 | register Py_ssize_t l = PyTuple_GET_SIZE(args)(((PyVarObject*)(args))->ob_size); |
1340 | if (l < min) { |
1341 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1342 | name, (min == max ? "" : "at least "), (int)min, (int)l); |
1343 | return 0; |
1344 | } else if (l > max) { |
1345 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", |
1346 | name, (min == max ? "" : "at most "), (int)max, (int)l); |
1347 | return 0; |
1348 | } else { |
1349 | register int i; |
1350 | for (i = 0; i < l; ++i) { |
1351 | objs[i] = PyTuple_GET_ITEM(args, i)(((PyTupleObject *)(args))->ob_item[i]); |
1352 | } |
1353 | for (; l < max; ++l) { |
1354 | objs[l] = 0; |
1355 | } |
1356 | return i + 1; |
1357 | } |
1358 | } |
1359 | } |
1360 | |
1361 | /* A functor is a function object with one single object argument */ |
1362 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1363 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunctionObjArgs(functor, obj, NULL__null); |
1364 | #else |
1365 | #define SWIG_Python_CallFunctor(functor, obj)PyObject_CallFunctionObjArgs(functor, obj, __null); PyObject_CallFunction(functor, "O", obj); |
1366 | #endif |
1367 | |
1368 | /* |
1369 | Helper for static pointer initialization for both C and C++ code, for example |
1370 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); |
1371 | */ |
1372 | #ifdef __cplusplus199711L |
1373 | #define SWIG_STATIC_POINTER(var)var var |
1374 | #else |
1375 | #define SWIG_STATIC_POINTER(var)var var = 0; if (!var) var |
1376 | #endif |
1377 | |
1378 | /* ----------------------------------------------------------------------------- |
1379 | * Pointer declarations |
1380 | * ----------------------------------------------------------------------------- */ |
1381 | |
1382 | /* Flags for new pointer objects */ |
1383 | #define SWIG_POINTER_NOSHADOW(0x1 << 1) (SWIG_POINTER_OWN0x1 << 1) |
1384 | #define SWIG_POINTER_NEW((0x1 << 1) | 0x1) (SWIG_POINTER_NOSHADOW(0x1 << 1) | SWIG_POINTER_OWN0x1) |
1385 | |
1386 | #define SWIG_POINTER_IMPLICIT_CONV(0x1 << 1) (SWIG_POINTER_DISOWN0x1 << 1) |
1387 | |
1388 | #define SWIG_BUILTIN_TP_INIT(0x1 << 2) (SWIG_POINTER_OWN0x1 << 2) |
1389 | #define SWIG_BUILTIN_INIT((0x1 << 2) | 0x1) (SWIG_BUILTIN_TP_INIT(0x1 << 2) | SWIG_POINTER_OWN0x1) |
1390 | |
1391 | #ifdef __cplusplus199711L |
1392 | extern "C" { |
1393 | #endif |
1394 | |
1395 | /* How to access Py_None */ |
1396 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
1397 | # ifndef SWIG_PYTHON_NO_BUILD_NONE |
1398 | # ifndef SWIG_PYTHON_BUILD_NONE |
1399 | # define SWIG_PYTHON_BUILD_NONE |
1400 | # endif |
1401 | # endif |
1402 | #endif |
1403 | |
1404 | #ifdef SWIG_PYTHON_BUILD_NONE |
1405 | # ifdef Py_None(&_Py_NoneStruct) |
1406 | # undef Py_None(&_Py_NoneStruct) |
1407 | # define Py_None(&_Py_NoneStruct) SWIG_Py_None() |
1408 | # endif |
1409 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1410 | _SWIG_Py_None(void) |
1411 | { |
1412 | PyObject *none = Py_BuildValue((char*)""); |
1413 | Py_DECREF(none)do { if ( --((PyObject*)(none))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(none)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(none)))); } while (0); |
1414 | return none; |
1415 | } |
1416 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1417 | SWIG_Py_None(void) |
1418 | { |
1419 | static PyObject *SWIG_STATIC_POINTER(none)none = _SWIG_Py_None(); |
1420 | return none; |
1421 | } |
1422 | #endif |
1423 | |
1424 | /* The python void return value */ |
1425 | |
1426 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1427 | SWIG_Py_Void(void) |
1428 | { |
1429 | PyObject *none = Py_None(&_Py_NoneStruct); |
1430 | Py_INCREF(none)( ((PyObject*)(none))->ob_refcnt++); |
1431 | return none; |
1432 | } |
1433 | |
1434 | /* SwigPyClientData */ |
1435 | |
1436 | typedef struct { |
1437 | PyObject *klass; |
1438 | PyObject *newraw; |
1439 | PyObject *newargs; |
1440 | PyObject *destroy; |
1441 | int delargs; |
1442 | int implicitconv; |
1443 | PyTypeObject *pytype; |
1444 | } SwigPyClientData; |
1445 | |
1446 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1447 | SWIG_Python_CheckImplicit(swig_type_info *ty) |
1448 | { |
1449 | SwigPyClientData *data = (SwigPyClientData *)ty->clientdata; |
1450 | return data ? data->implicitconv : 0; |
1451 | } |
1452 | |
1453 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
1454 | SWIG_Python_ExceptionType(swig_type_info *desc) { |
1455 | SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0; |
1456 | PyObject *klass = data ? data->klass : 0; |
1457 | return (klass ? klass : PyExc_RuntimeError); |
1458 | } |
1459 | |
1460 | |
1461 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData * |
1462 | SwigPyClientData_New(PyObject* obj) |
1463 | { |
1464 | if (!obj) { |
1465 | return 0; |
1466 | } else { |
1467 | SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); |
1468 | /* the klass element */ |
1469 | data->klass = obj; |
1470 | Py_INCREF(data->klass)( ((PyObject*)(data->klass))->ob_refcnt++); |
1471 | /* the newraw method and newargs arguments used to create a new raw instance */ |
1472 | if (PyClass_Check(obj)((obj)->ob_type == &PyClass_Type)) { |
1473 | data->newraw = 0; |
1474 | data->newargs = obj; |
1475 | Py_INCREF(obj)( ((PyObject*)(obj))->ob_refcnt++); |
1476 | } else { |
1477 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1478 | data->newraw = 0; |
1479 | #else |
1480 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); |
1481 | #endif |
1482 | if (data->newraw) { |
1483 | Py_INCREF(data->newraw)( ((PyObject*)(data->newraw))->ob_refcnt++); |
1484 | data->newargs = PyTuple_New(1); |
1485 | PyTuple_SetItem(data->newargs, 0, obj); |
1486 | } else { |
1487 | data->newargs = obj; |
1488 | } |
1489 | Py_INCREF(data->newargs)( ((PyObject*)(data->newargs))->ob_refcnt++); |
1490 | } |
1491 | /* the destroy method, aka as the C++ delete method */ |
1492 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); |
1493 | if (PyErr_Occurred()) { |
1494 | PyErr_Clear(); |
1495 | data->destroy = 0; |
1496 | } |
1497 | if (data->destroy) { |
1498 | int flags; |
1499 | Py_INCREF(data->destroy)( ((PyObject*)(data->destroy))->ob_refcnt++); |
1500 | flags = PyCFunction_GET_FLAGS(data->destroy)(((PyCFunctionObject *)data->destroy) -> m_ml -> ml_flags ); |
1501 | #ifdef METH_O0x0008 |
1502 | data->delargs = !(flags & (METH_O0x0008)); |
1503 | #else |
1504 | data->delargs = 0; |
1505 | #endif |
1506 | } else { |
1507 | data->delargs = 0; |
1508 | } |
1509 | data->implicitconv = 0; |
1510 | data->pytype = 0; |
1511 | return data; |
1512 | } |
1513 | } |
1514 | |
1515 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1516 | SwigPyClientData_Del(SwigPyClientData *data) { |
1517 | Py_XDECREF(data->newraw)do { if ((data->newraw) == __null) ; else do { if ( --((PyObject *)(data->newraw))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newraw)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newraw)))); } while (0); } while (0); |
1518 | Py_XDECREF(data->newargs)do { if ((data->newargs) == __null) ; else do { if ( --((PyObject *)(data->newargs))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->newargs)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->newargs)))); } while (0) ; } while (0); |
1519 | Py_XDECREF(data->destroy)do { if ((data->destroy) == __null) ; else do { if ( --((PyObject *)(data->destroy))->ob_refcnt != 0) ; else ( (*(((PyObject *)((PyObject *)(data->destroy)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(data->destroy)))); } while (0) ; } while (0); |
1520 | } |
1521 | |
1522 | /* =============== SwigPyObject =====================*/ |
1523 | |
1524 | typedef struct { |
1525 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1526 | void *ptr; |
1527 | swig_type_info *ty; |
1528 | int own; |
1529 | PyObject *next; |
1530 | #ifdef SWIGPYTHON_BUILTIN |
1531 | PyObject *dict; |
1532 | #endif |
1533 | } SwigPyObject; |
1534 | |
1535 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1536 | SwigPyObject_long(SwigPyObject *v) |
1537 | { |
1538 | return PyLong_FromVoidPtr(v->ptr); |
1539 | } |
1540 | |
1541 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1542 | SwigPyObject_format(const char* fmt, SwigPyObject *v) |
1543 | { |
1544 | PyObject *res = NULL__null; |
1545 | PyObject *args = PyTuple_New(1); |
1546 | if (args) { |
1547 | if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) { |
1548 | PyObject *ofmt = SWIG_Python_str_FromChar(fmt); |
1549 | if (ofmt) { |
1550 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1551 | res = PyUnicode_FormatPyUnicodeUCS2_Format(ofmt,args); |
1552 | #else |
1553 | res = PyString_Format(ofmt,args); |
1554 | #endif |
1555 | Py_DECREF(ofmt)do { if ( --((PyObject*)(ofmt))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(ofmt)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(ofmt)))); } while (0); |
1556 | } |
1557 | Py_DECREF(args)do { if ( --((PyObject*)(args))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(args)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(args)))); } while (0); |
1558 | } |
1559 | } |
1560 | return res; |
1561 | } |
1562 | |
1563 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1564 | SwigPyObject_oct(SwigPyObject *v) |
1565 | { |
1566 | return SwigPyObject_format("%o",v); |
1567 | } |
1568 | |
1569 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1570 | SwigPyObject_hex(SwigPyObject *v) |
1571 | { |
1572 | return SwigPyObject_format("%x",v); |
1573 | } |
1574 | |
1575 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1576 | #ifdef METH_NOARGS0x0004 |
1577 | SwigPyObject_repr(SwigPyObject *v) |
1578 | #else |
1579 | SwigPyObject_repr(SwigPyObject *v, PyObject *args) |
1580 | #endif |
1581 | { |
1582 | const char *name = SWIG_TypePrettyName(v->ty); |
1583 | PyObject *repr = SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v); |
1584 | if (v->next) { |
1585 | # ifdef METH_NOARGS0x0004 |
1586 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next); |
1587 | # else |
1588 | PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args); |
1589 | # endif |
1590 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1591 | PyObject *joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(repr, nrep); |
1592 | Py_DecRef(repr); |
1593 | Py_DecRef(nrep); |
1594 | repr = joined; |
1595 | # else |
1596 | PyString_ConcatAndDel(&repr,nrep); |
1597 | # endif |
1598 | } |
1599 | return repr; |
1600 | } |
1601 | |
1602 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1603 | SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w) |
1604 | { |
1605 | void *i = v->ptr; |
1606 | void *j = w->ptr; |
1607 | return (i < j) ? -1 : ((i > j) ? 1 : 0); |
1608 | } |
1609 | |
1610 | /* Added for Python 3.x, would it also be useful for Python 2.x? */ |
1611 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1612 | SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op) |
1613 | { |
1614 | PyObject* res; |
1615 | if( op != Py_EQ2 && op != Py_NE3 ) { |
1616 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
1617 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
1618 | } |
1619 | res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ2) ? 1 : 0); |
1620 | return res; |
1621 | } |
1622 | |
1623 | |
1624 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void); |
1625 | |
1626 | #ifdef SWIGPYTHON_BUILTIN |
1627 | static swig_type_info *SwigPyObject_stype = 0; |
1628 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1629 | SwigPyObject_type(void) { |
1630 | SwigPyClientData *cd; |
1631 | assert(SwigPyObject_stype)((void)0); |
1632 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
1633 | assert(cd)((void)0); |
1634 | assert(cd->pytype)((void)0); |
1635 | return cd->pytype; |
1636 | } |
1637 | #else |
1638 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1639 | SwigPyObject_type(void) { |
1640 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce(); |
1641 | return type; |
1642 | } |
1643 | #endif |
1644 | |
1645 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
1646 | SwigPyObject_Check(PyObject *op) { |
1647 | #ifdef SWIGPYTHON_BUILTIN |
1648 | PyTypeObject *target_tp = SwigPyObject_type(); |
1649 | if (PyType_IsSubtype(op->ob_type, target_tp)) |
1650 | return 1; |
1651 | return (strcmp(op->ob_type->tp_name, "SwigPyObject") == 0); |
1652 | #else |
1653 | return (Py_TYPE(op)(((PyObject*)(op))->ob_type) == SwigPyObject_type()) |
1654 | || (strcmp(Py_TYPE(op)(((PyObject*)(op))->ob_type)->tp_name,"SwigPyObject") == 0); |
1655 | #endif |
1656 | } |
1657 | |
1658 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1659 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own); |
1660 | |
1661 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
1662 | SwigPyObject_dealloc(PyObject *v) |
1663 | { |
1664 | SwigPyObject *sobj = (SwigPyObject *) v; |
1665 | PyObject *next = sobj->next; |
1666 | if (sobj->own == SWIG_POINTER_OWN0x1) { |
1667 | swig_type_info *ty = sobj->ty; |
1668 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
1669 | PyObject *destroy = data ? data->destroy : 0; |
1670 | if (destroy) { |
1671 | /* destroy is always a VARARGS method */ |
1672 | PyObject *res; |
1673 | if (data->delargs) { |
1674 | /* we need to create a temporary object to carry the destroy operation */ |
1675 | PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0); |
1676 | res = SWIG_Python_CallFunctor(destroy, tmp)PyObject_CallFunctionObjArgs(destroy, tmp, __null);; |
1677 | Py_DECREF(tmp)do { if ( --((PyObject*)(tmp))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(tmp)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(tmp)))); } while (0); |
1678 | } else { |
1679 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy)(((PyCFunctionObject *)destroy) -> m_ml -> ml_meth); |
1680 | PyObject *mself = PyCFunction_GET_SELF(destroy)(((PyCFunctionObject *)destroy) -> m_self); |
1681 | res = ((*meth)(mself, v)); |
1682 | } |
1683 | Py_XDECREF(res)do { if ((res) == __null) ; else do { if ( --((PyObject*)(res ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( res)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (res)))); } while (0); } while (0); |
1684 | } |
1685 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) |
1686 | else { |
1687 | const char *name = SWIG_TypePrettyName(ty); |
1688 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown")); |
1689 | } |
1690 | #endif |
1691 | } |
1692 | Py_XDECREF(next)do { if ((next) == __null) ; else do { if ( --((PyObject*)(next ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( next)))->ob_type)->tp_dealloc)((PyObject *)((PyObject * )(next)))); } while (0); } while (0); |
1693 | PyObject_DELPyObject_Free(v); |
1694 | } |
1695 | |
1696 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1697 | SwigPyObject_append(PyObject* v, PyObject* next) |
1698 | { |
1699 | SwigPyObject *sobj = (SwigPyObject *) v; |
1700 | #ifndef METH_O0x0008 |
1701 | PyObject *tmp = 0; |
1702 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL__null; |
1703 | next = tmp; |
1704 | #endif |
1705 | if (!SwigPyObject_Check(next)) { |
1706 | return NULL__null; |
1707 | } |
1708 | sobj->next = next; |
1709 | Py_INCREF(next)( ((PyObject*)(next))->ob_refcnt++); |
1710 | return SWIG_Py_Void(); |
1711 | } |
1712 | |
1713 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
1714 | #ifdef METH_NOARGS0x0004 |
1715 | SwigPyObject_next(PyObject* v) |
1716 | #else |
1717 | SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1718 | #endif |
1719 | { |
1720 | SwigPyObject *sobj = (SwigPyObject *) v; |
1721 | if (sobj->next) { |
1722 | Py_INCREF(sobj->next)( ((PyObject*)(sobj->next))->ob_refcnt++); |
1723 | return sobj->next; |
1724 | } else { |
1725 | return SWIG_Py_Void(); |
1726 | } |
1727 | } |
1728 | |
1729 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1730 | #ifdef METH_NOARGS0x0004 |
1731 | SwigPyObject_disown(PyObject *v) |
1732 | #else |
1733 | SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1734 | #endif |
1735 | { |
1736 | SwigPyObject *sobj = (SwigPyObject *)v; |
1737 | sobj->own = 0; |
1738 | return SWIG_Py_Void(); |
1739 | } |
1740 | |
1741 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1742 | #ifdef METH_NOARGS0x0004 |
1743 | SwigPyObject_acquire(PyObject *v) |
1744 | #else |
1745 | SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) |
1746 | #endif |
1747 | { |
1748 | SwigPyObject *sobj = (SwigPyObject *)v; |
1749 | sobj->own = SWIG_POINTER_OWN0x1; |
1750 | return SWIG_Py_Void(); |
1751 | } |
1752 | |
1753 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject* |
1754 | SwigPyObject_own(PyObject *v, PyObject *args) |
1755 | { |
1756 | PyObject *val = 0; |
1757 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000) |
1758 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) |
1759 | #elif (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02050000) |
1760 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) |
1761 | #else |
1762 | if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) |
1763 | #endif |
1764 | { |
1765 | return NULL__null; |
1766 | } |
1767 | else |
1768 | { |
1769 | SwigPyObject *sobj = (SwigPyObject *)v; |
1770 | PyObject *obj = PyBool_FromLong(sobj->own); |
1771 | if (val) { |
1772 | #ifdef METH_NOARGS0x0004 |
1773 | if (PyObject_IsTrue(val)) { |
1774 | SwigPyObject_acquire(v); |
1775 | } else { |
1776 | SwigPyObject_disown(v); |
1777 | } |
1778 | #else |
1779 | if (PyObject_IsTrue(val)) { |
1780 | SwigPyObject_acquire(v,args); |
1781 | } else { |
1782 | SwigPyObject_disown(v,args); |
1783 | } |
1784 | #endif |
1785 | } |
1786 | return obj; |
1787 | } |
1788 | } |
1789 | |
1790 | #ifdef METH_O0x0008 |
1791 | static PyMethodDef |
1792 | swigobject_methods[] = { |
1793 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS0x0004, (char *)"releases ownership of the pointer"}, |
1794 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS0x0004, (char *)"acquires ownership of the pointer"}, |
1795 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1796 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_O0x0008, (char *)"appends another 'this' object"}, |
1797 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS0x0004, (char *)"returns the next 'this' object"}, |
1798 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS0x0004, (char *)"returns object representation"}, |
1799 | {0, 0, 0, 0} |
1800 | }; |
1801 | #else |
1802 | static PyMethodDef |
1803 | swigobject_methods[] = { |
1804 | {(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS0x0001, (char *)"releases ownership of the pointer"}, |
1805 | {(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS0x0001, (char *)"aquires ownership of the pointer"}, |
1806 | {(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS0x0001, (char *)"returns/sets ownership of the pointer"}, |
1807 | {(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS0x0001, (char *)"appends another 'this' object"}, |
1808 | {(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS0x0001, (char *)"returns the next 'this' object"}, |
1809 | {(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS0x0001, (char *)"returns object representation"}, |
1810 | {0, 0, 0, 0} |
1811 | }; |
1812 | #endif |
1813 | |
1814 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1815 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
1816 | SwigPyObject_getattr(SwigPyObject *sobj,char *name) |
1817 | { |
1818 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); |
1819 | } |
1820 | #endif |
1821 | |
1822 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
1823 | SwigPyObject_TypeOnce(void) { |
1824 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; |
1825 | |
1826 | static PyNumberMethods SwigPyObject_as_number = { |
1827 | (binaryfunc)0, /*nb_add*/ |
1828 | (binaryfunc)0, /*nb_subtract*/ |
1829 | (binaryfunc)0, /*nb_multiply*/ |
1830 | /* nb_divide removed in Python 3 */ |
1831 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1832 | (binaryfunc)0, /*nb_divide*/ |
1833 | #endif |
1834 | (binaryfunc)0, /*nb_remainder*/ |
1835 | (binaryfunc)0, /*nb_divmod*/ |
1836 | (ternaryfunc)0,/*nb_power*/ |
1837 | (unaryfunc)0, /*nb_negative*/ |
1838 | (unaryfunc)0, /*nb_positive*/ |
1839 | (unaryfunc)0, /*nb_absolute*/ |
1840 | (inquiry)0, /*nb_nonzero*/ |
1841 | 0, /*nb_invert*/ |
1842 | 0, /*nb_lshift*/ |
1843 | 0, /*nb_rshift*/ |
1844 | 0, /*nb_and*/ |
1845 | 0, /*nb_xor*/ |
1846 | 0, /*nb_or*/ |
1847 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1848 | 0, /*nb_coerce*/ |
1849 | #endif |
1850 | (unaryfunc)SwigPyObject_long, /*nb_int*/ |
1851 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1852 | (unaryfunc)SwigPyObject_long, /*nb_long*/ |
1853 | #else |
1854 | 0, /*nb_reserved*/ |
1855 | #endif |
1856 | (unaryfunc)0, /*nb_float*/ |
1857 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
1858 | (unaryfunc)SwigPyObject_oct, /*nb_oct*/ |
1859 | (unaryfunc)SwigPyObject_hex, /*nb_hex*/ |
1860 | #endif |
1861 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 /* 3.0 */ |
1862 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */ |
1863 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02050000 /* 2.5.0 */ |
1864 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */ |
1865 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 /* 2.2.0 */ |
1866 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
1867 | #elif PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02000000 /* 2.0.0 */ |
1868 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ |
1869 | #endif |
1870 | }; |
1871 | |
1872 | static PyTypeObject swigpyobject_type; |
1873 | static int type_init = 0; |
1874 | if (!type_init) { |
1875 | const PyTypeObject tmp = { |
1876 | /* PyObject header changed in Python 3 */ |
1877 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1878 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
1879 | #else |
1880 | PyObject_HEAD_INIT(NULL)1, __null, |
1881 | 0, /* ob_size */ |
1882 | #endif |
1883 | (char *)"SwigPyObject", /* tp_name */ |
1884 | sizeof(SwigPyObject), /* tp_basicsize */ |
1885 | 0, /* tp_itemsize */ |
1886 | (destructor)SwigPyObject_dealloc, /* tp_dealloc */ |
1887 | 0, /* tp_print */ |
1888 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1889 | (getattrfunc)SwigPyObject_getattr, /* tp_getattr */ |
1890 | #else |
1891 | (getattrfunc)0, /* tp_getattr */ |
1892 | #endif |
1893 | (setattrfunc)0, /* tp_setattr */ |
1894 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
1895 | 0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */ |
1896 | #else |
1897 | (cmpfunc)SwigPyObject_compare, /* tp_compare */ |
1898 | #endif |
1899 | (reprfunc)SwigPyObject_repr, /* tp_repr */ |
1900 | &SwigPyObject_as_number, /* tp_as_number */ |
1901 | 0, /* tp_as_sequence */ |
1902 | 0, /* tp_as_mapping */ |
1903 | (hashfunc)0, /* tp_hash */ |
1904 | (ternaryfunc)0, /* tp_call */ |
1905 | 0, /* tp_str */ |
1906 | PyObject_GenericGetAttr, /* tp_getattro */ |
1907 | 0, /* tp_setattro */ |
1908 | 0, /* tp_as_buffer */ |
1909 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
1910 | swigobject_doc, /* tp_doc */ |
1911 | 0, /* tp_traverse */ |
1912 | 0, /* tp_clear */ |
1913 | (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */ |
1914 | 0, /* tp_weaklistoffset */ |
1915 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
1916 | 0, /* tp_iter */ |
1917 | 0, /* tp_iternext */ |
1918 | swigobject_methods, /* tp_methods */ |
1919 | 0, /* tp_members */ |
1920 | 0, /* tp_getset */ |
1921 | 0, /* tp_base */ |
1922 | 0, /* tp_dict */ |
1923 | 0, /* tp_descr_get */ |
1924 | 0, /* tp_descr_set */ |
1925 | 0, /* tp_dictoffset */ |
1926 | 0, /* tp_init */ |
1927 | 0, /* tp_alloc */ |
1928 | 0, /* tp_new */ |
1929 | 0, /* tp_free */ |
1930 | 0, /* tp_is_gc */ |
1931 | 0, /* tp_bases */ |
1932 | 0, /* tp_mro */ |
1933 | 0, /* tp_cache */ |
1934 | 0, /* tp_subclasses */ |
1935 | 0, /* tp_weaklist */ |
1936 | #endif |
1937 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
1938 | 0, /* tp_del */ |
1939 | #endif |
1940 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
1941 | 0, /* tp_version */ |
1942 | #endif |
1943 | #ifdef COUNT_ALLOCS |
1944 | 0,0,0,0 /* tp_alloc -> tp_next */ |
1945 | #endif |
1946 | }; |
1947 | swigpyobject_type = tmp; |
1948 | type_init = 1; |
1949 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
1950 | swigpyobject_type.ob_type = &PyType_Type; |
1951 | #else |
1952 | if (PyType_Ready(&swigpyobject_type) < 0) |
1953 | return NULL__null; |
1954 | #endif |
1955 | } |
1956 | return &swigpyobject_type; |
1957 | } |
1958 | |
1959 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1960 | SwigPyObject_New(void *ptr, swig_type_info *ty, int own) |
1961 | { |
1962 | SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type())( (SwigPyObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyObject_type())->tp_basicsize ) ), (SwigPyObject_type ())) ); |
1963 | if (sobj) { |
1964 | sobj->ptr = ptr; |
1965 | sobj->ty = ty; |
1966 | sobj->own = own; |
1967 | sobj->next = 0; |
1968 | } |
1969 | return (PyObject *)sobj; |
1970 | } |
1971 | |
1972 | /* ----------------------------------------------------------------------------- |
1973 | * Implements a simple Swig Packed type, and use it instead of string |
1974 | * ----------------------------------------------------------------------------- */ |
1975 | |
1976 | typedef struct { |
1977 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
1978 | void *pack; |
1979 | swig_type_info *ty; |
1980 | size_t size; |
1981 | } SwigPyPacked; |
1982 | |
1983 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
1984 | SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
1985 | { |
1986 | char result[SWIG_BUFFER_SIZE1024]; |
1987 | fputs("<Swig Packed ", fp); |
1988 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
1989 | fputs("at ", fp); |
1990 | fputs(result, fp); |
1991 | } |
1992 | fputs(v->ty->name,fp); |
1993 | fputs(">", fp); |
1994 | return 0; |
1995 | } |
1996 | |
1997 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
1998 | SwigPyPacked_repr(SwigPyPacked *v) |
1999 | { |
2000 | char result[SWIG_BUFFER_SIZE1024]; |
2001 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { |
2002 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
2003 | } else { |
2004 | return SWIG_Python_str_FromFormatPyString_FromFormat("<Swig Packed %s>", v->ty->name); |
2005 | } |
2006 | } |
2007 | |
2008 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2009 | SwigPyPacked_str(SwigPyPacked *v) |
2010 | { |
2011 | char result[SWIG_BUFFER_SIZE1024]; |
2012 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ |
2013 | return SWIG_Python_str_FromFormatPyString_FromFormat("%s%s", result, v->ty->name); |
2014 | } else { |
2015 | return SWIG_Python_str_FromChar(v->ty->name); |
2016 | } |
2017 | } |
2018 | |
2019 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2020 | SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w) |
2021 | { |
2022 | size_t i = v->size; |
2023 | size_t j = w->size; |
2024 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); |
2025 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); |
2026 | } |
2027 | |
2028 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void); |
2029 | |
2030 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2031 | SwigPyPacked_type(void) { |
2032 | static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce(); |
2033 | return type; |
2034 | } |
2035 | |
2036 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int |
2037 | SwigPyPacked_Check(PyObject *op) { |
2038 | return ((op)->ob_type == SwigPyPacked_TypeOnce()) |
2039 | || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0); |
2040 | } |
2041 | |
2042 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2043 | SwigPyPacked_dealloc(PyObject *v) |
2044 | { |
2045 | if (SwigPyPacked_Check(v)) { |
2046 | SwigPyPacked *sobj = (SwigPyPacked *) v; |
2047 | free(sobj->pack); |
2048 | } |
2049 | PyObject_DELPyObject_Free(v); |
2050 | } |
2051 | |
2052 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* |
2053 | SwigPyPacked_TypeOnce(void) { |
2054 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; |
2055 | static PyTypeObject swigpypacked_type; |
2056 | static int type_init = 0; |
2057 | if (!type_init) { |
2058 | const PyTypeObject tmp = { |
2059 | /* PyObject header changed in Python 3 */ |
2060 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2061 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
2062 | #else |
2063 | PyObject_HEAD_INIT(NULL)1, __null, |
2064 | 0, /* ob_size */ |
2065 | #endif |
2066 | (char *)"SwigPyPacked", /* tp_name */ |
2067 | sizeof(SwigPyPacked), /* tp_basicsize */ |
2068 | 0, /* tp_itemsize */ |
2069 | (destructor)SwigPyPacked_dealloc, /* tp_dealloc */ |
2070 | (printfunc)SwigPyPacked_print, /* tp_print */ |
2071 | (getattrfunc)0, /* tp_getattr */ |
2072 | (setattrfunc)0, /* tp_setattr */ |
2073 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2074 | 0, /* tp_reserved in 3.0.1 */ |
2075 | #else |
2076 | (cmpfunc)SwigPyPacked_compare, /* tp_compare */ |
2077 | #endif |
2078 | (reprfunc)SwigPyPacked_repr, /* tp_repr */ |
2079 | 0, /* tp_as_number */ |
2080 | 0, /* tp_as_sequence */ |
2081 | 0, /* tp_as_mapping */ |
2082 | (hashfunc)0, /* tp_hash */ |
2083 | (ternaryfunc)0, /* tp_call */ |
2084 | (reprfunc)SwigPyPacked_str, /* tp_str */ |
2085 | PyObject_GenericGetAttr, /* tp_getattro */ |
2086 | 0, /* tp_setattro */ |
2087 | 0, /* tp_as_buffer */ |
2088 | Py_TPFLAGS_DEFAULT( (1L<<0) | (1L<<1) | (1L<<3) | (1L<< 5) | (1L<<6) | (1L<<7) | (1L<<8) | 0 | (1L<< 17) | 0), /* tp_flags */ |
2089 | swigpacked_doc, /* tp_doc */ |
2090 | 0, /* tp_traverse */ |
2091 | 0, /* tp_clear */ |
2092 | 0, /* tp_richcompare */ |
2093 | 0, /* tp_weaklistoffset */ |
2094 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
2095 | 0, /* tp_iter */ |
2096 | 0, /* tp_iternext */ |
2097 | 0, /* tp_methods */ |
2098 | 0, /* tp_members */ |
2099 | 0, /* tp_getset */ |
2100 | 0, /* tp_base */ |
2101 | 0, /* tp_dict */ |
2102 | 0, /* tp_descr_get */ |
2103 | 0, /* tp_descr_set */ |
2104 | 0, /* tp_dictoffset */ |
2105 | 0, /* tp_init */ |
2106 | 0, /* tp_alloc */ |
2107 | 0, /* tp_new */ |
2108 | 0, /* tp_free */ |
2109 | 0, /* tp_is_gc */ |
2110 | 0, /* tp_bases */ |
2111 | 0, /* tp_mro */ |
2112 | 0, /* tp_cache */ |
2113 | 0, /* tp_subclasses */ |
2114 | 0, /* tp_weaklist */ |
2115 | #endif |
2116 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
2117 | 0, /* tp_del */ |
2118 | #endif |
2119 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
2120 | 0, /* tp_version */ |
2121 | #endif |
2122 | #ifdef COUNT_ALLOCS |
2123 | 0,0,0,0 /* tp_alloc -> tp_next */ |
2124 | #endif |
2125 | }; |
2126 | swigpypacked_type = tmp; |
2127 | type_init = 1; |
2128 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
2129 | swigpypacked_type.ob_type = &PyType_Type; |
2130 | #else |
2131 | if (PyType_Ready(&swigpypacked_type) < 0) |
2132 | return NULL__null; |
2133 | #endif |
2134 | } |
2135 | return &swigpypacked_type; |
2136 | } |
2137 | |
2138 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2139 | SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty) |
2140 | { |
2141 | SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type())( (SwigPyPacked *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (SwigPyPacked_type())->tp_basicsize ) ), (SwigPyPacked_type ())) ); |
2142 | if (sobj) { |
2143 | void *pack = malloc(size); |
2144 | if (pack) { |
2145 | memcpy(pack, ptr, size); |
2146 | sobj->pack = pack; |
2147 | sobj->ty = ty; |
2148 | sobj->size = size; |
2149 | } else { |
2150 | PyObject_DELPyObject_Free((PyObject *) sobj); |
2151 | sobj = 0; |
2152 | } |
2153 | } |
2154 | return (PyObject *) sobj; |
2155 | } |
2156 | |
2157 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2158 | SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
2159 | { |
2160 | if (SwigPyPacked_Check(obj)) { |
2161 | SwigPyPacked *sobj = (SwigPyPacked *)obj; |
2162 | if (sobj->size != size) return 0; |
2163 | memcpy(ptr, sobj->pack, size); |
2164 | return sobj->ty; |
2165 | } else { |
2166 | return 0; |
2167 | } |
2168 | } |
2169 | |
2170 | /* ----------------------------------------------------------------------------- |
2171 | * pointers/data manipulation |
2172 | * ----------------------------------------------------------------------------- */ |
2173 | |
2174 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2175 | _SWIG_This(void) |
2176 | { |
2177 | return SWIG_Python_str_FromChar("this"); |
2178 | } |
2179 | |
2180 | static PyObject *swig_this = NULL__null; |
2181 | |
2182 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2183 | SWIG_This(void) |
2184 | { |
2185 | if (swig_this == NULL__null) |
2186 | swig_this = _SWIG_This(); |
2187 | return swig_this; |
2188 | } |
2189 | |
2190 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
2191 | |
2192 | /* TODO: I don't know how to implement the fast getset in Python 3 right now */ |
2193 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
2194 | #define SWIG_PYTHON_SLOW_GETSET_THIS |
2195 | #endif |
2196 | |
2197 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject * |
2198 | SWIG_Python_GetSwigThis(PyObject *pyobj) |
2199 | { |
2200 | PyObject *obj; |
2201 | |
2202 | if (SwigPyObject_Check(pyobj)) |
2203 | return (SwigPyObject *) pyobj; |
2204 | |
2205 | #ifdef SWIGPYTHON_BUILTIN |
2206 | (void)obj; |
2207 | # ifdef PyWeakref_CheckProxy |
2208 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2209 | pyobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2210 | if (pyobj && SwigPyObject_Check(pyobj)) |
2211 | return (SwigPyObject*) pyobj; |
2212 | } |
2213 | # endif |
2214 | return NULL__null; |
2215 | #else |
2216 | |
2217 | obj = 0; |
2218 | |
2219 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000)) |
2220 | if (PyInstance_Check(pyobj)((pyobj)->ob_type == &PyInstance_Type)) { |
2221 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); |
2222 | } else { |
2223 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); |
2224 | if (dictptr != NULL__null) { |
2225 | PyObject *dict = *dictptr; |
2226 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; |
2227 | } else { |
2228 | #ifdef PyWeakref_CheckProxy |
2229 | if (PyWeakref_CheckProxy(pyobj)(((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_ProxyType ) || ((((PyObject*)(pyobj))->ob_type) == &_PyWeakref_CallableProxyType ))) { |
2230 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj)((((PyObject*)(((PyWeakReference *)(pyobj))->wr_object))-> ob_refcnt) > 0 ? ((PyWeakReference *)(pyobj))->wr_object : (&_Py_NoneStruct)); |
2231 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; |
2232 | } |
2233 | #endif |
2234 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2235 | if (obj) { |
2236 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2237 | } else { |
2238 | if (PyErr_Occurred()) PyErr_Clear(); |
2239 | return 0; |
2240 | } |
2241 | } |
2242 | } |
2243 | #else |
2244 | obj = PyObject_GetAttr(pyobj,SWIG_This()); |
2245 | if (obj) { |
2246 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2247 | } else { |
2248 | if (PyErr_Occurred()) PyErr_Clear(); |
2249 | return 0; |
2250 | } |
2251 | #endif |
2252 | if (obj && !SwigPyObject_Check(obj)) { |
2253 | /* a PyObject is called 'this', try to get the 'real this' |
2254 | SwigPyObject from it */ |
2255 | return SWIG_Python_GetSwigThis(obj); |
2256 | } |
2257 | return (SwigPyObject *)obj; |
2258 | #endif |
2259 | } |
2260 | |
2261 | /* Acquire a pointer value */ |
2262 | |
2263 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2264 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { |
2265 | if (own == SWIG_POINTER_OWN0x1) { |
2266 | SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj); |
2267 | if (sobj) { |
2268 | int oldown = sobj->own; |
2269 | sobj->own = own; |
2270 | return oldown; |
2271 | } |
2272 | } |
2273 | return 0; |
2274 | } |
2275 | |
2276 | /* Convert a pointer value */ |
2277 | |
2278 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2279 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
2280 | int res; |
2281 | SwigPyObject *sobj; |
2282 | int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV(0x1 << 1)) != 0; |
2283 | |
2284 | if (!obj) |
2285 | return SWIG_ERROR(-1); |
2286 | if (obj == Py_None(&_Py_NoneStruct) && !implicit_conv) { |
2287 | if (ptr) |
2288 | *ptr = 0; |
2289 | return SWIG_OK(0); |
2290 | } |
2291 | |
2292 | res = SWIG_ERROR(-1); |
2293 | |
2294 | sobj = SWIG_Python_GetSwigThis(obj); |
2295 | if (own) |
2296 | *own = 0; |
2297 | while (sobj) { |
2298 | void *vptr = sobj->ptr; |
2299 | if (ty) { |
2300 | swig_type_info *to = sobj->ty; |
2301 | if (to == ty) { |
2302 | /* no type cast needed */ |
2303 | if (ptr) *ptr = vptr; |
2304 | break; |
2305 | } else { |
2306 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2307 | if (!tc) { |
2308 | sobj = (SwigPyObject *)sobj->next; |
2309 | } else { |
2310 | if (ptr) { |
2311 | int newmemory = 0; |
2312 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2313 | if (newmemory == SWIG_CAST_NEW_MEMORY0x2) { |
2314 | assert(own)((void)0); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */ |
2315 | if (own) |
2316 | *own = *own | SWIG_CAST_NEW_MEMORY0x2; |
2317 | } |
2318 | } |
2319 | break; |
2320 | } |
2321 | } |
2322 | } else { |
2323 | if (ptr) *ptr = vptr; |
2324 | break; |
2325 | } |
2326 | } |
2327 | if (sobj) { |
2328 | if (own) |
2329 | *own = *own | sobj->own; |
2330 | if (flags & SWIG_POINTER_DISOWN0x1) { |
2331 | sobj->own = 0; |
2332 | } |
2333 | res = SWIG_OK(0); |
2334 | } else { |
2335 | if (implicit_conv) { |
2336 | SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0; |
2337 | if (data && !data->implicitconv) { |
2338 | PyObject *klass = data->klass; |
2339 | if (klass) { |
2340 | PyObject *impconv; |
2341 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ |
2342 | impconv = SWIG_Python_CallFunctor(klass, obj)PyObject_CallFunctionObjArgs(klass, obj, __null);; |
2343 | data->implicitconv = 0; |
2344 | if (PyErr_Occurred()) { |
2345 | PyErr_Clear(); |
2346 | impconv = 0; |
2347 | } |
2348 | if (impconv) { |
2349 | SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv); |
2350 | if (iobj) { |
2351 | void *vptr; |
2352 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); |
2353 | if (SWIG_IsOK(res)(res >= 0)) { |
2354 | if (ptr) { |
2355 | *ptr = vptr; |
2356 | /* transfer the ownership to 'ptr' */ |
2357 | iobj->own = 0; |
2358 | res = SWIG_AddCast(res)(res); |
2359 | res = SWIG_AddNewMask(res)((res >= 0) ? (res | ((1 << 8) << 1)) : res); |
2360 | } else { |
2361 | res = SWIG_AddCast(res)(res); |
2362 | } |
2363 | } |
2364 | } |
2365 | Py_DECREF(impconv)do { if ( --((PyObject*)(impconv))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(impconv)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(impconv)))); } while (0); |
2366 | } |
2367 | } |
2368 | } |
2369 | } |
2370 | if (!SWIG_IsOK(res)(res >= 0) && obj == Py_None(&_Py_NoneStruct)) { |
2371 | if (ptr) |
2372 | *ptr = 0; |
2373 | if (PyErr_Occurred()) |
2374 | PyErr_Clear(); |
2375 | res = SWIG_OK(0); |
2376 | } |
2377 | } |
2378 | return res; |
2379 | } |
2380 | |
2381 | /* Convert a function ptr value */ |
2382 | |
2383 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2384 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2385 | if (!PyCFunction_Check(obj)((((PyObject*)(obj))->ob_type) == &PyCFunction_Type)) { |
2386 | return SWIG_ConvertPtr(obj, ptr, ty, 0)SWIG_Python_ConvertPtrAndOwn(obj, ptr, ty, 0, 0); |
2387 | } else { |
2388 | void *vptr = 0; |
2389 | |
2390 | /* here we get the method pointer for callbacks */ |
2391 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
2392 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2393 | if (desc) |
2394 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; |
2395 | if (!desc) |
2396 | return SWIG_ERROR(-1); |
2397 | if (ty) { |
2398 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); |
2399 | if (tc) { |
2400 | int newmemory = 0; |
2401 | *ptr = SWIG_TypeCast(tc,vptr,&newmemory); |
2402 | assert(!newmemory)((void)0); /* newmemory handling not yet implemented */ |
2403 | } else { |
2404 | return SWIG_ERROR(-1); |
2405 | } |
2406 | } else { |
2407 | *ptr = vptr; |
2408 | } |
2409 | return SWIG_OK(0); |
2410 | } |
2411 | } |
2412 | |
2413 | /* Convert a packed value value */ |
2414 | |
2415 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2416 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2417 | swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz); |
2418 | if (!to) return SWIG_ERROR(-1); |
2419 | if (ty) { |
2420 | if (to != ty) { |
2421 | /* check type cast? */ |
2422 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); |
2423 | if (!tc) return SWIG_ERROR(-1); |
2424 | } |
2425 | } |
2426 | return SWIG_OK(0); |
2427 | } |
2428 | |
2429 | /* ----------------------------------------------------------------------------- |
2430 | * Create a new pointer object |
2431 | * ----------------------------------------------------------------------------- */ |
2432 | |
2433 | /* |
2434 | Create a new instance object, without calling __init__, and set the |
2435 | 'this' attribute. |
2436 | */ |
2437 | |
2438 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* |
2439 | SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this) |
2440 | { |
2441 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) |
2442 | PyObject *inst = 0; |
2443 | PyObject *newraw = data->newraw; |
2444 | if (newraw) { |
2445 | inst = PyObject_Call(newraw, data->newargs, NULL__null); |
2446 | if (inst) { |
2447 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2448 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2449 | if (dictptr != NULL__null) { |
2450 | PyObject *dict = *dictptr; |
2451 | if (dict == NULL__null) { |
2452 | dict = PyDict_New(); |
2453 | *dictptr = dict; |
2454 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2455 | } |
2456 | } |
2457 | #else |
2458 | PyObject *key = SWIG_This(); |
2459 | PyObject_SetAttr(inst, key, swig_this); |
2460 | #endif |
2461 | } |
2462 | } else { |
2463 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2464 | inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None(&_Py_NoneStruct), Py_None(&_Py_NoneStruct)); |
2465 | if (inst) { |
2466 | PyObject_SetAttr(inst, SWIG_This(), swig_this); |
2467 | Py_TYPE(inst)(((PyObject*)(inst))->ob_type)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG(1L<<19); |
2468 | } |
2469 | #else |
2470 | PyObject *dict = PyDict_New(); |
2471 | if (dict) { |
2472 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2473 | inst = PyInstance_NewRaw(data->newargs, dict); |
2474 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2475 | } |
2476 | #endif |
2477 | } |
2478 | return inst; |
2479 | #else |
2480 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02010000) |
2481 | PyObject *inst = 0; |
2482 | PyObject *dict = PyDict_New(); |
2483 | if (dict) { |
2484 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2485 | inst = PyInstance_NewRaw(data->newargs, dict); |
2486 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2487 | } |
2488 | return (PyObject *) inst; |
2489 | #else |
2490 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type)( (PyInstanceObject *) PyObject_Init( (PyObject *) PyObject_Malloc ( ( (&PyInstance_Type)->tp_basicsize ) ), (&PyInstance_Type )) ); |
2491 | if (inst == NULL__null) { |
2492 | return NULL__null; |
2493 | } |
2494 | inst->in_class = (PyClassObject *)data->newargs; |
2495 | Py_INCREF(inst->in_class)( ((PyObject*)(inst->in_class))->ob_refcnt++); |
2496 | inst->in_dict = PyDict_New(); |
2497 | if (inst->in_dict == NULL__null) { |
2498 | Py_DECREF(inst)do { if ( --((PyObject*)(inst))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(inst)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(inst)))); } while (0); |
2499 | return NULL__null; |
2500 | } |
2501 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS(1L<<6) |
2502 | inst->in_weakreflist = NULL__null; |
2503 | #endif |
2504 | #ifdef Py_TPFLAGS_GC0 |
2505 | PyObject_GC_Init(inst); |
2506 | #endif |
2507 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); |
2508 | return (PyObject *) inst; |
2509 | #endif |
2510 | #endif |
2511 | } |
2512 | |
2513 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2514 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) |
2515 | { |
2516 | PyObject *dict; |
2517 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) |
2518 | PyObject **dictptr = _PyObject_GetDictPtr(inst); |
2519 | if (dictptr != NULL__null) { |
2520 | dict = *dictptr; |
2521 | if (dict == NULL__null) { |
2522 | dict = PyDict_New(); |
2523 | *dictptr = dict; |
2524 | } |
2525 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2526 | return; |
2527 | } |
2528 | #endif |
2529 | dict = PyObject_GetAttrString(inst, (char*)"__dict__"); |
2530 | PyDict_SetItem(dict, SWIG_This(), swig_this); |
2531 | Py_DECREF(dict)do { if ( --((PyObject*)(dict))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(dict)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(dict)))); } while (0); |
2532 | } |
2533 | |
2534 | |
2535 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
2536 | SWIG_Python_InitShadowInstance(PyObject *args) { |
2537 | PyObject *obj[2]; |
2538 | if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) { |
2539 | return NULL__null; |
2540 | } else { |
2541 | SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]); |
2542 | if (sthis) { |
2543 | SwigPyObject_append((PyObject*) sthis, obj[1]); |
2544 | } else { |
2545 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
2546 | } |
2547 | return SWIG_Py_Void(); |
2548 | } |
2549 | } |
2550 | |
2551 | /* Create a new pointer object */ |
2552 | |
2553 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2554 | SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) { |
2555 | SwigPyClientData *clientdata; |
2556 | PyObject * robj; |
2557 | int own; |
2558 | |
2559 | if (!ptr) |
2560 | return SWIG_Py_Void(); |
2561 | |
2562 | clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0; |
2563 | own = (flags & SWIG_POINTER_OWN0x1) ? SWIG_POINTER_OWN0x1 : 0; |
2564 | if (clientdata && clientdata->pytype) { |
2565 | SwigPyObject *newobj; |
2566 | if (flags & SWIG_BUILTIN_TP_INIT(0x1 << 2)) { |
2567 | newobj = (SwigPyObject*) self; |
2568 | if (newobj->ptr) { |
2569 | PyObject *next_self = clientdata->pytype->tp_alloc(clientdata->pytype, 0); |
2570 | while (newobj->next) |
2571 | newobj = (SwigPyObject *) newobj->next; |
2572 | newobj->next = next_self; |
2573 | newobj = (SwigPyObject *)next_self; |
2574 | } |
2575 | } else { |
2576 | newobj = PyObject_New(SwigPyObject, clientdata->pytype)( (SwigPyObject *) _PyObject_New(clientdata->pytype) ); |
2577 | } |
2578 | if (newobj) { |
2579 | newobj->ptr = ptr; |
2580 | newobj->ty = type; |
2581 | newobj->own = own; |
2582 | newobj->next = 0; |
2583 | #ifdef SWIGPYTHON_BUILTIN |
2584 | newobj->dict = 0; |
2585 | #endif |
2586 | return (PyObject*) newobj; |
2587 | } |
2588 | return SWIG_Py_Void(); |
2589 | } |
2590 | |
2591 | assert(!(flags & SWIG_BUILTIN_TP_INIT))((void)0); |
2592 | |
2593 | robj = SwigPyObject_New(ptr, type, own); |
2594 | if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW(0x1 << 1))) { |
2595 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); |
2596 | Py_DECREF(robj)do { if ( --((PyObject*)(robj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(robj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(robj)))); } while (0); |
2597 | robj = inst; |
2598 | } |
2599 | return robj; |
2600 | } |
2601 | |
2602 | /* Create a new packed object */ |
2603 | |
2604 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
2605 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
2606 | return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
2607 | } |
2608 | |
2609 | /* -----------------------------------------------------------------------------* |
2610 | * Get type list |
2611 | * -----------------------------------------------------------------------------*/ |
2612 | |
2613 | #ifdef SWIG_LINK_RUNTIME |
2614 | void *SWIG_ReturnGlobalTypeList(void *); |
2615 | #endif |
2616 | |
2617 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info * |
2618 | SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) { |
2619 | static void *type_pointer = (void *)0; |
2620 | /* first check if module already created */ |
2621 | if (!type_pointer) { |
2622 | #ifdef SWIG_LINK_RUNTIME |
2623 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); |
2624 | #else |
2625 | # ifdef SWIGPY_USE_CAPSULE |
2626 | type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), 0); |
2627 | # else |
2628 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4", |
2629 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); |
2630 | # endif |
2631 | if (PyErr_Occurred()) { |
2632 | PyErr_Clear(); |
2633 | type_pointer = (void *)0; |
2634 | } |
2635 | #endif |
2636 | } |
2637 | return (swig_module_info *) type_pointer; |
2638 | } |
2639 | |
2640 | #if PY_MAJOR_VERSION2 < 2 |
2641 | /* PyModule_AddObject function was introduced in Python 2.0. The following function |
2642 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
2643 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
2644 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) |
2645 | { |
2646 | PyObject *dict; |
2647 | if (!PyModule_Check(m)((((PyObject*)(m))->ob_type) == (&PyModule_Type) || PyType_IsSubtype ((((PyObject*)(m))->ob_type), (&PyModule_Type)))) { |
2648 | PyErr_SetString(PyExc_TypeError, |
2649 | "PyModule_AddObject() needs module as first arg"); |
2650 | return SWIG_ERROR(-1); |
2651 | } |
2652 | if (!o) { |
2653 | PyErr_SetString(PyExc_TypeError, |
2654 | "PyModule_AddObject() needs non-NULL value"); |
2655 | return SWIG_ERROR(-1); |
2656 | } |
2657 | |
2658 | dict = PyModule_GetDict(m); |
2659 | if (dict == NULL__null) { |
2660 | /* Internal error -- modules must have a dict! */ |
2661 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", |
2662 | PyModule_GetName(m)); |
2663 | return SWIG_ERROR(-1); |
2664 | } |
2665 | if (PyDict_SetItemString(dict, name, o)) |
2666 | return SWIG_ERROR(-1); |
2667 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); |
2668 | return SWIG_OK(0); |
2669 | } |
2670 | #endif |
2671 | |
2672 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2673 | #ifdef SWIGPY_USE_CAPSULE |
2674 | SWIG_Python_DestroyModule(PyObject *obj) |
2675 | #else |
2676 | SWIG_Python_DestroyModule(void *vptr) |
2677 | #endif |
2678 | { |
2679 | #ifdef SWIGPY_USE_CAPSULE |
2680 | swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" )); |
2681 | #else |
2682 | swig_module_info *swig_module = (swig_module_info *) vptr; |
2683 | #endif |
2684 | swig_type_info **types = swig_module->types; |
2685 | size_t i; |
2686 | for (i =0; i < swig_module->size; ++i) { |
2687 | swig_type_info *ty = types[i]; |
2688 | if (ty->owndata) { |
2689 | SwigPyClientData *data = (SwigPyClientData *) ty->clientdata; |
2690 | if (data) SwigPyClientData_Del(data); |
2691 | } |
2692 | } |
2693 | Py_DECREF(SWIG_This())do { if ( --((PyObject*)(SWIG_This()))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(SWIG_This())))->ob_type)-> tp_dealloc)((PyObject *)((PyObject *)(SWIG_This())))); } while (0); |
2694 | swig_this = NULL__null; |
2695 | } |
2696 | |
2697 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2698 | SWIG_Python_SetModule(swig_module_info *swig_module) { |
2699 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2700 | /* Add a dummy module object into sys.modules */ |
2701 | PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION"4"); |
2702 | #else |
2703 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL__null, NULL__null, 0, NULL__null} }; /* Sentinel */ |
2704 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, swig_empty_runtime_method_table)Py_InitModule4_64((char*)"swig_runtime_data" "4", swig_empty_runtime_method_table , (char *)__null, (PyObject *)__null, 1013); |
2705 | #endif |
2706 | #ifdef SWIGPY_USE_CAPSULE |
2707 | PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME((char*)"swig_runtime_data" "4" ".type_pointer_capsule" ), SWIG_Python_DestroyModule); |
2708 | if (pointer && module) { |
2709 | PyModule_AddObject(module, (char*)"type_pointer_capsule" SWIG_TYPE_TABLE_NAME, pointer); |
2710 | } else { |
2711 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2712 | } |
2713 | #else |
2714 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
2715 | if (pointer && module) { |
2716 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); |
2717 | } else { |
2718 | Py_XDECREF(pointer)do { if ((pointer) == __null) ; else do { if ( --((PyObject*) (pointer))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(pointer)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *)(pointer)))); } while (0); } while (0); |
2719 | } |
2720 | #endif |
2721 | } |
2722 | |
2723 | /* The python cached type query */ |
2724 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject * |
2725 | SWIG_Python_TypeCache(void) { |
2726 | static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New(); |
2727 | return cache; |
2728 | } |
2729 | |
2730 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info * |
2731 | SWIG_Python_TypeQuery(const char *type) |
2732 | { |
2733 | PyObject *cache = SWIG_Python_TypeCache(); |
2734 | PyObject *key = SWIG_Python_str_FromChar(type); |
2735 | PyObject *obj = PyDict_GetItem(cache, key); |
2736 | swig_type_info *descriptor; |
2737 | if (obj) { |
2738 | #ifdef SWIGPY_USE_CAPSULE |
2739 | descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL__null); |
2740 | #else |
2741 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); |
2742 | #endif |
2743 | } else { |
2744 | swig_module_info *swig_module = SWIG_GetModule(0)SWIG_Python_GetModule(0); |
2745 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); |
2746 | if (descriptor) { |
2747 | #ifdef SWIGPY_USE_CAPSULE |
2748 | obj = PyCapsule_New((void*) descriptor, NULL__null, NULL__null); |
2749 | #else |
2750 | obj = PyCObject_FromVoidPtr(descriptor, NULL__null); |
2751 | #endif |
2752 | PyDict_SetItem(cache, key, obj); |
2753 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
2754 | } |
2755 | } |
2756 | Py_DECREF(key)do { if ( --((PyObject*)(key))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(key)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(key)))); } while (0); |
2757 | return descriptor; |
2758 | } |
2759 | |
2760 | /* |
2761 | For backward compatibility only |
2762 | */ |
2763 | #define SWIG_POINTER_EXCEPTION0 0 |
2764 | #define SWIG_arg_fail(arg)SWIG_Python_ArgFail(arg) SWIG_Python_ArgFail(arg) |
2765 | #define SWIG_MustGetPtr(p, type, argnum, flags)SWIG_Python_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) |
2766 | |
2767 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2768 | SWIG_Python_AddErrMesg(const char* mesg, int infront) |
2769 | { |
2770 | if (PyErr_Occurred()) { |
2771 | PyObject *type = 0; |
2772 | PyObject *value = 0; |
2773 | PyObject *traceback = 0; |
2774 | PyErr_Fetch(&type, &value, &traceback); |
2775 | if (value) { |
2776 | char *tmp; |
2777 | PyObject *old_str = PyObject_Str(value); |
2778 | Py_XINCREF(type)do { if ((type) == __null) ; else ( ((PyObject*)(type))->ob_refcnt ++); } while (0); |
2779 | PyErr_Clear(); |
2780 | if (infront) { |
2781 | PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str)); |
2782 | } else { |
2783 | PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg); |
2784 | } |
2785 | SWIG_Python_str_DelForPy3(tmp); |
2786 | Py_DECREF(old_str)do { if ( --((PyObject*)(old_str))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(old_str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(old_str)))); } while (0); |
2787 | } |
2788 | return 1; |
2789 | } else { |
2790 | return 0; |
2791 | } |
2792 | } |
2793 | |
2794 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2795 | SWIG_Python_ArgFail(int argnum) |
2796 | { |
2797 | if (PyErr_Occurred()) { |
2798 | /* add information about failing argument */ |
2799 | char mesg[256]; |
2800 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); |
2801 | return SWIG_Python_AddErrMesg(mesg, 1); |
2802 | } else { |
2803 | return 0; |
2804 | } |
2805 | } |
2806 | |
2807 | SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char * |
2808 | SwigPyObject_GetDesc(PyObject *self) |
2809 | { |
2810 | SwigPyObject *v = (SwigPyObject *)self; |
2811 | swig_type_info *ty = v ? v->ty : 0; |
2812 | return ty ? ty->str : ""; |
2813 | } |
2814 | |
2815 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
2816 | SWIG_Python_TypeError(const char *type, PyObject *obj) |
2817 | { |
2818 | if (type) { |
2819 | #if defined(SWIG_COBJECT_TYPES) |
2820 | if (obj && SwigPyObject_Check(obj)) { |
2821 | const char *otype = (const char *) SwigPyObject_GetDesc(obj); |
2822 | if (otype) { |
2823 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received", |
2824 | type, otype); |
2825 | return; |
2826 | } |
2827 | } else |
2828 | #endif |
2829 | { |
2830 | const char *otype = (obj ? obj->ob_type->tp_name : 0); |
2831 | if (otype) { |
2832 | PyObject *str = PyObject_Str(obj); |
2833 | const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0; |
2834 | if (cstr) { |
2835 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", |
2836 | type, otype, cstr); |
2837 | SWIG_Python_str_DelForPy3(cstr); |
2838 | } else { |
2839 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", |
2840 | type, otype); |
2841 | } |
2842 | Py_XDECREF(str)do { if ((str) == __null) ; else do { if ( --((PyObject*)(str ))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)( str)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *) (str)))); } while (0); } while (0); |
2843 | return; |
2844 | } |
2845 | } |
2846 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); |
2847 | } else { |
2848 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); |
2849 | } |
2850 | } |
2851 | |
2852 | |
2853 | /* Convert a pointer value, signal an exception on a type mismatch */ |
2854 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void * |
2855 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) { |
2856 | void *result; |
2857 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags)SWIG_Python_ConvertPtrAndOwn(obj, &result, ty, flags, 0) == -1) { |
2858 | PyErr_Clear(); |
2859 | #if SWIG_POINTER_EXCEPTION0 |
2860 | if (flags) { |
2861 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); |
2862 | SWIG_Python_ArgFail(argnum); |
2863 | } |
2864 | #endif |
2865 | } |
2866 | return result; |
2867 | } |
2868 | |
2869 | #ifdef SWIGPYTHON_BUILTIN |
2870 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) int |
2871 | SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) { |
2872 | PyTypeObject *tp = obj->ob_type; |
2873 | PyObject *descr; |
2874 | PyObject *encoded_name; |
2875 | descrsetfunc f; |
2876 | int res = -1; |
2877 | |
2878 | # ifdef Py_USING_UNICODE1 |
2879 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2880 | name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null); |
2881 | if (!name) |
2882 | return -1; |
2883 | } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<28))) != 0)) |
2884 | # else |
2885 | if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) |
2886 | # endif |
2887 | { |
2888 | PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name); |
2889 | return -1; |
2890 | } else { |
2891 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2892 | } |
2893 | |
2894 | if (!tp->tp_dict) { |
2895 | if (PyType_Ready(tp) < 0) |
2896 | goto done; |
2897 | } |
2898 | |
2899 | descr = _PyType_Lookup(tp, name); |
2900 | f = NULL__null; |
2901 | if (descr != NULL__null) |
2902 | f = descr->ob_type->tp_descr_set; |
2903 | if (!f) { |
2904 | if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L <<27))) != 0)) { |
2905 | encoded_name = name; |
2906 | Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++); |
2907 | } else { |
2908 | encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name); |
2909 | } |
2910 | PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name)); |
2911 | Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type )->tp_dealloc)((PyObject *)((PyObject *)(encoded_name)))); } while (0); |
2912 | } else { |
2913 | res = f(descr, obj, value); |
2914 | } |
2915 | |
2916 | done: |
2917 | Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(name)))); } while (0); |
2918 | return res; |
2919 | } |
2920 | #endif |
2921 | |
2922 | |
2923 | #ifdef __cplusplus199711L |
2924 | } |
2925 | #endif |
2926 | |
2927 | |
2928 | |
2929 | #define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0) |
2930 | |
2931 | #define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType( -3), msg); goto fail; } else if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else |
2932 | |
2933 | |
2934 | |
2935 | #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg ); goto fail;; } while(0) do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0) |
2936 | |
2937 | |
2938 | /* -------- TYPES TABLE (BEGIN) -------- */ |
2939 | |
2940 | #define SWIGTYPE_p_GBaseswig_types[0] swig_types[0] |
2941 | #define SWIGTYPE_p_GContainerswig_types[1] swig_types[1] |
2942 | #define SWIGTYPE_p_GFitsswig_types[2] swig_types[2] |
2943 | #define SWIGTYPE_p_GFitsHDUswig_types[3] swig_types[3] |
2944 | #define SWIGTYPE_p_GHealpixswig_types[4] swig_types[4] |
2945 | #define SWIGTYPE_p_GRegistryswig_types[5] swig_types[5] |
2946 | #define SWIGTYPE_p_GSkyDirswig_types[6] swig_types[6] |
2947 | #define SWIGTYPE_p_GSkyPixelswig_types[7] swig_types[7] |
2948 | #define SWIGTYPE_p_GSkyProjectionswig_types[8] swig_types[8] |
2949 | #define SWIGTYPE_p_GSkyRegionswig_types[9] swig_types[9] |
2950 | #define SWIGTYPE_p_GSkyRegionCircleswig_types[10] swig_types[10] |
2951 | #define SWIGTYPE_p_GSkyRegionsswig_types[11] swig_types[11] |
2952 | #define SWIGTYPE_p_GSkymapswig_types[12] swig_types[12] |
2953 | #define SWIGTYPE_p_GVectorswig_types[13] swig_types[13] |
2954 | #define SWIGTYPE_p_GWcsswig_types[14] swig_types[14] |
2955 | #define SWIGTYPE_p_GWcsAITswig_types[15] swig_types[15] |
2956 | #define SWIGTYPE_p_GWcsAZPswig_types[16] swig_types[16] |
2957 | #define SWIGTYPE_p_GWcsCARswig_types[17] swig_types[17] |
2958 | #define SWIGTYPE_p_GWcsMERswig_types[18] swig_types[18] |
2959 | #define SWIGTYPE_p_GWcsRegistryswig_types[19] swig_types[19] |
2960 | #define SWIGTYPE_p_GWcsSTGswig_types[20] swig_types[20] |
2961 | #define SWIGTYPE_p_GWcsTANswig_types[21] swig_types[21] |
2962 | #define SWIGTYPE_p_charswig_types[22] swig_types[22] |
2963 | #define SWIGTYPE_p_doubleswig_types[23] swig_types[23] |
2964 | #define SWIGTYPE_p_std__invalid_argumentswig_types[24] swig_types[24] |
2965 | #define SWIGTYPE_p_swig__SwigPyIteratorswig_types[25] swig_types[25] |
2966 | static swig_type_info *swig_types[27]; |
2967 | static swig_module_info swig_module = {swig_types, 26, 0, 0, 0, 0}; |
2968 | #define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name ) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2969 | #define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module , name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) |
2970 | |
2971 | /* -------- TYPES TABLE (END) -------- */ |
2972 | |
2973 | #if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) <= 0x02000000) |
2974 | # if !defined(SWIG_PYTHON_CLASSIC) |
2975 | # error "This python version requires swig to be run with the '-classic' option" |
2976 | # endif |
2977 | #endif |
2978 | |
2979 | /*----------------------------------------------- |
2980 | @(target):= _sky.so |
2981 | ------------------------------------------------*/ |
2982 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
2983 | # define SWIG_initinit_sky PyInit__sky |
2984 | |
2985 | #else |
2986 | # define SWIG_initinit_sky init_sky |
2987 | |
2988 | #endif |
2989 | #define SWIG_name"_sky" "_sky" |
2990 | |
2991 | #define SWIGVERSION0x020011 0x020011 |
2992 | #define SWIG_VERSION0x020011 SWIGVERSION0x020011 |
2993 | |
2994 | |
2995 | #define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >( a)) const_cast< void * >(static_cast< const void * >(a)) |
2996 | #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)) |
2997 | |
2998 | |
2999 | #include <stdexcept> |
3000 | |
3001 | |
3002 | namespace swig { |
3003 | class SwigPtr_PyObject { |
3004 | protected: |
3005 | PyObject *_obj; |
3006 | |
3007 | public: |
3008 | SwigPtr_PyObject() :_obj(0) |
3009 | { |
3010 | } |
3011 | |
3012 | SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj) |
3013 | { |
3014 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3015 | } |
3016 | |
3017 | SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj) |
3018 | { |
3019 | if (initial_ref) { |
3020 | Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt ++); } while (0); |
3021 | } |
3022 | } |
3023 | |
3024 | SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) |
3025 | { |
3026 | Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj ))->ob_refcnt++); } while (0); |
3027 | 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); |
3028 | _obj = item._obj; |
3029 | return *this; |
3030 | } |
3031 | |
3032 | ~SwigPtr_PyObject() |
3033 | { |
3034 | 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); |
3035 | } |
3036 | |
3037 | operator PyObject *() const |
3038 | { |
3039 | return _obj; |
3040 | } |
3041 | |
3042 | PyObject *operator->() const |
3043 | { |
3044 | return _obj; |
3045 | } |
3046 | }; |
3047 | } |
3048 | |
3049 | |
3050 | namespace swig { |
3051 | struct SwigVar_PyObject : SwigPtr_PyObject { |
3052 | SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { } |
3053 | |
3054 | SwigVar_PyObject & operator = (PyObject* obj) |
3055 | { |
3056 | 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); |
3057 | _obj = obj; |
3058 | return *this; |
3059 | } |
3060 | }; |
3061 | } |
3062 | |
3063 | |
3064 | #include <stddef.h> |
3065 | #include "GException.hpp" |
3066 | #include "GTools.hpp" |
3067 | |
3068 | |
3069 | #include <stdexcept> |
3070 | |
3071 | |
3072 | #if defined(__GNUC__4) |
3073 | # if __GNUC__4 == 2 && __GNUC_MINOR <= 96 |
3074 | # define SWIG_STD_NOMODERN_STL |
3075 | # endif |
3076 | #endif |
3077 | |
3078 | |
3079 | #include <string> |
3080 | #include <stdexcept> |
3081 | #include <stddef.h> |
3082 | |
3083 | |
3084 | #include <string> |
3085 | |
3086 | |
3087 | #include <iostream> |
3088 | |
3089 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
3090 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj)) |
3091 | #else |
3092 | # define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj)) |
3093 | #endif |
3094 | |
3095 | |
3096 | #include <stddef.h> |
3097 | |
3098 | |
3099 | namespace swig { |
3100 | struct stop_iteration { |
3101 | }; |
3102 | |
3103 | struct SwigPyIterator { |
3104 | private: |
3105 | SwigPtr_PyObject _seq; |
3106 | |
3107 | protected: |
3108 | SwigPyIterator(PyObject *seq) : _seq(seq) |
3109 | { |
3110 | } |
3111 | |
3112 | public: |
3113 | virtual ~SwigPyIterator() {} |
3114 | |
3115 | // Access iterator method, required by Python |
3116 | virtual PyObject *value() const = 0; |
3117 | |
3118 | // Forward iterator method, required by Python |
3119 | virtual SwigPyIterator *incr(size_t n = 1) = 0; |
3120 | |
3121 | // Backward iterator method, very common in C++, but not required in Python |
3122 | virtual SwigPyIterator *decr(size_t /*n*/ = 1) |
3123 | { |
3124 | throw stop_iteration(); |
3125 | } |
3126 | |
3127 | // Random access iterator methods, but not required in Python |
3128 | virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const |
3129 | { |
3130 | throw std::invalid_argument("operation not supported"); |
3131 | } |
3132 | |
3133 | virtual bool equal (const SwigPyIterator &/*x*/) const |
3134 | { |
3135 | throw std::invalid_argument("operation not supported"); |
3136 | } |
3137 | |
3138 | // C++ common/needed methods |
3139 | virtual SwigPyIterator *copy() const = 0; |
3140 | |
3141 | PyObject *next() |
3142 | { |
3143 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3144 | PyObject *obj = value(); |
3145 | incr(); |
3146 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3147 | return obj; |
3148 | } |
3149 | |
3150 | /* Make an alias for Python 3.x */ |
3151 | PyObject *__next__() |
3152 | { |
3153 | return next(); |
3154 | } |
3155 | |
3156 | PyObject *previous() |
3157 | { |
3158 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads |
3159 | decr(); |
3160 | PyObject *obj = value(); |
3161 | SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads |
3162 | return obj; |
3163 | } |
3164 | |
3165 | SwigPyIterator *advance(ptrdiff_t n) |
3166 | { |
3167 | return (n > 0) ? incr(n) : decr(-n); |
3168 | } |
3169 | |
3170 | bool operator == (const SwigPyIterator& x) const |
3171 | { |
3172 | return equal(x); |
3173 | } |
3174 | |
3175 | bool operator != (const SwigPyIterator& x) const |
3176 | { |
3177 | return ! operator==(x); |
3178 | } |
3179 | |
3180 | SwigPyIterator& operator += (ptrdiff_t n) |
3181 | { |
3182 | return *advance(n); |
3183 | } |
3184 | |
3185 | SwigPyIterator& operator -= (ptrdiff_t n) |
3186 | { |
3187 | return *advance(-n); |
3188 | } |
3189 | |
3190 | SwigPyIterator* operator + (ptrdiff_t n) const |
3191 | { |
3192 | return copy()->advance(n); |
3193 | } |
3194 | |
3195 | SwigPyIterator* operator - (ptrdiff_t n) const |
3196 | { |
3197 | return copy()->advance(-n); |
3198 | } |
3199 | |
3200 | ptrdiff_t operator - (const SwigPyIterator& x) const |
3201 | { |
3202 | return x.distance(*this); |
3203 | } |
3204 | |
3205 | static swig_type_info* descriptor() { |
3206 | static int init = 0; |
3207 | static swig_type_info* desc = 0; |
3208 | if (!init) { |
3209 | desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *" ); |
3210 | init = 1; |
3211 | } |
3212 | return desc; |
3213 | } |
3214 | }; |
3215 | |
3216 | #if defined(SWIGPYTHON_BUILTIN) |
3217 | inline PyObject* make_output_iterator_builtin (PyObject *pyself) |
3218 | { |
3219 | Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++); |
3220 | return pyself; |
3221 | } |
3222 | #endif |
3223 | } |
3224 | |
3225 | |
3226 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3227 | SWIG_AsVal_double (PyObject *obj, double *val) |
3228 | { |
3229 | int res = SWIG_TypeError-5; |
3230 | if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype ((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))) { |
3231 | if (val) *val = PyFloat_AsDouble(obj); |
3232 | return SWIG_OK(0); |
3233 | } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3234 | if (val) *val = PyInt_AsLong(obj); |
3235 | return SWIG_OK(0); |
3236 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3237 | double v = PyLong_AsDouble(obj); |
3238 | if (!PyErr_Occurred()) { |
3239 | if (val) *val = v; |
3240 | return SWIG_OK(0); |
3241 | } else { |
3242 | PyErr_Clear(); |
3243 | } |
3244 | } |
3245 | #ifdef SWIG_PYTHON_CAST_MODE |
3246 | { |
3247 | int dispatch = 0; |
3248 | double d = PyFloat_AsDouble(obj); |
3249 | if (!PyErr_Occurred()) { |
3250 | if (val) *val = d; |
3251 | return SWIG_AddCast(SWIG_OK)((0)); |
3252 | } else { |
3253 | PyErr_Clear(); |
3254 | } |
3255 | if (!dispatch) { |
3256 | long v = PyLong_AsLong(obj); |
3257 | if (!PyErr_Occurred()) { |
3258 | if (val) *val = v; |
3259 | return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0))); |
3260 | } else { |
3261 | PyErr_Clear(); |
3262 | } |
3263 | } |
3264 | } |
3265 | #endif |
3266 | return res; |
3267 | } |
3268 | |
3269 | |
3270 | #include <float.h> |
3271 | |
3272 | |
3273 | #include <math.h> |
3274 | |
3275 | |
3276 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3277 | SWIG_CanCastAsInteger(double *d, double min, double max) { |
3278 | double x = *d; |
3279 | if ((min <= x && x <= max)) { |
3280 | double fx = floor(x); |
3281 | double cx = ceil(x); |
3282 | double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */ |
3283 | if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) { |
3284 | errno(*__error()) = 0; |
3285 | } else { |
3286 | double summ, reps, diff; |
3287 | if (rd < x) { |
3288 | diff = x - rd; |
3289 | } else if (rd > x) { |
3290 | diff = rd - x; |
3291 | } else { |
3292 | return 1; |
3293 | } |
3294 | summ = rd + x; |
3295 | reps = diff/summ; |
3296 | if (reps < 8*DBL_EPSILON2.2204460492503131e-16) { |
3297 | *d = rd; |
3298 | return 1; |
3299 | } |
3300 | } |
3301 | } |
3302 | return 0; |
3303 | } |
3304 | |
3305 | |
3306 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3307 | SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) |
3308 | { |
3309 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x03000000 |
3310 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3311 | long v = PyInt_AsLong(obj); |
3312 | if (v >= 0) { |
3313 | if (val) *val = v; |
3314 | return SWIG_OK(0); |
3315 | } else { |
3316 | return SWIG_OverflowError-7; |
3317 | } |
3318 | } else |
3319 | #endif |
3320 | if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3321 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3322 | if (!PyErr_Occurred()) { |
3323 | if (val) *val = v; |
3324 | return SWIG_OK(0); |
3325 | } else { |
3326 | PyErr_Clear(); |
3327 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3328 | { |
3329 | long v = PyLong_AsLong(obj); |
3330 | if (!PyErr_Occurred()) { |
3331 | if (v < 0) { |
3332 | return SWIG_OverflowError-7; |
3333 | } |
3334 | } else { |
3335 | PyErr_Clear(); |
3336 | } |
3337 | } |
3338 | #endif |
3339 | } |
3340 | } |
3341 | #ifdef SWIG_PYTHON_CAST_MODE |
3342 | { |
3343 | int dispatch = 0; |
3344 | unsigned long v = PyLong_AsUnsignedLong(obj); |
3345 | if (!PyErr_Occurred()) { |
3346 | if (val) *val = v; |
3347 | return SWIG_AddCast(SWIG_OK)((0)); |
3348 | } else { |
3349 | PyErr_Clear(); |
3350 | } |
3351 | if (!dispatch) { |
3352 | double d; |
3353 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3354 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) { |
3355 | if (val) *val = (unsigned long)(d); |
3356 | return res; |
3357 | } |
3358 | } |
3359 | } |
3360 | #endif |
3361 | return SWIG_TypeError-5; |
3362 | } |
3363 | |
3364 | |
3365 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3366 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) |
3367 | { |
3368 | unsigned long v; |
3369 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); |
3370 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v); |
3371 | return res; |
3372 | } |
3373 | |
3374 | |
3375 | #define SWIG_From_longPyLong_FromLong PyLong_FromLong |
3376 | |
3377 | |
3378 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3379 | SWIG_From_ptrdiff_t (ptrdiff_t value) |
3380 | { |
3381 | return SWIG_From_longPyLong_FromLong (static_cast< long >(value)); |
3382 | } |
3383 | |
3384 | |
3385 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3386 | SWIG_From_bool (bool value) |
3387 | { |
3388 | return PyBool_FromLong(value ? 1 : 0); |
3389 | } |
3390 | |
3391 | |
3392 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3393 | SWIG_AsVal_long (PyObject *obj, long* val) |
3394 | { |
3395 | if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3396 | if (val) *val = PyInt_AsLong(obj); |
3397 | return SWIG_OK(0); |
3398 | } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 24))) != 0)) { |
3399 | long v = PyLong_AsLong(obj); |
3400 | if (!PyErr_Occurred()) { |
3401 | if (val) *val = v; |
3402 | return SWIG_OK(0); |
3403 | } else { |
3404 | PyErr_Clear(); |
3405 | } |
3406 | } |
3407 | #ifdef SWIG_PYTHON_CAST_MODE |
3408 | { |
3409 | int dispatch = 0; |
3410 | long v = PyInt_AsLong(obj); |
3411 | if (!PyErr_Occurred()) { |
3412 | if (val) *val = v; |
3413 | return SWIG_AddCast(SWIG_OK)((0)); |
3414 | } else { |
3415 | PyErr_Clear(); |
3416 | } |
3417 | if (!dispatch) { |
3418 | double d; |
3419 | int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d)); |
3420 | if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) { |
3421 | if (val) *val = (long)(d); |
3422 | return res; |
3423 | } |
3424 | } |
3425 | } |
3426 | #endif |
3427 | return SWIG_TypeError-5; |
3428 | } |
3429 | |
3430 | |
3431 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int |
3432 | SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val) |
3433 | { |
3434 | long v; |
3435 | int res = SWIG_AsVal_long (obj, val ? &v : 0); |
3436 | if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v); |
3437 | return res; |
3438 | } |
3439 | |
3440 | |
3441 | #include <stdexcept> |
3442 | |
3443 | |
3444 | #include <algorithm> |
3445 | |
3446 | |
3447 | #include <vector> |
3448 | |
3449 | |
3450 | #include <utility> |
3451 | |
3452 | |
3453 | #include <map> |
3454 | #include <algorithm> |
3455 | #include <stdexcept> |
3456 | |
3457 | |
3458 | /* Put headers and other declarations here that are needed for compilation */ |
3459 | #include "GSkyDir.hpp" |
3460 | #include "GTools.hpp" |
3461 | |
3462 | |
3463 | #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble |
3464 | |
3465 | SWIGINTERNstatic __attribute__ ((__unused__)) bool GSkyDir___eq__(GSkyDir const *self,GSkyDir const &dir){ |
3466 | return ((*self) == dir); |
3467 | } |
3468 | SWIGINTERNstatic __attribute__ ((__unused__)) bool GSkyDir___ne__(GSkyDir const *self,GSkyDir const &dir){ |
3469 | return ((*self) != dir); |
3470 | } |
3471 | SWIGINTERNstatic __attribute__ ((__unused__)) GSkyDir GSkyDir_copy(GSkyDir *self){ |
3472 | return (*self); |
3473 | } |
3474 | |
3475 | /* Put headers and other declarations here that are needed for compilation */ |
3476 | #include "GSkyPixel.hpp" |
3477 | #include "GTools.hpp" |
3478 | |
3479 | |
3480 | #include <limits.h> |
3481 | #if !defined(SWIG_NO_LLONG_MAX) |
3482 | # if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL) |
3483 | # define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL |
3484 | # define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL) |
3485 | # define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL) |
3486 | # endif |
3487 | #endif |
3488 | |
3489 | |
3490 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3491 | SWIG_AsVal_int (PyObject * obj, int *val) |
3492 | { |
3493 | long v; |
3494 | int res = SWIG_AsVal_long (obj, &v); |
3495 | if (SWIG_IsOK(res)(res >= 0)) { |
3496 | if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) { |
3497 | return SWIG_OverflowError-7; |
3498 | } else { |
3499 | if (val) *val = static_cast< int >(v); |
3500 | } |
3501 | } |
3502 | return res; |
3503 | } |
3504 | |
3505 | |
3506 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject* |
3507 | SWIG_From_int (int value) |
3508 | { |
3509 | return PyInt_FromLong((long) value); |
3510 | } |
3511 | |
3512 | SWIGINTERNstatic __attribute__ ((__unused__)) GSkyPixel GSkyPixel_copy(GSkyPixel *self){ |
3513 | return (*self); |
3514 | } |
3515 | |
3516 | /* Put headers and other declarations here that are needed for compilation */ |
3517 | #include "GSkymap.hpp" |
3518 | #include "GTools.hpp" |
3519 | |
3520 | |
3521 | static int skymap_tuple(PyObject *input, int *ptr) { |
3522 | if (PySequence_Check(input)) { |
3523 | int size = PyObject_LengthPyObject_Size(input); |
3524 | if (size > 2) { |
3525 | PyErr_SetString(PyExc_ValueError,"Too many arguments in tuple"); |
3526 | return 0; |
3527 | } |
3528 | ptr[0] = size; |
3529 | for (int i = 0; i < size; i++) { |
3530 | PyObject *o = PySequence_GetItem(input,i); |
3531 | if (!PyInt_Check(o)((((o)->ob_type)->tp_flags & ((1L<<23))) != 0 )) { |
3532 | Py_XDECREF(o)do { if ((o) == __null) ; else do { if ( --((PyObject*)(o))-> ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(o)))-> ob_type)->tp_dealloc)((PyObject *)((PyObject *)(o)))); } while (0); } while (0); |
3533 | PyErr_SetString(PyExc_ValueError,"Expecting a tuple of integers"); |
3534 | return 0; |
3535 | } |
3536 | ptr[i+1] = (int)PyInt_AsLong(o); |
3537 | Py_DECREF(o)do { if ( --((PyObject*)(o))->ob_refcnt != 0) ; else ( (*( ((PyObject*)((PyObject *)(o)))->ob_type)->tp_dealloc)(( PyObject *)((PyObject *)(o)))); } while (0); |
3538 | } |
3539 | return 1; |
3540 | } |
3541 | else { |
3542 | ptr[0] = 1; |
3543 | if (!PyInt_Check(input)((((input)->ob_type)->tp_flags & ((1L<<23))) != 0)) { |
3544 | PyErr_SetString(PyExc_ValueError,"Expecting an integer"); |
3545 | return 0; |
3546 | } |
3547 | ptr[1] = (int)PyInt_AsLong(input); |
3548 | return 1; |
3549 | } |
3550 | } |
3551 | |
3552 | |
3553 | SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info* |
3554 | SWIG_pchar_descriptor(void) |
3555 | { |
3556 | static int init = 0; |
3557 | static swig_type_info* info = 0; |
3558 | if (!init) { |
3559 | info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char" ); |
3560 | init = 1; |
3561 | } |
3562 | return info; |
3563 | } |
3564 | |
3565 | |
3566 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3567 | SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) |
3568 | { |
3569 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3570 | if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 28))) != 0)) |
3571 | #else |
3572 | if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<< 27))) != 0)) |
3573 | #endif |
3574 | { |
3575 | char *cstr; Py_ssize_t len; |
3576 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3577 | if (!alloc && cptr) { |
3578 | /* We can't allow converting without allocation, since the internal |
3579 | representation of string in Python 3 is UCS-2/UCS-4 but we require |
3580 | a UTF-8 representation. |
3581 | TODO(bhy) More detailed explanation */ |
3582 | return SWIG_RuntimeError-3; |
3583 | } |
3584 | obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj); |
3585 | PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len); |
3586 | if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3587 | #else |
3588 | PyString_AsStringAndSize(obj, &cstr, &len); |
3589 | #endif |
3590 | if (cptr) { |
3591 | if (alloc) { |
3592 | /* |
3593 | In python the user should not be able to modify the inner |
3594 | string representation. To warranty that, if you define |
3595 | SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string |
3596 | buffer is always returned. |
3597 | |
3598 | The default behavior is just to return the pointer value, |
3599 | so, be careful. |
3600 | */ |
3601 | #if defined(SWIG_PYTHON_SAFE_CSTRINGS) |
3602 | if (*alloc != SWIG_OLDOBJ((0))) |
3603 | #else |
3604 | if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) |
3605 | #endif |
3606 | { |
3607 | *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1))); |
3608 | *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3609 | } |
3610 | else { |
3611 | *cptr = cstr; |
3612 | *alloc = SWIG_OLDOBJ((0)); |
3613 | } |
3614 | } else { |
3615 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3616 | assert(0)((void)0); /* Should never reach here in Python 3 */ |
3617 | #endif |
3618 | *cptr = SWIG_Python_str_AsChar(obj); |
3619 | } |
3620 | } |
3621 | if (psize) *psize = len + 1; |
3622 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0))>=0x03000000 |
3623 | 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); |
3624 | #endif |
3625 | return SWIG_OK(0); |
3626 | } else { |
3627 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3628 | if (pchar_descriptor) { |
3629 | void* vptr = 0; |
3630 | if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor , 0, 0) == SWIG_OK(0)) { |
3631 | if (cptr) *cptr = (char *) vptr; |
3632 | if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; |
3633 | if (alloc) *alloc = SWIG_OLDOBJ((0)); |
3634 | return SWIG_OK(0); |
3635 | } |
3636 | } |
3637 | } |
3638 | return SWIG_TypeError-5; |
3639 | } |
3640 | |
3641 | |
3642 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3643 | SWIG_AsPtr_std_string (PyObject * obj, std::string **val) |
3644 | { |
3645 | char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0)); |
3646 | if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc) ) >= 0)) { |
3647 | if (buf) { |
3648 | if (val) *val = new std::string(buf, size - 1); |
3649 | if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf; |
3650 | return SWIG_NEWOBJ((0) | ((1 << 8) << 1)); |
3651 | } else { |
3652 | if (val) *val = 0; |
3653 | return SWIG_OLDOBJ((0)); |
3654 | } |
3655 | } else { |
3656 | static int init = 0; |
3657 | static swig_type_info* descriptor = 0; |
3658 | if (!init) { |
3659 | descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string" " *"); |
3660 | init = 1; |
3661 | } |
3662 | if (descriptor) { |
3663 | std::string *vptr; |
3664 | int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor , 0, 0); |
3665 | if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr; |
3666 | return res; |
3667 | } |
3668 | } |
3669 | return SWIG_ERROR(-1); |
3670 | } |
3671 | |
3672 | |
3673 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
3674 | SWIG_AsVal_bool (PyObject *obj, bool *val) |
3675 | { |
3676 | int r = PyObject_IsTrue(obj); |
3677 | if (r == -1) |
3678 | return SWIG_ERROR(-1); |
3679 | if (val) *val = r ? true : false; |
3680 | return SWIG_OK(0); |
3681 | } |
3682 | |
3683 | SWIGINTERNstatic __attribute__ ((__unused__)) double GSkymap___getitem__(GSkymap *self,int GSkymapInx[]){ |
3684 | if (GSkymapInx[0] == 1) { |
3685 | return (*self)(GSkymapInx[1]); |
3686 | } |
3687 | else { |
3688 | return (*self)(GSkymapInx[1], GSkymapInx[2]); |
3689 | } |
3690 | } |
3691 | SWIGINTERNstatic __attribute__ ((__unused__)) void GSkymap___setitem__(GSkymap *self,int GSkymapInx[],double value){ |
3692 | if (GSkymapInx[0] == 1) { |
3693 | (*self)(GSkymapInx[1]) = value; |
3694 | } |
3695 | else { |
3696 | (*self)(GSkymapInx[1], GSkymapInx[2]) = value; |
3697 | } |
3698 | } |
3699 | SWIGINTERNstatic __attribute__ ((__unused__)) GSkymap GSkymap_copy(GSkymap *self){ |
3700 | return (*self); |
3701 | } |
3702 | |
3703 | /* Put headers and other declarations here that are needed for compilation */ |
3704 | #include "GContainer.hpp" |
3705 | #include "GSkyRegions.hpp" |
3706 | |
3707 | SWIGINTERNstatic __attribute__ ((__unused__)) GSkyRegion *GSkyRegions___getitem__(GSkyRegions *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)", index, self->size()); |
3713 | } |
3714 | } |
3715 | SWIGINTERNstatic __attribute__ ((__unused__)) void GSkyRegions___setitem__(GSkyRegions *self,int const &index,GSkyRegion const &val){ |
3716 | if (index>=0 && index < self->size()) { |
3717 | self->set(index, val); |
3718 | return; |
3719 | } |
3720 | else { |
3721 | throw GException::out_of_range("__setitem__(int)", index, self->size()); |
3722 | } |
3723 | } |
3724 | SWIGINTERNstatic __attribute__ ((__unused__)) GSkyRegions GSkyRegions_copy(GSkyRegions *self){ |
3725 | return (*self); |
3726 | } |
3727 | |
3728 | /* Put headers and other declarations here that are needed for compilation */ |
3729 | #include "GSkyRegion.hpp" |
3730 | #include "GTools.hpp" |
3731 | |
3732 | |
3733 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3734 | SWIG_FromCharPtrAndSize(const char* carray, size_t size) |
3735 | { |
3736 | if (carray) { |
3737 | if (size > INT_MAX2147483647) { |
3738 | swig_type_info* pchar_descriptor = SWIG_pchar_descriptor(); |
3739 | return pchar_descriptor ? |
3740 | SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >( carray), pchar_descriptor, 0) : SWIG_Py_Void(); |
3741 | } else { |
3742 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
3743 | return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size)); |
3744 | #else |
3745 | return PyString_FromStringAndSize(carray, static_cast< int >(size)); |
3746 | #endif |
3747 | } |
3748 | } else { |
3749 | return SWIG_Py_Void(); |
3750 | } |
3751 | } |
3752 | |
3753 | |
3754 | SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject * |
3755 | SWIG_From_std_string (const std::string& s) |
3756 | { |
3757 | return SWIG_FromCharPtrAndSize(s.data(), s.size()); |
3758 | } |
3759 | |
3760 | |
3761 | /* Put headers and other declarations here that are needed for compilation */ |
3762 | #include "GSkyRegionCircle.hpp" |
3763 | #include "GTools.hpp" |
3764 | |
3765 | SWIGINTERNstatic __attribute__ ((__unused__)) GSkyRegionCircle GSkyRegionCircle_copy(GSkyRegionCircle *self){ |
3766 | return (*self); |
3767 | } |
3768 | |
3769 | /* Put headers and other declarations here that are needed for compilation */ |
3770 | #include "GSkyProjection.hpp" |
3771 | #include "GTools.hpp" |
3772 | |
3773 | SWIGINTERNstatic __attribute__ ((__unused__)) bool GSkyProjection___is__(GSkyProjection *self,GSkyProjection const &proj){ |
3774 | return (*self) == proj; |
3775 | } |
3776 | |
3777 | /* Put headers and other declarations here that are needed for compilation */ |
3778 | #include "GHealpix.hpp" |
3779 | |
3780 | SWIGINTERNstatic __attribute__ ((__unused__)) GHealpix GHealpix_copy(GHealpix *self){ |
3781 | return (*self); |
3782 | } |
3783 | |
3784 | /* Put headers and other declarations here that are needed for compilation */ |
3785 | #include "GWcsRegistry.hpp" |
3786 | #include "GTools.hpp" |
3787 | |
3788 | |
3789 | /* Put headers and other declarations here that are needed for compilation */ |
3790 | #include "GWcs.hpp" |
3791 | |
3792 | |
3793 | /* Put headers and other declarations here that are needed for compilation */ |
3794 | #include "GWcsAIT.hpp" |
3795 | |
3796 | SWIGINTERNstatic __attribute__ ((__unused__)) GWcsAIT GWcsAIT_copy(GWcsAIT *self){ |
3797 | return (*self); |
3798 | } |
3799 | |
3800 | /* Put headers and other declarations here that are needed for compilation */ |
3801 | #include "GWcsAZP.hpp" |
3802 | |
3803 | SWIGINTERNstatic __attribute__ ((__unused__)) GWcsAZP GWcsAZP_copy(GWcsAZP *self){ |
3804 | return (*self); |
3805 | } |
3806 | |
3807 | /* Put headers and other declarations here that are needed for compilation */ |
3808 | #include "GWcsCAR.hpp" |
3809 | |
3810 | SWIGINTERNstatic __attribute__ ((__unused__)) GWcsCAR GWcsCAR_copy(GWcsCAR *self){ |
3811 | return (*self); |
3812 | } |
3813 | |
3814 | /* Put headers and other declarations here that are needed for compilation */ |
3815 | #include "GWcsMER.hpp" |
3816 | |
3817 | SWIGINTERNstatic __attribute__ ((__unused__)) GWcsMER GWcsMER_copy(GWcsMER *self){ |
3818 | return (*self); |
3819 | } |
3820 | |
3821 | /* Put headers and other declarations here that are needed for compilation */ |
3822 | #include "GWcsTAN.hpp" |
3823 | |
3824 | SWIGINTERNstatic __attribute__ ((__unused__)) GWcsTAN GWcsTAN_copy(GWcsTAN *self){ |
3825 | return (*self); |
3826 | } |
3827 | |
3828 | /* Put headers and other declarations here that are needed for compilation */ |
3829 | #include "GWcsSTG.hpp" |
3830 | |
3831 | SWIGINTERNstatic __attribute__ ((__unused__)) GWcsSTG GWcsSTG_copy(GWcsSTG *self){ |
3832 | return (*self); |
3833 | } |
3834 | #ifdef __cplusplus199711L |
3835 | extern "C" { |
3836 | #endif |
3837 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3838 | PyObject *resultobj = 0; |
3839 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3840 | void *argp1 = 0 ; |
3841 | int res1 = 0 ; |
3842 | PyObject * obj0 = 0 ; |
3843 | |
3844 | if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail; |
3845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0x1 | 0, 0); |
3846 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3847 | 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); |
3848 | } |
3849 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3850 | delete arg1; |
3851 | resultobj = SWIG_Py_Void(); |
3852 | return resultobj; |
3853 | fail: |
3854 | return NULL__null; |
3855 | } |
3856 | |
3857 | |
3858 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3859 | PyObject *resultobj = 0; |
3860 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3861 | void *argp1 = 0 ; |
3862 | int res1 = 0 ; |
3863 | PyObject * obj0 = 0 ; |
3864 | PyObject *result = 0 ; |
3865 | |
3866 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail; |
3867 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
3868 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3869 | 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); |
3870 | } |
3871 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3872 | try { |
3873 | result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value(); |
3874 | } |
3875 | catch(swig::stop_iteration &_e) { |
3876 | { |
3877 | (void)_e; |
3878 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3879 | SWIG_failgoto fail; |
3880 | } |
3881 | } |
3882 | |
3883 | resultobj = result; |
3884 | return resultobj; |
3885 | fail: |
3886 | return NULL__null; |
3887 | } |
3888 | |
3889 | |
3890 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3891 | PyObject *resultobj = 0; |
3892 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3893 | size_t arg2 ; |
3894 | void *argp1 = 0 ; |
3895 | int res1 = 0 ; |
3896 | size_t val2 ; |
3897 | int ecode2 = 0 ; |
3898 | PyObject * obj0 = 0 ; |
3899 | PyObject * obj1 = 0 ; |
3900 | swig::SwigPyIterator *result = 0 ; |
3901 | |
3902 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail; |
3903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
3904 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3905 | 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); |
3906 | } |
3907 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3908 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
3909 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
3910 | 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); |
3911 | } |
3912 | arg2 = static_cast< size_t >(val2); |
3913 | try { |
3914 | result = (swig::SwigPyIterator *)(arg1)->incr(arg2); |
3915 | } |
3916 | catch(swig::stop_iteration &_e) { |
3917 | { |
3918 | (void)_e; |
3919 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3920 | SWIG_failgoto fail; |
3921 | } |
3922 | } |
3923 | |
3924 | 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[25], 0 | 0); |
3925 | return resultobj; |
3926 | fail: |
3927 | return NULL__null; |
3928 | } |
3929 | |
3930 | |
3931 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3932 | PyObject *resultobj = 0; |
3933 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
3934 | void *argp1 = 0 ; |
3935 | int res1 = 0 ; |
3936 | PyObject * obj0 = 0 ; |
3937 | swig::SwigPyIterator *result = 0 ; |
3938 | |
3939 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail; |
3940 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
3941 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
3942 | 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); |
3943 | } |
3944 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
3945 | try { |
3946 | result = (swig::SwigPyIterator *)(arg1)->incr(); |
3947 | } |
3948 | catch(swig::stop_iteration &_e) { |
3949 | { |
3950 | (void)_e; |
3951 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
3952 | SWIG_failgoto fail; |
3953 | } |
3954 | } |
3955 | |
3956 | 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[25], 0 | 0); |
3957 | return resultobj; |
3958 | fail: |
3959 | return NULL__null; |
3960 | } |
3961 | |
3962 | |
3963 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) { |
3964 | int argc; |
3965 | PyObject *argv[3]; |
3966 | int ii; |
3967 | |
3968 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
3969 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
3970 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
3971 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
3972 | } |
3973 | if (argc == 1) { |
3974 | int _v; |
3975 | void *vptr = 0; |
3976 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25 ], 0, 0); |
3977 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3978 | if (_v) { |
3979 | return _wrap_SwigPyIterator_incr__SWIG_1(self, args); |
3980 | } |
3981 | } |
3982 | if (argc == 2) { |
3983 | int _v; |
3984 | void *vptr = 0; |
3985 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25 ], 0, 0); |
3986 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3987 | if (_v) { |
3988 | { |
3989 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
3990 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
3991 | } |
3992 | if (_v) { |
3993 | return _wrap_SwigPyIterator_incr__SWIG_0(self, args); |
3994 | } |
3995 | } |
3996 | } |
3997 | |
3998 | fail: |
3999 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n" |
4000 | " Possible C/C++ prototypes are:\n" |
4001 | " swig::SwigPyIterator::incr(size_t)\n" |
4002 | " swig::SwigPyIterator::incr()\n"); |
4003 | return 0; |
4004 | } |
4005 | |
4006 | |
4007 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4008 | PyObject *resultobj = 0; |
4009 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4010 | size_t arg2 ; |
4011 | void *argp1 = 0 ; |
4012 | int res1 = 0 ; |
4013 | size_t val2 ; |
4014 | int ecode2 = 0 ; |
4015 | PyObject * obj0 = 0 ; |
4016 | PyObject * obj1 = 0 ; |
4017 | swig::SwigPyIterator *result = 0 ; |
4018 | |
4019 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail; |
4020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4021 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4022 | 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); |
4023 | } |
4024 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4025 | ecode2 = SWIG_AsVal_size_t(obj1, &val2); |
4026 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4027 | 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); |
4028 | } |
4029 | arg2 = static_cast< size_t >(val2); |
4030 | try { |
4031 | result = (swig::SwigPyIterator *)(arg1)->decr(arg2); |
4032 | } |
4033 | catch(swig::stop_iteration &_e) { |
4034 | { |
4035 | (void)_e; |
4036 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4037 | SWIG_failgoto fail; |
4038 | } |
4039 | } |
4040 | |
4041 | 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[25], 0 | 0); |
4042 | return resultobj; |
4043 | fail: |
4044 | return NULL__null; |
4045 | } |
4046 | |
4047 | |
4048 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4049 | PyObject *resultobj = 0; |
4050 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4051 | void *argp1 = 0 ; |
4052 | int res1 = 0 ; |
4053 | PyObject * obj0 = 0 ; |
4054 | swig::SwigPyIterator *result = 0 ; |
4055 | |
4056 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail; |
4057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4058 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4059 | 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); |
4060 | } |
4061 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4062 | try { |
4063 | result = (swig::SwigPyIterator *)(arg1)->decr(); |
4064 | } |
4065 | catch(swig::stop_iteration &_e) { |
4066 | { |
4067 | (void)_e; |
4068 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4069 | SWIG_failgoto fail; |
4070 | } |
4071 | } |
4072 | |
4073 | 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[25], 0 | 0); |
4074 | return resultobj; |
4075 | fail: |
4076 | return NULL__null; |
4077 | } |
4078 | |
4079 | |
4080 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) { |
4081 | int argc; |
4082 | PyObject *argv[3]; |
4083 | int ii; |
4084 | |
4085 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4086 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4087 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4088 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4089 | } |
4090 | if (argc == 1) { |
4091 | int _v; |
4092 | void *vptr = 0; |
4093 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25 ], 0, 0); |
4094 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4095 | if (_v) { |
4096 | return _wrap_SwigPyIterator_decr__SWIG_1(self, args); |
4097 | } |
4098 | } |
4099 | if (argc == 2) { |
4100 | int _v; |
4101 | void *vptr = 0; |
4102 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25 ], 0, 0); |
4103 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4104 | if (_v) { |
4105 | { |
4106 | int res = SWIG_AsVal_size_t(argv[1], NULL__null); |
4107 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4108 | } |
4109 | if (_v) { |
4110 | return _wrap_SwigPyIterator_decr__SWIG_0(self, args); |
4111 | } |
4112 | } |
4113 | } |
4114 | |
4115 | fail: |
4116 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n" |
4117 | " Possible C/C++ prototypes are:\n" |
4118 | " swig::SwigPyIterator::decr(size_t)\n" |
4119 | " swig::SwigPyIterator::decr()\n"); |
4120 | return 0; |
4121 | } |
4122 | |
4123 | |
4124 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4125 | PyObject *resultobj = 0; |
4126 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4127 | swig::SwigPyIterator *arg2 = 0 ; |
4128 | void *argp1 = 0 ; |
4129 | int res1 = 0 ; |
4130 | void *argp2 = 0 ; |
4131 | int res2 = 0 ; |
4132 | PyObject * obj0 = 0 ; |
4133 | PyObject * obj1 = 0 ; |
4134 | ptrdiff_t result; |
4135 | |
4136 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail; |
4137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4138 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4139 | 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); |
4140 | } |
4141 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4142 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25] , 0 | 0, 0); |
4143 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4144 | 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); |
4145 | } |
4146 | if (!argp2) { |
4147 | 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 ); |
4148 | } |
4149 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4150 | try { |
4151 | result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2); |
4152 | } |
4153 | catch(std::invalid_argument &_e) { |
4154 | 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[ 24]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[24], 0x1)); SWIG_failgoto fail; |
4155 | } |
4156 | |
4157 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4158 | return resultobj; |
4159 | fail: |
4160 | return NULL__null; |
4161 | } |
4162 | |
4163 | |
4164 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4165 | PyObject *resultobj = 0; |
4166 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4167 | swig::SwigPyIterator *arg2 = 0 ; |
4168 | void *argp1 = 0 ; |
4169 | int res1 = 0 ; |
4170 | void *argp2 = 0 ; |
4171 | int res2 = 0 ; |
4172 | PyObject * obj0 = 0 ; |
4173 | PyObject * obj1 = 0 ; |
4174 | bool result; |
4175 | |
4176 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail; |
4177 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4178 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4179 | 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); |
4180 | } |
4181 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4182 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25] , 0 | 0, 0); |
4183 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4184 | 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); |
4185 | } |
4186 | if (!argp2) { |
4187 | 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 ); |
4188 | } |
4189 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4190 | try { |
4191 | result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2); |
4192 | } |
4193 | catch(std::invalid_argument &_e) { |
4194 | 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[ 24]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument (static_cast< const std::invalid_argument& >(_e))), swig_types[24], 0x1)); SWIG_failgoto fail; |
4195 | } |
4196 | |
4197 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4198 | return resultobj; |
4199 | fail: |
4200 | return NULL__null; |
4201 | } |
4202 | |
4203 | |
4204 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4205 | PyObject *resultobj = 0; |
4206 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4207 | void *argp1 = 0 ; |
4208 | int res1 = 0 ; |
4209 | PyObject * obj0 = 0 ; |
4210 | swig::SwigPyIterator *result = 0 ; |
4211 | |
4212 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail; |
4213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4214 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4215 | 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); |
4216 | } |
4217 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4218 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy(); |
4219 | 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[25], 0x1 | 0); |
4220 | return resultobj; |
4221 | fail: |
4222 | return NULL__null; |
4223 | } |
4224 | |
4225 | |
4226 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4227 | PyObject *resultobj = 0; |
4228 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4229 | void *argp1 = 0 ; |
4230 | int res1 = 0 ; |
4231 | PyObject * obj0 = 0 ; |
4232 | PyObject *result = 0 ; |
4233 | |
4234 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail; |
4235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4236 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4237 | 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); |
4238 | } |
4239 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4240 | try { |
4241 | result = (PyObject *)(arg1)->next(); |
4242 | } |
4243 | catch(swig::stop_iteration &_e) { |
4244 | { |
4245 | (void)_e; |
4246 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4247 | SWIG_failgoto fail; |
4248 | } |
4249 | } |
4250 | |
4251 | resultobj = result; |
4252 | return resultobj; |
4253 | fail: |
4254 | return NULL__null; |
4255 | } |
4256 | |
4257 | |
4258 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4259 | PyObject *resultobj = 0; |
4260 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4261 | void *argp1 = 0 ; |
4262 | int res1 = 0 ; |
4263 | PyObject * obj0 = 0 ; |
4264 | PyObject *result = 0 ; |
4265 | |
4266 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail; |
4267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4268 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4269 | 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); |
4270 | } |
4271 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4272 | try { |
4273 | result = (PyObject *)(arg1)->__next__(); |
4274 | } |
4275 | catch(swig::stop_iteration &_e) { |
4276 | { |
4277 | (void)_e; |
4278 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4279 | SWIG_failgoto fail; |
4280 | } |
4281 | } |
4282 | |
4283 | resultobj = result; |
4284 | return resultobj; |
4285 | fail: |
4286 | return NULL__null; |
4287 | } |
4288 | |
4289 | |
4290 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4291 | PyObject *resultobj = 0; |
4292 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4293 | void *argp1 = 0 ; |
4294 | int res1 = 0 ; |
4295 | PyObject * obj0 = 0 ; |
4296 | PyObject *result = 0 ; |
4297 | |
4298 | if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail; |
4299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4300 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4301 | 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); |
4302 | } |
4303 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4304 | try { |
4305 | result = (PyObject *)(arg1)->previous(); |
4306 | } |
4307 | catch(swig::stop_iteration &_e) { |
4308 | { |
4309 | (void)_e; |
4310 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4311 | SWIG_failgoto fail; |
4312 | } |
4313 | } |
4314 | |
4315 | resultobj = result; |
4316 | return resultobj; |
4317 | fail: |
4318 | return NULL__null; |
4319 | } |
4320 | |
4321 | |
4322 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4323 | PyObject *resultobj = 0; |
4324 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4325 | ptrdiff_t arg2 ; |
4326 | void *argp1 = 0 ; |
4327 | int res1 = 0 ; |
4328 | ptrdiff_t val2 ; |
4329 | int ecode2 = 0 ; |
4330 | PyObject * obj0 = 0 ; |
4331 | PyObject * obj1 = 0 ; |
4332 | swig::SwigPyIterator *result = 0 ; |
4333 | |
4334 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail; |
4335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4336 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4337 | 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); |
4338 | } |
4339 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4340 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4341 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4342 | 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); |
4343 | } |
4344 | arg2 = static_cast< ptrdiff_t >(val2); |
4345 | try { |
4346 | result = (swig::SwigPyIterator *)(arg1)->advance(arg2); |
4347 | } |
4348 | catch(swig::stop_iteration &_e) { |
4349 | { |
4350 | (void)_e; |
4351 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4352 | SWIG_failgoto fail; |
4353 | } |
4354 | } |
4355 | |
4356 | 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[25], 0 | 0); |
4357 | return resultobj; |
4358 | fail: |
4359 | return NULL__null; |
4360 | } |
4361 | |
4362 | |
4363 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4364 | PyObject *resultobj = 0; |
4365 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4366 | swig::SwigPyIterator *arg2 = 0 ; |
4367 | void *argp1 = 0 ; |
4368 | int res1 = 0 ; |
4369 | void *argp2 = 0 ; |
4370 | int res2 = 0 ; |
4371 | PyObject * obj0 = 0 ; |
4372 | PyObject * obj1 = 0 ; |
4373 | bool result; |
4374 | |
4375 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
4376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4377 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4378 | 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); |
4379 | } |
4380 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4381 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25] , 0 | 0, 0); |
4382 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4383 | 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); |
4384 | } |
4385 | if (!argp2) { |
4386 | 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 ); |
4387 | } |
4388 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4389 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2); |
4390 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4391 | return resultobj; |
4392 | fail: |
4393 | return NULL__null; |
4394 | } |
4395 | |
4396 | |
4397 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4398 | PyObject *resultobj = 0; |
4399 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4400 | swig::SwigPyIterator *arg2 = 0 ; |
4401 | void *argp1 = 0 ; |
4402 | int res1 = 0 ; |
4403 | void *argp2 = 0 ; |
4404 | int res2 = 0 ; |
4405 | PyObject * obj0 = 0 ; |
4406 | PyObject * obj1 = 0 ; |
4407 | bool result; |
4408 | |
4409 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
4410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4411 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4412 | 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); |
4413 | } |
4414 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4415 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25] , 0 | 0, 0); |
4416 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4417 | 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); |
4418 | } |
4419 | if (!argp2) { |
4420 | 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 ); |
4421 | } |
4422 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4423 | result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2); |
4424 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
4425 | return resultobj; |
4426 | fail: |
4427 | return NULL__null; |
4428 | } |
4429 | |
4430 | |
4431 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4432 | PyObject *resultobj = 0; |
4433 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4434 | ptrdiff_t arg2 ; |
4435 | void *argp1 = 0 ; |
4436 | int res1 = 0 ; |
4437 | ptrdiff_t val2 ; |
4438 | int ecode2 = 0 ; |
4439 | PyObject * obj0 = 0 ; |
4440 | PyObject * obj1 = 0 ; |
4441 | swig::SwigPyIterator *result = 0 ; |
4442 | |
4443 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail; |
4444 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0x1 | 0, 0); |
4445 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4446 | 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); |
4447 | } |
4448 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4449 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4450 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4451 | 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); |
4452 | } |
4453 | arg2 = static_cast< ptrdiff_t >(val2); |
4454 | try { |
4455 | result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2); |
4456 | } |
4457 | catch(swig::stop_iteration &_e) { |
4458 | { |
4459 | (void)_e; |
4460 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4461 | SWIG_failgoto fail; |
4462 | } |
4463 | } |
4464 | |
4465 | 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[25], 0x1 | 0); |
4466 | return resultobj; |
4467 | fail: |
4468 | return NULL__null; |
4469 | } |
4470 | |
4471 | |
4472 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4473 | PyObject *resultobj = 0; |
4474 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4475 | ptrdiff_t arg2 ; |
4476 | void *argp1 = 0 ; |
4477 | int res1 = 0 ; |
4478 | ptrdiff_t val2 ; |
4479 | int ecode2 = 0 ; |
4480 | PyObject * obj0 = 0 ; |
4481 | PyObject * obj1 = 0 ; |
4482 | swig::SwigPyIterator *result = 0 ; |
4483 | |
4484 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail; |
4485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0x1 | 0, 0); |
4486 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4487 | 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); |
4488 | } |
4489 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4490 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4491 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4492 | 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); |
4493 | } |
4494 | arg2 = static_cast< ptrdiff_t >(val2); |
4495 | try { |
4496 | result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2); |
4497 | } |
4498 | catch(swig::stop_iteration &_e) { |
4499 | { |
4500 | (void)_e; |
4501 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4502 | SWIG_failgoto fail; |
4503 | } |
4504 | } |
4505 | |
4506 | 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[25], 0x1 | 0); |
4507 | return resultobj; |
4508 | fail: |
4509 | return NULL__null; |
4510 | } |
4511 | |
4512 | |
4513 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4514 | PyObject *resultobj = 0; |
4515 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4516 | ptrdiff_t arg2 ; |
4517 | void *argp1 = 0 ; |
4518 | int res1 = 0 ; |
4519 | ptrdiff_t val2 ; |
4520 | int ecode2 = 0 ; |
4521 | PyObject * obj0 = 0 ; |
4522 | PyObject * obj1 = 0 ; |
4523 | swig::SwigPyIterator *result = 0 ; |
4524 | |
4525 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail; |
4526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4527 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4528 | 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); |
4529 | } |
4530 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4531 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4532 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4533 | 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); |
4534 | } |
4535 | arg2 = static_cast< ptrdiff_t >(val2); |
4536 | try { |
4537 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2); |
4538 | } |
4539 | catch(swig::stop_iteration &_e) { |
4540 | { |
4541 | (void)_e; |
4542 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4543 | SWIG_failgoto fail; |
4544 | } |
4545 | } |
4546 | |
4547 | 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[25], 0x1 | 0); |
4548 | return resultobj; |
4549 | fail: |
4550 | return NULL__null; |
4551 | } |
4552 | |
4553 | |
4554 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4555 | PyObject *resultobj = 0; |
4556 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4557 | ptrdiff_t arg2 ; |
4558 | void *argp1 = 0 ; |
4559 | int res1 = 0 ; |
4560 | ptrdiff_t val2 ; |
4561 | int ecode2 = 0 ; |
4562 | PyObject * obj0 = 0 ; |
4563 | PyObject * obj1 = 0 ; |
4564 | swig::SwigPyIterator *result = 0 ; |
4565 | |
4566 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4568 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4569 | 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); |
4570 | } |
4571 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4572 | ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2); |
4573 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4574 | 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); |
4575 | } |
4576 | arg2 = static_cast< ptrdiff_t >(val2); |
4577 | try { |
4578 | result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2); |
4579 | } |
4580 | catch(swig::stop_iteration &_e) { |
4581 | { |
4582 | (void)_e; |
4583 | SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void()); |
4584 | SWIG_failgoto fail; |
4585 | } |
4586 | } |
4587 | |
4588 | 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[25], 0x1 | 0); |
4589 | return resultobj; |
4590 | fail: |
4591 | return NULL__null; |
4592 | } |
4593 | |
4594 | |
4595 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4596 | PyObject *resultobj = 0; |
4597 | swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ; |
4598 | swig::SwigPyIterator *arg2 = 0 ; |
4599 | void *argp1 = 0 ; |
4600 | int res1 = 0 ; |
4601 | void *argp2 = 0 ; |
4602 | int res2 = 0 ; |
4603 | PyObject * obj0 = 0 ; |
4604 | PyObject * obj1 = 0 ; |
4605 | ptrdiff_t result; |
4606 | |
4607 | if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail; |
4608 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25] , 0 | 0, 0); |
4609 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4610 | 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); |
4611 | } |
4612 | arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1); |
4613 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25] , 0 | 0, 0); |
4614 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
4615 | 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); |
4616 | } |
4617 | if (!argp2) { |
4618 | 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 ); |
4619 | } |
4620 | arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2); |
4621 | result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2); |
4622 | resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result)); |
4623 | return resultobj; |
4624 | fail: |
4625 | return NULL__null; |
4626 | } |
4627 | |
4628 | |
4629 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) { |
4630 | int argc; |
4631 | PyObject *argv[3]; |
4632 | int ii; |
4633 | |
4634 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4635 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4636 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
4637 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4638 | } |
4639 | if (argc == 2) { |
4640 | int _v; |
4641 | void *vptr = 0; |
4642 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25 ], 0, 0); |
4643 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4644 | if (_v) { |
4645 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[25], 0, 0 ); |
4646 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4647 | if (_v) { |
4648 | return _wrap_SwigPyIterator___sub____SWIG_1(self, args); |
4649 | } |
4650 | } |
4651 | } |
4652 | if (argc == 2) { |
4653 | int _v; |
4654 | void *vptr = 0; |
4655 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25 ], 0, 0); |
4656 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4657 | if (_v) { |
4658 | { |
4659 | int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null); |
4660 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4661 | } |
4662 | if (_v) { |
4663 | return _wrap_SwigPyIterator___sub____SWIG_0(self, args); |
4664 | } |
4665 | } |
4666 | } |
4667 | |
4668 | fail: |
4669 | Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt ++); |
4670 | return Py_NotImplemented(&_Py_NotImplementedStruct); |
4671 | } |
4672 | |
4673 | |
4674 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4675 | PyObject *obj; |
4676 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
4677 | SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[25], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
4678 | return SWIG_Py_Void(); |
4679 | } |
4680 | |
4681 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyDir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4682 | PyObject *resultobj = 0; |
4683 | GSkyDir *result = 0 ; |
4684 | |
4685 | if (!PyArg_ParseTuple(args,(char *)":new_GSkyDir")) SWIG_failgoto fail; |
4686 | { |
4687 | try { |
4688 | result = (GSkyDir *)new GSkyDir(); |
4689 | } |
4690 | catch (const GException::out_of_range& e) { |
4691 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4692 | } |
4693 | catch (const GExceptionHandler& e) { |
4694 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4695 | } |
4696 | catch (const std::exception& e) { |
4697 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4698 | } |
4699 | } |
4700 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyDir, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
4701 | return resultobj; |
4702 | fail: |
4703 | return NULL__null; |
4704 | } |
4705 | |
4706 | |
4707 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyDir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4708 | PyObject *resultobj = 0; |
4709 | GSkyDir *arg1 = 0 ; |
4710 | void *argp1 = 0 ; |
4711 | int res1 = 0 ; |
4712 | PyObject * obj0 = 0 ; |
4713 | GSkyDir *result = 0 ; |
4714 | |
4715 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyDir",&obj0)) SWIG_failgoto fail; |
4716 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
4717 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkyDir" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkyDir" "', argument " "1"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
4719 | } |
4720 | if (!argp1) { |
4721 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkyDir" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkyDir" "', argument " "1"" of type '" "GSkyDir const &" "'"); goto fail; } while(0); |
4722 | } |
4723 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
4724 | { |
4725 | try { |
4726 | result = (GSkyDir *)new GSkyDir((GSkyDir const &)*arg1); |
4727 | } |
4728 | catch (const GException::out_of_range& e) { |
4729 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4730 | } |
4731 | catch (const GExceptionHandler& e) { |
4732 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4733 | } |
4734 | catch (const std::exception& e) { |
4735 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4736 | } |
4737 | } |
4738 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyDir, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[6], (( 0x1 << 1) | 0x1) | 0); |
4739 | return resultobj; |
4740 | fail: |
4741 | return NULL__null; |
4742 | } |
4743 | |
4744 | |
4745 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyDir(PyObject *self, PyObject *args) { |
4746 | int argc; |
4747 | PyObject *argv[2]; |
4748 | int ii; |
4749 | |
4750 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
4751 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
4752 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
4753 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
4754 | } |
4755 | if (argc == 0) { |
4756 | return _wrap_new_GSkyDir__SWIG_0(self, args); |
4757 | } |
4758 | if (argc == 1) { |
4759 | int _v; |
4760 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[6], 0, 0); |
4761 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
4762 | if (_v) { |
4763 | return _wrap_new_GSkyDir__SWIG_1(self, args); |
4764 | } |
4765 | } |
4766 | |
4767 | fail: |
4768 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GSkyDir'.\n" |
4769 | " Possible C/C++ prototypes are:\n" |
4770 | " GSkyDir::GSkyDir()\n" |
4771 | " GSkyDir::GSkyDir(GSkyDir const &)\n"); |
4772 | return 0; |
4773 | } |
4774 | |
4775 | |
4776 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSkyDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4777 | PyObject *resultobj = 0; |
4778 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
4779 | void *argp1 = 0 ; |
4780 | int res1 = 0 ; |
4781 | PyObject * obj0 = 0 ; |
4782 | |
4783 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GSkyDir",&obj0)) SWIG_failgoto fail; |
4784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0x1 | 0, 0); |
4785 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSkyDir" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GSkyDir" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
4787 | } |
4788 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
4789 | { |
4790 | try { |
4791 | delete arg1; |
4792 | } |
4793 | catch (const GException::out_of_range& e) { |
4794 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4795 | } |
4796 | catch (const GExceptionHandler& e) { |
4797 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4798 | } |
4799 | catch (const std::exception& e) { |
4800 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4801 | } |
4802 | } |
4803 | resultobj = SWIG_Py_Void(); |
4804 | return resultobj; |
4805 | fail: |
4806 | return NULL__null; |
4807 | } |
4808 | |
4809 | |
4810 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4811 | PyObject *resultobj = 0; |
4812 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
4813 | void *argp1 = 0 ; |
4814 | int res1 = 0 ; |
4815 | PyObject * obj0 = 0 ; |
4816 | |
4817 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_clear",&obj0)) SWIG_failgoto fail; |
4818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
4819 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_clear" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_clear" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
4821 | } |
4822 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
4823 | { |
4824 | try { |
4825 | (arg1)->clear(); |
4826 | } |
4827 | catch (const GException::out_of_range& e) { |
4828 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4829 | } |
4830 | catch (const GExceptionHandler& e) { |
4831 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4832 | } |
4833 | catch (const std::exception& e) { |
4834 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4835 | } |
4836 | } |
4837 | resultobj = SWIG_Py_Void(); |
4838 | return resultobj; |
4839 | fail: |
4840 | return NULL__null; |
4841 | } |
4842 | |
4843 | |
4844 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4845 | PyObject *resultobj = 0; |
4846 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
4847 | void *argp1 = 0 ; |
4848 | int res1 = 0 ; |
4849 | PyObject * obj0 = 0 ; |
4850 | GSkyDir *result = 0 ; |
4851 | |
4852 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_clone",&obj0)) SWIG_failgoto fail; |
4853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
4854 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_clone" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_clone" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
4856 | } |
4857 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
4858 | { |
4859 | try { |
4860 | result = (GSkyDir *)((GSkyDir const *)arg1)->clone(); |
4861 | } |
4862 | catch (const GException::out_of_range& e) { |
4863 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4864 | } |
4865 | catch (const GExceptionHandler& e) { |
4866 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4867 | } |
4868 | catch (const std::exception& e) { |
4869 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4870 | } |
4871 | } |
4872 | 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[6], 0 | 0); |
4873 | return resultobj; |
4874 | fail: |
4875 | return NULL__null; |
4876 | } |
4877 | |
4878 | |
4879 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_radec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4880 | PyObject *resultobj = 0; |
4881 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
4882 | double *arg2 = 0 ; |
4883 | double *arg3 = 0 ; |
4884 | void *argp1 = 0 ; |
4885 | int res1 = 0 ; |
4886 | double temp2 ; |
4887 | double val2 ; |
4888 | int ecode2 = 0 ; |
4889 | double temp3 ; |
4890 | double val3 ; |
4891 | int ecode3 = 0 ; |
4892 | PyObject * obj0 = 0 ; |
4893 | PyObject * obj1 = 0 ; |
4894 | PyObject * obj2 = 0 ; |
4895 | |
4896 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyDir_radec",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
4897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
4898 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_radec" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_radec" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
4900 | } |
4901 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
4902 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
4903 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4904 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyDir_radec" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyDir_radec" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
4905 | } |
4906 | temp2 = static_cast< double >(val2); |
4907 | arg2 = &temp2; |
4908 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
4909 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
4910 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkyDir_radec" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkyDir_radec" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
4911 | } |
4912 | temp3 = static_cast< double >(val3); |
4913 | arg3 = &temp3; |
4914 | { |
4915 | try { |
4916 | (arg1)->radec((double const &)*arg2,(double const &)*arg3); |
4917 | } |
4918 | catch (const GException::out_of_range& e) { |
4919 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4920 | } |
4921 | catch (const GExceptionHandler& e) { |
4922 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4923 | } |
4924 | catch (const std::exception& e) { |
4925 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4926 | } |
4927 | } |
4928 | resultobj = SWIG_Py_Void(); |
4929 | return resultobj; |
4930 | fail: |
4931 | return NULL__null; |
4932 | } |
4933 | |
4934 | |
4935 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_radec_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4936 | PyObject *resultobj = 0; |
4937 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
4938 | double *arg2 = 0 ; |
4939 | double *arg3 = 0 ; |
4940 | void *argp1 = 0 ; |
4941 | int res1 = 0 ; |
4942 | double temp2 ; |
4943 | double val2 ; |
4944 | int ecode2 = 0 ; |
4945 | double temp3 ; |
4946 | double val3 ; |
4947 | int ecode3 = 0 ; |
4948 | PyObject * obj0 = 0 ; |
4949 | PyObject * obj1 = 0 ; |
4950 | PyObject * obj2 = 0 ; |
4951 | |
4952 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyDir_radec_deg",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
4953 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
4954 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
4955 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_radec_deg" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_radec_deg" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
4956 | } |
4957 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
4958 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
4959 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
4960 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyDir_radec_deg" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyDir_radec_deg" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
4961 | } |
4962 | temp2 = static_cast< double >(val2); |
4963 | arg2 = &temp2; |
4964 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
4965 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
4966 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkyDir_radec_deg" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkyDir_radec_deg" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
4967 | } |
4968 | temp3 = static_cast< double >(val3); |
4969 | arg3 = &temp3; |
4970 | { |
4971 | try { |
4972 | (arg1)->radec_deg((double const &)*arg2,(double const &)*arg3); |
4973 | } |
4974 | catch (const GException::out_of_range& e) { |
4975 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
4976 | } |
4977 | catch (const GExceptionHandler& e) { |
4978 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4979 | } |
4980 | catch (const std::exception& e) { |
4981 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
4982 | } |
4983 | } |
4984 | resultobj = SWIG_Py_Void(); |
4985 | return resultobj; |
4986 | fail: |
4987 | return NULL__null; |
4988 | } |
4989 | |
4990 | |
4991 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_lb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4992 | PyObject *resultobj = 0; |
4993 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
4994 | double *arg2 = 0 ; |
4995 | double *arg3 = 0 ; |
4996 | void *argp1 = 0 ; |
4997 | int res1 = 0 ; |
4998 | double temp2 ; |
4999 | double val2 ; |
5000 | int ecode2 = 0 ; |
5001 | double temp3 ; |
5002 | double val3 ; |
5003 | int ecode3 = 0 ; |
5004 | PyObject * obj0 = 0 ; |
5005 | PyObject * obj1 = 0 ; |
5006 | PyObject * obj2 = 0 ; |
5007 | |
5008 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyDir_lb",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5009 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5010 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5011 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_lb" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_lb" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
5012 | } |
5013 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5014 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5015 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5016 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyDir_lb" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyDir_lb" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
5017 | } |
5018 | temp2 = static_cast< double >(val2); |
5019 | arg2 = &temp2; |
5020 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
5021 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5022 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkyDir_lb" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkyDir_lb" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
5023 | } |
5024 | temp3 = static_cast< double >(val3); |
5025 | arg3 = &temp3; |
5026 | { |
5027 | try { |
5028 | (arg1)->lb((double const &)*arg2,(double const &)*arg3); |
5029 | } |
5030 | catch (const GException::out_of_range& e) { |
5031 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5032 | } |
5033 | catch (const GExceptionHandler& e) { |
5034 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5035 | } |
5036 | catch (const std::exception& e) { |
5037 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5038 | } |
5039 | } |
5040 | resultobj = SWIG_Py_Void(); |
5041 | return resultobj; |
5042 | fail: |
5043 | return NULL__null; |
5044 | } |
5045 | |
5046 | |
5047 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_lb_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5048 | PyObject *resultobj = 0; |
5049 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5050 | double *arg2 = 0 ; |
5051 | double *arg3 = 0 ; |
5052 | void *argp1 = 0 ; |
5053 | int res1 = 0 ; |
5054 | double temp2 ; |
5055 | double val2 ; |
5056 | int ecode2 = 0 ; |
5057 | double temp3 ; |
5058 | double val3 ; |
5059 | int ecode3 = 0 ; |
5060 | PyObject * obj0 = 0 ; |
5061 | PyObject * obj1 = 0 ; |
5062 | PyObject * obj2 = 0 ; |
5063 | |
5064 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyDir_lb_deg",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5065 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5066 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_lb_deg" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_lb_deg" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
5068 | } |
5069 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5070 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5071 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5072 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyDir_lb_deg" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyDir_lb_deg" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
5073 | } |
5074 | temp2 = static_cast< double >(val2); |
5075 | arg2 = &temp2; |
5076 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
5077 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5078 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkyDir_lb_deg" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkyDir_lb_deg" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
5079 | } |
5080 | temp3 = static_cast< double >(val3); |
5081 | arg3 = &temp3; |
5082 | { |
5083 | try { |
5084 | (arg1)->lb_deg((double const &)*arg2,(double const &)*arg3); |
5085 | } |
5086 | catch (const GException::out_of_range& e) { |
5087 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5088 | } |
5089 | catch (const GExceptionHandler& e) { |
5090 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5091 | } |
5092 | catch (const std::exception& e) { |
5093 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5094 | } |
5095 | } |
5096 | resultobj = SWIG_Py_Void(); |
5097 | return resultobj; |
5098 | fail: |
5099 | return NULL__null; |
5100 | } |
5101 | |
5102 | |
5103 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_celvector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5104 | PyObject *resultobj = 0; |
5105 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5106 | GVector *arg2 = 0 ; |
5107 | void *argp1 = 0 ; |
5108 | int res1 = 0 ; |
5109 | void *argp2 = 0 ; |
5110 | int res2 = 0 ; |
5111 | PyObject * obj0 = 0 ; |
5112 | PyObject * obj1 = 0 ; |
5113 | |
5114 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyDir_celvector",&obj0,&obj1)) SWIG_failgoto fail; |
5115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5116 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_celvector" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_celvector" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
5118 | } |
5119 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5120 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GVector, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13] , 0 | 0, 0); |
5121 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5122 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyDir_celvector" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyDir_celvector" "', argument " "2"" of type '" "GVector const &""'"); goto fail; } while (0); |
5123 | } |
5124 | if (!argp2) { |
5125 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyDir_celvector" "', argument " "2"" of type '" "GVector const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyDir_celvector" "', argument " "2"" of type '" "GVector const &""'"); goto fail; } while(0); |
5126 | } |
5127 | arg2 = reinterpret_cast< GVector * >(argp2); |
5128 | { |
5129 | try { |
5130 | (arg1)->celvector((GVector const &)*arg2); |
5131 | } |
5132 | catch (const GException::out_of_range& e) { |
5133 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5134 | } |
5135 | catch (const GExceptionHandler& e) { |
5136 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5137 | } |
5138 | catch (const std::exception& e) { |
5139 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5140 | } |
5141 | } |
5142 | resultobj = SWIG_Py_Void(); |
5143 | return resultobj; |
5144 | fail: |
5145 | return NULL__null; |
5146 | } |
5147 | |
5148 | |
5149 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_rotate_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5150 | PyObject *resultobj = 0; |
5151 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5152 | double *arg2 = 0 ; |
5153 | double *arg3 = 0 ; |
5154 | void *argp1 = 0 ; |
5155 | int res1 = 0 ; |
5156 | double temp2 ; |
5157 | double val2 ; |
5158 | int ecode2 = 0 ; |
5159 | double temp3 ; |
5160 | double val3 ; |
5161 | int ecode3 = 0 ; |
5162 | PyObject * obj0 = 0 ; |
5163 | PyObject * obj1 = 0 ; |
5164 | PyObject * obj2 = 0 ; |
5165 | |
5166 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyDir_rotate_deg",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
5167 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5168 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5169 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_rotate_deg" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_rotate_deg" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
5170 | } |
5171 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5172 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
5173 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
5174 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyDir_rotate_deg" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyDir_rotate_deg" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
5175 | } |
5176 | temp2 = static_cast< double >(val2); |
5177 | arg2 = &temp2; |
5178 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
5179 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
5180 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkyDir_rotate_deg" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkyDir_rotate_deg" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
5181 | } |
5182 | temp3 = static_cast< double >(val3); |
5183 | arg3 = &temp3; |
5184 | { |
5185 | try { |
5186 | (arg1)->rotate_deg((double const &)*arg2,(double const &)*arg3); |
5187 | } |
5188 | catch (const GException::out_of_range& e) { |
5189 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5190 | } |
5191 | catch (const GExceptionHandler& e) { |
5192 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5193 | } |
5194 | catch (const std::exception& e) { |
5195 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5196 | } |
5197 | } |
5198 | resultobj = SWIG_Py_Void(); |
5199 | return resultobj; |
5200 | fail: |
5201 | return NULL__null; |
5202 | } |
5203 | |
5204 | |
5205 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_l(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5206 | PyObject *resultobj = 0; |
5207 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5208 | void *argp1 = 0 ; |
5209 | int res1 = 0 ; |
5210 | PyObject * obj0 = 0 ; |
5211 | double *result = 0 ; |
5212 | |
5213 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_l",&obj0)) SWIG_failgoto fail; |
5214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5215 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_l" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_l" "', argument " "1" " of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5217 | } |
5218 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5219 | { |
5220 | try { |
5221 | result = (double *) &((GSkyDir const *)arg1)->l(); |
5222 | } |
5223 | catch (const GException::out_of_range& e) { |
5224 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5225 | } |
5226 | catch (const GExceptionHandler& e) { |
5227 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5228 | } |
5229 | catch (const std::exception& e) { |
5230 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5231 | } |
5232 | } |
5233 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5234 | return resultobj; |
5235 | fail: |
5236 | return NULL__null; |
5237 | } |
5238 | |
5239 | |
5240 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_b(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5241 | PyObject *resultobj = 0; |
5242 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5243 | void *argp1 = 0 ; |
5244 | int res1 = 0 ; |
5245 | PyObject * obj0 = 0 ; |
5246 | double *result = 0 ; |
5247 | |
5248 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_b",&obj0)) SWIG_failgoto fail; |
5249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5250 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_b" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_b" "', argument " "1" " of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5252 | } |
5253 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5254 | { |
5255 | try { |
5256 | result = (double *) &((GSkyDir const *)arg1)->b(); |
5257 | } |
5258 | catch (const GException::out_of_range& e) { |
5259 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5260 | } |
5261 | catch (const GExceptionHandler& e) { |
5262 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5263 | } |
5264 | catch (const std::exception& e) { |
5265 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5266 | } |
5267 | } |
5268 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5269 | return resultobj; |
5270 | fail: |
5271 | return NULL__null; |
5272 | } |
5273 | |
5274 | |
5275 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_ra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5276 | PyObject *resultobj = 0; |
5277 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5278 | void *argp1 = 0 ; |
5279 | int res1 = 0 ; |
5280 | PyObject * obj0 = 0 ; |
5281 | double *result = 0 ; |
5282 | |
5283 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_ra",&obj0)) SWIG_failgoto fail; |
5284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5285 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_ra" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_ra" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5287 | } |
5288 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5289 | { |
5290 | try { |
5291 | result = (double *) &((GSkyDir const *)arg1)->ra(); |
5292 | } |
5293 | catch (const GException::out_of_range& e) { |
5294 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5295 | } |
5296 | catch (const GExceptionHandler& e) { |
5297 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5298 | } |
5299 | catch (const std::exception& e) { |
5300 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5301 | } |
5302 | } |
5303 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5304 | return resultobj; |
5305 | fail: |
5306 | return NULL__null; |
5307 | } |
5308 | |
5309 | |
5310 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_dec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5311 | PyObject *resultobj = 0; |
5312 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5313 | void *argp1 = 0 ; |
5314 | int res1 = 0 ; |
5315 | PyObject * obj0 = 0 ; |
5316 | double *result = 0 ; |
5317 | |
5318 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_dec",&obj0)) SWIG_failgoto fail; |
5319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5320 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_dec" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_dec" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5322 | } |
5323 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5324 | { |
5325 | try { |
5326 | result = (double *) &((GSkyDir const *)arg1)->dec(); |
5327 | } |
5328 | catch (const GException::out_of_range& e) { |
5329 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5330 | } |
5331 | catch (const GExceptionHandler& e) { |
5332 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5333 | } |
5334 | catch (const std::exception& e) { |
5335 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5336 | } |
5337 | } |
5338 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
5339 | return resultobj; |
5340 | fail: |
5341 | return NULL__null; |
5342 | } |
5343 | |
5344 | |
5345 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_l_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5346 | PyObject *resultobj = 0; |
5347 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5348 | void *argp1 = 0 ; |
5349 | int res1 = 0 ; |
5350 | PyObject * obj0 = 0 ; |
5351 | double result; |
5352 | |
5353 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_l_deg",&obj0)) SWIG_failgoto fail; |
5354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5355 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_l_deg" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_l_deg" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5357 | } |
5358 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5359 | { |
5360 | try { |
5361 | result = (double)((GSkyDir const *)arg1)->l_deg(); |
5362 | } |
5363 | catch (const GException::out_of_range& e) { |
5364 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5365 | } |
5366 | catch (const GExceptionHandler& e) { |
5367 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5368 | } |
5369 | catch (const std::exception& e) { |
5370 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5371 | } |
5372 | } |
5373 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5374 | return resultobj; |
5375 | fail: |
5376 | return NULL__null; |
5377 | } |
5378 | |
5379 | |
5380 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_b_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5381 | PyObject *resultobj = 0; |
5382 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5383 | void *argp1 = 0 ; |
5384 | int res1 = 0 ; |
5385 | PyObject * obj0 = 0 ; |
5386 | double result; |
5387 | |
5388 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_b_deg",&obj0)) SWIG_failgoto fail; |
5389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5390 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_b_deg" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_b_deg" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5392 | } |
5393 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5394 | { |
5395 | try { |
5396 | result = (double)((GSkyDir const *)arg1)->b_deg(); |
5397 | } |
5398 | catch (const GException::out_of_range& e) { |
5399 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5400 | } |
5401 | catch (const GExceptionHandler& e) { |
5402 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5403 | } |
5404 | catch (const std::exception& e) { |
5405 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5406 | } |
5407 | } |
5408 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5409 | return resultobj; |
5410 | fail: |
5411 | return NULL__null; |
5412 | } |
5413 | |
5414 | |
5415 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_ra_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5416 | PyObject *resultobj = 0; |
5417 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5418 | void *argp1 = 0 ; |
5419 | int res1 = 0 ; |
5420 | PyObject * obj0 = 0 ; |
5421 | double result; |
5422 | |
5423 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_ra_deg",&obj0)) SWIG_failgoto fail; |
5424 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5425 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_ra_deg" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_ra_deg" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5427 | } |
5428 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5429 | { |
5430 | try { |
5431 | result = (double)((GSkyDir const *)arg1)->ra_deg(); |
5432 | } |
5433 | catch (const GException::out_of_range& e) { |
5434 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5435 | } |
5436 | catch (const GExceptionHandler& e) { |
5437 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5438 | } |
5439 | catch (const std::exception& e) { |
5440 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5441 | } |
5442 | } |
5443 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5444 | return resultobj; |
5445 | fail: |
5446 | return NULL__null; |
5447 | } |
5448 | |
5449 | |
5450 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_dec_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5451 | PyObject *resultobj = 0; |
5452 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5453 | void *argp1 = 0 ; |
5454 | int res1 = 0 ; |
5455 | PyObject * obj0 = 0 ; |
5456 | double result; |
5457 | |
5458 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_dec_deg",&obj0)) SWIG_failgoto fail; |
5459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5460 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_dec_deg" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_dec_deg" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5462 | } |
5463 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5464 | { |
5465 | try { |
5466 | result = (double)((GSkyDir const *)arg1)->dec_deg(); |
5467 | } |
5468 | catch (const GException::out_of_range& e) { |
5469 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5470 | } |
5471 | catch (const GExceptionHandler& e) { |
5472 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5473 | } |
5474 | catch (const std::exception& e) { |
5475 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5476 | } |
5477 | } |
5478 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5479 | return resultobj; |
5480 | fail: |
5481 | return NULL__null; |
5482 | } |
5483 | |
5484 | |
5485 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_celvector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5486 | PyObject *resultobj = 0; |
5487 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5488 | void *argp1 = 0 ; |
5489 | int res1 = 0 ; |
5490 | PyObject * obj0 = 0 ; |
5491 | GVector result; |
5492 | |
5493 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_celvector",&obj0)) SWIG_failgoto fail; |
5494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5495 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_celvector" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_celvector" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5497 | } |
5498 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5499 | { |
5500 | try { |
5501 | result = ((GSkyDir const *)arg1)->celvector(); |
5502 | } |
5503 | catch (const GException::out_of_range& e) { |
5504 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5505 | } |
5506 | catch (const GExceptionHandler& e) { |
5507 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5508 | } |
5509 | catch (const std::exception& e) { |
5510 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5511 | } |
5512 | } |
5513 | resultobj = SWIG_NewPointerObj((new GVector(static_cast< const GVector& >(result))), SWIGTYPE_p_GVector, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GVector(static_cast< const GVector& >(result))), swig_types[13], 0x1 | 0); |
5514 | return resultobj; |
5515 | fail: |
5516 | return NULL__null; |
5517 | } |
5518 | |
5519 | |
5520 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_celvector(PyObject *self, PyObject *args) { |
5521 | int argc; |
5522 | PyObject *argv[3]; |
5523 | int ii; |
5524 | |
5525 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
5526 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
5527 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
5528 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
5529 | } |
5530 | if (argc == 1) { |
5531 | int _v; |
5532 | void *vptr = 0; |
5533 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
5534 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5535 | if (_v) { |
5536 | return _wrap_GSkyDir_celvector__SWIG_1(self, args); |
5537 | } |
5538 | } |
5539 | if (argc == 2) { |
5540 | int _v; |
5541 | void *vptr = 0; |
5542 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
5543 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5544 | if (_v) { |
5545 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[13], 0, 0 ); |
5546 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
5547 | if (_v) { |
5548 | return _wrap_GSkyDir_celvector__SWIG_0(self, args); |
5549 | } |
5550 | } |
5551 | } |
5552 | |
5553 | fail: |
5554 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyDir_celvector'.\n" |
5555 | " Possible C/C++ prototypes are:\n" |
5556 | " GSkyDir::celvector(GVector const &)\n" |
5557 | " GSkyDir::celvector() const\n"); |
5558 | return 0; |
5559 | } |
5560 | |
5561 | |
5562 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_dist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5563 | PyObject *resultobj = 0; |
5564 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5565 | GSkyDir *arg2 = 0 ; |
5566 | void *argp1 = 0 ; |
5567 | int res1 = 0 ; |
5568 | void *argp2 = 0 ; |
5569 | int res2 = 0 ; |
5570 | PyObject * obj0 = 0 ; |
5571 | PyObject * obj1 = 0 ; |
5572 | double result; |
5573 | |
5574 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyDir_dist",&obj0,&obj1)) SWIG_failgoto fail; |
5575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5576 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_dist" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_dist" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5578 | } |
5579 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5580 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
5581 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5582 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyDir_dist" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyDir_dist" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
5583 | } |
5584 | if (!argp2) { |
5585 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyDir_dist" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyDir_dist" "', argument " "2"" of type '" "GSkyDir const &" "'"); goto fail; } while(0); |
5586 | } |
5587 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
5588 | { |
5589 | try { |
5590 | result = (double)((GSkyDir const *)arg1)->dist((GSkyDir const &)*arg2); |
5591 | } |
5592 | catch (const GException::out_of_range& e) { |
5593 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5594 | } |
5595 | catch (const GExceptionHandler& e) { |
5596 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5597 | } |
5598 | catch (const std::exception& e) { |
5599 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5600 | } |
5601 | } |
5602 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5603 | return resultobj; |
5604 | fail: |
5605 | return NULL__null; |
5606 | } |
5607 | |
5608 | |
5609 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_dist_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5610 | PyObject *resultobj = 0; |
5611 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5612 | GSkyDir *arg2 = 0 ; |
5613 | void *argp1 = 0 ; |
5614 | int res1 = 0 ; |
5615 | void *argp2 = 0 ; |
5616 | int res2 = 0 ; |
5617 | PyObject * obj0 = 0 ; |
5618 | PyObject * obj1 = 0 ; |
5619 | double result; |
5620 | |
5621 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyDir_dist_deg",&obj0,&obj1)) SWIG_failgoto fail; |
5622 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5623 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_dist_deg" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_dist_deg" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5625 | } |
5626 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5627 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
5628 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5629 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyDir_dist_deg" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyDir_dist_deg" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
5630 | } |
5631 | if (!argp2) { |
5632 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyDir_dist_deg" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyDir_dist_deg" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
5633 | } |
5634 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
5635 | { |
5636 | try { |
5637 | result = (double)((GSkyDir const *)arg1)->dist_deg((GSkyDir const &)*arg2); |
5638 | } |
5639 | catch (const GException::out_of_range& e) { |
5640 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5641 | } |
5642 | catch (const GExceptionHandler& e) { |
5643 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5644 | } |
5645 | catch (const std::exception& e) { |
5646 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5647 | } |
5648 | } |
5649 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5650 | return resultobj; |
5651 | fail: |
5652 | return NULL__null; |
5653 | } |
5654 | |
5655 | |
5656 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_posang(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5657 | PyObject *resultobj = 0; |
5658 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5659 | GSkyDir *arg2 = 0 ; |
5660 | void *argp1 = 0 ; |
5661 | int res1 = 0 ; |
5662 | void *argp2 = 0 ; |
5663 | int res2 = 0 ; |
5664 | PyObject * obj0 = 0 ; |
5665 | PyObject * obj1 = 0 ; |
5666 | double result; |
5667 | |
5668 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyDir_posang",&obj0,&obj1)) SWIG_failgoto fail; |
5669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5670 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_posang" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_posang" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5672 | } |
5673 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5674 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
5675 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5676 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyDir_posang" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyDir_posang" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
5677 | } |
5678 | if (!argp2) { |
5679 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyDir_posang" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyDir_posang" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
5680 | } |
5681 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
5682 | { |
5683 | try { |
5684 | result = (double)((GSkyDir const *)arg1)->posang((GSkyDir const &)*arg2); |
5685 | } |
5686 | catch (const GException::out_of_range& e) { |
5687 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5688 | } |
5689 | catch (const GExceptionHandler& e) { |
5690 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5691 | } |
5692 | catch (const std::exception& e) { |
5693 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5694 | } |
5695 | } |
5696 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5697 | return resultobj; |
5698 | fail: |
5699 | return NULL__null; |
5700 | } |
5701 | |
5702 | |
5703 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_posang_deg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5704 | PyObject *resultobj = 0; |
5705 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5706 | GSkyDir *arg2 = 0 ; |
5707 | void *argp1 = 0 ; |
5708 | int res1 = 0 ; |
5709 | void *argp2 = 0 ; |
5710 | int res2 = 0 ; |
5711 | PyObject * obj0 = 0 ; |
5712 | PyObject * obj1 = 0 ; |
5713 | double result; |
5714 | |
5715 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyDir_posang_deg",&obj0,&obj1)) SWIG_failgoto fail; |
5716 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5717 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_posang_deg" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_posang_deg" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5719 | } |
5720 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5721 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
5722 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5723 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyDir_posang_deg" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyDir_posang_deg" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
5724 | } |
5725 | if (!argp2) { |
5726 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyDir_posang_deg" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyDir_posang_deg" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
5727 | } |
5728 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
5729 | { |
5730 | try { |
5731 | result = (double)((GSkyDir const *)arg1)->posang_deg((GSkyDir const &)*arg2); |
5732 | } |
5733 | catch (const GException::out_of_range& e) { |
5734 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5735 | } |
5736 | catch (const GExceptionHandler& e) { |
5737 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5738 | } |
5739 | catch (const std::exception& e) { |
5740 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5741 | } |
5742 | } |
5743 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
5744 | return resultobj; |
5745 | fail: |
5746 | return NULL__null; |
5747 | } |
5748 | |
5749 | |
5750 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5751 | PyObject *resultobj = 0; |
5752 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5753 | GSkyDir *arg2 = 0 ; |
5754 | void *argp1 = 0 ; |
5755 | int res1 = 0 ; |
5756 | void *argp2 = 0 ; |
5757 | int res2 = 0 ; |
5758 | PyObject * obj0 = 0 ; |
5759 | PyObject * obj1 = 0 ; |
5760 | bool result; |
5761 | |
5762 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyDir___eq__",&obj0,&obj1)) SWIG_failgoto fail; |
5763 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5764 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5765 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir___eq__" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir___eq__" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5766 | } |
5767 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5768 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
5769 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5770 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyDir___eq__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyDir___eq__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
5771 | } |
5772 | if (!argp2) { |
5773 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyDir___eq__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyDir___eq__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
5774 | } |
5775 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
5776 | { |
5777 | try { |
5778 | result = (bool)GSkyDir___eq__((GSkyDir const *)arg1,(GSkyDir const &)*arg2); |
5779 | } |
5780 | catch (const GException::out_of_range& e) { |
5781 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5782 | } |
5783 | catch (const GExceptionHandler& e) { |
5784 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5785 | } |
5786 | catch (const std::exception& e) { |
5787 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5788 | } |
5789 | } |
5790 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5791 | return resultobj; |
5792 | fail: |
5793 | return NULL__null; |
5794 | } |
5795 | |
5796 | |
5797 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5798 | PyObject *resultobj = 0; |
5799 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5800 | GSkyDir *arg2 = 0 ; |
5801 | void *argp1 = 0 ; |
5802 | int res1 = 0 ; |
5803 | void *argp2 = 0 ; |
5804 | int res2 = 0 ; |
5805 | PyObject * obj0 = 0 ; |
5806 | PyObject * obj1 = 0 ; |
5807 | bool result; |
5808 | |
5809 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyDir___ne__",&obj0,&obj1)) SWIG_failgoto fail; |
5810 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5811 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5812 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir___ne__" "', argument " "1"" of type '" "GSkyDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir___ne__" "', argument " "1"" of type '" "GSkyDir const *""'"); goto fail; } while(0); |
5813 | } |
5814 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5815 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
5816 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
5817 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyDir___ne__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyDir___ne__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
5818 | } |
5819 | if (!argp2) { |
5820 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyDir___ne__" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyDir___ne__" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
5821 | } |
5822 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
5823 | { |
5824 | try { |
5825 | result = (bool)GSkyDir___ne__((GSkyDir const *)arg1,(GSkyDir const &)*arg2); |
5826 | } |
5827 | catch (const GException::out_of_range& e) { |
5828 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5829 | } |
5830 | catch (const GExceptionHandler& e) { |
5831 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5832 | } |
5833 | catch (const std::exception& e) { |
5834 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5835 | } |
5836 | } |
5837 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
5838 | return resultobj; |
5839 | fail: |
5840 | return NULL__null; |
5841 | } |
5842 | |
5843 | |
5844 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyDir_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5845 | PyObject *resultobj = 0; |
5846 | GSkyDir *arg1 = (GSkyDir *) 0 ; |
5847 | void *argp1 = 0 ; |
5848 | int res1 = 0 ; |
5849 | PyObject * obj0 = 0 ; |
5850 | GSkyDir result; |
5851 | |
5852 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyDir_copy",&obj0)) SWIG_failgoto fail; |
5853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0 | 0, 0); |
5854 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
5855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyDir_copy" "', argument " "1"" of type '" "GSkyDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyDir_copy" "', argument " "1"" of type '" "GSkyDir *""'"); goto fail; } while(0); |
5856 | } |
5857 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
5858 | { |
5859 | try { |
5860 | result = GSkyDir_copy(arg1); |
5861 | } |
5862 | catch (const GException::out_of_range& e) { |
5863 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5864 | } |
5865 | catch (const GExceptionHandler& e) { |
5866 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5867 | } |
5868 | catch (const std::exception& e) { |
5869 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5870 | } |
5871 | } |
5872 | resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast< const GSkyDir& >(result))), swig_types[6], 0x1 | 0); |
5873 | return resultobj; |
5874 | fail: |
5875 | return NULL__null; |
5876 | } |
5877 | |
5878 | |
5879 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSkyDir_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5880 | PyObject *obj; |
5881 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
5882 | SWIG_TypeNewClientData(SWIGTYPE_p_GSkyDirswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
5883 | return SWIG_Py_Void(); |
5884 | } |
5885 | |
5886 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyPixel__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5887 | PyObject *resultobj = 0; |
5888 | GSkyPixel *result = 0 ; |
5889 | |
5890 | if (!PyArg_ParseTuple(args,(char *)":new_GSkyPixel")) SWIG_failgoto fail; |
5891 | { |
5892 | try { |
5893 | result = (GSkyPixel *)new GSkyPixel(); |
5894 | } |
5895 | catch (const GException::out_of_range& e) { |
5896 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5897 | } |
5898 | catch (const GExceptionHandler& e) { |
5899 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5900 | } |
5901 | catch (const std::exception& e) { |
5902 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5903 | } |
5904 | } |
5905 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
5906 | return resultobj; |
5907 | fail: |
5908 | return NULL__null; |
5909 | } |
5910 | |
5911 | |
5912 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyPixel__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5913 | PyObject *resultobj = 0; |
5914 | int *arg1 = 0 ; |
5915 | int temp1 ; |
5916 | int val1 ; |
5917 | int ecode1 = 0 ; |
5918 | PyObject * obj0 = 0 ; |
5919 | GSkyPixel *result = 0 ; |
5920 | |
5921 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyPixel",&obj0)) SWIG_failgoto fail; |
5922 | ecode1 = SWIG_AsVal_int(obj0, &val1); |
5923 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
5924 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "int""'"); goto fail; } while(0); |
5925 | } |
5926 | temp1 = static_cast< int >(val1); |
5927 | arg1 = &temp1; |
5928 | { |
5929 | try { |
5930 | result = (GSkyPixel *)new GSkyPixel((int const &)*arg1); |
5931 | } |
5932 | catch (const GException::out_of_range& e) { |
5933 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5934 | } |
5935 | catch (const GExceptionHandler& e) { |
5936 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5937 | } |
5938 | catch (const std::exception& e) { |
5939 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5940 | } |
5941 | } |
5942 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
5943 | return resultobj; |
5944 | fail: |
5945 | return NULL__null; |
5946 | } |
5947 | |
5948 | |
5949 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyPixel__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5950 | PyObject *resultobj = 0; |
5951 | double *arg1 = 0 ; |
5952 | double temp1 ; |
5953 | double val1 ; |
5954 | int ecode1 = 0 ; |
5955 | PyObject * obj0 = 0 ; |
5956 | GSkyPixel *result = 0 ; |
5957 | |
5958 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyPixel",&obj0)) SWIG_failgoto fail; |
5959 | ecode1 = SWIG_AsVal_double(obj0, &val1); |
5960 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
5961 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "double""'"); goto fail; } while(0); |
5962 | } |
5963 | temp1 = static_cast< double >(val1); |
5964 | arg1 = &temp1; |
5965 | { |
5966 | try { |
5967 | result = (GSkyPixel *)new GSkyPixel((double const &)*arg1); |
5968 | } |
5969 | catch (const GException::out_of_range& e) { |
5970 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
5971 | } |
5972 | catch (const GExceptionHandler& e) { |
5973 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5974 | } |
5975 | catch (const std::exception& e) { |
5976 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
5977 | } |
5978 | } |
5979 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
5980 | return resultobj; |
5981 | fail: |
5982 | return NULL__null; |
5983 | } |
5984 | |
5985 | |
5986 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyPixel__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5987 | PyObject *resultobj = 0; |
5988 | int *arg1 = 0 ; |
5989 | int *arg2 = 0 ; |
5990 | int temp1 ; |
5991 | int val1 ; |
5992 | int ecode1 = 0 ; |
5993 | int temp2 ; |
5994 | int val2 ; |
5995 | int ecode2 = 0 ; |
5996 | PyObject * obj0 = 0 ; |
5997 | PyObject * obj1 = 0 ; |
5998 | GSkyPixel *result = 0 ; |
5999 | |
6000 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GSkyPixel",&obj0,&obj1)) SWIG_failgoto fail; |
6001 | ecode1 = SWIG_AsVal_int(obj0, &val1); |
6002 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
6003 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "int""'"); goto fail; } while(0); |
6004 | } |
6005 | temp1 = static_cast< int >(val1); |
6006 | arg1 = &temp1; |
6007 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6008 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6009 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GSkyPixel" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GSkyPixel" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
6010 | } |
6011 | temp2 = static_cast< int >(val2); |
6012 | arg2 = &temp2; |
6013 | { |
6014 | try { |
6015 | result = (GSkyPixel *)new GSkyPixel((int const &)*arg1,(int const &)*arg2); |
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_GSkyPixel, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
6028 | return resultobj; |
6029 | fail: |
6030 | return NULL__null; |
6031 | } |
6032 | |
6033 | |
6034 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyPixel__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6035 | PyObject *resultobj = 0; |
6036 | double *arg1 = 0 ; |
6037 | double *arg2 = 0 ; |
6038 | double temp1 ; |
6039 | double val1 ; |
6040 | int ecode1 = 0 ; |
6041 | double temp2 ; |
6042 | double val2 ; |
6043 | int ecode2 = 0 ; |
6044 | PyObject * obj0 = 0 ; |
6045 | PyObject * obj1 = 0 ; |
6046 | GSkyPixel *result = 0 ; |
6047 | |
6048 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GSkyPixel",&obj0,&obj1)) SWIG_failgoto fail; |
6049 | ecode1 = SWIG_AsVal_double(obj0, &val1); |
6050 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
6051 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "double""'"); goto fail; } while(0); |
6052 | } |
6053 | temp1 = static_cast< double >(val1); |
6054 | arg1 = &temp1; |
6055 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6056 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6057 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GSkyPixel" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GSkyPixel" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6058 | } |
6059 | temp2 = static_cast< double >(val2); |
6060 | arg2 = &temp2; |
6061 | { |
6062 | try { |
6063 | result = (GSkyPixel *)new GSkyPixel((double const &)*arg1,(double const &)*arg2); |
6064 | } |
6065 | catch (const GException::out_of_range& e) { |
6066 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6067 | } |
6068 | catch (const GExceptionHandler& e) { |
6069 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6070 | } |
6071 | catch (const std::exception& e) { |
6072 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6073 | } |
6074 | } |
6075 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
6076 | return resultobj; |
6077 | fail: |
6078 | return NULL__null; |
6079 | } |
6080 | |
6081 | |
6082 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyPixel__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6083 | PyObject *resultobj = 0; |
6084 | GSkyPixel *arg1 = 0 ; |
6085 | void *argp1 = 0 ; |
6086 | int res1 = 0 ; |
6087 | PyObject * obj0 = 0 ; |
6088 | GSkyPixel *result = 0 ; |
6089 | |
6090 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyPixel",&obj0)) SWIG_failgoto fail; |
6091 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6092 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
6094 | } |
6095 | if (!argp1) { |
6096 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkyPixel" "', argument " "1"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
6097 | } |
6098 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6099 | { |
6100 | try { |
6101 | result = (GSkyPixel *)new GSkyPixel((GSkyPixel const &)*arg1); |
6102 | } |
6103 | catch (const GException::out_of_range& e) { |
6104 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6105 | } |
6106 | catch (const GExceptionHandler& e) { |
6107 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6108 | } |
6109 | catch (const std::exception& e) { |
6110 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6111 | } |
6112 | } |
6113 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], (( 0x1 << 1) | 0x1) | 0); |
6114 | return resultobj; |
6115 | fail: |
6116 | return NULL__null; |
6117 | } |
6118 | |
6119 | |
6120 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyPixel(PyObject *self, PyObject *args) { |
6121 | int argc; |
6122 | PyObject *argv[3]; |
6123 | int ii; |
6124 | |
6125 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6126 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6127 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6128 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6129 | } |
6130 | if (argc == 0) { |
6131 | return _wrap_new_GSkyPixel__SWIG_0(self, args); |
6132 | } |
6133 | if (argc == 1) { |
6134 | int _v; |
6135 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[7], 0, 0); |
6136 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6137 | if (_v) { |
6138 | return _wrap_new_GSkyPixel__SWIG_5(self, args); |
6139 | } |
6140 | } |
6141 | if (argc == 1) { |
6142 | int _v; |
6143 | { |
6144 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
6145 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6146 | } |
6147 | if (_v) { |
6148 | return _wrap_new_GSkyPixel__SWIG_1(self, args); |
6149 | } |
6150 | } |
6151 | if (argc == 1) { |
6152 | int _v; |
6153 | { |
6154 | int res = SWIG_AsVal_double(argv[0], NULL__null); |
6155 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6156 | } |
6157 | if (_v) { |
6158 | return _wrap_new_GSkyPixel__SWIG_2(self, args); |
6159 | } |
6160 | } |
6161 | if (argc == 2) { |
6162 | int _v; |
6163 | { |
6164 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
6165 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6166 | } |
6167 | if (_v) { |
6168 | { |
6169 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
6170 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6171 | } |
6172 | if (_v) { |
6173 | return _wrap_new_GSkyPixel__SWIG_3(self, args); |
6174 | } |
6175 | } |
6176 | } |
6177 | if (argc == 2) { |
6178 | int _v; |
6179 | { |
6180 | int res = SWIG_AsVal_double(argv[0], NULL__null); |
6181 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6182 | } |
6183 | if (_v) { |
6184 | { |
6185 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6186 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6187 | } |
6188 | if (_v) { |
6189 | return _wrap_new_GSkyPixel__SWIG_4(self, args); |
6190 | } |
6191 | } |
6192 | } |
6193 | |
6194 | fail: |
6195 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GSkyPixel'.\n" |
6196 | " Possible C/C++ prototypes are:\n" |
6197 | " GSkyPixel::GSkyPixel()\n" |
6198 | " GSkyPixel::GSkyPixel(int const &)\n" |
6199 | " GSkyPixel::GSkyPixel(double const &)\n" |
6200 | " GSkyPixel::GSkyPixel(int const &,int const &)\n" |
6201 | " GSkyPixel::GSkyPixel(double const &,double const &)\n" |
6202 | " GSkyPixel::GSkyPixel(GSkyPixel const &)\n"); |
6203 | return 0; |
6204 | } |
6205 | |
6206 | |
6207 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSkyPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6208 | PyObject *resultobj = 0; |
6209 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6210 | void *argp1 = 0 ; |
6211 | int res1 = 0 ; |
6212 | PyObject * obj0 = 0 ; |
6213 | |
6214 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GSkyPixel",&obj0)) SWIG_failgoto fail; |
6215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0x1 | 0, 0); |
6216 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSkyPixel" "', argument " "1"" of type '" "GSkyPixel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GSkyPixel" "', argument " "1"" of type '" "GSkyPixel *""'"); goto fail; } while(0); |
6218 | } |
6219 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6220 | { |
6221 | try { |
6222 | delete arg1; |
6223 | } |
6224 | catch (const GException::out_of_range& e) { |
6225 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6226 | } |
6227 | catch (const GExceptionHandler& e) { |
6228 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6229 | } |
6230 | catch (const std::exception& e) { |
6231 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6232 | } |
6233 | } |
6234 | resultobj = SWIG_Py_Void(); |
6235 | return resultobj; |
6236 | fail: |
6237 | return NULL__null; |
6238 | } |
6239 | |
6240 | |
6241 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6242 | PyObject *resultobj = 0; |
6243 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6244 | void *argp1 = 0 ; |
6245 | int res1 = 0 ; |
6246 | PyObject * obj0 = 0 ; |
6247 | |
6248 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_clear",&obj0)) SWIG_failgoto fail; |
6249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6250 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_clear" "', argument " "1"" of type '" "GSkyPixel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_clear" "', argument " "1"" of type '" "GSkyPixel *""'"); goto fail; } while(0); |
6252 | } |
6253 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6254 | { |
6255 | try { |
6256 | (arg1)->clear(); |
6257 | } |
6258 | catch (const GException::out_of_range& e) { |
6259 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6260 | } |
6261 | catch (const GExceptionHandler& e) { |
6262 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6263 | } |
6264 | catch (const std::exception& e) { |
6265 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6266 | } |
6267 | } |
6268 | resultobj = SWIG_Py_Void(); |
6269 | return resultobj; |
6270 | fail: |
6271 | return NULL__null; |
6272 | } |
6273 | |
6274 | |
6275 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6276 | PyObject *resultobj = 0; |
6277 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6278 | void *argp1 = 0 ; |
6279 | int res1 = 0 ; |
6280 | PyObject * obj0 = 0 ; |
6281 | GSkyPixel *result = 0 ; |
6282 | |
6283 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_clone",&obj0)) SWIG_failgoto fail; |
6284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6285 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_clone" "', argument " "1"" of type '" "GSkyPixel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_clone" "', argument " "1"" of type '" "GSkyPixel const *""'"); goto fail; } while( 0); |
6287 | } |
6288 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6289 | { |
6290 | try { |
6291 | result = (GSkyPixel *)((GSkyPixel const *)arg1)->clone(); |
6292 | } |
6293 | catch (const GException::out_of_range& e) { |
6294 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6295 | } |
6296 | catch (const GExceptionHandler& e) { |
6297 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6298 | } |
6299 | catch (const std::exception& e) { |
6300 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6301 | } |
6302 | } |
6303 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[7], 0 | 0); |
6304 | return resultobj; |
6305 | fail: |
6306 | return NULL__null; |
6307 | } |
6308 | |
6309 | |
6310 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6311 | PyObject *resultobj = 0; |
6312 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6313 | void *argp1 = 0 ; |
6314 | int res1 = 0 ; |
6315 | PyObject * obj0 = 0 ; |
6316 | int result; |
6317 | |
6318 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_size",&obj0)) SWIG_failgoto fail; |
6319 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6320 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_size" "', argument " "1"" of type '" "GSkyPixel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_size" "', argument " "1"" of type '" "GSkyPixel const *""'"); goto fail; } while( 0); |
6322 | } |
6323 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6324 | { |
6325 | try { |
6326 | result = (int)((GSkyPixel const *)arg1)->size(); |
6327 | } |
6328 | catch (const GException::out_of_range& e) { |
6329 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6330 | } |
6331 | catch (const GExceptionHandler& e) { |
6332 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6333 | } |
6334 | catch (const std::exception& e) { |
6335 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6336 | } |
6337 | } |
6338 | resultobj = SWIG_From_int(static_cast< int >(result)); |
6339 | return resultobj; |
6340 | fail: |
6341 | return NULL__null; |
6342 | } |
6343 | |
6344 | |
6345 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_is1D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6346 | PyObject *resultobj = 0; |
6347 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6348 | void *argp1 = 0 ; |
6349 | int res1 = 0 ; |
6350 | PyObject * obj0 = 0 ; |
6351 | bool result; |
6352 | |
6353 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_is1D",&obj0)) SWIG_failgoto fail; |
6354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6355 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_is1D" "', argument " "1"" of type '" "GSkyPixel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_is1D" "', argument " "1"" of type '" "GSkyPixel const *""'"); goto fail; } while( 0); |
6357 | } |
6358 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6359 | { |
6360 | try { |
6361 | result = (bool)((GSkyPixel const *)arg1)->is1D(); |
6362 | } |
6363 | catch (const GException::out_of_range& e) { |
6364 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6365 | } |
6366 | catch (const GExceptionHandler& e) { |
6367 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6368 | } |
6369 | catch (const std::exception& e) { |
6370 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6371 | } |
6372 | } |
6373 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
6374 | return resultobj; |
6375 | fail: |
6376 | return NULL__null; |
6377 | } |
6378 | |
6379 | |
6380 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_is2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6381 | PyObject *resultobj = 0; |
6382 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6383 | void *argp1 = 0 ; |
6384 | int res1 = 0 ; |
6385 | PyObject * obj0 = 0 ; |
6386 | bool result; |
6387 | |
6388 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_is2D",&obj0)) SWIG_failgoto fail; |
6389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6390 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_is2D" "', argument " "1"" of type '" "GSkyPixel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_is2D" "', argument " "1"" of type '" "GSkyPixel const *""'"); goto fail; } while( 0); |
6392 | } |
6393 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6394 | { |
6395 | try { |
6396 | result = (bool)((GSkyPixel const *)arg1)->is2D(); |
6397 | } |
6398 | catch (const GException::out_of_range& e) { |
6399 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6400 | } |
6401 | catch (const GExceptionHandler& e) { |
6402 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6403 | } |
6404 | catch (const std::exception& e) { |
6405 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6406 | } |
6407 | } |
6408 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
6409 | return resultobj; |
6410 | fail: |
6411 | return NULL__null; |
6412 | } |
6413 | |
6414 | |
6415 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_index__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6416 | PyObject *resultobj = 0; |
6417 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6418 | double *arg2 = 0 ; |
6419 | void *argp1 = 0 ; |
6420 | int res1 = 0 ; |
6421 | double temp2 ; |
6422 | double val2 ; |
6423 | int ecode2 = 0 ; |
6424 | PyObject * obj0 = 0 ; |
6425 | PyObject * obj1 = 0 ; |
6426 | |
6427 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyPixel_index",&obj0,&obj1)) SWIG_failgoto fail; |
6428 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6429 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_index" "', argument " "1"" of type '" "GSkyPixel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_index" "', argument " "1"" of type '" "GSkyPixel *""'"); goto fail; } while(0); |
6431 | } |
6432 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6433 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6434 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6435 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyPixel_index" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyPixel_index" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6436 | } |
6437 | temp2 = static_cast< double >(val2); |
6438 | arg2 = &temp2; |
6439 | { |
6440 | try { |
6441 | (arg1)->index((double const &)*arg2); |
6442 | } |
6443 | catch (const GException::out_of_range& e) { |
6444 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6445 | } |
6446 | catch (const GExceptionHandler& e) { |
6447 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6448 | } |
6449 | catch (const std::exception& e) { |
6450 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6451 | } |
6452 | } |
6453 | resultobj = SWIG_Py_Void(); |
6454 | return resultobj; |
6455 | fail: |
6456 | return NULL__null; |
6457 | } |
6458 | |
6459 | |
6460 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_x__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6461 | PyObject *resultobj = 0; |
6462 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6463 | double *arg2 = 0 ; |
6464 | void *argp1 = 0 ; |
6465 | int res1 = 0 ; |
6466 | double temp2 ; |
6467 | double val2 ; |
6468 | int ecode2 = 0 ; |
6469 | PyObject * obj0 = 0 ; |
6470 | PyObject * obj1 = 0 ; |
6471 | |
6472 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyPixel_x",&obj0,&obj1)) SWIG_failgoto fail; |
6473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6474 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_x" "', argument " "1"" of type '" "GSkyPixel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_x" "', argument " "1"" of type '" "GSkyPixel *""'"); goto fail; } while(0); |
6476 | } |
6477 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6478 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6479 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6480 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyPixel_x" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyPixel_x" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6481 | } |
6482 | temp2 = static_cast< double >(val2); |
6483 | arg2 = &temp2; |
6484 | { |
6485 | try { |
6486 | (arg1)->x((double const &)*arg2); |
6487 | } |
6488 | catch (const GException::out_of_range& e) { |
6489 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6490 | } |
6491 | catch (const GExceptionHandler& e) { |
6492 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6493 | } |
6494 | catch (const std::exception& e) { |
6495 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6496 | } |
6497 | } |
6498 | resultobj = SWIG_Py_Void(); |
6499 | return resultobj; |
6500 | fail: |
6501 | return NULL__null; |
6502 | } |
6503 | |
6504 | |
6505 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_y__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6506 | PyObject *resultobj = 0; |
6507 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6508 | double *arg2 = 0 ; |
6509 | void *argp1 = 0 ; |
6510 | int res1 = 0 ; |
6511 | double temp2 ; |
6512 | double val2 ; |
6513 | int ecode2 = 0 ; |
6514 | PyObject * obj0 = 0 ; |
6515 | PyObject * obj1 = 0 ; |
6516 | |
6517 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyPixel_y",&obj0,&obj1)) SWIG_failgoto fail; |
6518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6519 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_y" "', argument " "1"" of type '" "GSkyPixel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_y" "', argument " "1"" of type '" "GSkyPixel *""'"); goto fail; } while(0); |
6521 | } |
6522 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6523 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6524 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6525 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyPixel_y" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyPixel_y" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6526 | } |
6527 | temp2 = static_cast< double >(val2); |
6528 | arg2 = &temp2; |
6529 | { |
6530 | try { |
6531 | (arg1)->y((double const &)*arg2); |
6532 | } |
6533 | catch (const GException::out_of_range& e) { |
6534 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6535 | } |
6536 | catch (const GExceptionHandler& e) { |
6537 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6538 | } |
6539 | catch (const std::exception& e) { |
6540 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6541 | } |
6542 | } |
6543 | resultobj = SWIG_Py_Void(); |
6544 | return resultobj; |
6545 | fail: |
6546 | return NULL__null; |
6547 | } |
6548 | |
6549 | |
6550 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_xy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6551 | PyObject *resultobj = 0; |
6552 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6553 | double *arg2 = 0 ; |
6554 | double *arg3 = 0 ; |
6555 | void *argp1 = 0 ; |
6556 | int res1 = 0 ; |
6557 | double temp2 ; |
6558 | double val2 ; |
6559 | int ecode2 = 0 ; |
6560 | double temp3 ; |
6561 | double val3 ; |
6562 | int ecode3 = 0 ; |
6563 | PyObject * obj0 = 0 ; |
6564 | PyObject * obj1 = 0 ; |
6565 | PyObject * obj2 = 0 ; |
6566 | |
6567 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyPixel_xy",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
6568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6569 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_xy" "', argument " "1"" of type '" "GSkyPixel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_xy" "', argument " "1"" of type '" "GSkyPixel *""'"); goto fail; } while(0); |
6571 | } |
6572 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6573 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
6574 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6575 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyPixel_xy" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyPixel_xy" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
6576 | } |
6577 | temp2 = static_cast< double >(val2); |
6578 | arg2 = &temp2; |
6579 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
6580 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
6581 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkyPixel_xy" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkyPixel_xy" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
6582 | } |
6583 | temp3 = static_cast< double >(val3); |
6584 | arg3 = &temp3; |
6585 | { |
6586 | try { |
6587 | (arg1)->xy((double const &)*arg2,(double const &)*arg3); |
6588 | } |
6589 | catch (const GException::out_of_range& e) { |
6590 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6591 | } |
6592 | catch (const GExceptionHandler& e) { |
6593 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6594 | } |
6595 | catch (const std::exception& e) { |
6596 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6597 | } |
6598 | } |
6599 | resultobj = SWIG_Py_Void(); |
6600 | return resultobj; |
6601 | fail: |
6602 | return NULL__null; |
6603 | } |
6604 | |
6605 | |
6606 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_index__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6607 | PyObject *resultobj = 0; |
6608 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6609 | void *argp1 = 0 ; |
6610 | int res1 = 0 ; |
6611 | PyObject * obj0 = 0 ; |
6612 | double *result = 0 ; |
6613 | |
6614 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_index",&obj0)) SWIG_failgoto fail; |
6615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6616 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_index" "', argument " "1"" of type '" "GSkyPixel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_index" "', argument " "1"" of type '" "GSkyPixel const *""'"); goto fail; } while( 0); |
6618 | } |
6619 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6620 | { |
6621 | try { |
6622 | result = (double *) &((GSkyPixel const *)arg1)->index(); |
6623 | } |
6624 | catch (const GException::out_of_range& e) { |
6625 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6626 | } |
6627 | catch (const GExceptionHandler& e) { |
6628 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6629 | } |
6630 | catch (const std::exception& e) { |
6631 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6632 | } |
6633 | } |
6634 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
6635 | return resultobj; |
6636 | fail: |
6637 | return NULL__null; |
6638 | } |
6639 | |
6640 | |
6641 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_index(PyObject *self, PyObject *args) { |
6642 | int argc; |
6643 | PyObject *argv[3]; |
6644 | int ii; |
6645 | |
6646 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6647 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6648 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6649 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6650 | } |
6651 | if (argc == 1) { |
6652 | int _v; |
6653 | void *vptr = 0; |
6654 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
6655 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6656 | if (_v) { |
6657 | return _wrap_GSkyPixel_index__SWIG_1(self, args); |
6658 | } |
6659 | } |
6660 | if (argc == 2) { |
6661 | int _v; |
6662 | void *vptr = 0; |
6663 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
6664 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6665 | if (_v) { |
6666 | { |
6667 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6668 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6669 | } |
6670 | if (_v) { |
6671 | return _wrap_GSkyPixel_index__SWIG_0(self, args); |
6672 | } |
6673 | } |
6674 | } |
6675 | |
6676 | fail: |
6677 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyPixel_index'.\n" |
6678 | " Possible C/C++ prototypes are:\n" |
6679 | " GSkyPixel::index(double const &)\n" |
6680 | " GSkyPixel::index() const\n"); |
6681 | return 0; |
6682 | } |
6683 | |
6684 | |
6685 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_x__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6686 | PyObject *resultobj = 0; |
6687 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6688 | void *argp1 = 0 ; |
6689 | int res1 = 0 ; |
6690 | PyObject * obj0 = 0 ; |
6691 | double *result = 0 ; |
6692 | |
6693 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_x",&obj0)) SWIG_failgoto fail; |
6694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6695 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_x" "', argument " "1"" of type '" "GSkyPixel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_x" "', argument " "1"" of type '" "GSkyPixel const *""'"); goto fail; } while( 0); |
6697 | } |
6698 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6699 | { |
6700 | try { |
6701 | result = (double *) &((GSkyPixel const *)arg1)->x(); |
6702 | } |
6703 | catch (const GException::out_of_range& e) { |
6704 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6705 | } |
6706 | catch (const GExceptionHandler& e) { |
6707 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6708 | } |
6709 | catch (const std::exception& e) { |
6710 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6711 | } |
6712 | } |
6713 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
6714 | return resultobj; |
6715 | fail: |
6716 | return NULL__null; |
6717 | } |
6718 | |
6719 | |
6720 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_x(PyObject *self, PyObject *args) { |
6721 | int argc; |
6722 | PyObject *argv[3]; |
6723 | int ii; |
6724 | |
6725 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6726 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6727 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6728 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6729 | } |
6730 | if (argc == 1) { |
6731 | int _v; |
6732 | void *vptr = 0; |
6733 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
6734 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6735 | if (_v) { |
6736 | return _wrap_GSkyPixel_x__SWIG_1(self, args); |
6737 | } |
6738 | } |
6739 | if (argc == 2) { |
6740 | int _v; |
6741 | void *vptr = 0; |
6742 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
6743 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6744 | if (_v) { |
6745 | { |
6746 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6747 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6748 | } |
6749 | if (_v) { |
6750 | return _wrap_GSkyPixel_x__SWIG_0(self, args); |
6751 | } |
6752 | } |
6753 | } |
6754 | |
6755 | fail: |
6756 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyPixel_x'.\n" |
6757 | " Possible C/C++ prototypes are:\n" |
6758 | " GSkyPixel::x(double const &)\n" |
6759 | " GSkyPixel::x() const\n"); |
6760 | return 0; |
6761 | } |
6762 | |
6763 | |
6764 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_y__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6765 | PyObject *resultobj = 0; |
6766 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6767 | void *argp1 = 0 ; |
6768 | int res1 = 0 ; |
6769 | PyObject * obj0 = 0 ; |
6770 | double *result = 0 ; |
6771 | |
6772 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_y",&obj0)) SWIG_failgoto fail; |
6773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6774 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_y" "', argument " "1"" of type '" "GSkyPixel const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_y" "', argument " "1"" of type '" "GSkyPixel const *""'"); goto fail; } while( 0); |
6776 | } |
6777 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6778 | { |
6779 | try { |
6780 | result = (double *) &((GSkyPixel const *)arg1)->y(); |
6781 | } |
6782 | catch (const GException::out_of_range& e) { |
6783 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6784 | } |
6785 | catch (const GExceptionHandler& e) { |
6786 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6787 | } |
6788 | catch (const std::exception& e) { |
6789 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6790 | } |
6791 | } |
6792 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
6793 | return resultobj; |
6794 | fail: |
6795 | return NULL__null; |
6796 | } |
6797 | |
6798 | |
6799 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_y(PyObject *self, PyObject *args) { |
6800 | int argc; |
6801 | PyObject *argv[3]; |
6802 | int ii; |
6803 | |
6804 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
6805 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
6806 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
6807 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
6808 | } |
6809 | if (argc == 1) { |
6810 | int _v; |
6811 | void *vptr = 0; |
6812 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
6813 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6814 | if (_v) { |
6815 | return _wrap_GSkyPixel_y__SWIG_1(self, args); |
6816 | } |
6817 | } |
6818 | if (argc == 2) { |
6819 | int _v; |
6820 | void *vptr = 0; |
6821 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7 ], 0, 0); |
6822 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6823 | if (_v) { |
6824 | { |
6825 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
6826 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
6827 | } |
6828 | if (_v) { |
6829 | return _wrap_GSkyPixel_y__SWIG_0(self, args); |
6830 | } |
6831 | } |
6832 | } |
6833 | |
6834 | fail: |
6835 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyPixel_y'.\n" |
6836 | " Possible C/C++ prototypes are:\n" |
6837 | " GSkyPixel::y(double const &)\n" |
6838 | " GSkyPixel::y() const\n"); |
6839 | return 0; |
6840 | } |
6841 | |
6842 | |
6843 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyPixel_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6844 | PyObject *resultobj = 0; |
6845 | GSkyPixel *arg1 = (GSkyPixel *) 0 ; |
6846 | void *argp1 = 0 ; |
6847 | int res1 = 0 ; |
6848 | PyObject * obj0 = 0 ; |
6849 | GSkyPixel result; |
6850 | |
6851 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyPixel_copy",&obj0)) SWIG_failgoto fail; |
6852 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyPixel, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7], 0 | 0, 0); |
6853 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyPixel_copy" "', argument " "1"" of type '" "GSkyPixel *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyPixel_copy" "', argument " "1"" of type '" "GSkyPixel *""'"); goto fail; } while(0); |
6855 | } |
6856 | arg1 = reinterpret_cast< GSkyPixel * >(argp1); |
6857 | { |
6858 | try { |
6859 | result = GSkyPixel_copy(arg1); |
6860 | } |
6861 | catch (const GException::out_of_range& e) { |
6862 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6863 | } |
6864 | catch (const GExceptionHandler& e) { |
6865 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6866 | } |
6867 | catch (const std::exception& e) { |
6868 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6869 | } |
6870 | } |
6871 | resultobj = SWIG_NewPointerObj((new GSkyPixel(static_cast< const GSkyPixel& >(result))), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyPixel(static_cast< const GSkyPixel& >(result))), swig_types[7], 0x1 | 0); |
6872 | return resultobj; |
6873 | fail: |
6874 | return NULL__null; |
6875 | } |
6876 | |
6877 | |
6878 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSkyPixel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6879 | PyObject *obj; |
6880 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
6881 | SWIG_TypeNewClientData(SWIGTYPE_p_GSkyPixelswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
6882 | return SWIG_Py_Void(); |
6883 | } |
6884 | |
6885 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6886 | PyObject *resultobj = 0; |
6887 | GSkymap *result = 0 ; |
6888 | |
6889 | if (!PyArg_ParseTuple(args,(char *)":new_GSkymap")) SWIG_failgoto fail; |
6890 | { |
6891 | try { |
6892 | result = (GSkymap *)new GSkymap(); |
6893 | } |
6894 | catch (const GException::out_of_range& e) { |
6895 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6896 | } |
6897 | catch (const GExceptionHandler& e) { |
6898 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6899 | } |
6900 | catch (const std::exception& e) { |
6901 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6902 | } |
6903 | } |
6904 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
6905 | return resultobj; |
6906 | fail: |
6907 | return NULL__null; |
6908 | } |
6909 | |
6910 | |
6911 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6912 | PyObject *resultobj = 0; |
6913 | std::string *arg1 = 0 ; |
6914 | int res1 = SWIG_OLDOBJ((0)) ; |
6915 | PyObject * obj0 = 0 ; |
6916 | GSkymap *result = 0 ; |
6917 | |
6918 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkymap",&obj0)) SWIG_failgoto fail; |
6919 | { |
6920 | std::string *ptr = (std::string *)0; |
6921 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
6922 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
6924 | } |
6925 | if (!ptr) { |
6926 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
6927 | } |
6928 | arg1 = ptr; |
6929 | } |
6930 | { |
6931 | try { |
6932 | result = (GSkymap *)new GSkymap((std::string const &)*arg1); |
6933 | } |
6934 | catch (const GException::out_of_range& e) { |
6935 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
6936 | } |
6937 | catch (const GExceptionHandler& e) { |
6938 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6939 | } |
6940 | catch (const std::exception& e) { |
6941 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
6942 | } |
6943 | } |
6944 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
6945 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6946 | return resultobj; |
6947 | fail: |
6948 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
6949 | return NULL__null; |
6950 | } |
6951 | |
6952 | |
6953 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6954 | PyObject *resultobj = 0; |
6955 | std::string *arg1 = 0 ; |
6956 | int *arg2 = 0 ; |
6957 | std::string *arg3 = 0 ; |
6958 | int *arg4 = 0 ; |
6959 | int res1 = SWIG_OLDOBJ((0)) ; |
6960 | int temp2 ; |
6961 | int val2 ; |
6962 | int ecode2 = 0 ; |
6963 | int res3 = SWIG_OLDOBJ((0)) ; |
6964 | int temp4 ; |
6965 | int val4 ; |
6966 | int ecode4 = 0 ; |
6967 | PyObject * obj0 = 0 ; |
6968 | PyObject * obj1 = 0 ; |
6969 | PyObject * obj2 = 0 ; |
6970 | PyObject * obj3 = 0 ; |
6971 | GSkymap *result = 0 ; |
6972 | |
6973 | if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GSkymap",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail; |
6974 | { |
6975 | std::string *ptr = (std::string *)0; |
6976 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
6977 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
6978 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
6979 | } |
6980 | if (!ptr) { |
6981 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
6982 | } |
6983 | arg1 = ptr; |
6984 | } |
6985 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
6986 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
6987 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GSkymap" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GSkymap" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
6988 | } |
6989 | temp2 = static_cast< int >(val2); |
6990 | arg2 = &temp2; |
6991 | { |
6992 | std::string *ptr = (std::string *)0; |
6993 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
6994 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
6995 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
6996 | } |
6997 | if (!ptr) { |
6998 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &" "'"); goto fail; } while(0); |
6999 | } |
7000 | arg3 = ptr; |
7001 | } |
7002 | ecode4 = SWIG_AsVal_int(obj3, &val4); |
7003 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
7004 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GSkymap" "', argument " "4"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GSkymap" "', argument " "4"" of type '" "int""'"); goto fail; } while(0); |
7005 | } |
7006 | temp4 = static_cast< int >(val4); |
7007 | arg4 = &temp4; |
7008 | { |
7009 | try { |
7010 | result = (GSkymap *)new GSkymap((std::string const &)*arg1,(int const &)*arg2,(std::string const &)*arg3,(int const &)*arg4); |
7011 | } |
7012 | catch (const GException::out_of_range& e) { |
7013 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7014 | } |
7015 | catch (const GExceptionHandler& e) { |
7016 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7017 | } |
7018 | catch (const std::exception& e) { |
7019 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7020 | } |
7021 | } |
7022 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
7023 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7024 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7025 | return resultobj; |
7026 | fail: |
7027 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7028 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7029 | return NULL__null; |
7030 | } |
7031 | |
7032 | |
7033 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7034 | PyObject *resultobj = 0; |
7035 | std::string *arg1 = 0 ; |
7036 | int *arg2 = 0 ; |
7037 | std::string *arg3 = 0 ; |
7038 | int res1 = SWIG_OLDOBJ((0)) ; |
7039 | int temp2 ; |
7040 | int val2 ; |
7041 | int ecode2 = 0 ; |
7042 | int res3 = SWIG_OLDOBJ((0)) ; |
7043 | PyObject * obj0 = 0 ; |
7044 | PyObject * obj1 = 0 ; |
7045 | PyObject * obj2 = 0 ; |
7046 | GSkymap *result = 0 ; |
7047 | |
7048 | if (!PyArg_ParseTuple(args,(char *)"OOO:new_GSkymap",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
7049 | { |
7050 | std::string *ptr = (std::string *)0; |
7051 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
7052 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
7054 | } |
7055 | if (!ptr) { |
7056 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7057 | } |
7058 | arg1 = ptr; |
7059 | } |
7060 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7061 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7062 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GSkymap" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GSkymap" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7063 | } |
7064 | temp2 = static_cast< int >(val2); |
7065 | arg2 = &temp2; |
7066 | { |
7067 | std::string *ptr = (std::string *)0; |
7068 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
7069 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
7070 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
7071 | } |
7072 | if (!ptr) { |
7073 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "3"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7074 | } |
7075 | arg3 = ptr; |
7076 | } |
7077 | { |
7078 | try { |
7079 | result = (GSkymap *)new GSkymap((std::string const &)*arg1,(int const &)*arg2,(std::string const &)*arg3); |
7080 | } |
7081 | catch (const GException::out_of_range& e) { |
7082 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7083 | } |
7084 | catch (const GExceptionHandler& e) { |
7085 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7086 | } |
7087 | catch (const std::exception& e) { |
7088 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7089 | } |
7090 | } |
7091 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
7092 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7093 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7094 | return resultobj; |
7095 | fail: |
7096 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7097 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
7098 | return NULL__null; |
7099 | } |
7100 | |
7101 | |
7102 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7103 | PyObject *resultobj = 0; |
7104 | std::string *arg1 = 0 ; |
7105 | std::string *arg2 = 0 ; |
7106 | double *arg3 = 0 ; |
7107 | double *arg4 = 0 ; |
7108 | double *arg5 = 0 ; |
7109 | double *arg6 = 0 ; |
7110 | int *arg7 = 0 ; |
7111 | int *arg8 = 0 ; |
7112 | int *arg9 = 0 ; |
7113 | int res1 = SWIG_OLDOBJ((0)) ; |
7114 | int res2 = SWIG_OLDOBJ((0)) ; |
7115 | double temp3 ; |
7116 | double val3 ; |
7117 | int ecode3 = 0 ; |
7118 | double temp4 ; |
7119 | double val4 ; |
7120 | int ecode4 = 0 ; |
7121 | double temp5 ; |
7122 | double val5 ; |
7123 | int ecode5 = 0 ; |
7124 | double temp6 ; |
7125 | double val6 ; |
7126 | int ecode6 = 0 ; |
7127 | int temp7 ; |
7128 | int val7 ; |
7129 | int ecode7 = 0 ; |
7130 | int temp8 ; |
7131 | int val8 ; |
7132 | int ecode8 = 0 ; |
7133 | int temp9 ; |
7134 | int val9 ; |
7135 | int ecode9 = 0 ; |
7136 | PyObject * obj0 = 0 ; |
7137 | PyObject * obj1 = 0 ; |
7138 | PyObject * obj2 = 0 ; |
7139 | PyObject * obj3 = 0 ; |
7140 | PyObject * obj4 = 0 ; |
7141 | PyObject * obj5 = 0 ; |
7142 | PyObject * obj6 = 0 ; |
7143 | PyObject * obj7 = 0 ; |
7144 | PyObject * obj8 = 0 ; |
7145 | GSkymap *result = 0 ; |
7146 | |
7147 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOO:new_GSkymap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_failgoto fail; |
7148 | { |
7149 | std::string *ptr = (std::string *)0; |
7150 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
7151 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
7153 | } |
7154 | if (!ptr) { |
7155 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7156 | } |
7157 | arg1 = ptr; |
7158 | } |
7159 | { |
7160 | std::string *ptr = (std::string *)0; |
7161 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7162 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7163 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7164 | } |
7165 | if (!ptr) { |
7166 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7167 | } |
7168 | arg2 = ptr; |
7169 | } |
7170 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
7171 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7172 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GSkymap" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GSkymap" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
7173 | } |
7174 | temp3 = static_cast< double >(val3); |
7175 | arg3 = &temp3; |
7176 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
7177 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
7178 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GSkymap" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GSkymap" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
7179 | } |
7180 | temp4 = static_cast< double >(val4); |
7181 | arg4 = &temp4; |
7182 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
7183 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
7184 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GSkymap" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GSkymap" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
7185 | } |
7186 | temp5 = static_cast< double >(val5); |
7187 | arg5 = &temp5; |
7188 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
7189 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
7190 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GSkymap" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GSkymap" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
7191 | } |
7192 | temp6 = static_cast< double >(val6); |
7193 | arg6 = &temp6; |
7194 | ecode7 = SWIG_AsVal_int(obj6, &val7); |
7195 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
7196 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GSkymap" "', argument " "7"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GSkymap" "', argument " "7"" of type '" "int""'"); goto fail; } while(0); |
7197 | } |
7198 | temp7 = static_cast< int >(val7); |
7199 | arg7 = &temp7; |
7200 | ecode8 = SWIG_AsVal_int(obj7, &val8); |
7201 | if (!SWIG_IsOK(ecode8)(ecode8 >= 0)) { |
7202 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GSkymap" "', argument " "8"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode8 != (-1)) ? ecode8 : -5)), "in method '" "new_GSkymap" "', argument " "8"" of type '" "int""'"); goto fail; } while(0); |
7203 | } |
7204 | temp8 = static_cast< int >(val8); |
7205 | arg8 = &temp8; |
7206 | ecode9 = SWIG_AsVal_int(obj8, &val9); |
7207 | if (!SWIG_IsOK(ecode9)(ecode9 >= 0)) { |
7208 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_GSkymap" "', argument " "9"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode9 != (-1)) ? ecode9 : -5)), "in method '" "new_GSkymap" "', argument " "9"" of type '" "int""'"); goto fail; } while(0); |
7209 | } |
7210 | temp9 = static_cast< int >(val9); |
7211 | arg9 = &temp9; |
7212 | { |
7213 | try { |
7214 | result = (GSkymap *)new GSkymap((std::string const &)*arg1,(std::string const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(int const &)*arg7,(int const &)*arg8,(int const &)*arg9); |
7215 | } |
7216 | catch (const GException::out_of_range& e) { |
7217 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7218 | } |
7219 | catch (const GExceptionHandler& e) { |
7220 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7221 | } |
7222 | catch (const std::exception& e) { |
7223 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7224 | } |
7225 | } |
7226 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
7227 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7228 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7229 | return resultobj; |
7230 | fail: |
7231 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7232 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7233 | return NULL__null; |
7234 | } |
7235 | |
7236 | |
7237 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7238 | PyObject *resultobj = 0; |
7239 | std::string *arg1 = 0 ; |
7240 | std::string *arg2 = 0 ; |
7241 | double *arg3 = 0 ; |
7242 | double *arg4 = 0 ; |
7243 | double *arg5 = 0 ; |
7244 | double *arg6 = 0 ; |
7245 | int *arg7 = 0 ; |
7246 | int *arg8 = 0 ; |
7247 | int res1 = SWIG_OLDOBJ((0)) ; |
7248 | int res2 = SWIG_OLDOBJ((0)) ; |
7249 | double temp3 ; |
7250 | double val3 ; |
7251 | int ecode3 = 0 ; |
7252 | double temp4 ; |
7253 | double val4 ; |
7254 | int ecode4 = 0 ; |
7255 | double temp5 ; |
7256 | double val5 ; |
7257 | int ecode5 = 0 ; |
7258 | double temp6 ; |
7259 | double val6 ; |
7260 | int ecode6 = 0 ; |
7261 | int temp7 ; |
7262 | int val7 ; |
7263 | int ecode7 = 0 ; |
7264 | int temp8 ; |
7265 | int val8 ; |
7266 | int ecode8 = 0 ; |
7267 | PyObject * obj0 = 0 ; |
7268 | PyObject * obj1 = 0 ; |
7269 | PyObject * obj2 = 0 ; |
7270 | PyObject * obj3 = 0 ; |
7271 | PyObject * obj4 = 0 ; |
7272 | PyObject * obj5 = 0 ; |
7273 | PyObject * obj6 = 0 ; |
7274 | PyObject * obj7 = 0 ; |
7275 | GSkymap *result = 0 ; |
7276 | |
7277 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:new_GSkymap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_failgoto fail; |
7278 | { |
7279 | std::string *ptr = (std::string *)0; |
7280 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
7281 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
7283 | } |
7284 | if (!ptr) { |
7285 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7286 | } |
7287 | arg1 = ptr; |
7288 | } |
7289 | { |
7290 | std::string *ptr = (std::string *)0; |
7291 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
7292 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7293 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
7294 | } |
7295 | if (!ptr) { |
7296 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
7297 | } |
7298 | arg2 = ptr; |
7299 | } |
7300 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
7301 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
7302 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GSkymap" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GSkymap" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
7303 | } |
7304 | temp3 = static_cast< double >(val3); |
7305 | arg3 = &temp3; |
7306 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
7307 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
7308 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GSkymap" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GSkymap" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
7309 | } |
7310 | temp4 = static_cast< double >(val4); |
7311 | arg4 = &temp4; |
7312 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
7313 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
7314 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GSkymap" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GSkymap" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
7315 | } |
7316 | temp5 = static_cast< double >(val5); |
7317 | arg5 = &temp5; |
7318 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
7319 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
7320 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GSkymap" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GSkymap" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
7321 | } |
7322 | temp6 = static_cast< double >(val6); |
7323 | arg6 = &temp6; |
7324 | ecode7 = SWIG_AsVal_int(obj6, &val7); |
7325 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
7326 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GSkymap" "', argument " "7"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GSkymap" "', argument " "7"" of type '" "int""'"); goto fail; } while(0); |
7327 | } |
7328 | temp7 = static_cast< int >(val7); |
7329 | arg7 = &temp7; |
7330 | ecode8 = SWIG_AsVal_int(obj7, &val8); |
7331 | if (!SWIG_IsOK(ecode8)(ecode8 >= 0)) { |
7332 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GSkymap" "', argument " "8"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode8 != (-1)) ? ecode8 : -5)), "in method '" "new_GSkymap" "', argument " "8"" of type '" "int""'"); goto fail; } while(0); |
7333 | } |
7334 | temp8 = static_cast< int >(val8); |
7335 | arg8 = &temp8; |
7336 | { |
7337 | try { |
7338 | result = (GSkymap *)new GSkymap((std::string const &)*arg1,(std::string const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(int const &)*arg7,(int const &)*arg8); |
7339 | } |
7340 | catch (const GException::out_of_range& e) { |
7341 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7342 | } |
7343 | catch (const GExceptionHandler& e) { |
7344 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7345 | } |
7346 | catch (const std::exception& e) { |
7347 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7348 | } |
7349 | } |
7350 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
7351 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7352 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7353 | return resultobj; |
7354 | fail: |
7355 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
7356 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
7357 | return NULL__null; |
7358 | } |
7359 | |
7360 | |
7361 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7362 | PyObject *resultobj = 0; |
7363 | GSkymap *arg1 = 0 ; |
7364 | void *argp1 = 0 ; |
7365 | int res1 = 0 ; |
7366 | PyObject * obj0 = 0 ; |
7367 | GSkymap *result = 0 ; |
7368 | |
7369 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkymap",&obj0)) SWIG_failgoto fail; |
7370 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkymap, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7371 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkymap" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkymap" "', argument " "1"" of type '" "GSkymap const &""'"); goto fail; } while (0); |
7373 | } |
7374 | if (!argp1) { |
7375 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "GSkymap const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkymap" "', argument " "1"" of type '" "GSkymap const &" "'"); goto fail; } while(0); |
7376 | } |
7377 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7378 | { |
7379 | try { |
7380 | result = (GSkymap *)new GSkymap((GSkymap const &)*arg1); |
7381 | } |
7382 | catch (const GException::out_of_range& e) { |
7383 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7384 | } |
7385 | catch (const GExceptionHandler& e) { |
7386 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7387 | } |
7388 | catch (const std::exception& e) { |
7389 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7390 | } |
7391 | } |
7392 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkymap, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[12], ( (0x1 << 1) | 0x1) | 0); |
7393 | return resultobj; |
7394 | fail: |
7395 | return NULL__null; |
7396 | } |
7397 | |
7398 | |
7399 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkymap(PyObject *self, PyObject *args) { |
7400 | int argc; |
7401 | PyObject *argv[10]; |
7402 | int ii; |
7403 | |
7404 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
7405 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
7406 | for (ii = 0; (ii < 9) && (ii < argc); ii++) { |
7407 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
7408 | } |
7409 | if (argc == 0) { |
7410 | return _wrap_new_GSkymap__SWIG_0(self, args); |
7411 | } |
7412 | if (argc == 1) { |
7413 | int _v; |
7414 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[12], 0, 0 ); |
7415 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7416 | if (_v) { |
7417 | return _wrap_new_GSkymap__SWIG_6(self, args); |
7418 | } |
7419 | } |
7420 | if (argc == 1) { |
7421 | int _v; |
7422 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7423 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7424 | if (_v) { |
7425 | return _wrap_new_GSkymap__SWIG_1(self, args); |
7426 | } |
7427 | } |
7428 | if (argc == 3) { |
7429 | int _v; |
7430 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7431 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7432 | if (_v) { |
7433 | { |
7434 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
7435 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7436 | } |
7437 | if (_v) { |
7438 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
7439 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7440 | if (_v) { |
7441 | return _wrap_new_GSkymap__SWIG_3(self, args); |
7442 | } |
7443 | } |
7444 | } |
7445 | } |
7446 | if (argc == 4) { |
7447 | int _v; |
7448 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7449 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7450 | if (_v) { |
7451 | { |
7452 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
7453 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7454 | } |
7455 | if (_v) { |
7456 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
7457 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7458 | if (_v) { |
7459 | { |
7460 | int res = SWIG_AsVal_int(argv[3], NULL__null); |
7461 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7462 | } |
7463 | if (_v) { |
7464 | return _wrap_new_GSkymap__SWIG_2(self, args); |
7465 | } |
7466 | } |
7467 | } |
7468 | } |
7469 | } |
7470 | if (argc == 8) { |
7471 | int _v; |
7472 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7473 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7474 | if (_v) { |
7475 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
7476 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7477 | if (_v) { |
7478 | { |
7479 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
7480 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7481 | } |
7482 | if (_v) { |
7483 | { |
7484 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
7485 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7486 | } |
7487 | if (_v) { |
7488 | { |
7489 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
7490 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7491 | } |
7492 | if (_v) { |
7493 | { |
7494 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
7495 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7496 | } |
7497 | if (_v) { |
7498 | { |
7499 | int res = SWIG_AsVal_int(argv[6], NULL__null); |
7500 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7501 | } |
7502 | if (_v) { |
7503 | { |
7504 | int res = SWIG_AsVal_int(argv[7], NULL__null); |
7505 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7506 | } |
7507 | if (_v) { |
7508 | return _wrap_new_GSkymap__SWIG_5(self, args); |
7509 | } |
7510 | } |
7511 | } |
7512 | } |
7513 | } |
7514 | } |
7515 | } |
7516 | } |
7517 | } |
7518 | if (argc == 9) { |
7519 | int _v; |
7520 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
7521 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7522 | if (_v) { |
7523 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
7524 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7525 | if (_v) { |
7526 | { |
7527 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
7528 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7529 | } |
7530 | if (_v) { |
7531 | { |
7532 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
7533 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7534 | } |
7535 | if (_v) { |
7536 | { |
7537 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
7538 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7539 | } |
7540 | if (_v) { |
7541 | { |
7542 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
7543 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7544 | } |
7545 | if (_v) { |
7546 | { |
7547 | int res = SWIG_AsVal_int(argv[6], NULL__null); |
7548 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7549 | } |
7550 | if (_v) { |
7551 | { |
7552 | int res = SWIG_AsVal_int(argv[7], NULL__null); |
7553 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7554 | } |
7555 | if (_v) { |
7556 | { |
7557 | int res = SWIG_AsVal_int(argv[8], NULL__null); |
7558 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
7559 | } |
7560 | if (_v) { |
7561 | return _wrap_new_GSkymap__SWIG_4(self, args); |
7562 | } |
7563 | } |
7564 | } |
7565 | } |
7566 | } |
7567 | } |
7568 | } |
7569 | } |
7570 | } |
7571 | } |
7572 | |
7573 | fail: |
7574 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GSkymap'.\n" |
7575 | " Possible C/C++ prototypes are:\n" |
7576 | " GSkymap::GSkymap()\n" |
7577 | " GSkymap::GSkymap(std::string const &)\n" |
7578 | " GSkymap::GSkymap(std::string const &,int const &,std::string const &,int const &)\n" |
7579 | " GSkymap::GSkymap(std::string const &,int const &,std::string const &)\n" |
7580 | " GSkymap::GSkymap(std::string const &,std::string const &,double const &,double const &,double const &,double const &,int const &,int const &,int const &)\n" |
7581 | " GSkymap::GSkymap(std::string const &,std::string const &,double const &,double const &,double const &,double const &,int const &,int const &)\n" |
7582 | " GSkymap::GSkymap(GSkymap const &)\n"); |
7583 | return 0; |
7584 | } |
7585 | |
7586 | |
7587 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSkymap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7588 | PyObject *resultobj = 0; |
7589 | GSkymap *arg1 = (GSkymap *) 0 ; |
7590 | void *argp1 = 0 ; |
7591 | int res1 = 0 ; |
7592 | PyObject * obj0 = 0 ; |
7593 | |
7594 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GSkymap",&obj0)) SWIG_failgoto fail; |
7595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0x1 | 0, 0); |
7596 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSkymap" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GSkymap" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
7598 | } |
7599 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7600 | { |
7601 | try { |
7602 | delete arg1; |
7603 | } |
7604 | catch (const GException::out_of_range& e) { |
7605 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7606 | } |
7607 | catch (const GExceptionHandler& e) { |
7608 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7609 | } |
7610 | catch (const std::exception& e) { |
7611 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7612 | } |
7613 | } |
7614 | resultobj = SWIG_Py_Void(); |
7615 | return resultobj; |
7616 | fail: |
7617 | return NULL__null; |
7618 | } |
7619 | |
7620 | |
7621 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7622 | PyObject *resultobj = 0; |
7623 | GSkymap *arg1 = (GSkymap *) 0 ; |
7624 | void *argp1 = 0 ; |
7625 | int res1 = 0 ; |
7626 | PyObject * obj0 = 0 ; |
7627 | |
7628 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_clear",&obj0)) SWIG_failgoto fail; |
7629 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7630 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_clear" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_clear" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
7632 | } |
7633 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7634 | { |
7635 | try { |
7636 | (arg1)->clear(); |
7637 | } |
7638 | catch (const GException::out_of_range& e) { |
7639 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7640 | } |
7641 | catch (const GExceptionHandler& e) { |
7642 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7643 | } |
7644 | catch (const std::exception& e) { |
7645 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7646 | } |
7647 | } |
7648 | resultobj = SWIG_Py_Void(); |
7649 | return resultobj; |
7650 | fail: |
7651 | return NULL__null; |
7652 | } |
7653 | |
7654 | |
7655 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7656 | PyObject *resultobj = 0; |
7657 | GSkymap *arg1 = (GSkymap *) 0 ; |
7658 | void *argp1 = 0 ; |
7659 | int res1 = 0 ; |
7660 | PyObject * obj0 = 0 ; |
7661 | GSkymap *result = 0 ; |
7662 | |
7663 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_clone",&obj0)) SWIG_failgoto fail; |
7664 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7665 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_clone" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_clone" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7667 | } |
7668 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7669 | { |
7670 | try { |
7671 | result = (GSkymap *)((GSkymap const *)arg1)->clone(); |
7672 | } |
7673 | catch (const GException::out_of_range& e) { |
7674 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7675 | } |
7676 | catch (const GExceptionHandler& e) { |
7677 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7678 | } |
7679 | catch (const std::exception& e) { |
7680 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7681 | } |
7682 | } |
7683 | 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[12], 0 | 0); |
7684 | return resultobj; |
7685 | fail: |
7686 | return NULL__null; |
7687 | } |
7688 | |
7689 | |
7690 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_npix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7691 | PyObject *resultobj = 0; |
7692 | GSkymap *arg1 = (GSkymap *) 0 ; |
7693 | void *argp1 = 0 ; |
7694 | int res1 = 0 ; |
7695 | PyObject * obj0 = 0 ; |
7696 | int *result = 0 ; |
7697 | |
7698 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_npix",&obj0)) SWIG_failgoto fail; |
7699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7700 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_npix" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_npix" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7702 | } |
7703 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7704 | { |
7705 | try { |
7706 | result = (int *) &((GSkymap const *)arg1)->npix(); |
7707 | } |
7708 | catch (const GException::out_of_range& e) { |
7709 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7710 | } |
7711 | catch (const GExceptionHandler& e) { |
7712 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7713 | } |
7714 | catch (const std::exception& e) { |
7715 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7716 | } |
7717 | } |
7718 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7719 | return resultobj; |
7720 | fail: |
7721 | return NULL__null; |
7722 | } |
7723 | |
7724 | |
7725 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_nx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7726 | PyObject *resultobj = 0; |
7727 | GSkymap *arg1 = (GSkymap *) 0 ; |
7728 | void *argp1 = 0 ; |
7729 | int res1 = 0 ; |
7730 | PyObject * obj0 = 0 ; |
7731 | int *result = 0 ; |
7732 | |
7733 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_nx",&obj0)) SWIG_failgoto fail; |
7734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7735 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_nx" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_nx" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7737 | } |
7738 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7739 | { |
7740 | try { |
7741 | result = (int *) &((GSkymap const *)arg1)->nx(); |
7742 | } |
7743 | catch (const GException::out_of_range& e) { |
7744 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7745 | } |
7746 | catch (const GExceptionHandler& e) { |
7747 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7748 | } |
7749 | catch (const std::exception& e) { |
7750 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7751 | } |
7752 | } |
7753 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7754 | return resultobj; |
7755 | fail: |
7756 | return NULL__null; |
7757 | } |
7758 | |
7759 | |
7760 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_ny(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7761 | PyObject *resultobj = 0; |
7762 | GSkymap *arg1 = (GSkymap *) 0 ; |
7763 | void *argp1 = 0 ; |
7764 | int res1 = 0 ; |
7765 | PyObject * obj0 = 0 ; |
7766 | int *result = 0 ; |
7767 | |
7768 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_ny",&obj0)) SWIG_failgoto fail; |
7769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7770 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_ny" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_ny" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7772 | } |
7773 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7774 | { |
7775 | try { |
7776 | result = (int *) &((GSkymap const *)arg1)->ny(); |
7777 | } |
7778 | catch (const GException::out_of_range& e) { |
7779 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7780 | } |
7781 | catch (const GExceptionHandler& e) { |
7782 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7783 | } |
7784 | catch (const std::exception& e) { |
7785 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7786 | } |
7787 | } |
7788 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7789 | return resultobj; |
7790 | fail: |
7791 | return NULL__null; |
7792 | } |
7793 | |
7794 | |
7795 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_nmaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7796 | PyObject *resultobj = 0; |
7797 | GSkymap *arg1 = (GSkymap *) 0 ; |
7798 | void *argp1 = 0 ; |
7799 | int res1 = 0 ; |
7800 | PyObject * obj0 = 0 ; |
7801 | int *result = 0 ; |
7802 | |
7803 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_nmaps",&obj0)) SWIG_failgoto fail; |
7804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7805 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_nmaps" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_nmaps" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7807 | } |
7808 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7809 | { |
7810 | try { |
7811 | result = (int *) &((GSkymap const *)arg1)->nmaps(); |
7812 | } |
7813 | catch (const GException::out_of_range& e) { |
7814 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7815 | } |
7816 | catch (const GExceptionHandler& e) { |
7817 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7818 | } |
7819 | catch (const std::exception& e) { |
7820 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7821 | } |
7822 | } |
7823 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
7824 | return resultobj; |
7825 | fail: |
7826 | return NULL__null; |
7827 | } |
7828 | |
7829 | |
7830 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_inx2pix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7831 | PyObject *resultobj = 0; |
7832 | GSkymap *arg1 = (GSkymap *) 0 ; |
7833 | int *arg2 = 0 ; |
7834 | void *argp1 = 0 ; |
7835 | int res1 = 0 ; |
7836 | int temp2 ; |
7837 | int val2 ; |
7838 | int ecode2 = 0 ; |
7839 | PyObject * obj0 = 0 ; |
7840 | PyObject * obj1 = 0 ; |
7841 | GSkyPixel result; |
7842 | |
7843 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_inx2pix",&obj0,&obj1)) SWIG_failgoto fail; |
7844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7845 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_inx2pix" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_inx2pix" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7847 | } |
7848 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7849 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7850 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7851 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkymap_inx2pix" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkymap_inx2pix" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7852 | } |
7853 | temp2 = static_cast< int >(val2); |
7854 | arg2 = &temp2; |
7855 | { |
7856 | try { |
7857 | result = ((GSkymap const *)arg1)->inx2pix((int const &)*arg2); |
7858 | } |
7859 | catch (const GException::out_of_range& e) { |
7860 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7861 | } |
7862 | catch (const GExceptionHandler& e) { |
7863 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7864 | } |
7865 | catch (const std::exception& e) { |
7866 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7867 | } |
7868 | } |
7869 | resultobj = SWIG_NewPointerObj((new GSkyPixel(static_cast< const GSkyPixel& >(result))), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyPixel(static_cast< const GSkyPixel& >(result))), swig_types[7], 0x1 | 0); |
7870 | return resultobj; |
7871 | fail: |
7872 | return NULL__null; |
7873 | } |
7874 | |
7875 | |
7876 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_inx2dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7877 | PyObject *resultobj = 0; |
7878 | GSkymap *arg1 = (GSkymap *) 0 ; |
7879 | int *arg2 = 0 ; |
7880 | void *argp1 = 0 ; |
7881 | int res1 = 0 ; |
7882 | int temp2 ; |
7883 | int val2 ; |
7884 | int ecode2 = 0 ; |
7885 | PyObject * obj0 = 0 ; |
7886 | PyObject * obj1 = 0 ; |
7887 | GSkyDir result; |
7888 | |
7889 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_inx2dir",&obj0,&obj1)) SWIG_failgoto fail; |
7890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7891 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_inx2dir" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_inx2dir" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7893 | } |
7894 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7895 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
7896 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
7897 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkymap_inx2dir" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkymap_inx2dir" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
7898 | } |
7899 | temp2 = static_cast< int >(val2); |
7900 | arg2 = &temp2; |
7901 | { |
7902 | try { |
7903 | result = ((GSkymap const *)arg1)->inx2dir((int const &)*arg2); |
7904 | } |
7905 | catch (const GException::out_of_range& e) { |
7906 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7907 | } |
7908 | catch (const GExceptionHandler& e) { |
7909 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7910 | } |
7911 | catch (const std::exception& e) { |
7912 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7913 | } |
7914 | } |
7915 | resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast< const GSkyDir& >(result))), swig_types[6], 0x1 | 0); |
7916 | return resultobj; |
7917 | fail: |
7918 | return NULL__null; |
7919 | } |
7920 | |
7921 | |
7922 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_pix2dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7923 | PyObject *resultobj = 0; |
7924 | GSkymap *arg1 = (GSkymap *) 0 ; |
7925 | GSkyPixel *arg2 = 0 ; |
7926 | void *argp1 = 0 ; |
7927 | int res1 = 0 ; |
7928 | void *argp2 = 0 ; |
7929 | int res2 = 0 ; |
7930 | PyObject * obj0 = 0 ; |
7931 | PyObject * obj1 = 0 ; |
7932 | GSkyDir result; |
7933 | |
7934 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_pix2dir",&obj0,&obj1)) SWIG_failgoto fail; |
7935 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7936 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7937 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_pix2dir" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_pix2dir" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7938 | } |
7939 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7940 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
7941 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7942 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
7943 | } |
7944 | if (!argp2) { |
7945 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
7946 | } |
7947 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
7948 | { |
7949 | try { |
7950 | result = ((GSkymap const *)arg1)->pix2dir((GSkyPixel const &)*arg2); |
7951 | } |
7952 | catch (const GException::out_of_range& e) { |
7953 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
7954 | } |
7955 | catch (const GExceptionHandler& e) { |
7956 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7957 | } |
7958 | catch (const std::exception& e) { |
7959 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
7960 | } |
7961 | } |
7962 | resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast< const GSkyDir& >(result))), swig_types[6], 0x1 | 0); |
7963 | return resultobj; |
7964 | fail: |
7965 | return NULL__null; |
7966 | } |
7967 | |
7968 | |
7969 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_pix2inx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
7970 | PyObject *resultobj = 0; |
7971 | GSkymap *arg1 = (GSkymap *) 0 ; |
7972 | GSkyPixel *arg2 = 0 ; |
7973 | void *argp1 = 0 ; |
7974 | int res1 = 0 ; |
7975 | void *argp2 = 0 ; |
7976 | int res2 = 0 ; |
7977 | PyObject * obj0 = 0 ; |
7978 | PyObject * obj1 = 0 ; |
7979 | int result; |
7980 | |
7981 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_pix2inx",&obj0,&obj1)) SWIG_failgoto fail; |
7982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
7983 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
7984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_pix2inx" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_pix2inx" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
7985 | } |
7986 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
7987 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
7988 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
7989 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_pix2inx" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_pix2inx" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
7990 | } |
7991 | if (!argp2) { |
7992 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_pix2inx" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_pix2inx" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
7993 | } |
7994 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
7995 | { |
7996 | try { |
7997 | result = (int)((GSkymap const *)arg1)->pix2inx((GSkyPixel const &)*arg2); |
7998 | } |
7999 | catch (const GException::out_of_range& e) { |
8000 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8001 | } |
8002 | catch (const GExceptionHandler& e) { |
8003 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8004 | } |
8005 | catch (const std::exception& e) { |
8006 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8007 | } |
8008 | } |
8009 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8010 | return resultobj; |
8011 | fail: |
8012 | return NULL__null; |
8013 | } |
8014 | |
8015 | |
8016 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_dir2inx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8017 | PyObject *resultobj = 0; |
8018 | GSkymap *arg1 = (GSkymap *) 0 ; |
8019 | GSkyDir *arg2 = 0 ; |
8020 | void *argp1 = 0 ; |
8021 | int res1 = 0 ; |
8022 | void *argp2 = 0 ; |
8023 | int res2 = 0 ; |
8024 | PyObject * obj0 = 0 ; |
8025 | PyObject * obj1 = 0 ; |
8026 | int result; |
8027 | |
8028 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_dir2inx",&obj0,&obj1)) SWIG_failgoto fail; |
8029 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8030 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8031 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_dir2inx" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_dir2inx" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8032 | } |
8033 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8034 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
8035 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8036 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_dir2inx" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_dir2inx" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
8037 | } |
8038 | if (!argp2) { |
8039 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_dir2inx" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_dir2inx" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
8040 | } |
8041 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
8042 | { |
8043 | try { |
8044 | result = (int)((GSkymap const *)arg1)->dir2inx((GSkyDir const &)*arg2); |
8045 | } |
8046 | catch (const GException::out_of_range& e) { |
8047 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8048 | } |
8049 | catch (const GExceptionHandler& e) { |
8050 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8051 | } |
8052 | catch (const std::exception& e) { |
8053 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8054 | } |
8055 | } |
8056 | resultobj = SWIG_From_int(static_cast< int >(result)); |
8057 | return resultobj; |
8058 | fail: |
8059 | return NULL__null; |
8060 | } |
8061 | |
8062 | |
8063 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_dir2pix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8064 | PyObject *resultobj = 0; |
8065 | GSkymap *arg1 = (GSkymap *) 0 ; |
8066 | GSkyDir *arg2 = 0 ; |
8067 | void *argp1 = 0 ; |
8068 | int res1 = 0 ; |
8069 | void *argp2 = 0 ; |
8070 | int res2 = 0 ; |
8071 | PyObject * obj0 = 0 ; |
8072 | PyObject * obj1 = 0 ; |
8073 | GSkyPixel result; |
8074 | |
8075 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_dir2pix",&obj0,&obj1)) SWIG_failgoto fail; |
8076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8077 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_dir2pix" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_dir2pix" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8079 | } |
8080 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8081 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
8082 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8083 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
8084 | } |
8085 | if (!argp2) { |
8086 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
8087 | } |
8088 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
8089 | { |
8090 | try { |
8091 | result = ((GSkymap const *)arg1)->dir2pix((GSkyDir const &)*arg2); |
8092 | } |
8093 | catch (const GException::out_of_range& e) { |
8094 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8095 | } |
8096 | catch (const GExceptionHandler& e) { |
8097 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8098 | } |
8099 | catch (const std::exception& e) { |
8100 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8101 | } |
8102 | } |
8103 | resultobj = SWIG_NewPointerObj((new GSkyPixel(static_cast< const GSkyPixel& >(result))), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyPixel(static_cast< const GSkyPixel& >(result))), swig_types[7], 0x1 | 0); |
8104 | return resultobj; |
8105 | fail: |
8106 | return NULL__null; |
8107 | } |
8108 | |
8109 | |
8110 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_solidangle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8111 | PyObject *resultobj = 0; |
8112 | GSkymap *arg1 = (GSkymap *) 0 ; |
8113 | int *arg2 = 0 ; |
8114 | void *argp1 = 0 ; |
8115 | int res1 = 0 ; |
8116 | int temp2 ; |
8117 | int val2 ; |
8118 | int ecode2 = 0 ; |
8119 | PyObject * obj0 = 0 ; |
8120 | PyObject * obj1 = 0 ; |
8121 | double result; |
8122 | |
8123 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_solidangle",&obj0,&obj1)) SWIG_failgoto fail; |
8124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8125 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_solidangle" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_solidangle" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8127 | } |
8128 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8129 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
8130 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
8131 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkymap_solidangle" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkymap_solidangle" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
8132 | } |
8133 | temp2 = static_cast< int >(val2); |
8134 | arg2 = &temp2; |
8135 | { |
8136 | try { |
8137 | result = (double)((GSkymap const *)arg1)->solidangle((int const &)*arg2); |
8138 | } |
8139 | catch (const GException::out_of_range& e) { |
8140 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8141 | } |
8142 | catch (const GExceptionHandler& e) { |
8143 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8144 | } |
8145 | catch (const std::exception& e) { |
8146 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8147 | } |
8148 | } |
8149 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8150 | return resultobj; |
8151 | fail: |
8152 | return NULL__null; |
8153 | } |
8154 | |
8155 | |
8156 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_solidangle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8157 | PyObject *resultobj = 0; |
8158 | GSkymap *arg1 = (GSkymap *) 0 ; |
8159 | GSkyPixel *arg2 = 0 ; |
8160 | void *argp1 = 0 ; |
8161 | int res1 = 0 ; |
8162 | void *argp2 = 0 ; |
8163 | int res2 = 0 ; |
8164 | PyObject * obj0 = 0 ; |
8165 | PyObject * obj1 = 0 ; |
8166 | double result; |
8167 | |
8168 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_solidangle",&obj0,&obj1)) SWIG_failgoto fail; |
8169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8170 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_solidangle" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_solidangle" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8172 | } |
8173 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8174 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
8175 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8176 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
8177 | } |
8178 | if (!argp2) { |
8179 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
8180 | } |
8181 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
8182 | { |
8183 | try { |
8184 | result = (double)((GSkymap const *)arg1)->solidangle((GSkyPixel const &)*arg2); |
8185 | } |
8186 | catch (const GException::out_of_range& e) { |
8187 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8188 | } |
8189 | catch (const GExceptionHandler& e) { |
8190 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8191 | } |
8192 | catch (const std::exception& e) { |
8193 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8194 | } |
8195 | } |
8196 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8197 | return resultobj; |
8198 | fail: |
8199 | return NULL__null; |
8200 | } |
8201 | |
8202 | |
8203 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_solidangle(PyObject *self, PyObject *args) { |
8204 | int argc; |
8205 | PyObject *argv[3]; |
8206 | int ii; |
8207 | |
8208 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8209 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8210 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8211 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8212 | } |
8213 | if (argc == 2) { |
8214 | int _v; |
8215 | void *vptr = 0; |
8216 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8217 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8218 | if (_v) { |
8219 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[7], 0, 0); |
8220 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8221 | if (_v) { |
8222 | return _wrap_GSkymap_solidangle__SWIG_1(self, args); |
8223 | } |
8224 | } |
8225 | } |
8226 | if (argc == 2) { |
8227 | int _v; |
8228 | void *vptr = 0; |
8229 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8230 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8231 | if (_v) { |
8232 | { |
8233 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
8234 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8235 | } |
8236 | if (_v) { |
8237 | return _wrap_GSkymap_solidangle__SWIG_0(self, args); |
8238 | } |
8239 | } |
8240 | } |
8241 | |
8242 | fail: |
8243 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkymap_solidangle'.\n" |
8244 | " Possible C/C++ prototypes are:\n" |
8245 | " GSkymap::solidangle(int const &) const\n" |
8246 | " GSkymap::solidangle(GSkyPixel const &) const\n"); |
8247 | return 0; |
8248 | } |
8249 | |
8250 | |
8251 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8252 | PyObject *resultobj = 0; |
8253 | GSkymap *arg1 = (GSkymap *) 0 ; |
8254 | GSkyDir *arg2 = 0 ; |
8255 | void *argp1 = 0 ; |
8256 | int res1 = 0 ; |
8257 | void *argp2 = 0 ; |
8258 | int res2 = 0 ; |
8259 | PyObject * obj0 = 0 ; |
8260 | PyObject * obj1 = 0 ; |
8261 | bool result; |
8262 | |
8263 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_contains",&obj0,&obj1)) SWIG_failgoto fail; |
8264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8265 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_contains" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_contains" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8267 | } |
8268 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8269 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
8270 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8271 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
8272 | } |
8273 | if (!argp2) { |
8274 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
8275 | } |
8276 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
8277 | { |
8278 | try { |
8279 | result = (bool)((GSkymap const *)arg1)->contains((GSkyDir const &)*arg2); |
8280 | } |
8281 | catch (const GException::out_of_range& e) { |
8282 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8283 | } |
8284 | catch (const GExceptionHandler& e) { |
8285 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8286 | } |
8287 | catch (const std::exception& e) { |
8288 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8289 | } |
8290 | } |
8291 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
8292 | return resultobj; |
8293 | fail: |
8294 | return NULL__null; |
8295 | } |
8296 | |
8297 | |
8298 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8299 | PyObject *resultobj = 0; |
8300 | GSkymap *arg1 = (GSkymap *) 0 ; |
8301 | GSkyPixel *arg2 = 0 ; |
8302 | void *argp1 = 0 ; |
8303 | int res1 = 0 ; |
8304 | void *argp2 = 0 ; |
8305 | int res2 = 0 ; |
8306 | PyObject * obj0 = 0 ; |
8307 | PyObject * obj1 = 0 ; |
8308 | bool result; |
8309 | |
8310 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_contains",&obj0,&obj1)) SWIG_failgoto fail; |
8311 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8312 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8313 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_contains" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_contains" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8314 | } |
8315 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8316 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
8317 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8318 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
8319 | } |
8320 | if (!argp2) { |
8321 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_contains" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
8322 | } |
8323 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
8324 | { |
8325 | try { |
8326 | result = (bool)((GSkymap const *)arg1)->contains((GSkyPixel const &)*arg2); |
8327 | } |
8328 | catch (const GException::out_of_range& e) { |
8329 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8330 | } |
8331 | catch (const GExceptionHandler& e) { |
8332 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8333 | } |
8334 | catch (const std::exception& e) { |
8335 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8336 | } |
8337 | } |
8338 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
8339 | return resultobj; |
8340 | fail: |
8341 | return NULL__null; |
8342 | } |
8343 | |
8344 | |
8345 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_contains(PyObject *self, PyObject *args) { |
8346 | int argc; |
8347 | PyObject *argv[3]; |
8348 | int ii; |
8349 | |
8350 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8351 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8352 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8353 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8354 | } |
8355 | if (argc == 2) { |
8356 | int _v; |
8357 | void *vptr = 0; |
8358 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8359 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8360 | if (_v) { |
8361 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0); |
8362 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8363 | if (_v) { |
8364 | return _wrap_GSkymap_contains__SWIG_0(self, args); |
8365 | } |
8366 | } |
8367 | } |
8368 | if (argc == 2) { |
8369 | int _v; |
8370 | void *vptr = 0; |
8371 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8372 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8373 | if (_v) { |
8374 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyPixel, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[7], 0, 0); |
8375 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8376 | if (_v) { |
8377 | return _wrap_GSkymap_contains__SWIG_1(self, args); |
8378 | } |
8379 | } |
8380 | } |
8381 | |
8382 | fail: |
8383 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkymap_contains'.\n" |
8384 | " Possible C/C++ prototypes are:\n" |
8385 | " GSkymap::contains(GSkyDir const &) const\n" |
8386 | " GSkymap::contains(GSkyPixel const &) const\n"); |
8387 | return 0; |
8388 | } |
8389 | |
8390 | |
8391 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_projection__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8392 | PyObject *resultobj = 0; |
8393 | GSkymap *arg1 = (GSkymap *) 0 ; |
8394 | void *argp1 = 0 ; |
8395 | int res1 = 0 ; |
8396 | PyObject * obj0 = 0 ; |
8397 | GSkyProjection *result = 0 ; |
8398 | |
8399 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_projection",&obj0)) SWIG_failgoto fail; |
8400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8401 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_projection" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_projection" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8403 | } |
8404 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8405 | { |
8406 | try { |
8407 | result = (GSkyProjection *)((GSkymap const *)arg1)->projection(); |
8408 | } |
8409 | catch (const GException::out_of_range& e) { |
8410 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8411 | } |
8412 | catch (const GExceptionHandler& e) { |
8413 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8414 | } |
8415 | catch (const std::exception& e) { |
8416 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8417 | } |
8418 | } |
8419 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], 0 | 0); |
8420 | return resultobj; |
8421 | fail: |
8422 | return NULL__null; |
8423 | } |
8424 | |
8425 | |
8426 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_projection__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8427 | PyObject *resultobj = 0; |
8428 | GSkymap *arg1 = (GSkymap *) 0 ; |
8429 | GSkyProjection *arg2 = 0 ; |
8430 | void *argp1 = 0 ; |
8431 | int res1 = 0 ; |
8432 | void *argp2 = 0 ; |
8433 | int res2 = 0 ; |
8434 | PyObject * obj0 = 0 ; |
8435 | PyObject * obj1 = 0 ; |
8436 | |
8437 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_projection",&obj0,&obj1)) SWIG_failgoto fail; |
8438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8439 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_projection" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_projection" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
8441 | } |
8442 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8443 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyProjection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
8444 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8445 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_projection" "', argument " "2"" of type '" "GSkyProjection const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_projection" "', argument " "2"" of type '" "GSkyProjection const &""'"); goto fail; } while(0); |
8446 | } |
8447 | if (!argp2) { |
8448 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_projection" "', argument " "2"" of type '" "GSkyProjection const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_projection" "', argument " "2"" of type '" "GSkyProjection const &""'"); goto fail; } while(0); |
8449 | } |
8450 | arg2 = reinterpret_cast< GSkyProjection * >(argp2); |
8451 | { |
8452 | try { |
8453 | (arg1)->projection((GSkyProjection 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_GSkymap_projection(PyObject *self, PyObject *args) { |
8473 | int argc; |
8474 | PyObject *argv[3]; |
8475 | int ii; |
8476 | |
8477 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8478 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8479 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
8480 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8481 | } |
8482 | if (argc == 1) { |
8483 | int _v; |
8484 | void *vptr = 0; |
8485 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8486 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8487 | if (_v) { |
8488 | return _wrap_GSkymap_projection__SWIG_0(self, args); |
8489 | } |
8490 | } |
8491 | if (argc == 2) { |
8492 | int _v; |
8493 | void *vptr = 0; |
8494 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8495 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8496 | if (_v) { |
8497 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyProjection, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[8], 0, 0); |
8498 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8499 | if (_v) { |
8500 | return _wrap_GSkymap_projection__SWIG_1(self, args); |
8501 | } |
8502 | } |
8503 | } |
8504 | |
8505 | fail: |
8506 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkymap_projection'.\n" |
8507 | " Possible C/C++ prototypes are:\n" |
8508 | " GSkymap::projection() const\n" |
8509 | " GSkymap::projection(GSkyProjection const &)\n"); |
8510 | return 0; |
8511 | } |
8512 | |
8513 | |
8514 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_pixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8515 | PyObject *resultobj = 0; |
8516 | GSkymap *arg1 = (GSkymap *) 0 ; |
8517 | void *argp1 = 0 ; |
8518 | int res1 = 0 ; |
8519 | PyObject * obj0 = 0 ; |
8520 | double *result = 0 ; |
8521 | |
8522 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_pixels",&obj0)) SWIG_failgoto fail; |
8523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8524 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_pixels" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_pixels" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8526 | } |
8527 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8528 | { |
8529 | try { |
8530 | result = (double *)((GSkymap const *)arg1)->pixels(); |
8531 | } |
8532 | catch (const GException::out_of_range& e) { |
8533 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8534 | } |
8535 | catch (const GExceptionHandler& e) { |
8536 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8537 | } |
8538 | catch (const std::exception& e) { |
8539 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8540 | } |
8541 | } |
8542 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[23], 0 | 0); |
8543 | return resultobj; |
8544 | fail: |
8545 | return NULL__null; |
8546 | } |
8547 | |
8548 | |
8549 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8550 | PyObject *resultobj = 0; |
8551 | GSkymap *arg1 = (GSkymap *) 0 ; |
8552 | std::string *arg2 = 0 ; |
8553 | void *argp1 = 0 ; |
8554 | int res1 = 0 ; |
8555 | int res2 = SWIG_OLDOBJ((0)) ; |
8556 | PyObject * obj0 = 0 ; |
8557 | PyObject * obj1 = 0 ; |
8558 | |
8559 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_load",&obj0,&obj1)) SWIG_failgoto fail; |
8560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8561 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_load" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_load" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
8563 | } |
8564 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8565 | { |
8566 | std::string *ptr = (std::string *)0; |
8567 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8568 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8569 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8570 | } |
8571 | if (!ptr) { |
8572 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_load" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8573 | } |
8574 | arg2 = ptr; |
8575 | } |
8576 | { |
8577 | try { |
8578 | (arg1)->load((std::string const &)*arg2); |
8579 | } |
8580 | catch (const GException::out_of_range& e) { |
8581 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8582 | } |
8583 | catch (const GExceptionHandler& e) { |
8584 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8585 | } |
8586 | catch (const std::exception& e) { |
8587 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8588 | } |
8589 | } |
8590 | resultobj = SWIG_Py_Void(); |
8591 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8592 | return resultobj; |
8593 | fail: |
8594 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8595 | return NULL__null; |
8596 | } |
8597 | |
8598 | |
8599 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8600 | PyObject *resultobj = 0; |
8601 | GSkymap *arg1 = (GSkymap *) 0 ; |
8602 | std::string *arg2 = 0 ; |
8603 | bool arg3 ; |
8604 | void *argp1 = 0 ; |
8605 | int res1 = 0 ; |
8606 | int res2 = SWIG_OLDOBJ((0)) ; |
8607 | bool val3 ; |
8608 | int ecode3 = 0 ; |
8609 | PyObject * obj0 = 0 ; |
8610 | PyObject * obj1 = 0 ; |
8611 | PyObject * obj2 = 0 ; |
8612 | |
8613 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkymap_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8615 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_save" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_save" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8617 | } |
8618 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8619 | { |
8620 | std::string *ptr = (std::string *)0; |
8621 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8622 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8623 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8624 | } |
8625 | if (!ptr) { |
8626 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8627 | } |
8628 | arg2 = ptr; |
8629 | } |
8630 | ecode3 = SWIG_AsVal_bool(obj2, &val3); |
8631 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
8632 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkymap_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkymap_save" "', argument " "3"" of type '" "bool""'"); goto fail; } while(0); |
8633 | } |
8634 | arg3 = static_cast< bool >(val3); |
8635 | { |
8636 | try { |
8637 | ((GSkymap const *)arg1)->save((std::string const &)*arg2,arg3); |
8638 | } |
8639 | catch (const GException::out_of_range& e) { |
8640 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8641 | } |
8642 | catch (const GExceptionHandler& e) { |
8643 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8644 | } |
8645 | catch (const std::exception& e) { |
8646 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8647 | } |
8648 | } |
8649 | resultobj = SWIG_Py_Void(); |
8650 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8651 | return resultobj; |
8652 | fail: |
8653 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8654 | return NULL__null; |
8655 | } |
8656 | |
8657 | |
8658 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8659 | PyObject *resultobj = 0; |
8660 | GSkymap *arg1 = (GSkymap *) 0 ; |
8661 | std::string *arg2 = 0 ; |
8662 | void *argp1 = 0 ; |
8663 | int res1 = 0 ; |
8664 | int res2 = SWIG_OLDOBJ((0)) ; |
8665 | PyObject * obj0 = 0 ; |
8666 | PyObject * obj1 = 0 ; |
8667 | |
8668 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_save",&obj0,&obj1)) SWIG_failgoto fail; |
8669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8670 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_save" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_save" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8672 | } |
8673 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8674 | { |
8675 | std::string *ptr = (std::string *)0; |
8676 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
8677 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8678 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
8679 | } |
8680 | if (!ptr) { |
8681 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_save" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
8682 | } |
8683 | arg2 = ptr; |
8684 | } |
8685 | { |
8686 | try { |
8687 | ((GSkymap const *)arg1)->save((std::string const &)*arg2); |
8688 | } |
8689 | catch (const GException::out_of_range& e) { |
8690 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8691 | } |
8692 | catch (const GExceptionHandler& e) { |
8693 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8694 | } |
8695 | catch (const std::exception& e) { |
8696 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8697 | } |
8698 | } |
8699 | resultobj = SWIG_Py_Void(); |
8700 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8701 | return resultobj; |
8702 | fail: |
8703 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
8704 | return NULL__null; |
8705 | } |
8706 | |
8707 | |
8708 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_save(PyObject *self, PyObject *args) { |
8709 | int argc; |
8710 | PyObject *argv[4]; |
8711 | int ii; |
8712 | |
8713 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
8714 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
8715 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
8716 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
8717 | } |
8718 | if (argc == 2) { |
8719 | int _v; |
8720 | void *vptr = 0; |
8721 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8722 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8723 | if (_v) { |
8724 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8725 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8726 | if (_v) { |
8727 | return _wrap_GSkymap_save__SWIG_1(self, args); |
8728 | } |
8729 | } |
8730 | } |
8731 | if (argc == 3) { |
8732 | int _v; |
8733 | void *vptr = 0; |
8734 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkymap, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[12 ], 0, 0); |
8735 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8736 | if (_v) { |
8737 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
8738 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8739 | if (_v) { |
8740 | { |
8741 | int res = SWIG_AsVal_bool(argv[2], NULL__null); |
8742 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
8743 | } |
8744 | if (_v) { |
8745 | return _wrap_GSkymap_save__SWIG_0(self, args); |
8746 | } |
8747 | } |
8748 | } |
8749 | } |
8750 | |
8751 | fail: |
8752 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkymap_save'.\n" |
8753 | " Possible C/C++ prototypes are:\n" |
8754 | " GSkymap::save(std::string const &,bool) const\n" |
8755 | " GSkymap::save(std::string const &) const\n"); |
8756 | return 0; |
8757 | } |
8758 | |
8759 | |
8760 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8761 | PyObject *resultobj = 0; |
8762 | GSkymap *arg1 = (GSkymap *) 0 ; |
8763 | GFitsHDU *arg2 = 0 ; |
8764 | void *argp1 = 0 ; |
8765 | int res1 = 0 ; |
8766 | void *argp2 = 0 ; |
8767 | int res2 = 0 ; |
8768 | PyObject * obj0 = 0 ; |
8769 | PyObject * obj1 = 0 ; |
8770 | |
8771 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_read",&obj0,&obj1)) SWIG_failgoto fail; |
8772 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8773 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_read" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_read" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
8775 | } |
8776 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8777 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0 | 0, 0); |
8778 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8779 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_read" "', argument " "2"" of type '" "GFitsHDU const &""'"); goto fail; } while (0); |
8780 | } |
8781 | if (!argp2) { |
8782 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_read" "', argument " "2"" of type '" "GFitsHDU const &" "'"); goto fail; } while(0); |
8783 | } |
8784 | arg2 = reinterpret_cast< GFitsHDU * >(argp2); |
8785 | { |
8786 | try { |
8787 | (arg1)->read((GFitsHDU const &)*arg2); |
8788 | } |
8789 | catch (const GException::out_of_range& e) { |
8790 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8791 | } |
8792 | catch (const GExceptionHandler& e) { |
8793 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8794 | } |
8795 | catch (const std::exception& e) { |
8796 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8797 | } |
8798 | } |
8799 | resultobj = SWIG_Py_Void(); |
8800 | return resultobj; |
8801 | fail: |
8802 | return NULL__null; |
8803 | } |
8804 | |
8805 | |
8806 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8807 | PyObject *resultobj = 0; |
8808 | GSkymap *arg1 = (GSkymap *) 0 ; |
8809 | GFits *arg2 = 0 ; |
8810 | void *argp1 = 0 ; |
8811 | int res1 = 0 ; |
8812 | void *argp2 = 0 ; |
8813 | int res2 = 0 ; |
8814 | PyObject * obj0 = 0 ; |
8815 | PyObject * obj1 = 0 ; |
8816 | |
8817 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap_write",&obj0,&obj1)) SWIG_failgoto fail; |
8818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8819 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_write" "', argument " "1"" of type '" "GSkymap const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_write" "', argument " "1"" of type '" "GSkymap const *""'"); goto fail; } while(0); |
8821 | } |
8822 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8823 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2], 0, 0); |
8824 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
8825 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkymap_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkymap_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
8826 | } |
8827 | if (!argp2) { |
8828 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkymap_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkymap_write" "', argument " "2"" of type '" "GFits &""'"); goto fail; } while(0); |
8829 | } |
8830 | arg2 = reinterpret_cast< GFits * >(argp2); |
8831 | { |
8832 | try { |
8833 | ((GSkymap const *)arg1)->write(*arg2); |
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_Py_Void(); |
8846 | return resultobj; |
8847 | fail: |
8848 | return NULL__null; |
8849 | } |
8850 | |
8851 | |
8852 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8853 | PyObject *resultobj = 0; |
8854 | GSkymap *arg1 = (GSkymap *) 0 ; |
8855 | int *arg2 ; |
8856 | void *argp1 = 0 ; |
8857 | int res1 = 0 ; |
8858 | int temp2[3] ; |
8859 | PyObject * obj0 = 0 ; |
8860 | PyObject * obj1 = 0 ; |
8861 | double result; |
8862 | |
8863 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkymap___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
8864 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8865 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap___getitem__" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap___getitem__" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
8867 | } |
8868 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8869 | { |
8870 | if (!skymap_tuple(obj1,temp2)) { |
8871 | return NULL__null; |
8872 | } |
8873 | arg2 = &temp2[0]; |
8874 | } |
8875 | { |
8876 | try { |
8877 | result = (double)GSkymap___getitem__(arg1,arg2); |
8878 | } |
8879 | catch (const GException::out_of_range& e) { |
8880 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8881 | } |
8882 | catch (const GExceptionHandler& e) { |
8883 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8884 | } |
8885 | catch (const std::exception& e) { |
8886 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8887 | } |
8888 | } |
8889 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
8890 | return resultobj; |
8891 | fail: |
8892 | return NULL__null; |
8893 | } |
8894 | |
8895 | |
8896 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8897 | PyObject *resultobj = 0; |
8898 | GSkymap *arg1 = (GSkymap *) 0 ; |
8899 | int *arg2 ; |
8900 | double arg3 ; |
8901 | void *argp1 = 0 ; |
8902 | int res1 = 0 ; |
8903 | int temp2[3] ; |
8904 | double val3 ; |
8905 | int ecode3 = 0 ; |
8906 | PyObject * obj0 = 0 ; |
8907 | PyObject * obj1 = 0 ; |
8908 | PyObject * obj2 = 0 ; |
8909 | |
8910 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkymap___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
8911 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8912 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8913 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap___setitem__" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap___setitem__" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
8914 | } |
8915 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8916 | { |
8917 | if (!skymap_tuple(obj1,temp2)) { |
8918 | return NULL__null; |
8919 | } |
8920 | arg2 = &temp2[0]; |
8921 | } |
8922 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
8923 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
8924 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkymap___setitem__" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkymap___setitem__" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
8925 | } |
8926 | arg3 = static_cast< double >(val3); |
8927 | { |
8928 | try { |
8929 | GSkymap___setitem__(arg1,arg2,arg3); |
8930 | } |
8931 | catch (const GException::out_of_range& e) { |
8932 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8933 | } |
8934 | catch (const GExceptionHandler& e) { |
8935 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8936 | } |
8937 | catch (const std::exception& e) { |
8938 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8939 | } |
8940 | } |
8941 | resultobj = SWIG_Py_Void(); |
8942 | return resultobj; |
8943 | fail: |
8944 | return NULL__null; |
8945 | } |
8946 | |
8947 | |
8948 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkymap_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8949 | PyObject *resultobj = 0; |
8950 | GSkymap *arg1 = (GSkymap *) 0 ; |
8951 | void *argp1 = 0 ; |
8952 | int res1 = 0 ; |
8953 | PyObject * obj0 = 0 ; |
8954 | GSkymap result; |
8955 | |
8956 | if (!PyArg_ParseTuple(args,(char *)"O:GSkymap_copy",&obj0)) SWIG_failgoto fail; |
8957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkymap, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[12] , 0 | 0, 0); |
8958 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
8959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkymap_copy" "', argument " "1"" of type '" "GSkymap *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkymap_copy" "', argument " "1"" of type '" "GSkymap *""'"); goto fail; } while(0); |
8960 | } |
8961 | arg1 = reinterpret_cast< GSkymap * >(argp1); |
8962 | { |
8963 | try { |
8964 | result = GSkymap_copy(arg1); |
8965 | } |
8966 | catch (const GException::out_of_range& e) { |
8967 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
8968 | } |
8969 | catch (const GExceptionHandler& e) { |
8970 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8971 | } |
8972 | catch (const std::exception& e) { |
8973 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
8974 | } |
8975 | } |
8976 | resultobj = SWIG_NewPointerObj((new GSkymap(static_cast< const GSkymap& >(result))), SWIGTYPE_p_GSkymap, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkymap(static_cast< const GSkymap& >(result))), swig_types[12], 0x1 | 0); |
8977 | return resultobj; |
8978 | fail: |
8979 | return NULL__null; |
8980 | } |
8981 | |
8982 | |
8983 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSkymap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8984 | PyObject *obj; |
8985 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
8986 | SWIG_TypeNewClientData(SWIGTYPE_p_GSkymapswig_types[12], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
8987 | return SWIG_Py_Void(); |
8988 | } |
8989 | |
8990 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegions__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8991 | PyObject *resultobj = 0; |
8992 | GSkyRegions *result = 0 ; |
8993 | |
8994 | if (!PyArg_ParseTuple(args,(char *)":new_GSkyRegions")) SWIG_failgoto fail; |
8995 | { |
8996 | try { |
8997 | result = (GSkyRegions *)new GSkyRegions(); |
8998 | } |
8999 | catch (const GException::out_of_range& e) { |
9000 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9001 | } |
9002 | catch (const GExceptionHandler& e) { |
9003 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9004 | } |
9005 | catch (const std::exception& e) { |
9006 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9007 | } |
9008 | } |
9009 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegions, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], ( (0x1 << 1) | 0x1) | 0); |
9010 | return resultobj; |
9011 | fail: |
9012 | return NULL__null; |
9013 | } |
9014 | |
9015 | |
9016 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegions__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9017 | PyObject *resultobj = 0; |
9018 | GSkyRegions *arg1 = 0 ; |
9019 | void *argp1 = 0 ; |
9020 | int res1 = 0 ; |
9021 | PyObject * obj0 = 0 ; |
9022 | GSkyRegions *result = 0 ; |
9023 | |
9024 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyRegions",&obj0)) SWIG_failgoto fail; |
9025 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyRegions, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9026 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "GSkyRegions const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "GSkyRegions const &""'"); goto fail; } while (0); |
9028 | } |
9029 | if (!argp1) { |
9030 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "GSkyRegions const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "GSkyRegions const &""'"); goto fail; } while(0); |
9031 | } |
9032 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9033 | { |
9034 | try { |
9035 | result = (GSkyRegions *)new GSkyRegions((GSkyRegions const &)*arg1); |
9036 | } |
9037 | catch (const GException::out_of_range& e) { |
9038 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9039 | } |
9040 | catch (const GExceptionHandler& e) { |
9041 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9042 | } |
9043 | catch (const std::exception& e) { |
9044 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9045 | } |
9046 | } |
9047 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegions, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], ( (0x1 << 1) | 0x1) | 0); |
9048 | return resultobj; |
9049 | fail: |
9050 | return NULL__null; |
9051 | } |
9052 | |
9053 | |
9054 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegions__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9055 | PyObject *resultobj = 0; |
9056 | std::string *arg1 = 0 ; |
9057 | int res1 = SWIG_OLDOBJ((0)) ; |
9058 | PyObject * obj0 = 0 ; |
9059 | GSkyRegions *result = 0 ; |
9060 | |
9061 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyRegions",&obj0)) SWIG_failgoto fail; |
9062 | { |
9063 | std::string *ptr = (std::string *)0; |
9064 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
9065 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
9067 | } |
9068 | if (!ptr) { |
9069 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkyRegions" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
9070 | } |
9071 | arg1 = ptr; |
9072 | } |
9073 | { |
9074 | try { |
9075 | result = (GSkyRegions *)new GSkyRegions((std::string const &)*arg1); |
9076 | } |
9077 | catch (const GException::out_of_range& e) { |
9078 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9079 | } |
9080 | catch (const GExceptionHandler& e) { |
9081 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9082 | } |
9083 | catch (const std::exception& e) { |
9084 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9085 | } |
9086 | } |
9087 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegions, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], ( (0x1 << 1) | 0x1) | 0); |
9088 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9089 | return resultobj; |
9090 | fail: |
9091 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
9092 | return NULL__null; |
9093 | } |
9094 | |
9095 | |
9096 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegions(PyObject *self, PyObject *args) { |
9097 | int argc; |
9098 | PyObject *argv[2]; |
9099 | int ii; |
9100 | |
9101 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9102 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9103 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
9104 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9105 | } |
9106 | if (argc == 0) { |
9107 | return _wrap_new_GSkyRegions__SWIG_0(self, args); |
9108 | } |
9109 | if (argc == 1) { |
9110 | int _v; |
9111 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyRegions, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[11], 0, 0 ); |
9112 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9113 | if (_v) { |
9114 | return _wrap_new_GSkyRegions__SWIG_1(self, args); |
9115 | } |
9116 | } |
9117 | if (argc == 1) { |
9118 | int _v; |
9119 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
9120 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9121 | if (_v) { |
9122 | return _wrap_new_GSkyRegions__SWIG_2(self, args); |
9123 | } |
9124 | } |
9125 | |
9126 | fail: |
9127 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GSkyRegions'.\n" |
9128 | " Possible C/C++ prototypes are:\n" |
9129 | " GSkyRegions::GSkyRegions()\n" |
9130 | " GSkyRegions::GSkyRegions(GSkyRegions const &)\n" |
9131 | " GSkyRegions::GSkyRegions(std::string const &)\n"); |
9132 | return 0; |
9133 | } |
9134 | |
9135 | |
9136 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSkyRegions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9137 | PyObject *resultobj = 0; |
9138 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9139 | void *argp1 = 0 ; |
9140 | int res1 = 0 ; |
9141 | PyObject * obj0 = 0 ; |
9142 | |
9143 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GSkyRegions",&obj0)) SWIG_failgoto fail; |
9144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0x1 | 0, 0); |
9145 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSkyRegions" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GSkyRegions" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9147 | } |
9148 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9149 | { |
9150 | try { |
9151 | delete arg1; |
9152 | } |
9153 | catch (const GException::out_of_range& e) { |
9154 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9155 | } |
9156 | catch (const GExceptionHandler& e) { |
9157 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9158 | } |
9159 | catch (const std::exception& e) { |
9160 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9161 | } |
9162 | } |
9163 | resultobj = SWIG_Py_Void(); |
9164 | return resultobj; |
9165 | fail: |
9166 | return NULL__null; |
9167 | } |
9168 | |
9169 | |
9170 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9171 | PyObject *resultobj = 0; |
9172 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9173 | void *argp1 = 0 ; |
9174 | int res1 = 0 ; |
9175 | PyObject * obj0 = 0 ; |
9176 | |
9177 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegions_clear",&obj0)) SWIG_failgoto fail; |
9178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9179 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_clear" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_clear" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9181 | } |
9182 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9183 | { |
9184 | try { |
9185 | (arg1)->clear(); |
9186 | } |
9187 | catch (const GException::out_of_range& e) { |
9188 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9189 | } |
9190 | catch (const GExceptionHandler& e) { |
9191 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9192 | } |
9193 | catch (const std::exception& e) { |
9194 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9195 | } |
9196 | } |
9197 | resultobj = SWIG_Py_Void(); |
9198 | return resultobj; |
9199 | fail: |
9200 | return NULL__null; |
9201 | } |
9202 | |
9203 | |
9204 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9205 | PyObject *resultobj = 0; |
9206 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9207 | void *argp1 = 0 ; |
9208 | int res1 = 0 ; |
9209 | PyObject * obj0 = 0 ; |
9210 | GSkyRegions *result = 0 ; |
9211 | |
9212 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegions_clone",&obj0)) SWIG_failgoto fail; |
9213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9214 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_clone" "', argument " "1"" of type '" "GSkyRegions const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_clone" "', argument " "1"" of type '" "GSkyRegions const *""'"); goto fail; } while (0); |
9216 | } |
9217 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9218 | { |
9219 | try { |
9220 | result = (GSkyRegions *)((GSkyRegions const *)arg1)->clone(); |
9221 | } |
9222 | catch (const GException::out_of_range& e) { |
9223 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9224 | } |
9225 | catch (const GExceptionHandler& e) { |
9226 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9227 | } |
9228 | catch (const std::exception& e) { |
9229 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9230 | } |
9231 | } |
9232 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[11], 0 | 0); |
9233 | return resultobj; |
9234 | fail: |
9235 | return NULL__null; |
9236 | } |
9237 | |
9238 | |
9239 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9240 | PyObject *resultobj = 0; |
9241 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9242 | int *arg2 = 0 ; |
9243 | void *argp1 = 0 ; |
9244 | int res1 = 0 ; |
9245 | int temp2 ; |
9246 | int val2 ; |
9247 | int ecode2 = 0 ; |
9248 | PyObject * obj0 = 0 ; |
9249 | PyObject * obj1 = 0 ; |
9250 | GSkyRegion *result = 0 ; |
9251 | |
9252 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_at",&obj0,&obj1)) SWIG_failgoto fail; |
9253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9254 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_at" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_at" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9256 | } |
9257 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9258 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9259 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9260 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegions_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegions_at" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9261 | } |
9262 | temp2 = static_cast< int >(val2); |
9263 | arg2 = &temp2; |
9264 | { |
9265 | try { |
9266 | result = (GSkyRegion *)(arg1)->at((int const &)*arg2); |
9267 | } |
9268 | catch (const GException::out_of_range& e) { |
9269 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9270 | } |
9271 | catch (const GExceptionHandler& e) { |
9272 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9273 | } |
9274 | catch (const std::exception& e) { |
9275 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9276 | } |
9277 | } |
9278 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
9279 | return resultobj; |
9280 | fail: |
9281 | return NULL__null; |
9282 | } |
9283 | |
9284 | |
9285 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9286 | PyObject *resultobj = 0; |
9287 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9288 | void *argp1 = 0 ; |
9289 | int res1 = 0 ; |
9290 | PyObject * obj0 = 0 ; |
9291 | int result; |
9292 | |
9293 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegions_size",&obj0)) SWIG_failgoto fail; |
9294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9295 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_size" "', argument " "1"" of type '" "GSkyRegions const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_size" "', argument " "1"" of type '" "GSkyRegions const *""'"); goto fail; } while (0); |
9297 | } |
9298 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9299 | { |
9300 | try { |
9301 | result = (int)((GSkyRegions const *)arg1)->size(); |
9302 | } |
9303 | catch (const GException::out_of_range& e) { |
9304 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9305 | } |
9306 | catch (const GExceptionHandler& e) { |
9307 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9308 | } |
9309 | catch (const std::exception& e) { |
9310 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9311 | } |
9312 | } |
9313 | resultobj = SWIG_From_int(static_cast< int >(result)); |
9314 | return resultobj; |
9315 | fail: |
9316 | return NULL__null; |
9317 | } |
9318 | |
9319 | |
9320 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9321 | PyObject *resultobj = 0; |
9322 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9323 | void *argp1 = 0 ; |
9324 | int res1 = 0 ; |
9325 | PyObject * obj0 = 0 ; |
9326 | bool result; |
9327 | |
9328 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegions_isempty",&obj0)) SWIG_failgoto fail; |
9329 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9330 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_isempty" "', argument " "1"" of type '" "GSkyRegions const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_isempty" "', argument " "1"" of type '" "GSkyRegions const *""'"); goto fail; } while (0); |
9332 | } |
9333 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9334 | { |
9335 | try { |
9336 | result = (bool)((GSkyRegions const *)arg1)->isempty(); |
9337 | } |
9338 | catch (const GException::out_of_range& e) { |
9339 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9340 | } |
9341 | catch (const GExceptionHandler& e) { |
9342 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9343 | } |
9344 | catch (const std::exception& e) { |
9345 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9346 | } |
9347 | } |
9348 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
9349 | return resultobj; |
9350 | fail: |
9351 | return NULL__null; |
9352 | } |
9353 | |
9354 | |
9355 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9356 | PyObject *resultobj = 0; |
9357 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9358 | int *arg2 = 0 ; |
9359 | GSkyRegion *arg3 = 0 ; |
9360 | void *argp1 = 0 ; |
9361 | int res1 = 0 ; |
9362 | int temp2 ; |
9363 | int val2 ; |
9364 | int ecode2 = 0 ; |
9365 | void *argp3 = 0 ; |
9366 | int res3 = 0 ; |
9367 | PyObject * obj0 = 0 ; |
9368 | PyObject * obj1 = 0 ; |
9369 | PyObject * obj2 = 0 ; |
9370 | GSkyRegion *result = 0 ; |
9371 | |
9372 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyRegions_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9373 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9374 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9375 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_set" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_set" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9376 | } |
9377 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9378 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9379 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9380 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegions_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegions_set" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9381 | } |
9382 | temp2 = static_cast< int >(val2); |
9383 | arg2 = &temp2; |
9384 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[9], 0 | 0, 0); |
9385 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9386 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
9387 | } |
9388 | if (!argp3) { |
9389 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
9390 | } |
9391 | arg3 = reinterpret_cast< GSkyRegion * >(argp3); |
9392 | { |
9393 | try { |
9394 | result = (GSkyRegion *)(arg1)->set((int const &)*arg2,(GSkyRegion const &)*arg3); |
9395 | } |
9396 | catch (const GException::out_of_range& e) { |
9397 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9398 | } |
9399 | catch (const GExceptionHandler& e) { |
9400 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9401 | } |
9402 | catch (const std::exception& e) { |
9403 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9404 | } |
9405 | } |
9406 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
9407 | return resultobj; |
9408 | fail: |
9409 | return NULL__null; |
9410 | } |
9411 | |
9412 | |
9413 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9414 | PyObject *resultobj = 0; |
9415 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9416 | std::string *arg2 = 0 ; |
9417 | GSkyRegion *arg3 = 0 ; |
9418 | void *argp1 = 0 ; |
9419 | int res1 = 0 ; |
9420 | int res2 = SWIG_OLDOBJ((0)) ; |
9421 | void *argp3 = 0 ; |
9422 | int res3 = 0 ; |
9423 | PyObject * obj0 = 0 ; |
9424 | PyObject * obj1 = 0 ; |
9425 | PyObject * obj2 = 0 ; |
9426 | GSkyRegion *result = 0 ; |
9427 | |
9428 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyRegions_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9430 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_set" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_set" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9432 | } |
9433 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9434 | { |
9435 | std::string *ptr = (std::string *)0; |
9436 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9437 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9438 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_set" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9439 | } |
9440 | if (!ptr) { |
9441 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_set" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9442 | } |
9443 | arg2 = ptr; |
9444 | } |
9445 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[9], 0 | 0, 0); |
9446 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9447 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
9448 | } |
9449 | if (!argp3) { |
9450 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_set" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
9451 | } |
9452 | arg3 = reinterpret_cast< GSkyRegion * >(argp3); |
9453 | { |
9454 | try { |
9455 | result = (GSkyRegion *)(arg1)->set((std::string const &)*arg2,(GSkyRegion const &)*arg3); |
9456 | } |
9457 | catch (const GException::out_of_range& e) { |
9458 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9459 | } |
9460 | catch (const GExceptionHandler& e) { |
9461 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9462 | } |
9463 | catch (const std::exception& e) { |
9464 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9465 | } |
9466 | } |
9467 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
9468 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9469 | return resultobj; |
9470 | fail: |
9471 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9472 | return NULL__null; |
9473 | } |
9474 | |
9475 | |
9476 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_set(PyObject *self, PyObject *args) { |
9477 | int argc; |
9478 | PyObject *argv[4]; |
9479 | int ii; |
9480 | |
9481 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9482 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9483 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9484 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9485 | } |
9486 | if (argc == 3) { |
9487 | int _v; |
9488 | void *vptr = 0; |
9489 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegions, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
9490 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9491 | if (_v) { |
9492 | { |
9493 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9494 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9495 | } |
9496 | if (_v) { |
9497 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[9], 0, 0); |
9498 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9499 | if (_v) { |
9500 | return _wrap_GSkyRegions_set__SWIG_0(self, args); |
9501 | } |
9502 | } |
9503 | } |
9504 | } |
9505 | if (argc == 3) { |
9506 | int _v; |
9507 | void *vptr = 0; |
9508 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegions, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
9509 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9510 | if (_v) { |
9511 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9512 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9513 | if (_v) { |
9514 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[9], 0, 0); |
9515 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9516 | if (_v) { |
9517 | return _wrap_GSkyRegions_set__SWIG_1(self, args); |
9518 | } |
9519 | } |
9520 | } |
9521 | } |
9522 | |
9523 | fail: |
9524 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyRegions_set'.\n" |
9525 | " Possible C/C++ prototypes are:\n" |
9526 | " GSkyRegions::set(int const &,GSkyRegion const &)\n" |
9527 | " GSkyRegions::set(std::string const &,GSkyRegion const &)\n"); |
9528 | return 0; |
9529 | } |
9530 | |
9531 | |
9532 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9533 | PyObject *resultobj = 0; |
9534 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9535 | GSkyRegion *arg2 = 0 ; |
9536 | void *argp1 = 0 ; |
9537 | int res1 = 0 ; |
9538 | void *argp2 = 0 ; |
9539 | int res2 = 0 ; |
9540 | PyObject * obj0 = 0 ; |
9541 | PyObject * obj1 = 0 ; |
9542 | GSkyRegion *result = 0 ; |
9543 | |
9544 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_append",&obj0,&obj1)) SWIG_failgoto fail; |
9545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9546 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_append" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_append" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9548 | } |
9549 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9550 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
9551 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_append" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_append" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
9553 | } |
9554 | if (!argp2) { |
9555 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_append" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_append" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
9556 | } |
9557 | arg2 = reinterpret_cast< GSkyRegion * >(argp2); |
9558 | { |
9559 | try { |
9560 | result = (GSkyRegion *)(arg1)->append((GSkyRegion const &)*arg2); |
9561 | } |
9562 | catch (const GException::out_of_range& e) { |
9563 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9564 | } |
9565 | catch (const GExceptionHandler& e) { |
9566 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9567 | } |
9568 | catch (const std::exception& e) { |
9569 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9570 | } |
9571 | } |
9572 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
9573 | return resultobj; |
9574 | fail: |
9575 | return NULL__null; |
9576 | } |
9577 | |
9578 | |
9579 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9580 | PyObject *resultobj = 0; |
9581 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9582 | int *arg2 = 0 ; |
9583 | GSkyRegion *arg3 = 0 ; |
9584 | void *argp1 = 0 ; |
9585 | int res1 = 0 ; |
9586 | int temp2 ; |
9587 | int val2 ; |
9588 | int ecode2 = 0 ; |
9589 | void *argp3 = 0 ; |
9590 | int res3 = 0 ; |
9591 | PyObject * obj0 = 0 ; |
9592 | PyObject * obj1 = 0 ; |
9593 | PyObject * obj2 = 0 ; |
9594 | GSkyRegion *result = 0 ; |
9595 | |
9596 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyRegions_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9597 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9598 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_insert" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_insert" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9600 | } |
9601 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9602 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9603 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9604 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegions_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegions_insert" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9605 | } |
9606 | temp2 = static_cast< int >(val2); |
9607 | arg2 = &temp2; |
9608 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[9], 0 | 0, 0); |
9609 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9610 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
9611 | } |
9612 | if (!argp3) { |
9613 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
9614 | } |
9615 | arg3 = reinterpret_cast< GSkyRegion * >(argp3); |
9616 | { |
9617 | try { |
9618 | result = (GSkyRegion *)(arg1)->insert((int const &)*arg2,(GSkyRegion const &)*arg3); |
9619 | } |
9620 | catch (const GException::out_of_range& e) { |
9621 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9622 | } |
9623 | catch (const GExceptionHandler& e) { |
9624 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9625 | } |
9626 | catch (const std::exception& e) { |
9627 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9628 | } |
9629 | } |
9630 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
9631 | return resultobj; |
9632 | fail: |
9633 | return NULL__null; |
9634 | } |
9635 | |
9636 | |
9637 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9638 | PyObject *resultobj = 0; |
9639 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9640 | std::string *arg2 = 0 ; |
9641 | GSkyRegion *arg3 = 0 ; |
9642 | void *argp1 = 0 ; |
9643 | int res1 = 0 ; |
9644 | int res2 = SWIG_OLDOBJ((0)) ; |
9645 | void *argp3 = 0 ; |
9646 | int res3 = 0 ; |
9647 | PyObject * obj0 = 0 ; |
9648 | PyObject * obj1 = 0 ; |
9649 | PyObject * obj2 = 0 ; |
9650 | GSkyRegion *result = 0 ; |
9651 | |
9652 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyRegions_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
9653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9654 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_insert" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_insert" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9656 | } |
9657 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9658 | { |
9659 | std::string *ptr = (std::string *)0; |
9660 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9661 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9662 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_insert" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9663 | } |
9664 | if (!ptr) { |
9665 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_insert" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_insert" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9666 | } |
9667 | arg2 = ptr; |
9668 | } |
9669 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[9], 0 | 0, 0); |
9670 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
9671 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
9672 | } |
9673 | if (!argp3) { |
9674 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_insert" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
9675 | } |
9676 | arg3 = reinterpret_cast< GSkyRegion * >(argp3); |
9677 | { |
9678 | try { |
9679 | result = (GSkyRegion *)(arg1)->insert((std::string const &)*arg2,(GSkyRegion const &)*arg3); |
9680 | } |
9681 | catch (const GException::out_of_range& e) { |
9682 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9683 | } |
9684 | catch (const GExceptionHandler& e) { |
9685 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9686 | } |
9687 | catch (const std::exception& e) { |
9688 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9689 | } |
9690 | } |
9691 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
9692 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9693 | return resultobj; |
9694 | fail: |
9695 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9696 | return NULL__null; |
9697 | } |
9698 | |
9699 | |
9700 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_insert(PyObject *self, PyObject *args) { |
9701 | int argc; |
9702 | PyObject *argv[4]; |
9703 | int ii; |
9704 | |
9705 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9706 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9707 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
9708 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9709 | } |
9710 | if (argc == 3) { |
9711 | int _v; |
9712 | void *vptr = 0; |
9713 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegions, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
9714 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9715 | if (_v) { |
9716 | { |
9717 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9718 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9719 | } |
9720 | if (_v) { |
9721 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[9], 0, 0); |
9722 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9723 | if (_v) { |
9724 | return _wrap_GSkyRegions_insert__SWIG_0(self, args); |
9725 | } |
9726 | } |
9727 | } |
9728 | } |
9729 | if (argc == 3) { |
9730 | int _v; |
9731 | void *vptr = 0; |
9732 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegions, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
9733 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9734 | if (_v) { |
9735 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9736 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9737 | if (_v) { |
9738 | int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[9], 0, 0); |
9739 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9740 | if (_v) { |
9741 | return _wrap_GSkyRegions_insert__SWIG_1(self, args); |
9742 | } |
9743 | } |
9744 | } |
9745 | } |
9746 | |
9747 | fail: |
9748 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyRegions_insert'.\n" |
9749 | " Possible C/C++ prototypes are:\n" |
9750 | " GSkyRegions::insert(int const &,GSkyRegion const &)\n" |
9751 | " GSkyRegions::insert(std::string const &,GSkyRegion const &)\n"); |
9752 | return 0; |
9753 | } |
9754 | |
9755 | |
9756 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_remove__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9757 | PyObject *resultobj = 0; |
9758 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9759 | int *arg2 = 0 ; |
9760 | void *argp1 = 0 ; |
9761 | int res1 = 0 ; |
9762 | int temp2 ; |
9763 | int val2 ; |
9764 | int ecode2 = 0 ; |
9765 | PyObject * obj0 = 0 ; |
9766 | PyObject * obj1 = 0 ; |
9767 | |
9768 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_remove",&obj0,&obj1)) SWIG_failgoto fail; |
9769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9770 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_remove" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_remove" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9772 | } |
9773 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9774 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9775 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9776 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegions_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegions_remove" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9777 | } |
9778 | temp2 = static_cast< int >(val2); |
9779 | arg2 = &temp2; |
9780 | { |
9781 | try { |
9782 | (arg1)->remove((int const &)*arg2); |
9783 | } |
9784 | catch (const GException::out_of_range& e) { |
9785 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9786 | } |
9787 | catch (const GExceptionHandler& e) { |
9788 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9789 | } |
9790 | catch (const std::exception& e) { |
9791 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9792 | } |
9793 | } |
9794 | resultobj = SWIG_Py_Void(); |
9795 | return resultobj; |
9796 | fail: |
9797 | return NULL__null; |
9798 | } |
9799 | |
9800 | |
9801 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_remove__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9802 | PyObject *resultobj = 0; |
9803 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9804 | std::string *arg2 = 0 ; |
9805 | void *argp1 = 0 ; |
9806 | int res1 = 0 ; |
9807 | int res2 = SWIG_OLDOBJ((0)) ; |
9808 | PyObject * obj0 = 0 ; |
9809 | PyObject * obj1 = 0 ; |
9810 | |
9811 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_remove",&obj0,&obj1)) SWIG_failgoto fail; |
9812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9813 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_remove" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_remove" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9815 | } |
9816 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9817 | { |
9818 | std::string *ptr = (std::string *)0; |
9819 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
9820 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9821 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_remove" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
9822 | } |
9823 | if (!ptr) { |
9824 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_remove" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_remove" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
9825 | } |
9826 | arg2 = ptr; |
9827 | } |
9828 | { |
9829 | try { |
9830 | (arg1)->remove((std::string const &)*arg2); |
9831 | } |
9832 | catch (const GException::out_of_range& e) { |
9833 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9834 | } |
9835 | catch (const GExceptionHandler& e) { |
9836 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9837 | } |
9838 | catch (const std::exception& e) { |
9839 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9840 | } |
9841 | } |
9842 | resultobj = SWIG_Py_Void(); |
9843 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9844 | return resultobj; |
9845 | fail: |
9846 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
9847 | return NULL__null; |
9848 | } |
9849 | |
9850 | |
9851 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_remove(PyObject *self, PyObject *args) { |
9852 | int argc; |
9853 | PyObject *argv[3]; |
9854 | int ii; |
9855 | |
9856 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
9857 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
9858 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
9859 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
9860 | } |
9861 | if (argc == 2) { |
9862 | int _v; |
9863 | void *vptr = 0; |
9864 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegions, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
9865 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9866 | if (_v) { |
9867 | { |
9868 | int res = SWIG_AsVal_int(argv[1], NULL__null); |
9869 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9870 | } |
9871 | if (_v) { |
9872 | return _wrap_GSkyRegions_remove__SWIG_0(self, args); |
9873 | } |
9874 | } |
9875 | } |
9876 | if (argc == 2) { |
9877 | int _v; |
9878 | void *vptr = 0; |
9879 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegions, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11 ], 0, 0); |
9880 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9881 | if (_v) { |
9882 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
9883 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
9884 | if (_v) { |
9885 | return _wrap_GSkyRegions_remove__SWIG_1(self, args); |
9886 | } |
9887 | } |
9888 | } |
9889 | |
9890 | fail: |
9891 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyRegions_remove'.\n" |
9892 | " Possible C/C++ prototypes are:\n" |
9893 | " GSkyRegions::remove(int const &)\n" |
9894 | " GSkyRegions::remove(std::string const &)\n"); |
9895 | return 0; |
9896 | } |
9897 | |
9898 | |
9899 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9900 | PyObject *resultobj = 0; |
9901 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9902 | int *arg2 = 0 ; |
9903 | void *argp1 = 0 ; |
9904 | int res1 = 0 ; |
9905 | int temp2 ; |
9906 | int val2 ; |
9907 | int ecode2 = 0 ; |
9908 | PyObject * obj0 = 0 ; |
9909 | PyObject * obj1 = 0 ; |
9910 | |
9911 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_reserve",&obj0,&obj1)) SWIG_failgoto fail; |
9912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9913 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_reserve" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_reserve" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9915 | } |
9916 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9917 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
9918 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
9919 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegions_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegions_reserve" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
9920 | } |
9921 | temp2 = static_cast< int >(val2); |
9922 | arg2 = &temp2; |
9923 | { |
9924 | try { |
9925 | (arg1)->reserve((int const &)*arg2); |
9926 | } |
9927 | catch (const GException::out_of_range& e) { |
9928 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9929 | } |
9930 | catch (const GExceptionHandler& e) { |
9931 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9932 | } |
9933 | catch (const std::exception& e) { |
9934 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9935 | } |
9936 | } |
9937 | resultobj = SWIG_Py_Void(); |
9938 | return resultobj; |
9939 | fail: |
9940 | return NULL__null; |
9941 | } |
9942 | |
9943 | |
9944 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9945 | PyObject *resultobj = 0; |
9946 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9947 | GSkyRegions *arg2 = 0 ; |
9948 | void *argp1 = 0 ; |
9949 | int res1 = 0 ; |
9950 | void *argp2 = 0 ; |
9951 | int res2 = 0 ; |
9952 | PyObject * obj0 = 0 ; |
9953 | PyObject * obj1 = 0 ; |
9954 | |
9955 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_extend",&obj0,&obj1)) SWIG_failgoto fail; |
9956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
9957 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
9958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_extend" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_extend" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
9959 | } |
9960 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
9961 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyRegions, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11] , 0 | 0, 0); |
9962 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
9963 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_extend" "', argument " "2"" of type '" "GSkyRegions const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_extend" "', argument " "2"" of type '" "GSkyRegions const &""'"); goto fail; } while (0); |
9964 | } |
9965 | if (!argp2) { |
9966 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_extend" "', argument " "2"" of type '" "GSkyRegions const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_extend" "', argument " "2"" of type '" "GSkyRegions const &""'"); goto fail; } while(0); |
9967 | } |
9968 | arg2 = reinterpret_cast< GSkyRegions * >(argp2); |
9969 | { |
9970 | try { |
9971 | (arg1)->extend((GSkyRegions const &)*arg2); |
9972 | } |
9973 | catch (const GException::out_of_range& e) { |
9974 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
9975 | } |
9976 | catch (const GExceptionHandler& e) { |
9977 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9978 | } |
9979 | catch (const std::exception& e) { |
9980 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
9981 | } |
9982 | } |
9983 | resultobj = SWIG_Py_Void(); |
9984 | return resultobj; |
9985 | fail: |
9986 | return NULL__null; |
9987 | } |
9988 | |
9989 | |
9990 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9991 | PyObject *resultobj = 0; |
9992 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
9993 | std::string *arg2 = 0 ; |
9994 | void *argp1 = 0 ; |
9995 | int res1 = 0 ; |
9996 | int res2 = SWIG_OLDOBJ((0)) ; |
9997 | PyObject * obj0 = 0 ; |
9998 | PyObject * obj1 = 0 ; |
9999 | bool result; |
10000 | |
10001 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_contains",&obj0,&obj1)) SWIG_failgoto fail; |
10002 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
10003 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10004 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_contains" "', argument " "1"" of type '" "GSkyRegions const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_contains" "', argument " "1"" of type '" "GSkyRegions const *""'"); goto fail; } while (0); |
10005 | } |
10006 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
10007 | { |
10008 | std::string *ptr = (std::string *)0; |
10009 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10010 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10011 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_contains" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10012 | } |
10013 | if (!ptr) { |
10014 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_contains" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10015 | } |
10016 | arg2 = ptr; |
10017 | } |
10018 | { |
10019 | try { |
10020 | result = (bool)((GSkyRegions const *)arg1)->contains((std::string const &)*arg2); |
10021 | } |
10022 | catch (const GException::out_of_range& e) { |
10023 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10024 | } |
10025 | catch (const GExceptionHandler& e) { |
10026 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10027 | } |
10028 | catch (const std::exception& e) { |
10029 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10030 | } |
10031 | } |
10032 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
10033 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10034 | return resultobj; |
10035 | fail: |
10036 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10037 | return NULL__null; |
10038 | } |
10039 | |
10040 | |
10041 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10042 | PyObject *resultobj = 0; |
10043 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
10044 | std::string *arg2 = 0 ; |
10045 | void *argp1 = 0 ; |
10046 | int res1 = 0 ; |
10047 | int res2 = SWIG_OLDOBJ((0)) ; |
10048 | PyObject * obj0 = 0 ; |
10049 | PyObject * obj1 = 0 ; |
10050 | |
10051 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_load",&obj0,&obj1)) SWIG_failgoto fail; |
10052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
10053 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_load" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_load" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
10055 | } |
10056 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
10057 | { |
10058 | std::string *ptr = (std::string *)0; |
10059 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10060 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10061 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10062 | } |
10063 | if (!ptr) { |
10064 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_load" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10065 | } |
10066 | arg2 = ptr; |
10067 | } |
10068 | { |
10069 | try { |
10070 | (arg1)->load((std::string const &)*arg2); |
10071 | } |
10072 | catch (const GException::out_of_range& e) { |
10073 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10074 | } |
10075 | catch (const GExceptionHandler& e) { |
10076 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10077 | } |
10078 | catch (const std::exception& e) { |
10079 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10080 | } |
10081 | } |
10082 | resultobj = SWIG_Py_Void(); |
10083 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10084 | return resultobj; |
10085 | fail: |
10086 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10087 | return NULL__null; |
10088 | } |
10089 | |
10090 | |
10091 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10092 | PyObject *resultobj = 0; |
10093 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
10094 | std::string *arg2 = 0 ; |
10095 | void *argp1 = 0 ; |
10096 | int res1 = 0 ; |
10097 | int res2 = SWIG_OLDOBJ((0)) ; |
10098 | PyObject * obj0 = 0 ; |
10099 | PyObject * obj1 = 0 ; |
10100 | |
10101 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions_save",&obj0,&obj1)) SWIG_failgoto fail; |
10102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
10103 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_save" "', argument " "1"" of type '" "GSkyRegions const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_save" "', argument " "1"" of type '" "GSkyRegions const *""'"); goto fail; } while (0); |
10105 | } |
10106 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
10107 | { |
10108 | std::string *ptr = (std::string *)0; |
10109 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10110 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10111 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegions_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegions_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10112 | } |
10113 | if (!ptr) { |
10114 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions_save" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10115 | } |
10116 | arg2 = ptr; |
10117 | } |
10118 | { |
10119 | try { |
10120 | ((GSkyRegions const *)arg1)->save((std::string const &)*arg2); |
10121 | } |
10122 | catch (const GException::out_of_range& e) { |
10123 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10124 | } |
10125 | catch (const GExceptionHandler& e) { |
10126 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10127 | } |
10128 | catch (const std::exception& e) { |
10129 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10130 | } |
10131 | } |
10132 | resultobj = SWIG_Py_Void(); |
10133 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10134 | return resultobj; |
10135 | fail: |
10136 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10137 | return NULL__null; |
10138 | } |
10139 | |
10140 | |
10141 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10142 | PyObject *resultobj = 0; |
10143 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
10144 | int *arg2 = 0 ; |
10145 | void *argp1 = 0 ; |
10146 | int res1 = 0 ; |
10147 | int temp2 ; |
10148 | int val2 ; |
10149 | int ecode2 = 0 ; |
10150 | PyObject * obj0 = 0 ; |
10151 | PyObject * obj1 = 0 ; |
10152 | GSkyRegion *result = 0 ; |
10153 | |
10154 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegions___getitem__",&obj0,&obj1)) SWIG_failgoto fail; |
10155 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
10156 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10157 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions___getitem__" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions___getitem__" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
10158 | } |
10159 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
10160 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
10161 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10162 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegions___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegions___getitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
10163 | } |
10164 | temp2 = static_cast< int >(val2); |
10165 | arg2 = &temp2; |
10166 | { |
10167 | try { |
10168 | result = (GSkyRegion *)GSkyRegions___getitem__(arg1,(int const &)*arg2); |
10169 | } |
10170 | catch (const GException::out_of_range& e) { |
10171 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10172 | } |
10173 | catch (const GExceptionHandler& e) { |
10174 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10175 | } |
10176 | catch (const std::exception& e) { |
10177 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10178 | } |
10179 | } |
10180 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
10181 | return resultobj; |
10182 | fail: |
10183 | return NULL__null; |
10184 | } |
10185 | |
10186 | |
10187 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10188 | PyObject *resultobj = 0; |
10189 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
10190 | int *arg2 = 0 ; |
10191 | GSkyRegion *arg3 = 0 ; |
10192 | void *argp1 = 0 ; |
10193 | int res1 = 0 ; |
10194 | int temp2 ; |
10195 | int val2 ; |
10196 | int ecode2 = 0 ; |
10197 | void *argp3 = 0 ; |
10198 | int res3 = 0 ; |
10199 | PyObject * obj0 = 0 ; |
10200 | PyObject * obj1 = 0 ; |
10201 | PyObject * obj2 = 0 ; |
10202 | |
10203 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyRegions___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
10204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
10205 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions___setitem__" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions___setitem__" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
10207 | } |
10208 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
10209 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
10210 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10211 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegions___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegions___setitem__" "', argument " "2"" of type '" "int""'"); goto fail; } while (0); |
10212 | } |
10213 | temp2 = static_cast< int >(val2); |
10214 | arg2 = &temp2; |
10215 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[9], 0 | 0, 0); |
10216 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
10217 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GSkyRegions___setitem__" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "GSkyRegions___setitem__" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
10218 | } |
10219 | if (!argp3) { |
10220 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegions___setitem__" "', argument " "3"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegions___setitem__" "', argument " "3"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
10221 | } |
10222 | arg3 = reinterpret_cast< GSkyRegion * >(argp3); |
10223 | { |
10224 | try { |
10225 | GSkyRegions___setitem__(arg1,(int const &)*arg2,(GSkyRegion const &)*arg3); |
10226 | } |
10227 | catch (const GException::out_of_range& e) { |
10228 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10229 | } |
10230 | catch (const GExceptionHandler& e) { |
10231 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10232 | } |
10233 | catch (const std::exception& e) { |
10234 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10235 | } |
10236 | } |
10237 | resultobj = SWIG_Py_Void(); |
10238 | return resultobj; |
10239 | fail: |
10240 | return NULL__null; |
10241 | } |
10242 | |
10243 | |
10244 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegions_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10245 | PyObject *resultobj = 0; |
10246 | GSkyRegions *arg1 = (GSkyRegions *) 0 ; |
10247 | void *argp1 = 0 ; |
10248 | int res1 = 0 ; |
10249 | PyObject * obj0 = 0 ; |
10250 | GSkyRegions result; |
10251 | |
10252 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegions_copy",&obj0)) SWIG_failgoto fail; |
10253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegions, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11] , 0 | 0, 0); |
10254 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegions_copy" "', argument " "1"" of type '" "GSkyRegions *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegions_copy" "', argument " "1"" of type '" "GSkyRegions *""'"); goto fail; } while(0); |
10256 | } |
10257 | arg1 = reinterpret_cast< GSkyRegions * >(argp1); |
10258 | { |
10259 | try { |
10260 | result = GSkyRegions_copy(arg1); |
10261 | } |
10262 | catch (const GException::out_of_range& e) { |
10263 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10264 | } |
10265 | catch (const GExceptionHandler& e) { |
10266 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10267 | } |
10268 | catch (const std::exception& e) { |
10269 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10270 | } |
10271 | } |
10272 | resultobj = SWIG_NewPointerObj((new GSkyRegions(static_cast< const GSkyRegions& >(result))), SWIGTYPE_p_GSkyRegions, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyRegions(static_cast < const GSkyRegions& >(result))), swig_types[11], 0x1 | 0); |
10273 | return resultobj; |
10274 | fail: |
10275 | return NULL__null; |
10276 | } |
10277 | |
10278 | |
10279 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSkyRegions_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10280 | PyObject *obj; |
10281 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
10282 | SWIG_TypeNewClientData(SWIGTYPE_p_GSkyRegionsswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
10283 | return SWIG_Py_Void(); |
10284 | } |
10285 | |
10286 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSkyRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10287 | PyObject *resultobj = 0; |
10288 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10289 | void *argp1 = 0 ; |
10290 | int res1 = 0 ; |
10291 | PyObject * obj0 = 0 ; |
10292 | |
10293 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GSkyRegion",&obj0)) SWIG_failgoto fail; |
10294 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0x1 | 0, 0); |
10295 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10296 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSkyRegion" "', argument " "1"" of type '" "GSkyRegion *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GSkyRegion" "', argument " "1"" of type '" "GSkyRegion *""'"); goto fail; } while(0); |
10297 | } |
10298 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10299 | { |
10300 | try { |
10301 | delete arg1; |
10302 | } |
10303 | catch (const GException::out_of_range& e) { |
10304 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10305 | } |
10306 | catch (const GExceptionHandler& e) { |
10307 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10308 | } |
10309 | catch (const std::exception& e) { |
10310 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10311 | } |
10312 | } |
10313 | resultobj = SWIG_Py_Void(); |
10314 | return resultobj; |
10315 | fail: |
10316 | return NULL__null; |
10317 | } |
10318 | |
10319 | |
10320 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10321 | PyObject *resultobj = 0; |
10322 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10323 | void *argp1 = 0 ; |
10324 | int res1 = 0 ; |
10325 | PyObject * obj0 = 0 ; |
10326 | |
10327 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegion_clear",&obj0)) SWIG_failgoto fail; |
10328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10329 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_clear" "', argument " "1"" of type '" "GSkyRegion *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_clear" "', argument " "1"" of type '" "GSkyRegion *""'"); goto fail; } while(0); |
10331 | } |
10332 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10333 | { |
10334 | try { |
10335 | (arg1)->clear(); |
10336 | } |
10337 | catch (const GException::out_of_range& e) { |
10338 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10339 | } |
10340 | catch (const GExceptionHandler& e) { |
10341 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10342 | } |
10343 | catch (const std::exception& e) { |
10344 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10345 | } |
10346 | } |
10347 | resultobj = SWIG_Py_Void(); |
10348 | return resultobj; |
10349 | fail: |
10350 | return NULL__null; |
10351 | } |
10352 | |
10353 | |
10354 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10355 | PyObject *resultobj = 0; |
10356 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10357 | void *argp1 = 0 ; |
10358 | int res1 = 0 ; |
10359 | PyObject * obj0 = 0 ; |
10360 | GSkyRegion *result = 0 ; |
10361 | |
10362 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegion_clone",&obj0)) SWIG_failgoto fail; |
10363 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10364 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_clone" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_clone" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10366 | } |
10367 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10368 | { |
10369 | try { |
10370 | result = (GSkyRegion *)((GSkyRegion const *)arg1)->clone(); |
10371 | } |
10372 | catch (const GException::out_of_range& e) { |
10373 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10374 | } |
10375 | catch (const GExceptionHandler& e) { |
10376 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10377 | } |
10378 | catch (const std::exception& e) { |
10379 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10380 | } |
10381 | } |
10382 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[9], 0 | 0); |
10383 | return resultobj; |
10384 | fail: |
10385 | return NULL__null; |
10386 | } |
10387 | |
10388 | |
10389 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10390 | PyObject *resultobj = 0; |
10391 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10392 | std::string *arg2 = 0 ; |
10393 | void *argp1 = 0 ; |
10394 | int res1 = 0 ; |
10395 | int res2 = SWIG_OLDOBJ((0)) ; |
10396 | PyObject * obj0 = 0 ; |
10397 | PyObject * obj1 = 0 ; |
10398 | |
10399 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegion_read",&obj0,&obj1)) SWIG_failgoto fail; |
10400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10401 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_read" "', argument " "1"" of type '" "GSkyRegion *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_read" "', argument " "1"" of type '" "GSkyRegion *""'"); goto fail; } while(0); |
10403 | } |
10404 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10405 | { |
10406 | std::string *ptr = (std::string *)0; |
10407 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
10408 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10409 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegion_read" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegion_read" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
10410 | } |
10411 | if (!ptr) { |
10412 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegion_read" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegion_read" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
10413 | } |
10414 | arg2 = ptr; |
10415 | } |
10416 | { |
10417 | try { |
10418 | (arg1)->read((std::string const &)*arg2); |
10419 | } |
10420 | catch (const GException::out_of_range& e) { |
10421 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10422 | } |
10423 | catch (const GExceptionHandler& e) { |
10424 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10425 | } |
10426 | catch (const std::exception& e) { |
10427 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10428 | } |
10429 | } |
10430 | resultobj = SWIG_Py_Void(); |
10431 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10432 | return resultobj; |
10433 | fail: |
10434 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
10435 | return NULL__null; |
10436 | } |
10437 | |
10438 | |
10439 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10440 | PyObject *resultobj = 0; |
10441 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10442 | void *argp1 = 0 ; |
10443 | int res1 = 0 ; |
10444 | PyObject * obj0 = 0 ; |
10445 | std::string result; |
10446 | |
10447 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegion_write",&obj0)) SWIG_failgoto fail; |
10448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10449 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_write" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_write" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10451 | } |
10452 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10453 | { |
10454 | try { |
10455 | result = ((GSkyRegion const *)arg1)->write(); |
10456 | } |
10457 | catch (const GException::out_of_range& e) { |
10458 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10459 | } |
10460 | catch (const GExceptionHandler& e) { |
10461 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10462 | } |
10463 | catch (const std::exception& e) { |
10464 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10465 | } |
10466 | } |
10467 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
10468 | return resultobj; |
10469 | fail: |
10470 | return NULL__null; |
10471 | } |
10472 | |
10473 | |
10474 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10475 | PyObject *resultobj = 0; |
10476 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10477 | GSkyDir *arg2 = 0 ; |
10478 | void *argp1 = 0 ; |
10479 | int res1 = 0 ; |
10480 | void *argp2 = 0 ; |
10481 | int res2 = 0 ; |
10482 | PyObject * obj0 = 0 ; |
10483 | PyObject * obj1 = 0 ; |
10484 | bool result; |
10485 | |
10486 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegion_contains",&obj0,&obj1)) SWIG_failgoto fail; |
10487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10488 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_contains" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_contains" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10490 | } |
10491 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10492 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
10493 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10494 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
10495 | } |
10496 | if (!argp2) { |
10497 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
10498 | } |
10499 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
10500 | { |
10501 | try { |
10502 | result = (bool)((GSkyRegion const *)arg1)->contains((GSkyDir const &)*arg2); |
10503 | } |
10504 | catch (const GException::out_of_range& e) { |
10505 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10506 | } |
10507 | catch (const GExceptionHandler& e) { |
10508 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10509 | } |
10510 | catch (const std::exception& e) { |
10511 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10512 | } |
10513 | } |
10514 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
10515 | return resultobj; |
10516 | fail: |
10517 | return NULL__null; |
10518 | } |
10519 | |
10520 | |
10521 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_overlaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10522 | PyObject *resultobj = 0; |
10523 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10524 | GSkyRegion *arg2 = 0 ; |
10525 | void *argp1 = 0 ; |
10526 | int res1 = 0 ; |
10527 | void *argp2 = 0 ; |
10528 | int res2 = 0 ; |
10529 | PyObject * obj0 = 0 ; |
10530 | PyObject * obj1 = 0 ; |
10531 | bool result; |
10532 | |
10533 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegion_overlaps",&obj0,&obj1)) SWIG_failgoto fail; |
10534 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10535 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_overlaps" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_overlaps" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10537 | } |
10538 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10539 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
10540 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10541 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegion_overlaps" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegion_overlaps" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
10542 | } |
10543 | if (!argp2) { |
10544 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegion_overlaps" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegion_overlaps" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
10545 | } |
10546 | arg2 = reinterpret_cast< GSkyRegion * >(argp2); |
10547 | { |
10548 | try { |
10549 | result = (bool)((GSkyRegion const *)arg1)->overlaps((GSkyRegion const &)*arg2); |
10550 | } |
10551 | catch (const GException::out_of_range& e) { |
10552 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10553 | } |
10554 | catch (const GExceptionHandler& e) { |
10555 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10556 | } |
10557 | catch (const std::exception& e) { |
10558 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10559 | } |
10560 | } |
10561 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
10562 | return resultobj; |
10563 | fail: |
10564 | return NULL__null; |
10565 | } |
10566 | |
10567 | |
10568 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10569 | PyObject *resultobj = 0; |
10570 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10571 | GSkyRegion *arg2 = 0 ; |
10572 | void *argp1 = 0 ; |
10573 | int res1 = 0 ; |
10574 | void *argp2 = 0 ; |
10575 | int res2 = 0 ; |
10576 | PyObject * obj0 = 0 ; |
10577 | PyObject * obj1 = 0 ; |
10578 | bool result; |
10579 | |
10580 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegion_contains",&obj0,&obj1)) SWIG_failgoto fail; |
10581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10582 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_contains" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_contains" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10584 | } |
10585 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10586 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
10587 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
10588 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
10589 | } |
10590 | if (!argp2) { |
10591 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegion_contains" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
10592 | } |
10593 | arg2 = reinterpret_cast< GSkyRegion * >(argp2); |
10594 | { |
10595 | try { |
10596 | result = (bool)((GSkyRegion const *)arg1)->contains((GSkyRegion const &)*arg2); |
10597 | } |
10598 | catch (const GException::out_of_range& e) { |
10599 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10600 | } |
10601 | catch (const GExceptionHandler& e) { |
10602 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10603 | } |
10604 | catch (const std::exception& e) { |
10605 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10606 | } |
10607 | } |
10608 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
10609 | return resultobj; |
10610 | fail: |
10611 | return NULL__null; |
10612 | } |
10613 | |
10614 | |
10615 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_contains(PyObject *self, PyObject *args) { |
10616 | int argc; |
10617 | PyObject *argv[3]; |
10618 | int ii; |
10619 | |
10620 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10621 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10622 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
10623 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10624 | } |
10625 | if (argc == 2) { |
10626 | int _v; |
10627 | void *vptr = 0; |
10628 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9 ], 0, 0); |
10629 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10630 | if (_v) { |
10631 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0); |
10632 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10633 | if (_v) { |
10634 | return _wrap_GSkyRegion_contains__SWIG_0(self, args); |
10635 | } |
10636 | } |
10637 | } |
10638 | if (argc == 2) { |
10639 | int _v; |
10640 | void *vptr = 0; |
10641 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9 ], 0, 0); |
10642 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10643 | if (_v) { |
10644 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[9], 0, 0); |
10645 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
10646 | if (_v) { |
10647 | return _wrap_GSkyRegion_contains__SWIG_1(self, args); |
10648 | } |
10649 | } |
10650 | } |
10651 | |
10652 | fail: |
10653 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyRegion_contains'.\n" |
10654 | " Possible C/C++ prototypes are:\n" |
10655 | " GSkyRegion::contains(GSkyDir const &) const\n" |
10656 | " GSkyRegion::contains(GSkyRegion const &) const\n"); |
10657 | return 0; |
10658 | } |
10659 | |
10660 | |
10661 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10662 | PyObject *resultobj = 0; |
10663 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10664 | void *argp1 = 0 ; |
10665 | int res1 = 0 ; |
10666 | PyObject * obj0 = 0 ; |
10667 | std::string *result = 0 ; |
10668 | |
10669 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegion_type",&obj0)) SWIG_failgoto fail; |
10670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10671 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_type" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_type" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10673 | } |
10674 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10675 | { |
10676 | try { |
10677 | result = (std::string *) &((GSkyRegion const *)arg1)->type(); |
10678 | } |
10679 | catch (const GException::out_of_range& e) { |
10680 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10681 | } |
10682 | catch (const GExceptionHandler& e) { |
10683 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10684 | } |
10685 | catch (const std::exception& e) { |
10686 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10687 | } |
10688 | } |
10689 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
10690 | return resultobj; |
10691 | fail: |
10692 | return NULL__null; |
10693 | } |
10694 | |
10695 | |
10696 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10697 | PyObject *resultobj = 0; |
10698 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10699 | void *argp1 = 0 ; |
10700 | int res1 = 0 ; |
10701 | PyObject * obj0 = 0 ; |
10702 | std::string *result = 0 ; |
10703 | |
10704 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegion_name",&obj0)) SWIG_failgoto fail; |
10705 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10706 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10707 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_name" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_name" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10708 | } |
10709 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10710 | { |
10711 | try { |
10712 | result = (std::string *) &((GSkyRegion const *)arg1)->name(); |
10713 | } |
10714 | catch (const GException::out_of_range& e) { |
10715 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10716 | } |
10717 | catch (const GExceptionHandler& e) { |
10718 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10719 | } |
10720 | catch (const std::exception& e) { |
10721 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10722 | } |
10723 | } |
10724 | resultobj = SWIG_From_std_string(static_cast< std::string >(*result)); |
10725 | return resultobj; |
10726 | fail: |
10727 | return NULL__null; |
10728 | } |
10729 | |
10730 | |
10731 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegion_solidangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10732 | PyObject *resultobj = 0; |
10733 | GSkyRegion *arg1 = (GSkyRegion *) 0 ; |
10734 | void *argp1 = 0 ; |
10735 | int res1 = 0 ; |
10736 | PyObject * obj0 = 0 ; |
10737 | double *result = 0 ; |
10738 | |
10739 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegion_solidangle",&obj0)) SWIG_failgoto fail; |
10740 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegion, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9], 0 | 0, 0); |
10741 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegion_solidangle" "', argument " "1"" of type '" "GSkyRegion const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegion_solidangle" "', argument " "1"" of type '" "GSkyRegion const *""'"); goto fail; } while (0); |
10743 | } |
10744 | arg1 = reinterpret_cast< GSkyRegion * >(argp1); |
10745 | { |
10746 | try { |
10747 | result = (double *) &((GSkyRegion const *)arg1)->solidangle(); |
10748 | } |
10749 | catch (const GException::out_of_range& e) { |
10750 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10751 | } |
10752 | catch (const GExceptionHandler& e) { |
10753 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10754 | } |
10755 | catch (const std::exception& e) { |
10756 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10757 | } |
10758 | } |
10759 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
10760 | return resultobj; |
10761 | fail: |
10762 | return NULL__null; |
10763 | } |
10764 | |
10765 | |
10766 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSkyRegion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10767 | PyObject *obj; |
10768 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
10769 | SWIG_TypeNewClientData(SWIGTYPE_p_GSkyRegionswig_types[9], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
10770 | return SWIG_Py_Void(); |
10771 | } |
10772 | |
10773 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegionCircle__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10774 | PyObject *resultobj = 0; |
10775 | GSkyRegionCircle *result = 0 ; |
10776 | |
10777 | if (!PyArg_ParseTuple(args,(char *)":new_GSkyRegionCircle")) SWIG_failgoto fail; |
10778 | { |
10779 | try { |
10780 | result = (GSkyRegionCircle *)new GSkyRegionCircle(); |
10781 | } |
10782 | catch (const GException::out_of_range& e) { |
10783 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10784 | } |
10785 | catch (const GExceptionHandler& e) { |
10786 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10787 | } |
10788 | catch (const std::exception& e) { |
10789 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10790 | } |
10791 | } |
10792 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegionCircle, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
10793 | return resultobj; |
10794 | fail: |
10795 | return NULL__null; |
10796 | } |
10797 | |
10798 | |
10799 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegionCircle__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10800 | PyObject *resultobj = 0; |
10801 | GSkyDir *arg1 = 0 ; |
10802 | double *arg2 = 0 ; |
10803 | void *argp1 = 0 ; |
10804 | int res1 = 0 ; |
10805 | double temp2 ; |
10806 | double val2 ; |
10807 | int ecode2 = 0 ; |
10808 | PyObject * obj0 = 0 ; |
10809 | PyObject * obj1 = 0 ; |
10810 | GSkyRegionCircle *result = 0 ; |
10811 | |
10812 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GSkyRegionCircle",&obj0,&obj1)) SWIG_failgoto fail; |
10813 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6], 0, 0); |
10814 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyDir &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyDir &""'"); goto fail; } while(0); |
10816 | } |
10817 | if (!argp1) { |
10818 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyDir &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyDir &""'"); goto fail; } while(0); |
10819 | } |
10820 | arg1 = reinterpret_cast< GSkyDir * >(argp1); |
10821 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
10822 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10823 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GSkyRegionCircle" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GSkyRegionCircle" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
10824 | } |
10825 | temp2 = static_cast< double >(val2); |
10826 | arg2 = &temp2; |
10827 | { |
10828 | try { |
10829 | result = (GSkyRegionCircle *)new GSkyRegionCircle(*arg1,(double const &)*arg2); |
10830 | } |
10831 | catch (const GException::out_of_range& e) { |
10832 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10833 | } |
10834 | catch (const GExceptionHandler& e) { |
10835 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10836 | } |
10837 | catch (const std::exception& e) { |
10838 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10839 | } |
10840 | } |
10841 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegionCircle, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
10842 | return resultobj; |
10843 | fail: |
10844 | return NULL__null; |
10845 | } |
10846 | |
10847 | |
10848 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegionCircle__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10849 | PyObject *resultobj = 0; |
10850 | double *arg1 = 0 ; |
10851 | double *arg2 = 0 ; |
10852 | double *arg3 = 0 ; |
10853 | double temp1 ; |
10854 | double val1 ; |
10855 | int ecode1 = 0 ; |
10856 | double temp2 ; |
10857 | double val2 ; |
10858 | int ecode2 = 0 ; |
10859 | double temp3 ; |
10860 | double val3 ; |
10861 | int ecode3 = 0 ; |
10862 | PyObject * obj0 = 0 ; |
10863 | PyObject * obj1 = 0 ; |
10864 | PyObject * obj2 = 0 ; |
10865 | GSkyRegionCircle *result = 0 ; |
10866 | |
10867 | if (!PyArg_ParseTuple(args,(char *)"OOO:new_GSkyRegionCircle",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
10868 | ecode1 = SWIG_AsVal_double(obj0, &val1); |
10869 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
10870 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "double""'"); goto fail; } while(0); |
10871 | } |
10872 | temp1 = static_cast< double >(val1); |
10873 | arg1 = &temp1; |
10874 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
10875 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
10876 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GSkyRegionCircle" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GSkyRegionCircle" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
10877 | } |
10878 | temp2 = static_cast< double >(val2); |
10879 | arg2 = &temp2; |
10880 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
10881 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
10882 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GSkyRegionCircle" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GSkyRegionCircle" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
10883 | } |
10884 | temp3 = static_cast< double >(val3); |
10885 | arg3 = &temp3; |
10886 | { |
10887 | try { |
10888 | result = (GSkyRegionCircle *)new GSkyRegionCircle((double const &)*arg1,(double const &)*arg2,(double const &)*arg3); |
10889 | } |
10890 | catch (const GException::out_of_range& e) { |
10891 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10892 | } |
10893 | catch (const GExceptionHandler& e) { |
10894 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10895 | } |
10896 | catch (const std::exception& e) { |
10897 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10898 | } |
10899 | } |
10900 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegionCircle, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
10901 | return resultobj; |
10902 | fail: |
10903 | return NULL__null; |
10904 | } |
10905 | |
10906 | |
10907 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegionCircle__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10908 | PyObject *resultobj = 0; |
10909 | std::string *arg1 = 0 ; |
10910 | int res1 = SWIG_OLDOBJ((0)) ; |
10911 | PyObject * obj0 = 0 ; |
10912 | GSkyRegionCircle *result = 0 ; |
10913 | |
10914 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyRegionCircle",&obj0)) SWIG_failgoto fail; |
10915 | { |
10916 | std::string *ptr = (std::string *)0; |
10917 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
10918 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
10920 | } |
10921 | if (!ptr) { |
10922 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while(0); |
10923 | } |
10924 | arg1 = ptr; |
10925 | } |
10926 | { |
10927 | try { |
10928 | result = (GSkyRegionCircle *)new GSkyRegionCircle((std::string const &)*arg1); |
10929 | } |
10930 | catch (const GException::out_of_range& e) { |
10931 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10932 | } |
10933 | catch (const GExceptionHandler& e) { |
10934 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10935 | } |
10936 | catch (const std::exception& e) { |
10937 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10938 | } |
10939 | } |
10940 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegionCircle, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
10941 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
10942 | return resultobj; |
10943 | fail: |
10944 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
10945 | return NULL__null; |
10946 | } |
10947 | |
10948 | |
10949 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegionCircle__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10950 | PyObject *resultobj = 0; |
10951 | GSkyRegionCircle *arg1 = 0 ; |
10952 | void *argp1 = 0 ; |
10953 | int res1 = 0 ; |
10954 | PyObject * obj0 = 0 ; |
10955 | GSkyRegionCircle *result = 0 ; |
10956 | |
10957 | if (!PyArg_ParseTuple(args,(char *)"O:new_GSkyRegionCircle",&obj0)) SWIG_failgoto fail; |
10958 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyRegionCircle, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
10959 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
10960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyRegionCircle const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyRegionCircle const &""'"); goto fail ; } while(0); |
10961 | } |
10962 | if (!argp1) { |
10963 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyRegionCircle const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyRegionCircle const &""'"); goto fail; } while(0); |
10964 | } |
10965 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
10966 | { |
10967 | try { |
10968 | result = (GSkyRegionCircle *)new GSkyRegionCircle((GSkyRegionCircle const &)*arg1); |
10969 | } |
10970 | catch (const GException::out_of_range& e) { |
10971 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
10972 | } |
10973 | catch (const GExceptionHandler& e) { |
10974 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10975 | } |
10976 | catch (const std::exception& e) { |
10977 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
10978 | } |
10979 | } |
10980 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegionCircle, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], ( (0x1 << 1) | 0x1) | 0); |
10981 | return resultobj; |
10982 | fail: |
10983 | return NULL__null; |
10984 | } |
10985 | |
10986 | |
10987 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSkyRegionCircle(PyObject *self, PyObject *args) { |
10988 | int argc; |
10989 | PyObject *argv[4]; |
10990 | int ii; |
10991 | |
10992 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
10993 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
10994 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
10995 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
10996 | } |
10997 | if (argc == 0) { |
10998 | return _wrap_new_GSkyRegionCircle__SWIG_0(self, args); |
10999 | } |
11000 | if (argc == 1) { |
11001 | int _v; |
11002 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[10], 0, 0 ); |
11003 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11004 | if (_v) { |
11005 | return _wrap_new_GSkyRegionCircle__SWIG_4(self, args); |
11006 | } |
11007 | } |
11008 | if (argc == 1) { |
11009 | int _v; |
11010 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
11011 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11012 | if (_v) { |
11013 | return _wrap_new_GSkyRegionCircle__SWIG_3(self, args); |
11014 | } |
11015 | } |
11016 | if (argc == 2) { |
11017 | int _v; |
11018 | void *vptr = 0; |
11019 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6 ], 0, 0); |
11020 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11021 | if (_v) { |
11022 | { |
11023 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
11024 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11025 | } |
11026 | if (_v) { |
11027 | return _wrap_new_GSkyRegionCircle__SWIG_1(self, args); |
11028 | } |
11029 | } |
11030 | } |
11031 | if (argc == 3) { |
11032 | int _v; |
11033 | { |
11034 | int res = SWIG_AsVal_double(argv[0], NULL__null); |
11035 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11036 | } |
11037 | if (_v) { |
11038 | { |
11039 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
11040 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11041 | } |
11042 | if (_v) { |
11043 | { |
11044 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
11045 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11046 | } |
11047 | if (_v) { |
11048 | return _wrap_new_GSkyRegionCircle__SWIG_2(self, args); |
11049 | } |
11050 | } |
11051 | } |
11052 | } |
11053 | |
11054 | fail: |
11055 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GSkyRegionCircle'.\n" |
11056 | " Possible C/C++ prototypes are:\n" |
11057 | " GSkyRegionCircle::GSkyRegionCircle()\n" |
11058 | " GSkyRegionCircle::GSkyRegionCircle(GSkyDir &,double const &)\n" |
11059 | " GSkyRegionCircle::GSkyRegionCircle(double const &,double const &,double const &)\n" |
11060 | " GSkyRegionCircle::GSkyRegionCircle(std::string const &)\n" |
11061 | " GSkyRegionCircle::GSkyRegionCircle(GSkyRegionCircle const &)\n"); |
11062 | return 0; |
11063 | } |
11064 | |
11065 | |
11066 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSkyRegionCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11067 | PyObject *resultobj = 0; |
11068 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11069 | void *argp1 = 0 ; |
11070 | int res1 = 0 ; |
11071 | PyObject * obj0 = 0 ; |
11072 | |
11073 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GSkyRegionCircle",&obj0)) SWIG_failgoto fail; |
11074 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0x1 | 0, 0); |
11075 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11076 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyRegionCircle *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GSkyRegionCircle" "', argument " "1"" of type '" "GSkyRegionCircle *""'"); goto fail; } while (0); |
11077 | } |
11078 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11079 | { |
11080 | try { |
11081 | delete arg1; |
11082 | } |
11083 | catch (const GException::out_of_range& e) { |
11084 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11085 | } |
11086 | catch (const GExceptionHandler& e) { |
11087 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11088 | } |
11089 | catch (const std::exception& e) { |
11090 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11091 | } |
11092 | } |
11093 | resultobj = SWIG_Py_Void(); |
11094 | return resultobj; |
11095 | fail: |
11096 | return NULL__null; |
11097 | } |
11098 | |
11099 | |
11100 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11101 | PyObject *resultobj = 0; |
11102 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11103 | void *argp1 = 0 ; |
11104 | int res1 = 0 ; |
11105 | PyObject * obj0 = 0 ; |
11106 | |
11107 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_clear",&obj0)) SWIG_failgoto fail; |
11108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11109 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_clear" "', argument " "1"" of type '" "GSkyRegionCircle *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_clear" "', argument " "1"" of type '" "GSkyRegionCircle *""'"); goto fail; } while (0); |
11111 | } |
11112 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11113 | { |
11114 | try { |
11115 | (arg1)->clear(); |
11116 | } |
11117 | catch (const GException::out_of_range& e) { |
11118 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11119 | } |
11120 | catch (const GExceptionHandler& e) { |
11121 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11122 | } |
11123 | catch (const std::exception& e) { |
11124 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11125 | } |
11126 | } |
11127 | resultobj = SWIG_Py_Void(); |
11128 | return resultobj; |
11129 | fail: |
11130 | return NULL__null; |
11131 | } |
11132 | |
11133 | |
11134 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11135 | PyObject *resultobj = 0; |
11136 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11137 | void *argp1 = 0 ; |
11138 | int res1 = 0 ; |
11139 | PyObject * obj0 = 0 ; |
11140 | GSkyRegionCircle *result = 0 ; |
11141 | |
11142 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_clone",&obj0)) SWIG_failgoto fail; |
11143 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11144 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_clone" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_clone" "', argument " "1"" of type '" "GSkyRegionCircle const *""'"); goto fail; } while(0); |
11146 | } |
11147 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11148 | { |
11149 | try { |
11150 | result = (GSkyRegionCircle *)((GSkyRegionCircle const *)arg1)->clone(); |
11151 | } |
11152 | catch (const GException::out_of_range& e) { |
11153 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11154 | } |
11155 | catch (const GExceptionHandler& e) { |
11156 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11157 | } |
11158 | catch (const std::exception& e) { |
11159 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11160 | } |
11161 | } |
11162 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[10], 0 | 0); |
11163 | return resultobj; |
11164 | fail: |
11165 | return NULL__null; |
11166 | } |
11167 | |
11168 | |
11169 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_radius__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11170 | PyObject *resultobj = 0; |
11171 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11172 | void *argp1 = 0 ; |
11173 | int res1 = 0 ; |
11174 | PyObject * obj0 = 0 ; |
11175 | double *result = 0 ; |
11176 | |
11177 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_radius",&obj0)) SWIG_failgoto fail; |
11178 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11179 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_radius" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_radius" "', argument " "1"" of type '" "GSkyRegionCircle const *""'"); goto fail; } while(0); |
11181 | } |
11182 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11183 | { |
11184 | try { |
11185 | result = (double *) &((GSkyRegionCircle const *)arg1)->radius(); |
11186 | } |
11187 | catch (const GException::out_of_range& e) { |
11188 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11189 | } |
11190 | catch (const GExceptionHandler& e) { |
11191 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11192 | } |
11193 | catch (const std::exception& e) { |
11194 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11195 | } |
11196 | } |
11197 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result)); |
11198 | return resultobj; |
11199 | fail: |
11200 | return NULL__null; |
11201 | } |
11202 | |
11203 | |
11204 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_radius__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11205 | PyObject *resultobj = 0; |
11206 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11207 | double *arg2 = 0 ; |
11208 | void *argp1 = 0 ; |
11209 | int res1 = 0 ; |
11210 | double temp2 ; |
11211 | double val2 ; |
11212 | int ecode2 = 0 ; |
11213 | PyObject * obj0 = 0 ; |
11214 | PyObject * obj1 = 0 ; |
11215 | |
11216 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegionCircle_radius",&obj0,&obj1)) SWIG_failgoto fail; |
11217 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11218 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_radius" "', argument " "1"" of type '" "GSkyRegionCircle *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_radius" "', argument " "1"" of type '" "GSkyRegionCircle *""'"); goto fail; } while (0); |
11220 | } |
11221 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11222 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
11223 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegionCircle_radius" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegionCircle_radius" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
11225 | } |
11226 | temp2 = static_cast< double >(val2); |
11227 | arg2 = &temp2; |
11228 | { |
11229 | try { |
11230 | (arg1)->radius((double const &)*arg2); |
11231 | } |
11232 | catch (const GException::out_of_range& e) { |
11233 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11234 | } |
11235 | catch (const GExceptionHandler& e) { |
11236 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11237 | } |
11238 | catch (const std::exception& e) { |
11239 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11240 | } |
11241 | } |
11242 | resultobj = SWIG_Py_Void(); |
11243 | return resultobj; |
11244 | fail: |
11245 | return NULL__null; |
11246 | } |
11247 | |
11248 | |
11249 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_radius(PyObject *self, PyObject *args) { |
11250 | int argc; |
11251 | PyObject *argv[3]; |
11252 | int ii; |
11253 | |
11254 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11255 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11256 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11257 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11258 | } |
11259 | if (argc == 1) { |
11260 | int _v; |
11261 | void *vptr = 0; |
11262 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
11263 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11264 | if (_v) { |
11265 | return _wrap_GSkyRegionCircle_radius__SWIG_0(self, args); |
11266 | } |
11267 | } |
11268 | if (argc == 2) { |
11269 | int _v; |
11270 | void *vptr = 0; |
11271 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
11272 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11273 | if (_v) { |
11274 | { |
11275 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
11276 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11277 | } |
11278 | if (_v) { |
11279 | return _wrap_GSkyRegionCircle_radius__SWIG_1(self, args); |
11280 | } |
11281 | } |
11282 | } |
11283 | |
11284 | fail: |
11285 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyRegionCircle_radius'.\n" |
11286 | " Possible C/C++ prototypes are:\n" |
11287 | " GSkyRegionCircle::radius() const\n" |
11288 | " GSkyRegionCircle::radius(double const &)\n"); |
11289 | return 0; |
11290 | } |
11291 | |
11292 | |
11293 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_centre__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11294 | PyObject *resultobj = 0; |
11295 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11296 | void *argp1 = 0 ; |
11297 | int res1 = 0 ; |
11298 | PyObject * obj0 = 0 ; |
11299 | GSkyDir *result = 0 ; |
11300 | |
11301 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_centre",&obj0)) SWIG_failgoto fail; |
11302 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11303 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_centre" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_centre" "', argument " "1"" of type '" "GSkyRegionCircle const *""'"); goto fail; } while(0); |
11305 | } |
11306 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11307 | { |
11308 | try { |
11309 | result = (GSkyDir *) &((GSkyRegionCircle const *)arg1)->centre(); |
11310 | } |
11311 | catch (const GException::out_of_range& e) { |
11312 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11313 | } |
11314 | catch (const GExceptionHandler& e) { |
11315 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11316 | } |
11317 | catch (const std::exception& e) { |
11318 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11319 | } |
11320 | } |
11321 | 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[6], 0 | 0); |
11322 | return resultobj; |
11323 | fail: |
11324 | return NULL__null; |
11325 | } |
11326 | |
11327 | |
11328 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_centre__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11329 | PyObject *resultobj = 0; |
11330 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11331 | GSkyDir *arg2 = 0 ; |
11332 | void *argp1 = 0 ; |
11333 | int res1 = 0 ; |
11334 | void *argp2 = 0 ; |
11335 | int res2 = 0 ; |
11336 | PyObject * obj0 = 0 ; |
11337 | PyObject * obj1 = 0 ; |
11338 | |
11339 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegionCircle_centre",&obj0,&obj1)) SWIG_failgoto fail; |
11340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11341 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_centre" "', argument " "1"" of type '" "GSkyRegionCircle *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_centre" "', argument " "1"" of type '" "GSkyRegionCircle *""'"); goto fail; } while (0); |
11343 | } |
11344 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11345 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
11346 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11347 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegionCircle_centre" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegionCircle_centre" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
11348 | } |
11349 | if (!argp2) { |
11350 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegionCircle_centre" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegionCircle_centre" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
11351 | } |
11352 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
11353 | { |
11354 | try { |
11355 | (arg1)->centre((GSkyDir const &)*arg2); |
11356 | } |
11357 | catch (const GException::out_of_range& e) { |
11358 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11359 | } |
11360 | catch (const GExceptionHandler& e) { |
11361 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11362 | } |
11363 | catch (const std::exception& e) { |
11364 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11365 | } |
11366 | } |
11367 | resultobj = SWIG_Py_Void(); |
11368 | return resultobj; |
11369 | fail: |
11370 | return NULL__null; |
11371 | } |
11372 | |
11373 | |
11374 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_centre__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11375 | PyObject *resultobj = 0; |
11376 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11377 | double *arg2 = 0 ; |
11378 | double *arg3 = 0 ; |
11379 | void *argp1 = 0 ; |
11380 | int res1 = 0 ; |
11381 | double temp2 ; |
11382 | double val2 ; |
11383 | int ecode2 = 0 ; |
11384 | double temp3 ; |
11385 | double val3 ; |
11386 | int ecode3 = 0 ; |
11387 | PyObject * obj0 = 0 ; |
11388 | PyObject * obj1 = 0 ; |
11389 | PyObject * obj2 = 0 ; |
11390 | |
11391 | if (!PyArg_ParseTuple(args,(char *)"OOO:GSkyRegionCircle_centre",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
11392 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11393 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11394 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_centre" "', argument " "1"" of type '" "GSkyRegionCircle *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_centre" "', argument " "1"" of type '" "GSkyRegionCircle *""'"); goto fail; } while (0); |
11395 | } |
11396 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11397 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
11398 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
11399 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GSkyRegionCircle_centre" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GSkyRegionCircle_centre" "', argument " "2"" of type '" "double""'"); goto fail; } while (0); |
11400 | } |
11401 | temp2 = static_cast< double >(val2); |
11402 | arg2 = &temp2; |
11403 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
11404 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
11405 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GSkyRegionCircle_centre" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GSkyRegionCircle_centre" "', argument " "3"" of type '" "double""'"); goto fail; } while (0); |
11406 | } |
11407 | temp3 = static_cast< double >(val3); |
11408 | arg3 = &temp3; |
11409 | { |
11410 | try { |
11411 | (arg1)->centre((double const &)*arg2,(double const &)*arg3); |
11412 | } |
11413 | catch (const GException::out_of_range& e) { |
11414 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11415 | } |
11416 | catch (const GExceptionHandler& e) { |
11417 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11418 | } |
11419 | catch (const std::exception& e) { |
11420 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11421 | } |
11422 | } |
11423 | resultobj = SWIG_Py_Void(); |
11424 | return resultobj; |
11425 | fail: |
11426 | return NULL__null; |
11427 | } |
11428 | |
11429 | |
11430 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_centre(PyObject *self, PyObject *args) { |
11431 | int argc; |
11432 | PyObject *argv[4]; |
11433 | int ii; |
11434 | |
11435 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11436 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11437 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
11438 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11439 | } |
11440 | if (argc == 1) { |
11441 | int _v; |
11442 | void *vptr = 0; |
11443 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
11444 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11445 | if (_v) { |
11446 | return _wrap_GSkyRegionCircle_centre__SWIG_0(self, args); |
11447 | } |
11448 | } |
11449 | if (argc == 2) { |
11450 | int _v; |
11451 | void *vptr = 0; |
11452 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
11453 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11454 | if (_v) { |
11455 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0); |
11456 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11457 | if (_v) { |
11458 | return _wrap_GSkyRegionCircle_centre__SWIG_1(self, args); |
11459 | } |
11460 | } |
11461 | } |
11462 | if (argc == 3) { |
11463 | int _v; |
11464 | void *vptr = 0; |
11465 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
11466 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11467 | if (_v) { |
11468 | { |
11469 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
11470 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11471 | } |
11472 | if (_v) { |
11473 | { |
11474 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
11475 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11476 | } |
11477 | if (_v) { |
11478 | return _wrap_GSkyRegionCircle_centre__SWIG_2(self, args); |
11479 | } |
11480 | } |
11481 | } |
11482 | } |
11483 | |
11484 | fail: |
11485 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyRegionCircle_centre'.\n" |
11486 | " Possible C/C++ prototypes are:\n" |
11487 | " GSkyRegionCircle::centre() const\n" |
11488 | " GSkyRegionCircle::centre(GSkyDir const &)\n" |
11489 | " GSkyRegionCircle::centre(double const &,double const &)\n"); |
11490 | return 0; |
11491 | } |
11492 | |
11493 | |
11494 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_ra(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11495 | PyObject *resultobj = 0; |
11496 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11497 | void *argp1 = 0 ; |
11498 | int res1 = 0 ; |
11499 | PyObject * obj0 = 0 ; |
11500 | double result; |
11501 | |
11502 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_ra",&obj0)) SWIG_failgoto fail; |
11503 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11504 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_ra" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_ra" "', argument " "1"" of type '" "GSkyRegionCircle const *""'"); goto fail; } while(0); |
11506 | } |
11507 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11508 | { |
11509 | try { |
11510 | result = (double)((GSkyRegionCircle const *)arg1)->ra(); |
11511 | } |
11512 | catch (const GException::out_of_range& e) { |
11513 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11514 | } |
11515 | catch (const GExceptionHandler& e) { |
11516 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11517 | } |
11518 | catch (const std::exception& e) { |
11519 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11520 | } |
11521 | } |
11522 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
11523 | return resultobj; |
11524 | fail: |
11525 | return NULL__null; |
11526 | } |
11527 | |
11528 | |
11529 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_dec(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11530 | PyObject *resultobj = 0; |
11531 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11532 | void *argp1 = 0 ; |
11533 | int res1 = 0 ; |
11534 | PyObject * obj0 = 0 ; |
11535 | double result; |
11536 | |
11537 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_dec",&obj0)) SWIG_failgoto fail; |
11538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11539 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_dec" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_dec" "', argument " "1"" of type '" "GSkyRegionCircle const *""'"); goto fail; } while(0); |
11541 | } |
11542 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11543 | { |
11544 | try { |
11545 | result = (double)((GSkyRegionCircle const *)arg1)->dec(); |
11546 | } |
11547 | catch (const GException::out_of_range& e) { |
11548 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11549 | } |
11550 | catch (const GExceptionHandler& e) { |
11551 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11552 | } |
11553 | catch (const std::exception& e) { |
11554 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11555 | } |
11556 | } |
11557 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
11558 | return resultobj; |
11559 | fail: |
11560 | return NULL__null; |
11561 | } |
11562 | |
11563 | |
11564 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11565 | PyObject *resultobj = 0; |
11566 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11567 | std::string *arg2 = 0 ; |
11568 | void *argp1 = 0 ; |
11569 | int res1 = 0 ; |
11570 | int res2 = SWIG_OLDOBJ((0)) ; |
11571 | PyObject * obj0 = 0 ; |
11572 | PyObject * obj1 = 0 ; |
11573 | |
11574 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegionCircle_read",&obj0,&obj1)) SWIG_failgoto fail; |
11575 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11576 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11577 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_read" "', argument " "1"" of type '" "GSkyRegionCircle *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_read" "', argument " "1"" of type '" "GSkyRegionCircle *""'"); goto fail; } while (0); |
11578 | } |
11579 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11580 | { |
11581 | std::string *ptr = (std::string *)0; |
11582 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
11583 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11584 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegionCircle_read" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegionCircle_read" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
11585 | } |
11586 | if (!ptr) { |
11587 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegionCircle_read" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegionCircle_read" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
11588 | } |
11589 | arg2 = ptr; |
11590 | } |
11591 | { |
11592 | try { |
11593 | (arg1)->read((std::string const &)*arg2); |
11594 | } |
11595 | catch (const GException::out_of_range& e) { |
11596 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11597 | } |
11598 | catch (const GExceptionHandler& e) { |
11599 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11600 | } |
11601 | catch (const std::exception& e) { |
11602 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11603 | } |
11604 | } |
11605 | resultobj = SWIG_Py_Void(); |
11606 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11607 | return resultobj; |
11608 | fail: |
11609 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
11610 | return NULL__null; |
11611 | } |
11612 | |
11613 | |
11614 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11615 | PyObject *resultobj = 0; |
11616 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11617 | void *argp1 = 0 ; |
11618 | int res1 = 0 ; |
11619 | PyObject * obj0 = 0 ; |
11620 | std::string result; |
11621 | |
11622 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_write",&obj0)) SWIG_failgoto fail; |
11623 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11624 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_write" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_write" "', argument " "1"" of type '" "GSkyRegionCircle const *""'"); goto fail; } while(0); |
11626 | } |
11627 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11628 | { |
11629 | try { |
11630 | result = ((GSkyRegionCircle const *)arg1)->write(); |
11631 | } |
11632 | catch (const GException::out_of_range& e) { |
11633 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11634 | } |
11635 | catch (const GExceptionHandler& e) { |
11636 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11637 | } |
11638 | catch (const std::exception& e) { |
11639 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11640 | } |
11641 | } |
11642 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
11643 | return resultobj; |
11644 | fail: |
11645 | return NULL__null; |
11646 | } |
11647 | |
11648 | |
11649 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11650 | PyObject *resultobj = 0; |
11651 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11652 | GSkyDir *arg2 = 0 ; |
11653 | void *argp1 = 0 ; |
11654 | int res1 = 0 ; |
11655 | void *argp2 = 0 ; |
11656 | int res2 = 0 ; |
11657 | PyObject * obj0 = 0 ; |
11658 | PyObject * obj1 = 0 ; |
11659 | bool result; |
11660 | |
11661 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegionCircle_contains",&obj0,&obj1)) SWIG_failgoto fail; |
11662 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11663 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_contains" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_contains" "', argument " "1"" of type '" "GSkyRegionCircle const *""'" ); goto fail; } while(0); |
11665 | } |
11666 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11667 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
11668 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11669 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegionCircle_contains" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegionCircle_contains" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
11670 | } |
11671 | if (!argp2) { |
11672 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegionCircle_contains" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegionCircle_contains" "', argument " "2" " of type '" "GSkyDir const &""'"); goto fail; } while(0); |
11673 | } |
11674 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
11675 | { |
11676 | try { |
11677 | result = (bool)((GSkyRegionCircle const *)arg1)->contains((GSkyDir const &)*arg2); |
11678 | } |
11679 | catch (const GException::out_of_range& e) { |
11680 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11681 | } |
11682 | catch (const GExceptionHandler& e) { |
11683 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11684 | } |
11685 | catch (const std::exception& e) { |
11686 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11687 | } |
11688 | } |
11689 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
11690 | return resultobj; |
11691 | fail: |
11692 | return NULL__null; |
11693 | } |
11694 | |
11695 | |
11696 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11697 | PyObject *resultobj = 0; |
11698 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11699 | GSkyRegion *arg2 = 0 ; |
11700 | void *argp1 = 0 ; |
11701 | int res1 = 0 ; |
11702 | void *argp2 = 0 ; |
11703 | int res2 = 0 ; |
11704 | PyObject * obj0 = 0 ; |
11705 | PyObject * obj1 = 0 ; |
11706 | bool result; |
11707 | |
11708 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegionCircle_contains",&obj0,&obj1)) SWIG_failgoto fail; |
11709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11710 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_contains" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_contains" "', argument " "1"" of type '" "GSkyRegionCircle const *""'" ); goto fail; } while(0); |
11712 | } |
11713 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11714 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
11715 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11716 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegionCircle_contains" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegionCircle_contains" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
11717 | } |
11718 | if (!argp2) { |
11719 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegionCircle_contains" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegionCircle_contains" "', argument " "2" " of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
11720 | } |
11721 | arg2 = reinterpret_cast< GSkyRegion * >(argp2); |
11722 | { |
11723 | try { |
11724 | result = (bool)((GSkyRegionCircle const *)arg1)->contains((GSkyRegion const &)*arg2); |
11725 | } |
11726 | catch (const GException::out_of_range& e) { |
11727 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11728 | } |
11729 | catch (const GExceptionHandler& e) { |
11730 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11731 | } |
11732 | catch (const std::exception& e) { |
11733 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11734 | } |
11735 | } |
11736 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
11737 | return resultobj; |
11738 | fail: |
11739 | return NULL__null; |
11740 | } |
11741 | |
11742 | |
11743 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_contains(PyObject *self, PyObject *args) { |
11744 | int argc; |
11745 | PyObject *argv[3]; |
11746 | int ii; |
11747 | |
11748 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
11749 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
11750 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
11751 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
11752 | } |
11753 | if (argc == 2) { |
11754 | int _v; |
11755 | void *vptr = 0; |
11756 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
11757 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11758 | if (_v) { |
11759 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0); |
11760 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11761 | if (_v) { |
11762 | return _wrap_GSkyRegionCircle_contains__SWIG_0(self, args); |
11763 | } |
11764 | } |
11765 | } |
11766 | if (argc == 2) { |
11767 | int _v; |
11768 | void *vptr = 0; |
11769 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyRegionCircle, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10 ], 0, 0); |
11770 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11771 | if (_v) { |
11772 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyRegion, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[9], 0, 0); |
11773 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
11774 | if (_v) { |
11775 | return _wrap_GSkyRegionCircle_contains__SWIG_1(self, args); |
11776 | } |
11777 | } |
11778 | } |
11779 | |
11780 | fail: |
11781 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyRegionCircle_contains'.\n" |
11782 | " Possible C/C++ prototypes are:\n" |
11783 | " GSkyRegionCircle::contains(GSkyDir const &) const\n" |
11784 | " GSkyRegionCircle::contains(GSkyRegion const &) const\n"); |
11785 | return 0; |
11786 | } |
11787 | |
11788 | |
11789 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_overlaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11790 | PyObject *resultobj = 0; |
11791 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11792 | GSkyRegion *arg2 = 0 ; |
11793 | void *argp1 = 0 ; |
11794 | int res1 = 0 ; |
11795 | void *argp2 = 0 ; |
11796 | int res2 = 0 ; |
11797 | PyObject * obj0 = 0 ; |
11798 | PyObject * obj1 = 0 ; |
11799 | bool result; |
11800 | |
11801 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyRegionCircle_overlaps",&obj0,&obj1)) SWIG_failgoto fail; |
11802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11803 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_overlaps" "', argument " "1"" of type '" "GSkyRegionCircle const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_overlaps" "', argument " "1"" of type '" "GSkyRegionCircle const *""'" ); goto fail; } while(0); |
11805 | } |
11806 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11807 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyRegion, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[9], 0 | 0, 0); |
11808 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
11809 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyRegionCircle_overlaps" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyRegionCircle_overlaps" "', argument " "2"" of type '" "GSkyRegion const &""'"); goto fail; } while(0); |
11810 | } |
11811 | if (!argp2) { |
11812 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyRegionCircle_overlaps" "', argument " "2"" of type '" "GSkyRegion const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyRegionCircle_overlaps" "', argument " "2" " of type '" "GSkyRegion const &""'"); goto fail; } while (0); |
11813 | } |
11814 | arg2 = reinterpret_cast< GSkyRegion * >(argp2); |
11815 | { |
11816 | try { |
11817 | result = (bool)((GSkyRegionCircle const *)arg1)->overlaps((GSkyRegion const &)*arg2); |
11818 | } |
11819 | catch (const GException::out_of_range& e) { |
11820 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11821 | } |
11822 | catch (const GExceptionHandler& e) { |
11823 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11824 | } |
11825 | catch (const std::exception& e) { |
11826 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11827 | } |
11828 | } |
11829 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
11830 | return resultobj; |
11831 | fail: |
11832 | return NULL__null; |
11833 | } |
11834 | |
11835 | |
11836 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyRegionCircle_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11837 | PyObject *resultobj = 0; |
11838 | GSkyRegionCircle *arg1 = (GSkyRegionCircle *) 0 ; |
11839 | void *argp1 = 0 ; |
11840 | int res1 = 0 ; |
11841 | PyObject * obj0 = 0 ; |
11842 | GSkyRegionCircle result; |
11843 | |
11844 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyRegionCircle_copy",&obj0)) SWIG_failgoto fail; |
11845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyRegionCircle, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10] , 0 | 0, 0); |
11846 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyRegionCircle_copy" "', argument " "1"" of type '" "GSkyRegionCircle *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyRegionCircle_copy" "', argument " "1"" of type '" "GSkyRegionCircle *""'"); goto fail; } while (0); |
11848 | } |
11849 | arg1 = reinterpret_cast< GSkyRegionCircle * >(argp1); |
11850 | { |
11851 | try { |
11852 | result = GSkyRegionCircle_copy(arg1); |
11853 | } |
11854 | catch (const GException::out_of_range& e) { |
11855 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11856 | } |
11857 | catch (const GExceptionHandler& e) { |
11858 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11859 | } |
11860 | catch (const std::exception& e) { |
11861 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11862 | } |
11863 | } |
11864 | resultobj = SWIG_NewPointerObj((new GSkyRegionCircle(static_cast< const GSkyRegionCircle& >(result))), SWIGTYPE_p_GSkyRegionCircle, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyRegionCircle(static_cast < const GSkyRegionCircle& >(result))), swig_types[10 ], 0x1 | 0); |
11865 | return resultobj; |
11866 | fail: |
11867 | return NULL__null; |
11868 | } |
11869 | |
11870 | |
11871 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSkyRegionCircle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11872 | PyObject *obj; |
11873 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
11874 | SWIG_TypeNewClientData(SWIGTYPE_p_GSkyRegionCircleswig_types[10], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
11875 | return SWIG_Py_Void(); |
11876 | } |
11877 | |
11878 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSkyProjection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11879 | PyObject *resultobj = 0; |
11880 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
11881 | void *argp1 = 0 ; |
11882 | int res1 = 0 ; |
11883 | PyObject * obj0 = 0 ; |
11884 | |
11885 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GSkyProjection",&obj0)) SWIG_failgoto fail; |
11886 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0x1 | 0, 0); |
11887 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSkyProjection" "', argument " "1"" of type '" "GSkyProjection *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GSkyProjection" "', argument " "1"" of type '" "GSkyProjection *""'"); goto fail; } while(0 ); |
11889 | } |
11890 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
11891 | { |
11892 | try { |
11893 | delete arg1; |
11894 | } |
11895 | catch (const GException::out_of_range& e) { |
11896 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11897 | } |
11898 | catch (const GExceptionHandler& e) { |
11899 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11900 | } |
11901 | catch (const std::exception& e) { |
11902 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11903 | } |
11904 | } |
11905 | resultobj = SWIG_Py_Void(); |
11906 | return resultobj; |
11907 | fail: |
11908 | return NULL__null; |
11909 | } |
11910 | |
11911 | |
11912 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11913 | PyObject *resultobj = 0; |
11914 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
11915 | void *argp1 = 0 ; |
11916 | int res1 = 0 ; |
11917 | PyObject * obj0 = 0 ; |
11918 | |
11919 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyProjection_clear",&obj0)) SWIG_failgoto fail; |
11920 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
11921 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_clear" "', argument " "1"" of type '" "GSkyProjection *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_clear" "', argument " "1"" of type '" "GSkyProjection *""'"); goto fail; } while(0 ); |
11923 | } |
11924 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
11925 | { |
11926 | try { |
11927 | (arg1)->clear(); |
11928 | } |
11929 | catch (const GException::out_of_range& e) { |
11930 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11931 | } |
11932 | catch (const GExceptionHandler& e) { |
11933 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11934 | } |
11935 | catch (const std::exception& e) { |
11936 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11937 | } |
11938 | } |
11939 | resultobj = SWIG_Py_Void(); |
11940 | return resultobj; |
11941 | fail: |
11942 | return NULL__null; |
11943 | } |
11944 | |
11945 | |
11946 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11947 | PyObject *resultobj = 0; |
11948 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
11949 | void *argp1 = 0 ; |
11950 | int res1 = 0 ; |
11951 | PyObject * obj0 = 0 ; |
11952 | GSkyProjection *result = 0 ; |
11953 | |
11954 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyProjection_clone",&obj0)) SWIG_failgoto fail; |
11955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
11956 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_clone" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_clone" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
11958 | } |
11959 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
11960 | { |
11961 | try { |
11962 | result = (GSkyProjection *)((GSkyProjection const *)arg1)->clone(); |
11963 | } |
11964 | catch (const GException::out_of_range& e) { |
11965 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
11966 | } |
11967 | catch (const GExceptionHandler& e) { |
11968 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11969 | } |
11970 | catch (const std::exception& e) { |
11971 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
11972 | } |
11973 | } |
11974 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[8], 0 | 0); |
11975 | return resultobj; |
11976 | fail: |
11977 | return NULL__null; |
11978 | } |
11979 | |
11980 | |
11981 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11982 | PyObject *resultobj = 0; |
11983 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
11984 | void *argp1 = 0 ; |
11985 | int res1 = 0 ; |
11986 | PyObject * obj0 = 0 ; |
11987 | int result; |
11988 | |
11989 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyProjection_size",&obj0)) SWIG_failgoto fail; |
11990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
11991 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
11992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_size" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_size" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
11993 | } |
11994 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
11995 | { |
11996 | try { |
11997 | result = (int)((GSkyProjection const *)arg1)->size(); |
11998 | } |
11999 | catch (const GException::out_of_range& e) { |
12000 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12001 | } |
12002 | catch (const GExceptionHandler& e) { |
12003 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12004 | } |
12005 | catch (const std::exception& e) { |
12006 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12007 | } |
12008 | } |
12009 | resultobj = SWIG_From_int(static_cast< int >(result)); |
12010 | return resultobj; |
12011 | fail: |
12012 | return NULL__null; |
12013 | } |
12014 | |
12015 | |
12016 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12017 | PyObject *resultobj = 0; |
12018 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12019 | void *argp1 = 0 ; |
12020 | int res1 = 0 ; |
12021 | PyObject * obj0 = 0 ; |
12022 | std::string result; |
12023 | |
12024 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyProjection_code",&obj0)) SWIG_failgoto fail; |
12025 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12026 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12027 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_code" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_code" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
12028 | } |
12029 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12030 | { |
12031 | try { |
12032 | result = ((GSkyProjection const *)arg1)->code(); |
12033 | } |
12034 | catch (const GException::out_of_range& e) { |
12035 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12036 | } |
12037 | catch (const GExceptionHandler& e) { |
12038 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12039 | } |
12040 | catch (const std::exception& e) { |
12041 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12042 | } |
12043 | } |
12044 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
12045 | return resultobj; |
12046 | fail: |
12047 | return NULL__null; |
12048 | } |
12049 | |
12050 | |
12051 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12052 | PyObject *resultobj = 0; |
12053 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12054 | void *argp1 = 0 ; |
12055 | int res1 = 0 ; |
12056 | PyObject * obj0 = 0 ; |
12057 | std::string result; |
12058 | |
12059 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyProjection_name",&obj0)) SWIG_failgoto fail; |
12060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12061 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_name" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_name" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
12063 | } |
12064 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12065 | { |
12066 | try { |
12067 | result = ((GSkyProjection const *)arg1)->name(); |
12068 | } |
12069 | catch (const GException::out_of_range& e) { |
12070 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12071 | } |
12072 | catch (const GExceptionHandler& e) { |
12073 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12074 | } |
12075 | catch (const std::exception& e) { |
12076 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12077 | } |
12078 | } |
12079 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
12080 | return resultobj; |
12081 | fail: |
12082 | return NULL__null; |
12083 | } |
12084 | |
12085 | |
12086 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12087 | PyObject *resultobj = 0; |
12088 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12089 | GFitsHDU *arg2 = 0 ; |
12090 | void *argp1 = 0 ; |
12091 | int res1 = 0 ; |
12092 | void *argp2 = 0 ; |
12093 | int res2 = 0 ; |
12094 | PyObject * obj0 = 0 ; |
12095 | PyObject * obj1 = 0 ; |
12096 | |
12097 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyProjection_read",&obj0,&obj1)) SWIG_failgoto fail; |
12098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12099 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_read" "', argument " "1"" of type '" "GSkyProjection *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_read" "', argument " "1"" of type '" "GSkyProjection *""'"); goto fail; } while(0 ); |
12101 | } |
12102 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12103 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0 | 0, 0); |
12104 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12105 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyProjection_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyProjection_read" "', argument " "2"" of type '" "GFitsHDU const &""'"); goto fail; } while (0); |
12106 | } |
12107 | if (!argp2) { |
12108 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyProjection_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyProjection_read" "', argument " "2"" of type '" "GFitsHDU const &""'"); goto fail; } while(0); |
12109 | } |
12110 | arg2 = reinterpret_cast< GFitsHDU * >(argp2); |
12111 | { |
12112 | try { |
12113 | (arg1)->read((GFitsHDU const &)*arg2); |
12114 | } |
12115 | catch (const GException::out_of_range& e) { |
12116 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12117 | } |
12118 | catch (const GExceptionHandler& e) { |
12119 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12120 | } |
12121 | catch (const std::exception& e) { |
12122 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12123 | } |
12124 | } |
12125 | resultobj = SWIG_Py_Void(); |
12126 | return resultobj; |
12127 | fail: |
12128 | return NULL__null; |
12129 | } |
12130 | |
12131 | |
12132 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12133 | PyObject *resultobj = 0; |
12134 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12135 | GFitsHDU *arg2 = 0 ; |
12136 | void *argp1 = 0 ; |
12137 | int res1 = 0 ; |
12138 | void *argp2 = 0 ; |
12139 | int res2 = 0 ; |
12140 | PyObject * obj0 = 0 ; |
12141 | PyObject * obj1 = 0 ; |
12142 | |
12143 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyProjection_write",&obj0,&obj1)) SWIG_failgoto fail; |
12144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12145 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_write" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_write" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
12147 | } |
12148 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12149 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0, 0); |
12150 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12151 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyProjection_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyProjection_write" "', argument " "2"" of type '" "GFitsHDU &""'"); goto fail; } while(0); |
12152 | } |
12153 | if (!argp2) { |
12154 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyProjection_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyProjection_write" "', argument " "2"" of type '" "GFitsHDU &""'"); goto fail; } while(0); |
12155 | } |
12156 | arg2 = reinterpret_cast< GFitsHDU * >(argp2); |
12157 | { |
12158 | try { |
12159 | ((GSkyProjection const *)arg1)->write(*arg2); |
12160 | } |
12161 | catch (const GException::out_of_range& e) { |
12162 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12163 | } |
12164 | catch (const GExceptionHandler& e) { |
12165 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12166 | } |
12167 | catch (const std::exception& e) { |
12168 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12169 | } |
12170 | } |
12171 | resultobj = SWIG_Py_Void(); |
12172 | return resultobj; |
12173 | fail: |
12174 | return NULL__null; |
12175 | } |
12176 | |
12177 | |
12178 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_solidangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12179 | PyObject *resultobj = 0; |
12180 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12181 | GSkyPixel *arg2 = 0 ; |
12182 | void *argp1 = 0 ; |
12183 | int res1 = 0 ; |
12184 | void *argp2 = 0 ; |
12185 | int res2 = 0 ; |
12186 | PyObject * obj0 = 0 ; |
12187 | PyObject * obj1 = 0 ; |
12188 | double result; |
12189 | |
12190 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyProjection_solidangle",&obj0,&obj1)) SWIG_failgoto fail; |
12191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12192 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_solidangle" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_solidangle" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while(0); |
12194 | } |
12195 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12196 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
12197 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12198 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyProjection_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyProjection_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
12199 | } |
12200 | if (!argp2) { |
12201 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyProjection_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyProjection_solidangle" "', argument " "2" " of type '" "GSkyPixel const &""'"); goto fail; } while( 0); |
12202 | } |
12203 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
12204 | { |
12205 | try { |
12206 | result = (double)((GSkyProjection const *)arg1)->solidangle((GSkyPixel const &)*arg2); |
12207 | } |
12208 | catch (const GException::out_of_range& e) { |
12209 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12210 | } |
12211 | catch (const GExceptionHandler& e) { |
12212 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12213 | } |
12214 | catch (const std::exception& e) { |
12215 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12216 | } |
12217 | } |
12218 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
12219 | return resultobj; |
12220 | fail: |
12221 | return NULL__null; |
12222 | } |
12223 | |
12224 | |
12225 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_pix2dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12226 | PyObject *resultobj = 0; |
12227 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12228 | GSkyPixel *arg2 = 0 ; |
12229 | void *argp1 = 0 ; |
12230 | int res1 = 0 ; |
12231 | void *argp2 = 0 ; |
12232 | int res2 = 0 ; |
12233 | PyObject * obj0 = 0 ; |
12234 | PyObject * obj1 = 0 ; |
12235 | GSkyDir result; |
12236 | |
12237 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyProjection_pix2dir",&obj0,&obj1)) SWIG_failgoto fail; |
12238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12239 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_pix2dir" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_pix2dir" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
12241 | } |
12242 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12243 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
12244 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12245 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyProjection_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyProjection_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
12246 | } |
12247 | if (!argp2) { |
12248 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyProjection_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyProjection_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
12249 | } |
12250 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
12251 | { |
12252 | try { |
12253 | result = ((GSkyProjection const *)arg1)->pix2dir((GSkyPixel const &)*arg2); |
12254 | } |
12255 | catch (const GException::out_of_range& e) { |
12256 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12257 | } |
12258 | catch (const GExceptionHandler& e) { |
12259 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12260 | } |
12261 | catch (const std::exception& e) { |
12262 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12263 | } |
12264 | } |
12265 | resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast< const GSkyDir& >(result))), swig_types[6], 0x1 | 0); |
12266 | return resultobj; |
12267 | fail: |
12268 | return NULL__null; |
12269 | } |
12270 | |
12271 | |
12272 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_dir2pix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12273 | PyObject *resultobj = 0; |
12274 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12275 | GSkyDir *arg2 = 0 ; |
12276 | void *argp1 = 0 ; |
12277 | int res1 = 0 ; |
12278 | void *argp2 = 0 ; |
12279 | int res2 = 0 ; |
12280 | PyObject * obj0 = 0 ; |
12281 | PyObject * obj1 = 0 ; |
12282 | GSkyPixel result; |
12283 | |
12284 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyProjection_dir2pix",&obj0,&obj1)) SWIG_failgoto fail; |
12285 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12286 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_dir2pix" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_dir2pix" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
12288 | } |
12289 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12290 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
12291 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12292 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyProjection_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyProjection_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
12293 | } |
12294 | if (!argp2) { |
12295 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyProjection_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyProjection_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
12296 | } |
12297 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
12298 | { |
12299 | try { |
12300 | result = ((GSkyProjection const *)arg1)->dir2pix((GSkyDir const &)*arg2); |
12301 | } |
12302 | catch (const GException::out_of_range& e) { |
12303 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12304 | } |
12305 | catch (const GExceptionHandler& e) { |
12306 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12307 | } |
12308 | catch (const std::exception& e) { |
12309 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12310 | } |
12311 | } |
12312 | resultobj = SWIG_NewPointerObj((new GSkyPixel(static_cast< const GSkyPixel& >(result))), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyPixel(static_cast< const GSkyPixel& >(result))), swig_types[7], 0x1 | 0); |
12313 | return resultobj; |
12314 | fail: |
12315 | return NULL__null; |
12316 | } |
12317 | |
12318 | |
12319 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_coordsys__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12320 | PyObject *resultobj = 0; |
12321 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12322 | void *argp1 = 0 ; |
12323 | int res1 = 0 ; |
12324 | PyObject * obj0 = 0 ; |
12325 | std::string result; |
12326 | |
12327 | if (!PyArg_ParseTuple(args,(char *)"O:GSkyProjection_coordsys",&obj0)) SWIG_failgoto fail; |
12328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12329 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_coordsys" "', argument " "1"" of type '" "GSkyProjection const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_coordsys" "', argument " "1"" of type '" "GSkyProjection const *""'"); goto fail; } while (0); |
12331 | } |
12332 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12333 | { |
12334 | try { |
12335 | result = ((GSkyProjection const *)arg1)->coordsys(); |
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_From_std_string(static_cast< std::string >(result)); |
12348 | return resultobj; |
12349 | fail: |
12350 | return NULL__null; |
12351 | } |
12352 | |
12353 | |
12354 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_coordsys__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12355 | PyObject *resultobj = 0; |
12356 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12357 | std::string *arg2 = 0 ; |
12358 | void *argp1 = 0 ; |
12359 | int res1 = 0 ; |
12360 | int res2 = SWIG_OLDOBJ((0)) ; |
12361 | PyObject * obj0 = 0 ; |
12362 | PyObject * obj1 = 0 ; |
12363 | |
12364 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyProjection_coordsys",&obj0,&obj1)) SWIG_failgoto fail; |
12365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12366 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection_coordsys" "', argument " "1"" of type '" "GSkyProjection *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection_coordsys" "', argument " "1"" of type '" "GSkyProjection *""'"); goto fail; } while(0 ); |
12368 | } |
12369 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12370 | { |
12371 | std::string *ptr = (std::string *)0; |
12372 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
12373 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12374 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyProjection_coordsys" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyProjection_coordsys" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
12375 | } |
12376 | if (!ptr) { |
12377 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyProjection_coordsys" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyProjection_coordsys" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
12378 | } |
12379 | arg2 = ptr; |
12380 | } |
12381 | { |
12382 | try { |
12383 | (arg1)->coordsys((std::string const &)*arg2); |
12384 | } |
12385 | catch (const GException::out_of_range& e) { |
12386 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12387 | } |
12388 | catch (const GExceptionHandler& e) { |
12389 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12390 | } |
12391 | catch (const std::exception& e) { |
12392 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12393 | } |
12394 | } |
12395 | resultobj = SWIG_Py_Void(); |
12396 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12397 | return resultobj; |
12398 | fail: |
12399 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12400 | return NULL__null; |
12401 | } |
12402 | |
12403 | |
12404 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection_coordsys(PyObject *self, PyObject *args) { |
12405 | int argc; |
12406 | PyObject *argv[3]; |
12407 | int ii; |
12408 | |
12409 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
12410 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
12411 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
12412 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
12413 | } |
12414 | if (argc == 1) { |
12415 | int _v; |
12416 | void *vptr = 0; |
12417 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyProjection, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8 ], 0, 0); |
12418 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12419 | if (_v) { |
12420 | return _wrap_GSkyProjection_coordsys__SWIG_0(self, args); |
12421 | } |
12422 | } |
12423 | if (argc == 2) { |
12424 | int _v; |
12425 | void *vptr = 0; |
12426 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSkyProjection, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8 ], 0, 0); |
12427 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12428 | if (_v) { |
12429 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
12430 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12431 | if (_v) { |
12432 | return _wrap_GSkyProjection_coordsys__SWIG_1(self, args); |
12433 | } |
12434 | } |
12435 | } |
12436 | |
12437 | fail: |
12438 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSkyProjection_coordsys'.\n" |
12439 | " Possible C/C++ prototypes are:\n" |
12440 | " GSkyProjection::coordsys() const\n" |
12441 | " GSkyProjection::coordsys(std::string const &)\n"); |
12442 | return 0; |
12443 | } |
12444 | |
12445 | |
12446 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSkyProjection___is__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12447 | PyObject *resultobj = 0; |
12448 | GSkyProjection *arg1 = (GSkyProjection *) 0 ; |
12449 | GSkyProjection *arg2 = 0 ; |
12450 | void *argp1 = 0 ; |
12451 | int res1 = 0 ; |
12452 | void *argp2 = 0 ; |
12453 | int res2 = 0 ; |
12454 | PyObject * obj0 = 0 ; |
12455 | PyObject * obj1 = 0 ; |
12456 | bool result; |
12457 | |
12458 | if (!PyArg_ParseTuple(args,(char *)"OO:GSkyProjection___is__",&obj0,&obj1)) SWIG_failgoto fail; |
12459 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSkyProjection, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8], 0 | 0, 0); |
12460 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12461 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSkyProjection___is__" "', argument " "1"" of type '" "GSkyProjection *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GSkyProjection___is__" "', argument " "1"" of type '" "GSkyProjection *""'"); goto fail; } while(0 ); |
12462 | } |
12463 | arg1 = reinterpret_cast< GSkyProjection * >(argp1); |
12464 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyProjection, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8], 0 | 0, 0); |
12465 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12466 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSkyProjection___is__" "', argument " "2"" of type '" "GSkyProjection const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GSkyProjection___is__" "', argument " "2"" of type '" "GSkyProjection const &""'"); goto fail; } while(0); |
12467 | } |
12468 | if (!argp2) { |
12469 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSkyProjection___is__" "', argument " "2"" of type '" "GSkyProjection const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GSkyProjection___is__" "', argument " "2"" of type '" "GSkyProjection const &""'"); goto fail; } while(0); |
12470 | } |
12471 | arg2 = reinterpret_cast< GSkyProjection * >(argp2); |
12472 | { |
12473 | try { |
12474 | result = (bool)GSkyProjection___is__(arg1,(GSkyProjection const &)*arg2); |
12475 | } |
12476 | catch (const GException::out_of_range& e) { |
12477 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12478 | } |
12479 | catch (const GExceptionHandler& e) { |
12480 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12481 | } |
12482 | catch (const std::exception& e) { |
12483 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12484 | } |
12485 | } |
12486 | resultobj = SWIG_From_bool(static_cast< bool >(result)); |
12487 | return resultobj; |
12488 | fail: |
12489 | return NULL__null; |
12490 | } |
12491 | |
12492 | |
12493 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSkyProjection_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12494 | PyObject *obj; |
12495 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
12496 | SWIG_TypeNewClientData(SWIGTYPE_p_GSkyProjectionswig_types[8], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
12497 | return SWIG_Py_Void(); |
12498 | } |
12499 | |
12500 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GHealpix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12501 | PyObject *resultobj = 0; |
12502 | GHealpix *result = 0 ; |
12503 | |
12504 | if (!PyArg_ParseTuple(args,(char *)":new_GHealpix")) SWIG_failgoto fail; |
12505 | { |
12506 | try { |
12507 | result = (GHealpix *)new GHealpix(); |
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_GHealpix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
12520 | return resultobj; |
12521 | fail: |
12522 | return NULL__null; |
12523 | } |
12524 | |
12525 | |
12526 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GHealpix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12527 | PyObject *resultobj = 0; |
12528 | int *arg1 = 0 ; |
12529 | std::string *arg2 = 0 ; |
12530 | std::string *arg3 = 0 ; |
12531 | int temp1 ; |
12532 | int val1 ; |
12533 | int ecode1 = 0 ; |
12534 | int res2 = SWIG_OLDOBJ((0)) ; |
12535 | int res3 = SWIG_OLDOBJ((0)) ; |
12536 | PyObject * obj0 = 0 ; |
12537 | PyObject * obj1 = 0 ; |
12538 | PyObject * obj2 = 0 ; |
12539 | GHealpix *result = 0 ; |
12540 | |
12541 | if (!PyArg_ParseTuple(args,(char *)"OOO:new_GHealpix",&obj0,&obj1,&obj2)) SWIG_failgoto fail; |
12542 | ecode1 = SWIG_AsVal_int(obj0, &val1); |
12543 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
12544 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GHealpix" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GHealpix" "', argument " "1"" of type '" "int""'"); goto fail; } while(0); |
12545 | } |
12546 | temp1 = static_cast< int >(val1); |
12547 | arg1 = &temp1; |
12548 | { |
12549 | std::string *ptr = (std::string *)0; |
12550 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
12551 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12552 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
12553 | } |
12554 | if (!ptr) { |
12555 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
12556 | } |
12557 | arg2 = ptr; |
12558 | } |
12559 | { |
12560 | std::string *ptr = (std::string *)0; |
12561 | res3 = SWIG_AsPtr_std_string(obj2, &ptr); |
12562 | if (!SWIG_IsOK(res3)(res3 >= 0)) { |
12563 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GHealpix" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != ( -1)) ? res3 : -5)), "in method '" "new_GHealpix" "', argument " "3"" of type '" "std::string const &""'"); goto fail; } while (0); |
12564 | } |
12565 | if (!ptr) { |
12566 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GHealpix" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GHealpix" "', argument " "3"" of type '" "std::string const &" "'"); goto fail; } while(0); |
12567 | } |
12568 | arg3 = ptr; |
12569 | } |
12570 | { |
12571 | try { |
12572 | result = (GHealpix *)new GHealpix((int const &)*arg1,(std::string const &)*arg2,(std::string const &)*arg3); |
12573 | } |
12574 | catch (const GException::out_of_range& e) { |
12575 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12576 | } |
12577 | catch (const GExceptionHandler& e) { |
12578 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12579 | } |
12580 | catch (const std::exception& e) { |
12581 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12582 | } |
12583 | } |
12584 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GHealpix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
12585 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12586 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
12587 | return resultobj; |
12588 | fail: |
12589 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12590 | if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) << 1)))) delete arg3; |
12591 | return NULL__null; |
12592 | } |
12593 | |
12594 | |
12595 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GHealpix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12596 | PyObject *resultobj = 0; |
12597 | int *arg1 = 0 ; |
12598 | std::string *arg2 = 0 ; |
12599 | int temp1 ; |
12600 | int val1 ; |
12601 | int ecode1 = 0 ; |
12602 | int res2 = SWIG_OLDOBJ((0)) ; |
12603 | PyObject * obj0 = 0 ; |
12604 | PyObject * obj1 = 0 ; |
12605 | GHealpix *result = 0 ; |
12606 | |
12607 | if (!PyArg_ParseTuple(args,(char *)"OO:new_GHealpix",&obj0,&obj1)) SWIG_failgoto fail; |
12608 | ecode1 = SWIG_AsVal_int(obj0, &val1); |
12609 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
12610 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GHealpix" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GHealpix" "', argument " "1"" of type '" "int""'"); goto fail; } while(0); |
12611 | } |
12612 | temp1 = static_cast< int >(val1); |
12613 | arg1 = &temp1; |
12614 | { |
12615 | std::string *ptr = (std::string *)0; |
12616 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
12617 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
12618 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
12619 | } |
12620 | if (!ptr) { |
12621 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GHealpix" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
12622 | } |
12623 | arg2 = ptr; |
12624 | } |
12625 | { |
12626 | try { |
12627 | result = (GHealpix *)new GHealpix((int const &)*arg1,(std::string const &)*arg2); |
12628 | } |
12629 | catch (const GException::out_of_range& e) { |
12630 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12631 | } |
12632 | catch (const GExceptionHandler& e) { |
12633 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12634 | } |
12635 | catch (const std::exception& e) { |
12636 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12637 | } |
12638 | } |
12639 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GHealpix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
12640 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12641 | return resultobj; |
12642 | fail: |
12643 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
12644 | return NULL__null; |
12645 | } |
12646 | |
12647 | |
12648 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GHealpix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12649 | PyObject *resultobj = 0; |
12650 | int *arg1 = 0 ; |
12651 | int temp1 ; |
12652 | int val1 ; |
12653 | int ecode1 = 0 ; |
12654 | PyObject * obj0 = 0 ; |
12655 | GHealpix *result = 0 ; |
12656 | |
12657 | if (!PyArg_ParseTuple(args,(char *)"O:new_GHealpix",&obj0)) SWIG_failgoto fail; |
12658 | ecode1 = SWIG_AsVal_int(obj0, &val1); |
12659 | if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) { |
12660 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GHealpix" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 != (-1)) ? ecode1 : -5)), "in method '" "new_GHealpix" "', argument " "1"" of type '" "int""'"); goto fail; } while(0); |
12661 | } |
12662 | temp1 = static_cast< int >(val1); |
12663 | arg1 = &temp1; |
12664 | { |
12665 | try { |
12666 | result = (GHealpix *)new GHealpix((int const &)*arg1); |
12667 | } |
12668 | catch (const GException::out_of_range& e) { |
12669 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12670 | } |
12671 | catch (const GExceptionHandler& e) { |
12672 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12673 | } |
12674 | catch (const std::exception& e) { |
12675 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12676 | } |
12677 | } |
12678 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GHealpix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
12679 | return resultobj; |
12680 | fail: |
12681 | return NULL__null; |
12682 | } |
12683 | |
12684 | |
12685 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GHealpix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12686 | PyObject *resultobj = 0; |
12687 | GFitsHDU *arg1 = 0 ; |
12688 | void *argp1 = 0 ; |
12689 | int res1 = 0 ; |
12690 | PyObject * obj0 = 0 ; |
12691 | GHealpix *result = 0 ; |
12692 | |
12693 | if (!PyArg_ParseTuple(args,(char *)"O:new_GHealpix",&obj0)) SWIG_failgoto fail; |
12694 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GFitsHDU, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3], 0 | 0, 0); |
12695 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GHealpix" "', argument " "1"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GHealpix" "', argument " "1"" of type '" "GFitsHDU const &""'"); goto fail; } while (0); |
12697 | } |
12698 | if (!argp1) { |
12699 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GHealpix" "', argument " "1"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GHealpix" "', argument " "1"" of type '" "GFitsHDU const &" "'"); goto fail; } while(0); |
12700 | } |
12701 | arg1 = reinterpret_cast< GFitsHDU * >(argp1); |
12702 | { |
12703 | try { |
12704 | result = (GHealpix *)new GHealpix((GFitsHDU const &)*arg1); |
12705 | } |
12706 | catch (const GException::out_of_range& e) { |
12707 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12708 | } |
12709 | catch (const GExceptionHandler& e) { |
12710 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12711 | } |
12712 | catch (const std::exception& e) { |
12713 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12714 | } |
12715 | } |
12716 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GHealpix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
12717 | return resultobj; |
12718 | fail: |
12719 | return NULL__null; |
12720 | } |
12721 | |
12722 | |
12723 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GHealpix__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12724 | PyObject *resultobj = 0; |
12725 | GHealpix *arg1 = 0 ; |
12726 | void *argp1 = 0 ; |
12727 | int res1 = 0 ; |
12728 | PyObject * obj0 = 0 ; |
12729 | GHealpix *result = 0 ; |
12730 | |
12731 | if (!PyArg_ParseTuple(args,(char *)"O:new_GHealpix",&obj0)) SWIG_failgoto fail; |
12732 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GHealpix, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
12733 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GHealpix" "', argument " "1"" of type '" "GHealpix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GHealpix" "', argument " "1"" of type '" "GHealpix const &""'"); goto fail; } while (0); |
12735 | } |
12736 | if (!argp1) { |
12737 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GHealpix" "', argument " "1"" of type '" "GHealpix const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GHealpix" "', argument " "1"" of type '" "GHealpix const &" "'"); goto fail; } while(0); |
12738 | } |
12739 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
12740 | { |
12741 | try { |
12742 | result = (GHealpix *)new GHealpix((GHealpix const &)*arg1); |
12743 | } |
12744 | catch (const GException::out_of_range& e) { |
12745 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12746 | } |
12747 | catch (const GExceptionHandler& e) { |
12748 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12749 | } |
12750 | catch (const std::exception& e) { |
12751 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12752 | } |
12753 | } |
12754 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GHealpix, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], (( 0x1 << 1) | 0x1) | 0); |
12755 | return resultobj; |
12756 | fail: |
12757 | return NULL__null; |
12758 | } |
12759 | |
12760 | |
12761 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GHealpix(PyObject *self, PyObject *args) { |
12762 | int argc; |
12763 | PyObject *argv[4]; |
12764 | int ii; |
12765 | |
12766 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
12767 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
12768 | for (ii = 0; (ii < 3) && (ii < argc); ii++) { |
12769 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
12770 | } |
12771 | if (argc == 0) { |
12772 | return _wrap_new_GHealpix__SWIG_0(self, args); |
12773 | } |
12774 | if (argc == 1) { |
12775 | int _v; |
12776 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GFitsHDU, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0); |
12777 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12778 | if (_v) { |
12779 | return _wrap_new_GHealpix__SWIG_4(self, args); |
12780 | } |
12781 | } |
12782 | if (argc == 1) { |
12783 | int _v; |
12784 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GHealpix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0); |
12785 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12786 | if (_v) { |
12787 | return _wrap_new_GHealpix__SWIG_5(self, args); |
12788 | } |
12789 | } |
12790 | if (argc == 1) { |
12791 | int _v; |
12792 | { |
12793 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
12794 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12795 | } |
12796 | if (_v) { |
12797 | return _wrap_new_GHealpix__SWIG_3(self, args); |
12798 | } |
12799 | } |
12800 | if (argc == 2) { |
12801 | int _v; |
12802 | { |
12803 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
12804 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12805 | } |
12806 | if (_v) { |
12807 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
12808 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12809 | if (_v) { |
12810 | return _wrap_new_GHealpix__SWIG_2(self, args); |
12811 | } |
12812 | } |
12813 | } |
12814 | if (argc == 3) { |
12815 | int _v; |
12816 | { |
12817 | int res = SWIG_AsVal_int(argv[0], NULL__null); |
12818 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12819 | } |
12820 | if (_v) { |
12821 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
12822 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12823 | if (_v) { |
12824 | int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0)); |
12825 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
12826 | if (_v) { |
12827 | return _wrap_new_GHealpix__SWIG_1(self, args); |
12828 | } |
12829 | } |
12830 | } |
12831 | } |
12832 | |
12833 | fail: |
12834 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GHealpix'.\n" |
12835 | " Possible C/C++ prototypes are:\n" |
12836 | " GHealpix::GHealpix()\n" |
12837 | " GHealpix::GHealpix(int const &,std::string const &,std::string const &)\n" |
12838 | " GHealpix::GHealpix(int const &,std::string const &)\n" |
12839 | " GHealpix::GHealpix(int const &)\n" |
12840 | " GHealpix::GHealpix(GFitsHDU const &)\n" |
12841 | " GHealpix::GHealpix(GHealpix const &)\n"); |
12842 | return 0; |
12843 | } |
12844 | |
12845 | |
12846 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GHealpix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12847 | PyObject *resultobj = 0; |
12848 | GHealpix *arg1 = (GHealpix *) 0 ; |
12849 | void *argp1 = 0 ; |
12850 | int res1 = 0 ; |
12851 | PyObject * obj0 = 0 ; |
12852 | |
12853 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GHealpix",&obj0)) SWIG_failgoto fail; |
12854 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0x1 | 0, 0); |
12855 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12856 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GHealpix" "', argument " "1"" of type '" "GHealpix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GHealpix" "', argument " "1"" of type '" "GHealpix *""'"); goto fail; } while(0); |
12857 | } |
12858 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
12859 | { |
12860 | try { |
12861 | delete arg1; |
12862 | } |
12863 | catch (const GException::out_of_range& e) { |
12864 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12865 | } |
12866 | catch (const GExceptionHandler& e) { |
12867 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12868 | } |
12869 | catch (const std::exception& e) { |
12870 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12871 | } |
12872 | } |
12873 | resultobj = SWIG_Py_Void(); |
12874 | return resultobj; |
12875 | fail: |
12876 | return NULL__null; |
12877 | } |
12878 | |
12879 | |
12880 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12881 | PyObject *resultobj = 0; |
12882 | GHealpix *arg1 = (GHealpix *) 0 ; |
12883 | void *argp1 = 0 ; |
12884 | int res1 = 0 ; |
12885 | PyObject * obj0 = 0 ; |
12886 | |
12887 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_clear",&obj0)) SWIG_failgoto fail; |
12888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
12889 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_clear" "', argument " "1"" of type '" "GHealpix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_clear" "', argument " "1"" of type '" "GHealpix *""'"); goto fail; } while(0); |
12891 | } |
12892 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
12893 | { |
12894 | try { |
12895 | (arg1)->clear(); |
12896 | } |
12897 | catch (const GException::out_of_range& e) { |
12898 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12899 | } |
12900 | catch (const GExceptionHandler& e) { |
12901 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12902 | } |
12903 | catch (const std::exception& e) { |
12904 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12905 | } |
12906 | } |
12907 | resultobj = SWIG_Py_Void(); |
12908 | return resultobj; |
12909 | fail: |
12910 | return NULL__null; |
12911 | } |
12912 | |
12913 | |
12914 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12915 | PyObject *resultobj = 0; |
12916 | GHealpix *arg1 = (GHealpix *) 0 ; |
12917 | void *argp1 = 0 ; |
12918 | int res1 = 0 ; |
12919 | PyObject * obj0 = 0 ; |
12920 | GHealpix *result = 0 ; |
12921 | |
12922 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_clone",&obj0)) SWIG_failgoto fail; |
12923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
12924 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_clone" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_clone" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
12926 | } |
12927 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
12928 | { |
12929 | try { |
12930 | result = (GHealpix *)((GHealpix const *)arg1)->clone(); |
12931 | } |
12932 | catch (const GException::out_of_range& e) { |
12933 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12934 | } |
12935 | catch (const GExceptionHandler& e) { |
12936 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12937 | } |
12938 | catch (const std::exception& e) { |
12939 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12940 | } |
12941 | } |
12942 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[4], 0 | 0); |
12943 | return resultobj; |
12944 | fail: |
12945 | return NULL__null; |
12946 | } |
12947 | |
12948 | |
12949 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12950 | PyObject *resultobj = 0; |
12951 | GHealpix *arg1 = (GHealpix *) 0 ; |
12952 | void *argp1 = 0 ; |
12953 | int res1 = 0 ; |
12954 | PyObject * obj0 = 0 ; |
12955 | int result; |
12956 | |
12957 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_size",&obj0)) SWIG_failgoto fail; |
12958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
12959 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_size" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_size" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
12961 | } |
12962 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
12963 | { |
12964 | try { |
12965 | result = (int)((GHealpix const *)arg1)->size(); |
12966 | } |
12967 | catch (const GException::out_of_range& e) { |
12968 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
12969 | } |
12970 | catch (const GExceptionHandler& e) { |
12971 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12972 | } |
12973 | catch (const std::exception& e) { |
12974 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
12975 | } |
12976 | } |
12977 | resultobj = SWIG_From_int(static_cast< int >(result)); |
12978 | return resultobj; |
12979 | fail: |
12980 | return NULL__null; |
12981 | } |
12982 | |
12983 | |
12984 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12985 | PyObject *resultobj = 0; |
12986 | GHealpix *arg1 = (GHealpix *) 0 ; |
12987 | void *argp1 = 0 ; |
12988 | int res1 = 0 ; |
12989 | PyObject * obj0 = 0 ; |
12990 | std::string result; |
12991 | |
12992 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_code",&obj0)) SWIG_failgoto fail; |
12993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
12994 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
12995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_code" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_code" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
12996 | } |
12997 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
12998 | { |
12999 | try { |
13000 | result = ((GHealpix const *)arg1)->code(); |
13001 | } |
13002 | catch (const GException::out_of_range& e) { |
13003 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13004 | } |
13005 | catch (const GExceptionHandler& e) { |
13006 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13007 | } |
13008 | catch (const std::exception& e) { |
13009 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13010 | } |
13011 | } |
13012 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
13013 | return resultobj; |
13014 | fail: |
13015 | return NULL__null; |
13016 | } |
13017 | |
13018 | |
13019 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13020 | PyObject *resultobj = 0; |
13021 | GHealpix *arg1 = (GHealpix *) 0 ; |
13022 | void *argp1 = 0 ; |
13023 | int res1 = 0 ; |
13024 | PyObject * obj0 = 0 ; |
13025 | std::string result; |
13026 | |
13027 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_name",&obj0)) SWIG_failgoto fail; |
13028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13029 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_name" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_name" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13031 | } |
13032 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13033 | { |
13034 | try { |
13035 | result = ((GHealpix const *)arg1)->name(); |
13036 | } |
13037 | catch (const GException::out_of_range& e) { |
13038 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13039 | } |
13040 | catch (const GExceptionHandler& e) { |
13041 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13042 | } |
13043 | catch (const std::exception& e) { |
13044 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13045 | } |
13046 | } |
13047 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
13048 | return resultobj; |
13049 | fail: |
13050 | return NULL__null; |
13051 | } |
13052 | |
13053 | |
13054 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13055 | PyObject *resultobj = 0; |
13056 | GHealpix *arg1 = (GHealpix *) 0 ; |
13057 | GFitsHDU *arg2 = 0 ; |
13058 | void *argp1 = 0 ; |
13059 | int res1 = 0 ; |
13060 | void *argp2 = 0 ; |
13061 | int res2 = 0 ; |
13062 | PyObject * obj0 = 0 ; |
13063 | PyObject * obj1 = 0 ; |
13064 | |
13065 | if (!PyArg_ParseTuple(args,(char *)"OO:GHealpix_read",&obj0,&obj1)) SWIG_failgoto fail; |
13066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13067 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_read" "', argument " "1"" of type '" "GHealpix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_read" "', argument " "1"" of type '" "GHealpix *""'"); goto fail; } while(0); |
13069 | } |
13070 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13071 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0 | 0, 0); |
13072 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13073 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GHealpix_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GHealpix_read" "', argument " "2"" of type '" "GFitsHDU const &""'"); goto fail; } while (0); |
13074 | } |
13075 | if (!argp2) { |
13076 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GHealpix_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GHealpix_read" "', argument " "2"" of type '" "GFitsHDU const &""'"); goto fail; } while(0); |
13077 | } |
13078 | arg2 = reinterpret_cast< GFitsHDU * >(argp2); |
13079 | { |
13080 | try { |
13081 | (arg1)->read((GFitsHDU const &)*arg2); |
13082 | } |
13083 | catch (const GException::out_of_range& e) { |
13084 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13085 | } |
13086 | catch (const GExceptionHandler& e) { |
13087 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13088 | } |
13089 | catch (const std::exception& e) { |
13090 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13091 | } |
13092 | } |
13093 | resultobj = SWIG_Py_Void(); |
13094 | return resultobj; |
13095 | fail: |
13096 | return NULL__null; |
13097 | } |
13098 | |
13099 | |
13100 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13101 | PyObject *resultobj = 0; |
13102 | GHealpix *arg1 = (GHealpix *) 0 ; |
13103 | GFitsHDU *arg2 = 0 ; |
13104 | void *argp1 = 0 ; |
13105 | int res1 = 0 ; |
13106 | void *argp2 = 0 ; |
13107 | int res2 = 0 ; |
13108 | PyObject * obj0 = 0 ; |
13109 | PyObject * obj1 = 0 ; |
13110 | |
13111 | if (!PyArg_ParseTuple(args,(char *)"OO:GHealpix_write",&obj0,&obj1)) SWIG_failgoto fail; |
13112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13113 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_write" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_write" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13115 | } |
13116 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13117 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0, 0); |
13118 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13119 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GHealpix_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GHealpix_write" "', argument " "2"" of type '" "GFitsHDU &""'"); goto fail; } while(0); |
13120 | } |
13121 | if (!argp2) { |
13122 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GHealpix_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GHealpix_write" "', argument " "2"" of type '" "GFitsHDU &""'"); goto fail; } while(0); |
13123 | } |
13124 | arg2 = reinterpret_cast< GFitsHDU * >(argp2); |
13125 | { |
13126 | try { |
13127 | ((GHealpix const *)arg1)->write(*arg2); |
13128 | } |
13129 | catch (const GException::out_of_range& e) { |
13130 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13131 | } |
13132 | catch (const GExceptionHandler& e) { |
13133 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13134 | } |
13135 | catch (const std::exception& e) { |
13136 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13137 | } |
13138 | } |
13139 | resultobj = SWIG_Py_Void(); |
13140 | return resultobj; |
13141 | fail: |
13142 | return NULL__null; |
13143 | } |
13144 | |
13145 | |
13146 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_solidangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13147 | PyObject *resultobj = 0; |
13148 | GHealpix *arg1 = (GHealpix *) 0 ; |
13149 | GSkyPixel *arg2 = 0 ; |
13150 | void *argp1 = 0 ; |
13151 | int res1 = 0 ; |
13152 | void *argp2 = 0 ; |
13153 | int res2 = 0 ; |
13154 | PyObject * obj0 = 0 ; |
13155 | PyObject * obj1 = 0 ; |
13156 | double result; |
13157 | |
13158 | if (!PyArg_ParseTuple(args,(char *)"OO:GHealpix_solidangle",&obj0,&obj1)) SWIG_failgoto fail; |
13159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13160 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_solidangle" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_solidangle" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13162 | } |
13163 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13164 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
13165 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13166 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GHealpix_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GHealpix_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
13167 | } |
13168 | if (!argp2) { |
13169 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GHealpix_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GHealpix_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
13170 | } |
13171 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
13172 | { |
13173 | try { |
13174 | result = (double)((GHealpix const *)arg1)->solidangle((GSkyPixel const &)*arg2); |
13175 | } |
13176 | catch (const GException::out_of_range& e) { |
13177 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13178 | } |
13179 | catch (const GExceptionHandler& e) { |
13180 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13181 | } |
13182 | catch (const std::exception& e) { |
13183 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13184 | } |
13185 | } |
13186 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
13187 | return resultobj; |
13188 | fail: |
13189 | return NULL__null; |
13190 | } |
13191 | |
13192 | |
13193 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_pix2dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13194 | PyObject *resultobj = 0; |
13195 | GHealpix *arg1 = (GHealpix *) 0 ; |
13196 | GSkyPixel *arg2 = 0 ; |
13197 | void *argp1 = 0 ; |
13198 | int res1 = 0 ; |
13199 | void *argp2 = 0 ; |
13200 | int res2 = 0 ; |
13201 | PyObject * obj0 = 0 ; |
13202 | PyObject * obj1 = 0 ; |
13203 | GSkyDir result; |
13204 | |
13205 | if (!PyArg_ParseTuple(args,(char *)"OO:GHealpix_pix2dir",&obj0,&obj1)) SWIG_failgoto fail; |
13206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13207 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_pix2dir" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_pix2dir" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13209 | } |
13210 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13211 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
13212 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13213 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GHealpix_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GHealpix_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
13214 | } |
13215 | if (!argp2) { |
13216 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GHealpix_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GHealpix_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
13217 | } |
13218 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
13219 | { |
13220 | try { |
13221 | result = ((GHealpix const *)arg1)->pix2dir((GSkyPixel const &)*arg2); |
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((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast< const GSkyDir& >(result))), swig_types[6], 0x1 | 0); |
13234 | return resultobj; |
13235 | fail: |
13236 | return NULL__null; |
13237 | } |
13238 | |
13239 | |
13240 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_dir2pix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13241 | PyObject *resultobj = 0; |
13242 | GHealpix *arg1 = (GHealpix *) 0 ; |
13243 | GSkyDir *arg2 = 0 ; |
13244 | void *argp1 = 0 ; |
13245 | int res1 = 0 ; |
13246 | void *argp2 = 0 ; |
13247 | int res2 = 0 ; |
13248 | PyObject * obj0 = 0 ; |
13249 | PyObject * obj1 = 0 ; |
13250 | GSkyPixel result; |
13251 | |
13252 | if (!PyArg_ParseTuple(args,(char *)"OO:GHealpix_dir2pix",&obj0,&obj1)) SWIG_failgoto fail; |
13253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13254 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_dir2pix" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_dir2pix" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13256 | } |
13257 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13258 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
13259 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13260 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GHealpix_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GHealpix_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
13261 | } |
13262 | if (!argp2) { |
13263 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GHealpix_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GHealpix_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while(0); |
13264 | } |
13265 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
13266 | { |
13267 | try { |
13268 | result = ((GHealpix const *)arg1)->dir2pix((GSkyDir const &)*arg2); |
13269 | } |
13270 | catch (const GException::out_of_range& e) { |
13271 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13272 | } |
13273 | catch (const GExceptionHandler& e) { |
13274 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13275 | } |
13276 | catch (const std::exception& e) { |
13277 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13278 | } |
13279 | } |
13280 | resultobj = SWIG_NewPointerObj((new GSkyPixel(static_cast< const GSkyPixel& >(result))), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyPixel(static_cast< const GSkyPixel& >(result))), swig_types[7], 0x1 | 0); |
13281 | return resultobj; |
13282 | fail: |
13283 | return NULL__null; |
13284 | } |
13285 | |
13286 | |
13287 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_npix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13288 | PyObject *resultobj = 0; |
13289 | GHealpix *arg1 = (GHealpix *) 0 ; |
13290 | void *argp1 = 0 ; |
13291 | int res1 = 0 ; |
13292 | PyObject * obj0 = 0 ; |
13293 | int *result = 0 ; |
13294 | |
13295 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_npix",&obj0)) SWIG_failgoto fail; |
13296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13297 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_npix" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_npix" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13299 | } |
13300 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13301 | { |
13302 | try { |
13303 | result = (int *) &((GHealpix const *)arg1)->npix(); |
13304 | } |
13305 | catch (const GException::out_of_range& e) { |
13306 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13307 | } |
13308 | catch (const GExceptionHandler& e) { |
13309 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13310 | } |
13311 | catch (const std::exception& e) { |
13312 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13313 | } |
13314 | } |
13315 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
13316 | return resultobj; |
13317 | fail: |
13318 | return NULL__null; |
13319 | } |
13320 | |
13321 | |
13322 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_nside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13323 | PyObject *resultobj = 0; |
13324 | GHealpix *arg1 = (GHealpix *) 0 ; |
13325 | void *argp1 = 0 ; |
13326 | int res1 = 0 ; |
13327 | PyObject * obj0 = 0 ; |
13328 | int *result = 0 ; |
13329 | |
13330 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_nside",&obj0)) SWIG_failgoto fail; |
13331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13332 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_nside" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_nside" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13334 | } |
13335 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13336 | { |
13337 | try { |
13338 | result = (int *) &((GHealpix const *)arg1)->nside(); |
13339 | } |
13340 | catch (const GException::out_of_range& e) { |
13341 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13342 | } |
13343 | catch (const GExceptionHandler& e) { |
13344 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13345 | } |
13346 | catch (const std::exception& e) { |
13347 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13348 | } |
13349 | } |
13350 | resultobj = SWIG_From_int(static_cast< int >(*result)); |
13351 | return resultobj; |
13352 | fail: |
13353 | return NULL__null; |
13354 | } |
13355 | |
13356 | |
13357 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_ordering__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13358 | PyObject *resultobj = 0; |
13359 | GHealpix *arg1 = (GHealpix *) 0 ; |
13360 | void *argp1 = 0 ; |
13361 | int res1 = 0 ; |
13362 | PyObject * obj0 = 0 ; |
13363 | std::string result; |
13364 | |
13365 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_ordering",&obj0)) SWIG_failgoto fail; |
13366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13367 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_ordering" "', argument " "1"" of type '" "GHealpix const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_ordering" "', argument " "1"" of type '" "GHealpix const *""'"); goto fail; } while(0 ); |
13369 | } |
13370 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13371 | { |
13372 | try { |
13373 | result = ((GHealpix const *)arg1)->ordering(); |
13374 | } |
13375 | catch (const GException::out_of_range& e) { |
13376 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13377 | } |
13378 | catch (const GExceptionHandler& e) { |
13379 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13380 | } |
13381 | catch (const std::exception& e) { |
13382 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13383 | } |
13384 | } |
13385 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
13386 | return resultobj; |
13387 | fail: |
13388 | return NULL__null; |
13389 | } |
13390 | |
13391 | |
13392 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_ordering__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13393 | PyObject *resultobj = 0; |
13394 | GHealpix *arg1 = (GHealpix *) 0 ; |
13395 | std::string *arg2 = 0 ; |
13396 | void *argp1 = 0 ; |
13397 | int res1 = 0 ; |
13398 | int res2 = SWIG_OLDOBJ((0)) ; |
13399 | PyObject * obj0 = 0 ; |
13400 | PyObject * obj1 = 0 ; |
13401 | |
13402 | if (!PyArg_ParseTuple(args,(char *)"OO:GHealpix_ordering",&obj0,&obj1)) SWIG_failgoto fail; |
13403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13404 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_ordering" "', argument " "1"" of type '" "GHealpix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_ordering" "', argument " "1"" of type '" "GHealpix *""'"); goto fail; } while(0); |
13406 | } |
13407 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13408 | { |
13409 | std::string *ptr = (std::string *)0; |
13410 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
13411 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GHealpix_ordering" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GHealpix_ordering" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
13413 | } |
13414 | if (!ptr) { |
13415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GHealpix_ordering" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GHealpix_ordering" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
13416 | } |
13417 | arg2 = ptr; |
13418 | } |
13419 | { |
13420 | try { |
13421 | (arg1)->ordering((std::string const &)*arg2); |
13422 | } |
13423 | catch (const GException::out_of_range& e) { |
13424 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13425 | } |
13426 | catch (const GExceptionHandler& e) { |
13427 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13428 | } |
13429 | catch (const std::exception& e) { |
13430 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13431 | } |
13432 | } |
13433 | resultobj = SWIG_Py_Void(); |
13434 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13435 | return resultobj; |
13436 | fail: |
13437 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13438 | return NULL__null; |
13439 | } |
13440 | |
13441 | |
13442 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_ordering(PyObject *self, PyObject *args) { |
13443 | int argc; |
13444 | PyObject *argv[3]; |
13445 | int ii; |
13446 | |
13447 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
13448 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
13449 | for (ii = 0; (ii < 2) && (ii < argc); ii++) { |
13450 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
13451 | } |
13452 | if (argc == 1) { |
13453 | int _v; |
13454 | void *vptr = 0; |
13455 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GHealpix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
13456 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13457 | if (_v) { |
13458 | return _wrap_GHealpix_ordering__SWIG_0(self, args); |
13459 | } |
13460 | } |
13461 | if (argc == 2) { |
13462 | int _v; |
13463 | void *vptr = 0; |
13464 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GHealpix, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4 ], 0, 0); |
13465 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13466 | if (_v) { |
13467 | int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0)); |
13468 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13469 | if (_v) { |
13470 | return _wrap_GHealpix_ordering__SWIG_1(self, args); |
13471 | } |
13472 | } |
13473 | } |
13474 | |
13475 | fail: |
13476 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GHealpix_ordering'.\n" |
13477 | " Possible C/C++ prototypes are:\n" |
13478 | " GHealpix::ordering() const\n" |
13479 | " GHealpix::ordering(std::string const &)\n"); |
13480 | return 0; |
13481 | } |
13482 | |
13483 | |
13484 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GHealpix_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13485 | PyObject *resultobj = 0; |
13486 | GHealpix *arg1 = (GHealpix *) 0 ; |
13487 | void *argp1 = 0 ; |
13488 | int res1 = 0 ; |
13489 | PyObject * obj0 = 0 ; |
13490 | GHealpix result; |
13491 | |
13492 | if (!PyArg_ParseTuple(args,(char *)"O:GHealpix_copy",&obj0)) SWIG_failgoto fail; |
13493 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GHealpix, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4], 0 | 0, 0); |
13494 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GHealpix_copy" "', argument " "1"" of type '" "GHealpix *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GHealpix_copy" "', argument " "1"" of type '" "GHealpix *""'"); goto fail; } while(0); |
13496 | } |
13497 | arg1 = reinterpret_cast< GHealpix * >(argp1); |
13498 | { |
13499 | try { |
13500 | result = GHealpix_copy(arg1); |
13501 | } |
13502 | catch (const GException::out_of_range& e) { |
13503 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13504 | } |
13505 | catch (const GExceptionHandler& e) { |
13506 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13507 | } |
13508 | catch (const std::exception& e) { |
13509 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13510 | } |
13511 | } |
13512 | resultobj = SWIG_NewPointerObj((new GHealpix(static_cast< const GHealpix& >(result))), SWIGTYPE_p_GHealpix, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GHealpix(static_cast< const GHealpix& >(result))), swig_types[4], 0x1 | 0); |
13513 | return resultobj; |
13514 | fail: |
13515 | return NULL__null; |
13516 | } |
13517 | |
13518 | |
13519 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GHealpix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13520 | PyObject *obj; |
13521 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
13522 | SWIG_TypeNewClientData(SWIGTYPE_p_GHealpixswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
13523 | return SWIG_Py_Void(); |
13524 | } |
13525 | |
13526 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsRegistry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13527 | PyObject *resultobj = 0; |
13528 | GWcsRegistry *result = 0 ; |
13529 | |
13530 | if (!PyArg_ParseTuple(args,(char *)":new_GWcsRegistry")) SWIG_failgoto fail; |
13531 | { |
13532 | try { |
13533 | result = (GWcsRegistry *)new GWcsRegistry(); |
13534 | } |
13535 | catch (const GException::out_of_range& e) { |
13536 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13537 | } |
13538 | catch (const GExceptionHandler& e) { |
13539 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13540 | } |
13541 | catch (const std::exception& e) { |
13542 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13543 | } |
13544 | } |
13545 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[19], ( (0x1 << 1) | 0x1) | 0); |
13546 | return resultobj; |
13547 | fail: |
13548 | return NULL__null; |
13549 | } |
13550 | |
13551 | |
13552 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsRegistry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13553 | PyObject *resultobj = 0; |
13554 | GWcs *arg1 = (GWcs *) 0 ; |
13555 | void *argp1 = 0 ; |
13556 | int res1 = 0 ; |
13557 | PyObject * obj0 = 0 ; |
13558 | GWcsRegistry *result = 0 ; |
13559 | |
13560 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsRegistry",&obj0)) SWIG_failgoto fail; |
13561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
13562 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsRegistry" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsRegistry" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
13564 | } |
13565 | arg1 = reinterpret_cast< GWcs * >(argp1); |
13566 | { |
13567 | try { |
13568 | result = (GWcsRegistry *)new GWcsRegistry((GWcs const *)arg1); |
13569 | } |
13570 | catch (const GException::out_of_range& e) { |
13571 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13572 | } |
13573 | catch (const GExceptionHandler& e) { |
13574 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13575 | } |
13576 | catch (const std::exception& e) { |
13577 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13578 | } |
13579 | } |
13580 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[19], ( (0x1 << 1) | 0x1) | 0); |
13581 | return resultobj; |
13582 | fail: |
13583 | return NULL__null; |
13584 | } |
13585 | |
13586 | |
13587 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsRegistry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13588 | PyObject *resultobj = 0; |
13589 | GWcsRegistry *arg1 = 0 ; |
13590 | void *argp1 = 0 ; |
13591 | int res1 = 0 ; |
13592 | PyObject * obj0 = 0 ; |
13593 | GWcsRegistry *result = 0 ; |
13594 | |
13595 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsRegistry",&obj0)) SWIG_failgoto fail; |
13596 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GWcsRegistry, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13597 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsRegistry" "', argument " "1"" of type '" "GWcsRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsRegistry" "', argument " "1"" of type '" "GWcsRegistry const &""'"); goto fail; } while(0); |
13599 | } |
13600 | if (!argp1) { |
13601 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsRegistry" "', argument " "1"" of type '" "GWcsRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsRegistry" "', argument " "1"" of type '" "GWcsRegistry const &""'"); goto fail; } while(0); |
13602 | } |
13603 | arg1 = reinterpret_cast< GWcsRegistry * >(argp1); |
13604 | { |
13605 | try { |
13606 | result = (GWcsRegistry *)new GWcsRegistry((GWcsRegistry const &)*arg1); |
13607 | } |
13608 | catch (const GException::out_of_range& e) { |
13609 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13610 | } |
13611 | catch (const GExceptionHandler& e) { |
13612 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13613 | } |
13614 | catch (const std::exception& e) { |
13615 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13616 | } |
13617 | } |
13618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[19], ( (0x1 << 1) | 0x1) | 0); |
13619 | return resultobj; |
13620 | fail: |
13621 | return NULL__null; |
13622 | } |
13623 | |
13624 | |
13625 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsRegistry(PyObject *self, PyObject *args) { |
13626 | int argc; |
13627 | PyObject *argv[2]; |
13628 | int ii; |
13629 | |
13630 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
13631 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
13632 | for (ii = 0; (ii < 1) && (ii < argc); ii++) { |
13633 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
13634 | } |
13635 | if (argc == 0) { |
13636 | return _wrap_new_GWcsRegistry__SWIG_0(self, args); |
13637 | } |
13638 | if (argc == 1) { |
13639 | int _v; |
13640 | void *vptr = 0; |
13641 | int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GWcs, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[14 ], 0, 0); |
13642 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13643 | if (_v) { |
13644 | return _wrap_new_GWcsRegistry__SWIG_1(self, args); |
13645 | } |
13646 | } |
13647 | if (argc == 1) { |
13648 | int _v; |
13649 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GWcsRegistry, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[19], 0, 0 ); |
13650 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
13651 | if (_v) { |
13652 | return _wrap_new_GWcsRegistry__SWIG_2(self, args); |
13653 | } |
13654 | } |
13655 | |
13656 | fail: |
13657 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GWcsRegistry'.\n" |
13658 | " Possible C/C++ prototypes are:\n" |
13659 | " GWcsRegistry::GWcsRegistry()\n" |
13660 | " GWcsRegistry::GWcsRegistry(GWcs const *)\n" |
13661 | " GWcsRegistry::GWcsRegistry(GWcsRegistry const &)\n"); |
13662 | return 0; |
13663 | } |
13664 | |
13665 | |
13666 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcsRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13667 | PyObject *resultobj = 0; |
13668 | GWcsRegistry *arg1 = (GWcsRegistry *) 0 ; |
13669 | void *argp1 = 0 ; |
13670 | int res1 = 0 ; |
13671 | PyObject * obj0 = 0 ; |
13672 | |
13673 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcsRegistry",&obj0)) SWIG_failgoto fail; |
13674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsRegistry, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0x1 | 0, 0); |
13675 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcsRegistry" "', argument " "1"" of type '" "GWcsRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcsRegistry" "', argument " "1"" of type '" "GWcsRegistry *""'"); goto fail; } while(0); |
13677 | } |
13678 | arg1 = reinterpret_cast< GWcsRegistry * >(argp1); |
13679 | { |
13680 | try { |
13681 | delete arg1; |
13682 | } |
13683 | catch (const GException::out_of_range& e) { |
13684 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13685 | } |
13686 | catch (const GExceptionHandler& e) { |
13687 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13688 | } |
13689 | catch (const std::exception& e) { |
13690 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13691 | } |
13692 | } |
13693 | resultobj = SWIG_Py_Void(); |
13694 | return resultobj; |
13695 | fail: |
13696 | return NULL__null; |
13697 | } |
13698 | |
13699 | |
13700 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsRegistry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13701 | PyObject *resultobj = 0; |
13702 | GWcsRegistry *arg1 = (GWcsRegistry *) 0 ; |
13703 | void *argp1 = 0 ; |
13704 | int res1 = 0 ; |
13705 | PyObject * obj0 = 0 ; |
13706 | int result; |
13707 | |
13708 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsRegistry_size",&obj0)) SWIG_failgoto fail; |
13709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13710 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsRegistry_size" "', argument " "1"" of type '" "GWcsRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsRegistry_size" "', argument " "1"" of type '" "GWcsRegistry const *""'"); goto fail; } while (0); |
13712 | } |
13713 | arg1 = reinterpret_cast< GWcsRegistry * >(argp1); |
13714 | { |
13715 | try { |
13716 | result = (int)((GWcsRegistry const *)arg1)->size(); |
13717 | } |
13718 | catch (const GException::out_of_range& e) { |
13719 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13720 | } |
13721 | catch (const GExceptionHandler& e) { |
13722 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13723 | } |
13724 | catch (const std::exception& e) { |
13725 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13726 | } |
13727 | } |
13728 | resultobj = SWIG_From_int(static_cast< int >(result)); |
13729 | return resultobj; |
13730 | fail: |
13731 | return NULL__null; |
13732 | } |
13733 | |
13734 | |
13735 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsRegistry_alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13736 | PyObject *resultobj = 0; |
13737 | GWcsRegistry *arg1 = (GWcsRegistry *) 0 ; |
13738 | std::string *arg2 = 0 ; |
13739 | void *argp1 = 0 ; |
13740 | int res1 = 0 ; |
13741 | int res2 = SWIG_OLDOBJ((0)) ; |
13742 | PyObject * obj0 = 0 ; |
13743 | PyObject * obj1 = 0 ; |
13744 | GWcs *result = 0 ; |
13745 | |
13746 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcsRegistry_alloc",&obj0,&obj1)) SWIG_failgoto fail; |
13747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13748 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsRegistry_alloc" "', argument " "1"" of type '" "GWcsRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsRegistry_alloc" "', argument " "1"" of type '" "GWcsRegistry const *""'"); goto fail; } while (0); |
13750 | } |
13751 | arg1 = reinterpret_cast< GWcsRegistry * >(argp1); |
13752 | { |
13753 | std::string *ptr = (std::string *)0; |
13754 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
13755 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
13756 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GWcsRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GWcsRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while (0); |
13757 | } |
13758 | if (!ptr) { |
13759 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GWcsRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GWcsRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'"); goto fail; } while(0); |
13760 | } |
13761 | arg2 = ptr; |
13762 | } |
13763 | { |
13764 | try { |
13765 | result = (GWcs *)((GWcsRegistry const *)arg1)->alloc((std::string const &)*arg2); |
13766 | } |
13767 | catch (const GException::out_of_range& e) { |
13768 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13769 | } |
13770 | catch (const GExceptionHandler& e) { |
13771 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13772 | } |
13773 | catch (const std::exception& e) { |
13774 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13775 | } |
13776 | } |
13777 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[14], 0 | 0); |
13778 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13779 | return resultobj; |
13780 | fail: |
13781 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
13782 | return NULL__null; |
13783 | } |
13784 | |
13785 | |
13786 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsRegistry_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13787 | PyObject *resultobj = 0; |
13788 | GWcsRegistry *arg1 = (GWcsRegistry *) 0 ; |
13789 | int *arg2 = 0 ; |
13790 | void *argp1 = 0 ; |
13791 | int res1 = 0 ; |
13792 | int temp2 ; |
13793 | int val2 ; |
13794 | int ecode2 = 0 ; |
13795 | PyObject * obj0 = 0 ; |
13796 | PyObject * obj1 = 0 ; |
13797 | std::string result; |
13798 | |
13799 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcsRegistry_code",&obj0,&obj1)) SWIG_failgoto fail; |
13800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13801 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsRegistry_code" "', argument " "1"" of type '" "GWcsRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsRegistry_code" "', argument " "1"" of type '" "GWcsRegistry const *""'"); goto fail; } while (0); |
13803 | } |
13804 | arg1 = reinterpret_cast< GWcsRegistry * >(argp1); |
13805 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
13806 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
13807 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GWcsRegistry_code" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GWcsRegistry_code" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
13808 | } |
13809 | temp2 = static_cast< int >(val2); |
13810 | arg2 = &temp2; |
13811 | { |
13812 | try { |
13813 | result = ((GWcsRegistry const *)arg1)->code((int const &)*arg2); |
13814 | } |
13815 | catch (const GException::out_of_range& e) { |
13816 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13817 | } |
13818 | catch (const GExceptionHandler& e) { |
13819 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13820 | } |
13821 | catch (const std::exception& e) { |
13822 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13823 | } |
13824 | } |
13825 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
13826 | return resultobj; |
13827 | fail: |
13828 | return NULL__null; |
13829 | } |
13830 | |
13831 | |
13832 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsRegistry_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13833 | PyObject *resultobj = 0; |
13834 | GWcsRegistry *arg1 = (GWcsRegistry *) 0 ; |
13835 | int *arg2 = 0 ; |
13836 | void *argp1 = 0 ; |
13837 | int res1 = 0 ; |
13838 | int temp2 ; |
13839 | int val2 ; |
13840 | int ecode2 = 0 ; |
13841 | PyObject * obj0 = 0 ; |
13842 | PyObject * obj1 = 0 ; |
13843 | std::string result; |
13844 | |
13845 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcsRegistry_name",&obj0,&obj1)) SWIG_failgoto fail; |
13846 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13847 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsRegistry_name" "', argument " "1"" of type '" "GWcsRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsRegistry_name" "', argument " "1"" of type '" "GWcsRegistry const *""'"); goto fail; } while (0); |
13849 | } |
13850 | arg1 = reinterpret_cast< GWcsRegistry * >(argp1); |
13851 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
13852 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
13853 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GWcsRegistry_name" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GWcsRegistry_name" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
13854 | } |
13855 | temp2 = static_cast< int >(val2); |
13856 | arg2 = &temp2; |
13857 | { |
13858 | try { |
13859 | result = ((GWcsRegistry const *)arg1)->name((int const &)*arg2); |
13860 | } |
13861 | catch (const GException::out_of_range& e) { |
13862 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13863 | } |
13864 | catch (const GExceptionHandler& e) { |
13865 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13866 | } |
13867 | catch (const std::exception& e) { |
13868 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13869 | } |
13870 | } |
13871 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
13872 | return resultobj; |
13873 | fail: |
13874 | return NULL__null; |
13875 | } |
13876 | |
13877 | |
13878 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsRegistry_list(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13879 | PyObject *resultobj = 0; |
13880 | GWcsRegistry *arg1 = (GWcsRegistry *) 0 ; |
13881 | void *argp1 = 0 ; |
13882 | int res1 = 0 ; |
13883 | PyObject * obj0 = 0 ; |
13884 | std::string result; |
13885 | |
13886 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsRegistry_list",&obj0)) SWIG_failgoto fail; |
13887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[19] , 0 | 0, 0); |
13888 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsRegistry_list" "', argument " "1"" of type '" "GWcsRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsRegistry_list" "', argument " "1"" of type '" "GWcsRegistry const *""'"); goto fail; } while (0); |
13890 | } |
13891 | arg1 = reinterpret_cast< GWcsRegistry * >(argp1); |
13892 | { |
13893 | try { |
13894 | result = ((GWcsRegistry const *)arg1)->list(); |
13895 | } |
13896 | catch (const GException::out_of_range& e) { |
13897 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13898 | } |
13899 | catch (const GExceptionHandler& e) { |
13900 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13901 | } |
13902 | catch (const std::exception& e) { |
13903 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13904 | } |
13905 | } |
13906 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
13907 | return resultobj; |
13908 | fail: |
13909 | return NULL__null; |
13910 | } |
13911 | |
13912 | |
13913 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcsRegistry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13914 | PyObject *obj; |
13915 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
13916 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsRegistryswig_types[19], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
13917 | return SWIG_Py_Void(); |
13918 | } |
13919 | |
13920 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13921 | PyObject *resultobj = 0; |
13922 | GWcs *arg1 = (GWcs *) 0 ; |
13923 | void *argp1 = 0 ; |
13924 | int res1 = 0 ; |
13925 | PyObject * obj0 = 0 ; |
13926 | |
13927 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcs",&obj0)) SWIG_failgoto fail; |
13928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0x1 | 0, 0); |
13929 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcs" "', argument " "1"" of type '" "GWcs *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcs" "', argument " "1"" of type '" "GWcs *""'"); goto fail; } while(0); |
13931 | } |
13932 | arg1 = reinterpret_cast< GWcs * >(argp1); |
13933 | { |
13934 | try { |
13935 | delete arg1; |
13936 | } |
13937 | catch (const GException::out_of_range& e) { |
13938 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13939 | } |
13940 | catch (const GExceptionHandler& e) { |
13941 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13942 | } |
13943 | catch (const std::exception& e) { |
13944 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13945 | } |
13946 | } |
13947 | resultobj = SWIG_Py_Void(); |
13948 | return resultobj; |
13949 | fail: |
13950 | return NULL__null; |
13951 | } |
13952 | |
13953 | |
13954 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13955 | PyObject *resultobj = 0; |
13956 | GWcs *arg1 = (GWcs *) 0 ; |
13957 | void *argp1 = 0 ; |
13958 | int res1 = 0 ; |
13959 | PyObject * obj0 = 0 ; |
13960 | |
13961 | if (!PyArg_ParseTuple(args,(char *)"O:GWcs_clear",&obj0)) SWIG_failgoto fail; |
13962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
13963 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_clear" "', argument " "1"" of type '" "GWcs *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_clear" "', argument " "1"" of type '" "GWcs *""'"); goto fail; } while(0); |
13965 | } |
13966 | arg1 = reinterpret_cast< GWcs * >(argp1); |
13967 | { |
13968 | try { |
13969 | (arg1)->clear(); |
13970 | } |
13971 | catch (const GException::out_of_range& e) { |
13972 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
13973 | } |
13974 | catch (const GExceptionHandler& e) { |
13975 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13976 | } |
13977 | catch (const std::exception& e) { |
13978 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
13979 | } |
13980 | } |
13981 | resultobj = SWIG_Py_Void(); |
13982 | return resultobj; |
13983 | fail: |
13984 | return NULL__null; |
13985 | } |
13986 | |
13987 | |
13988 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13989 | PyObject *resultobj = 0; |
13990 | GWcs *arg1 = (GWcs *) 0 ; |
13991 | void *argp1 = 0 ; |
13992 | int res1 = 0 ; |
13993 | PyObject * obj0 = 0 ; |
13994 | GWcs *result = 0 ; |
13995 | |
13996 | if (!PyArg_ParseTuple(args,(char *)"O:GWcs_clone",&obj0)) SWIG_failgoto fail; |
13997 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
13998 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
13999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_clone" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_clone" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14000 | } |
14001 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14002 | { |
14003 | try { |
14004 | result = (GWcs *)((GWcs const *)arg1)->clone(); |
14005 | } |
14006 | catch (const GException::out_of_range& e) { |
14007 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14008 | } |
14009 | catch (const GExceptionHandler& e) { |
14010 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14011 | } |
14012 | catch (const std::exception& e) { |
14013 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14014 | } |
14015 | } |
14016 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[14], 0 | 0); |
14017 | return resultobj; |
14018 | fail: |
14019 | return NULL__null; |
14020 | } |
14021 | |
14022 | |
14023 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14024 | PyObject *resultobj = 0; |
14025 | GWcs *arg1 = (GWcs *) 0 ; |
14026 | void *argp1 = 0 ; |
14027 | int res1 = 0 ; |
14028 | PyObject * obj0 = 0 ; |
14029 | std::string result; |
14030 | |
14031 | if (!PyArg_ParseTuple(args,(char *)"O:GWcs_code",&obj0)) SWIG_failgoto fail; |
14032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14033 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_code" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_code" "', argument " "1" " of type '" "GWcs const *""'"); goto fail; } while(0); |
14035 | } |
14036 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14037 | { |
14038 | try { |
14039 | result = ((GWcs const *)arg1)->code(); |
14040 | } |
14041 | catch (const GException::out_of_range& e) { |
14042 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14043 | } |
14044 | catch (const GExceptionHandler& e) { |
14045 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14046 | } |
14047 | catch (const std::exception& e) { |
14048 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14049 | } |
14050 | } |
14051 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
14052 | return resultobj; |
14053 | fail: |
14054 | return NULL__null; |
14055 | } |
14056 | |
14057 | |
14058 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14059 | PyObject *resultobj = 0; |
14060 | GWcs *arg1 = (GWcs *) 0 ; |
14061 | void *argp1 = 0 ; |
14062 | int res1 = 0 ; |
14063 | PyObject * obj0 = 0 ; |
14064 | std::string result; |
14065 | |
14066 | if (!PyArg_ParseTuple(args,(char *)"O:GWcs_name",&obj0)) SWIG_failgoto fail; |
14067 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14068 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14069 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_name" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_name" "', argument " "1" " of type '" "GWcs const *""'"); goto fail; } while(0); |
14070 | } |
14071 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14072 | { |
14073 | try { |
14074 | result = ((GWcs const *)arg1)->name(); |
14075 | } |
14076 | catch (const GException::out_of_range& e) { |
14077 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14078 | } |
14079 | catch (const GExceptionHandler& e) { |
14080 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14081 | } |
14082 | catch (const std::exception& e) { |
14083 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14084 | } |
14085 | } |
14086 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
14087 | return resultobj; |
14088 | fail: |
14089 | return NULL__null; |
14090 | } |
14091 | |
14092 | |
14093 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14094 | PyObject *resultobj = 0; |
14095 | GWcs *arg1 = (GWcs *) 0 ; |
14096 | void *argp1 = 0 ; |
14097 | int res1 = 0 ; |
14098 | PyObject * obj0 = 0 ; |
14099 | int result; |
14100 | |
14101 | if (!PyArg_ParseTuple(args,(char *)"O:GWcs_size",&obj0)) SWIG_failgoto fail; |
14102 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14103 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_size" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_size" "', argument " "1" " of type '" "GWcs const *""'"); goto fail; } while(0); |
14105 | } |
14106 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14107 | { |
14108 | try { |
14109 | result = (int)((GWcs const *)arg1)->size(); |
14110 | } |
14111 | catch (const GException::out_of_range& e) { |
14112 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14113 | } |
14114 | catch (const GExceptionHandler& e) { |
14115 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14116 | } |
14117 | catch (const std::exception& e) { |
14118 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14119 | } |
14120 | } |
14121 | resultobj = SWIG_From_int(static_cast< int >(result)); |
14122 | return resultobj; |
14123 | fail: |
14124 | return NULL__null; |
14125 | } |
14126 | |
14127 | |
14128 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14129 | PyObject *resultobj = 0; |
14130 | GWcs *arg1 = (GWcs *) 0 ; |
14131 | GFitsHDU *arg2 = 0 ; |
14132 | void *argp1 = 0 ; |
14133 | int res1 = 0 ; |
14134 | void *argp2 = 0 ; |
14135 | int res2 = 0 ; |
14136 | PyObject * obj0 = 0 ; |
14137 | PyObject * obj1 = 0 ; |
14138 | |
14139 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_read",&obj0,&obj1)) SWIG_failgoto fail; |
14140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14141 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_read" "', argument " "1"" of type '" "GWcs *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_read" "', argument " "1" " of type '" "GWcs *""'"); goto fail; } while(0); |
14143 | } |
14144 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14145 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0 | 0, 0); |
14146 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14147 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GWcs_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GWcs_read" "', argument " "2" " of type '" "GFitsHDU const &""'"); goto fail; } while(0 ); |
14148 | } |
14149 | if (!argp2) { |
14150 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GWcs_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GWcs_read" "', argument " "2"" of type '" "GFitsHDU const &" "'"); goto fail; } while(0); |
14151 | } |
14152 | arg2 = reinterpret_cast< GFitsHDU * >(argp2); |
14153 | { |
14154 | try { |
14155 | (arg1)->read((GFitsHDU const &)*arg2); |
14156 | } |
14157 | catch (const GException::out_of_range& e) { |
14158 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14159 | } |
14160 | catch (const GExceptionHandler& e) { |
14161 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14162 | } |
14163 | catch (const std::exception& e) { |
14164 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14165 | } |
14166 | } |
14167 | resultobj = SWIG_Py_Void(); |
14168 | return resultobj; |
14169 | fail: |
14170 | return NULL__null; |
14171 | } |
14172 | |
14173 | |
14174 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14175 | PyObject *resultobj = 0; |
14176 | GWcs *arg1 = (GWcs *) 0 ; |
14177 | GFitsHDU *arg2 = 0 ; |
14178 | void *argp1 = 0 ; |
14179 | int res1 = 0 ; |
14180 | void *argp2 = 0 ; |
14181 | int res2 = 0 ; |
14182 | PyObject * obj0 = 0 ; |
14183 | PyObject * obj1 = 0 ; |
14184 | |
14185 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_write",&obj0,&obj1)) SWIG_failgoto fail; |
14186 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14187 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_write" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_write" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14189 | } |
14190 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14191 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3], 0, 0); |
14192 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14193 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GWcs_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GWcs_write" "', argument " "2"" of type '" "GFitsHDU &""'"); goto fail; } while(0); |
14194 | } |
14195 | if (!argp2) { |
14196 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GWcs_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GWcs_write" "', argument " "2"" of type '" "GFitsHDU &" "'"); goto fail; } while(0); |
14197 | } |
14198 | arg2 = reinterpret_cast< GFitsHDU * >(argp2); |
14199 | { |
14200 | try { |
14201 | ((GWcs const *)arg1)->write(*arg2); |
14202 | } |
14203 | catch (const GException::out_of_range& e) { |
14204 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14205 | } |
14206 | catch (const GExceptionHandler& e) { |
14207 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14208 | } |
14209 | catch (const std::exception& e) { |
14210 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14211 | } |
14212 | } |
14213 | resultobj = SWIG_Py_Void(); |
14214 | return resultobj; |
14215 | fail: |
14216 | return NULL__null; |
14217 | } |
14218 | |
14219 | |
14220 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_solidangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14221 | PyObject *resultobj = 0; |
14222 | GWcs *arg1 = (GWcs *) 0 ; |
14223 | GSkyPixel *arg2 = 0 ; |
14224 | void *argp1 = 0 ; |
14225 | int res1 = 0 ; |
14226 | void *argp2 = 0 ; |
14227 | int res2 = 0 ; |
14228 | PyObject * obj0 = 0 ; |
14229 | PyObject * obj1 = 0 ; |
14230 | double result; |
14231 | |
14232 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_solidangle",&obj0,&obj1)) SWIG_failgoto fail; |
14233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14234 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_solidangle" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_solidangle" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14236 | } |
14237 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14238 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
14239 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14240 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GWcs_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GWcs_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
14241 | } |
14242 | if (!argp2) { |
14243 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GWcs_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GWcs_solidangle" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while(0); |
14244 | } |
14245 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
14246 | { |
14247 | try { |
14248 | result = (double)((GWcs const *)arg1)->solidangle((GSkyPixel const &)*arg2); |
14249 | } |
14250 | catch (const GException::out_of_range& e) { |
14251 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14252 | } |
14253 | catch (const GExceptionHandler& e) { |
14254 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14255 | } |
14256 | catch (const std::exception& e) { |
14257 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14258 | } |
14259 | } |
14260 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14261 | return resultobj; |
14262 | fail: |
14263 | return NULL__null; |
14264 | } |
14265 | |
14266 | |
14267 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_pix2dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14268 | PyObject *resultobj = 0; |
14269 | GWcs *arg1 = (GWcs *) 0 ; |
14270 | GSkyPixel *arg2 = 0 ; |
14271 | void *argp1 = 0 ; |
14272 | int res1 = 0 ; |
14273 | void *argp2 = 0 ; |
14274 | int res2 = 0 ; |
14275 | PyObject * obj0 = 0 ; |
14276 | PyObject * obj1 = 0 ; |
14277 | GSkyDir result; |
14278 | |
14279 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_pix2dir",&obj0,&obj1)) SWIG_failgoto fail; |
14280 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14281 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_pix2dir" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_pix2dir" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14283 | } |
14284 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14285 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyPixel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[7], 0 | 0, 0); |
14286 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14287 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GWcs_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GWcs_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'"); goto fail; } while (0); |
14288 | } |
14289 | if (!argp2) { |
14290 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GWcs_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GWcs_pix2dir" "', argument " "2"" of type '" "GSkyPixel const &" "'"); goto fail; } while(0); |
14291 | } |
14292 | arg2 = reinterpret_cast< GSkyPixel * >(argp2); |
14293 | { |
14294 | try { |
14295 | result = ((GWcs const *)arg1)->pix2dir((GSkyPixel const &)*arg2); |
14296 | } |
14297 | catch (const GException::out_of_range& e) { |
14298 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14299 | } |
14300 | catch (const GExceptionHandler& e) { |
14301 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14302 | } |
14303 | catch (const std::exception& e) { |
14304 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14305 | } |
14306 | } |
14307 | resultobj = SWIG_NewPointerObj((new GSkyDir(static_cast< const GSkyDir& >(result))), SWIGTYPE_p_GSkyDir, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyDir(static_cast< const GSkyDir& >(result))), swig_types[6], 0x1 | 0); |
14308 | return resultobj; |
14309 | fail: |
14310 | return NULL__null; |
14311 | } |
14312 | |
14313 | |
14314 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_dir2pix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14315 | PyObject *resultobj = 0; |
14316 | GWcs *arg1 = (GWcs *) 0 ; |
14317 | GSkyDir *arg2 = 0 ; |
14318 | void *argp1 = 0 ; |
14319 | int res1 = 0 ; |
14320 | void *argp2 = 0 ; |
14321 | int res2 = 0 ; |
14322 | PyObject * obj0 = 0 ; |
14323 | PyObject * obj1 = 0 ; |
14324 | GSkyPixel result; |
14325 | |
14326 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_dir2pix",&obj0,&obj1)) SWIG_failgoto fail; |
14327 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14328 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14329 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_dir2pix" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_dir2pix" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14330 | } |
14331 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14332 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6], 0 | 0, 0); |
14333 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14334 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GWcs_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GWcs_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'"); goto fail; } while (0); |
14335 | } |
14336 | if (!argp2) { |
14337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GWcs_dir2pix" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GWcs_dir2pix" "', argument " "2"" of type '" "GSkyDir const &" "'"); goto fail; } while(0); |
14338 | } |
14339 | arg2 = reinterpret_cast< GSkyDir * >(argp2); |
14340 | { |
14341 | try { |
14342 | result = ((GWcs const *)arg1)->dir2pix((GSkyDir const &)*arg2); |
14343 | } |
14344 | catch (const GException::out_of_range& e) { |
14345 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14346 | } |
14347 | catch (const GExceptionHandler& e) { |
14348 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14349 | } |
14350 | catch (const std::exception& e) { |
14351 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14352 | } |
14353 | } |
14354 | resultobj = SWIG_NewPointerObj((new GSkyPixel(static_cast< const GSkyPixel& >(result))), SWIGTYPE_p_GSkyPixel, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSkyPixel(static_cast< const GSkyPixel& >(result))), swig_types[7], 0x1 | 0); |
14355 | return resultobj; |
14356 | fail: |
14357 | return NULL__null; |
14358 | } |
14359 | |
14360 | |
14361 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14362 | PyObject *resultobj = 0; |
14363 | GWcs *arg1 = (GWcs *) 0 ; |
14364 | std::string *arg2 = 0 ; |
14365 | double *arg3 = 0 ; |
14366 | double *arg4 = 0 ; |
14367 | double *arg5 = 0 ; |
14368 | double *arg6 = 0 ; |
14369 | double *arg7 = 0 ; |
14370 | double *arg8 = 0 ; |
14371 | void *argp1 = 0 ; |
14372 | int res1 = 0 ; |
14373 | int res2 = SWIG_OLDOBJ((0)) ; |
14374 | double temp3 ; |
14375 | double val3 ; |
14376 | int ecode3 = 0 ; |
14377 | double temp4 ; |
14378 | double val4 ; |
14379 | int ecode4 = 0 ; |
14380 | double temp5 ; |
14381 | double val5 ; |
14382 | int ecode5 = 0 ; |
14383 | double temp6 ; |
14384 | double val6 ; |
14385 | int ecode6 = 0 ; |
14386 | double temp7 ; |
14387 | double val7 ; |
14388 | int ecode7 = 0 ; |
14389 | double temp8 ; |
14390 | double val8 ; |
14391 | int ecode8 = 0 ; |
14392 | PyObject * obj0 = 0 ; |
14393 | PyObject * obj1 = 0 ; |
14394 | PyObject * obj2 = 0 ; |
14395 | PyObject * obj3 = 0 ; |
14396 | PyObject * obj4 = 0 ; |
14397 | PyObject * obj5 = 0 ; |
14398 | PyObject * obj6 = 0 ; |
14399 | PyObject * obj7 = 0 ; |
14400 | |
14401 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:GWcs_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_failgoto fail; |
14402 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14403 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14404 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_set" "', argument " "1"" of type '" "GWcs *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_set" "', argument " "1" " of type '" "GWcs *""'"); goto fail; } while(0); |
14405 | } |
14406 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14407 | { |
14408 | std::string *ptr = (std::string *)0; |
14409 | res2 = SWIG_AsPtr_std_string(obj1, &ptr); |
14410 | if (!SWIG_IsOK(res2)(res2 >= 0)) { |
14411 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GWcs_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != ( -1)) ? res2 : -5)), "in method '" "GWcs_set" "', argument " "2" " of type '" "std::string const &""'"); goto fail; } while (0); |
14412 | } |
14413 | if (!ptr) { |
14414 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GWcs_set" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "GWcs_set" "', argument " "2"" of type '" "std::string const &" "'"); goto fail; } while(0); |
14415 | } |
14416 | arg2 = ptr; |
14417 | } |
14418 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
14419 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
14420 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GWcs_set" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "GWcs_set" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
14421 | } |
14422 | temp3 = static_cast< double >(val3); |
14423 | arg3 = &temp3; |
14424 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
14425 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
14426 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GWcs_set" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "GWcs_set" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
14427 | } |
14428 | temp4 = static_cast< double >(val4); |
14429 | arg4 = &temp4; |
14430 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
14431 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
14432 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GWcs_set" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "GWcs_set" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
14433 | } |
14434 | temp5 = static_cast< double >(val5); |
14435 | arg5 = &temp5; |
14436 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
14437 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
14438 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GWcs_set" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "GWcs_set" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
14439 | } |
14440 | temp6 = static_cast< double >(val6); |
14441 | arg6 = &temp6; |
14442 | ecode7 = SWIG_AsVal_double(obj6, &val7); |
14443 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
14444 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GWcs_set" "', argument " "7"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "GWcs_set" "', argument " "7"" of type '" "double""'"); goto fail; } while(0); |
14445 | } |
14446 | temp7 = static_cast< double >(val7); |
14447 | arg7 = &temp7; |
14448 | ecode8 = SWIG_AsVal_double(obj7, &val8); |
14449 | if (!SWIG_IsOK(ecode8)(ecode8 >= 0)) { |
14450 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "GWcs_set" "', argument " "8"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode8 != (-1)) ? ecode8 : -5)), "in method '" "GWcs_set" "', argument " "8"" of type '" "double""'"); goto fail; } while(0); |
14451 | } |
14452 | temp8 = static_cast< double >(val8); |
14453 | arg8 = &temp8; |
14454 | { |
14455 | try { |
14456 | (arg1)->set((std::string const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(double const &)*arg7,(double const &)*arg8); |
14457 | } |
14458 | catch (const GException::out_of_range& e) { |
14459 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14460 | } |
14461 | catch (const GExceptionHandler& e) { |
14462 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14463 | } |
14464 | catch (const std::exception& e) { |
14465 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14466 | } |
14467 | } |
14468 | resultobj = SWIG_Py_Void(); |
14469 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
14470 | return resultobj; |
14471 | fail: |
14472 | if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) << 1)))) delete arg2; |
14473 | return NULL__null; |
14474 | } |
14475 | |
14476 | |
14477 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_crval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14478 | PyObject *resultobj = 0; |
14479 | GWcs *arg1 = (GWcs *) 0 ; |
14480 | int *arg2 = 0 ; |
14481 | void *argp1 = 0 ; |
14482 | int res1 = 0 ; |
14483 | int temp2 ; |
14484 | int val2 ; |
14485 | int ecode2 = 0 ; |
14486 | PyObject * obj0 = 0 ; |
14487 | PyObject * obj1 = 0 ; |
14488 | double result; |
14489 | |
14490 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_crval",&obj0,&obj1)) SWIG_failgoto fail; |
14491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14492 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_crval" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_crval" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14494 | } |
14495 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14496 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
14497 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
14498 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GWcs_crval" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GWcs_crval" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
14499 | } |
14500 | temp2 = static_cast< int >(val2); |
14501 | arg2 = &temp2; |
14502 | { |
14503 | try { |
14504 | result = (double)((GWcs const *)arg1)->crval((int const &)*arg2); |
14505 | } |
14506 | catch (const GException::out_of_range& e) { |
14507 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14508 | } |
14509 | catch (const GExceptionHandler& e) { |
14510 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14511 | } |
14512 | catch (const std::exception& e) { |
14513 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14514 | } |
14515 | } |
14516 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14517 | return resultobj; |
14518 | fail: |
14519 | return NULL__null; |
14520 | } |
14521 | |
14522 | |
14523 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_crpix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14524 | PyObject *resultobj = 0; |
14525 | GWcs *arg1 = (GWcs *) 0 ; |
14526 | int *arg2 = 0 ; |
14527 | void *argp1 = 0 ; |
14528 | int res1 = 0 ; |
14529 | int temp2 ; |
14530 | int val2 ; |
14531 | int ecode2 = 0 ; |
14532 | PyObject * obj0 = 0 ; |
14533 | PyObject * obj1 = 0 ; |
14534 | double result; |
14535 | |
14536 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_crpix",&obj0,&obj1)) SWIG_failgoto fail; |
14537 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14538 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_crpix" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_crpix" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14540 | } |
14541 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14542 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
14543 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
14544 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GWcs_crpix" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GWcs_crpix" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
14545 | } |
14546 | temp2 = static_cast< int >(val2); |
14547 | arg2 = &temp2; |
14548 | { |
14549 | try { |
14550 | result = (double)((GWcs const *)arg1)->crpix((int const &)*arg2); |
14551 | } |
14552 | catch (const GException::out_of_range& e) { |
14553 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14554 | } |
14555 | catch (const GExceptionHandler& e) { |
14556 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14557 | } |
14558 | catch (const std::exception& e) { |
14559 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14560 | } |
14561 | } |
14562 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14563 | return resultobj; |
14564 | fail: |
14565 | return NULL__null; |
14566 | } |
14567 | |
14568 | |
14569 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcs_cdelt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14570 | PyObject *resultobj = 0; |
14571 | GWcs *arg1 = (GWcs *) 0 ; |
14572 | int *arg2 = 0 ; |
14573 | void *argp1 = 0 ; |
14574 | int res1 = 0 ; |
14575 | int temp2 ; |
14576 | int val2 ; |
14577 | int ecode2 = 0 ; |
14578 | PyObject * obj0 = 0 ; |
14579 | PyObject * obj1 = 0 ; |
14580 | double result; |
14581 | |
14582 | if (!PyArg_ParseTuple(args,(char *)"OO:GWcs_cdelt",&obj0,&obj1)) SWIG_failgoto fail; |
14583 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcs, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[14] , 0 | 0, 0); |
14584 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcs_cdelt" "', argument " "1"" of type '" "GWcs const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcs_cdelt" "', argument " "1"" of type '" "GWcs const *""'"); goto fail; } while(0); |
14586 | } |
14587 | arg1 = reinterpret_cast< GWcs * >(argp1); |
14588 | ecode2 = SWIG_AsVal_int(obj1, &val2); |
14589 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
14590 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GWcs_cdelt" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "GWcs_cdelt" "', argument " "2"" of type '" "int""'"); goto fail; } while(0); |
14591 | } |
14592 | temp2 = static_cast< int >(val2); |
14593 | arg2 = &temp2; |
14594 | { |
14595 | try { |
14596 | result = (double)((GWcs const *)arg1)->cdelt((int const &)*arg2); |
14597 | } |
14598 | catch (const GException::out_of_range& e) { |
14599 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14600 | } |
14601 | catch (const GExceptionHandler& e) { |
14602 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14603 | } |
14604 | catch (const std::exception& e) { |
14605 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14606 | } |
14607 | } |
14608 | resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result)); |
14609 | return resultobj; |
14610 | fail: |
14611 | return NULL__null; |
14612 | } |
14613 | |
14614 | |
14615 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcs_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14616 | PyObject *obj; |
14617 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
14618 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsswig_types[14], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
14619 | return SWIG_Py_Void(); |
14620 | } |
14621 | |
14622 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAIT__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14623 | PyObject *resultobj = 0; |
14624 | GWcsAIT *result = 0 ; |
14625 | |
14626 | if (!PyArg_ParseTuple(args,(char *)":new_GWcsAIT")) SWIG_failgoto fail; |
14627 | { |
14628 | try { |
14629 | result = (GWcsAIT *)new GWcsAIT(); |
14630 | } |
14631 | catch (const GException::out_of_range& e) { |
14632 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14633 | } |
14634 | catch (const GExceptionHandler& e) { |
14635 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14636 | } |
14637 | catch (const std::exception& e) { |
14638 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14639 | } |
14640 | } |
14641 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAIT, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], ( (0x1 << 1) | 0x1) | 0); |
14642 | return resultobj; |
14643 | fail: |
14644 | return NULL__null; |
14645 | } |
14646 | |
14647 | |
14648 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAIT__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14649 | PyObject *resultobj = 0; |
14650 | std::string *arg1 = 0 ; |
14651 | double *arg2 = 0 ; |
14652 | double *arg3 = 0 ; |
14653 | double *arg4 = 0 ; |
14654 | double *arg5 = 0 ; |
14655 | double *arg6 = 0 ; |
14656 | double *arg7 = 0 ; |
14657 | int res1 = SWIG_OLDOBJ((0)) ; |
14658 | double temp2 ; |
14659 | double val2 ; |
14660 | int ecode2 = 0 ; |
14661 | double temp3 ; |
14662 | double val3 ; |
14663 | int ecode3 = 0 ; |
14664 | double temp4 ; |
14665 | double val4 ; |
14666 | int ecode4 = 0 ; |
14667 | double temp5 ; |
14668 | double val5 ; |
14669 | int ecode5 = 0 ; |
14670 | double temp6 ; |
14671 | double val6 ; |
14672 | int ecode6 = 0 ; |
14673 | double temp7 ; |
14674 | double val7 ; |
14675 | int ecode7 = 0 ; |
14676 | PyObject * obj0 = 0 ; |
14677 | PyObject * obj1 = 0 ; |
14678 | PyObject * obj2 = 0 ; |
14679 | PyObject * obj3 = 0 ; |
14680 | PyObject * obj4 = 0 ; |
14681 | PyObject * obj5 = 0 ; |
14682 | PyObject * obj6 = 0 ; |
14683 | GWcsAIT *result = 0 ; |
14684 | |
14685 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_GWcsAIT",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_failgoto fail; |
14686 | { |
14687 | std::string *ptr = (std::string *)0; |
14688 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
14689 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
14691 | } |
14692 | if (!ptr) { |
14693 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
14694 | } |
14695 | arg1 = ptr; |
14696 | } |
14697 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
14698 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
14699 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GWcsAIT" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GWcsAIT" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
14700 | } |
14701 | temp2 = static_cast< double >(val2); |
14702 | arg2 = &temp2; |
14703 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
14704 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
14705 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GWcsAIT" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GWcsAIT" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
14706 | } |
14707 | temp3 = static_cast< double >(val3); |
14708 | arg3 = &temp3; |
14709 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
14710 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
14711 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GWcsAIT" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GWcsAIT" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
14712 | } |
14713 | temp4 = static_cast< double >(val4); |
14714 | arg4 = &temp4; |
14715 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
14716 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
14717 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GWcsAIT" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GWcsAIT" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
14718 | } |
14719 | temp5 = static_cast< double >(val5); |
14720 | arg5 = &temp5; |
14721 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
14722 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
14723 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GWcsAIT" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GWcsAIT" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
14724 | } |
14725 | temp6 = static_cast< double >(val6); |
14726 | arg6 = &temp6; |
14727 | ecode7 = SWIG_AsVal_double(obj6, &val7); |
14728 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
14729 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GWcsAIT" "', argument " "7"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GWcsAIT" "', argument " "7"" of type '" "double""'"); goto fail; } while(0); |
14730 | } |
14731 | temp7 = static_cast< double >(val7); |
14732 | arg7 = &temp7; |
14733 | { |
14734 | try { |
14735 | result = (GWcsAIT *)new GWcsAIT((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(double const &)*arg7); |
14736 | } |
14737 | catch (const GException::out_of_range& e) { |
14738 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14739 | } |
14740 | catch (const GExceptionHandler& e) { |
14741 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14742 | } |
14743 | catch (const std::exception& e) { |
14744 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14745 | } |
14746 | } |
14747 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAIT, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], ( (0x1 << 1) | 0x1) | 0); |
14748 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
14749 | return resultobj; |
14750 | fail: |
14751 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
14752 | return NULL__null; |
14753 | } |
14754 | |
14755 | |
14756 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAIT__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14757 | PyObject *resultobj = 0; |
14758 | GWcsAIT *arg1 = 0 ; |
14759 | void *argp1 = 0 ; |
14760 | int res1 = 0 ; |
14761 | PyObject * obj0 = 0 ; |
14762 | GWcsAIT *result = 0 ; |
14763 | |
14764 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsAIT",&obj0)) SWIG_failgoto fail; |
14765 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GWcsAIT, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
14766 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "GWcsAIT const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "GWcsAIT const &""'"); goto fail; } while (0); |
14768 | } |
14769 | if (!argp1) { |
14770 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "GWcsAIT const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsAIT" "', argument " "1"" of type '" "GWcsAIT const &" "'"); goto fail; } while(0); |
14771 | } |
14772 | arg1 = reinterpret_cast< GWcsAIT * >(argp1); |
14773 | { |
14774 | try { |
14775 | result = (GWcsAIT *)new GWcsAIT((GWcsAIT const &)*arg1); |
14776 | } |
14777 | catch (const GException::out_of_range& e) { |
14778 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14779 | } |
14780 | catch (const GExceptionHandler& e) { |
14781 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14782 | } |
14783 | catch (const std::exception& e) { |
14784 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14785 | } |
14786 | } |
14787 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAIT, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], ( (0x1 << 1) | 0x1) | 0); |
14788 | return resultobj; |
14789 | fail: |
14790 | return NULL__null; |
14791 | } |
14792 | |
14793 | |
14794 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAIT(PyObject *self, PyObject *args) { |
14795 | int argc; |
14796 | PyObject *argv[8]; |
14797 | int ii; |
14798 | |
14799 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
14800 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
14801 | for (ii = 0; (ii < 7) && (ii < argc); ii++) { |
14802 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
14803 | } |
14804 | if (argc == 0) { |
14805 | return _wrap_new_GWcsAIT__SWIG_0(self, args); |
14806 | } |
14807 | if (argc == 1) { |
14808 | int _v; |
14809 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GWcsAIT, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[15], 0, 0 ); |
14810 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14811 | if (_v) { |
14812 | return _wrap_new_GWcsAIT__SWIG_2(self, args); |
14813 | } |
14814 | } |
14815 | if (argc == 7) { |
14816 | int _v; |
14817 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
14818 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14819 | if (_v) { |
14820 | { |
14821 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
14822 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14823 | } |
14824 | if (_v) { |
14825 | { |
14826 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
14827 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14828 | } |
14829 | if (_v) { |
14830 | { |
14831 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
14832 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14833 | } |
14834 | if (_v) { |
14835 | { |
14836 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
14837 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14838 | } |
14839 | if (_v) { |
14840 | { |
14841 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
14842 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14843 | } |
14844 | if (_v) { |
14845 | { |
14846 | int res = SWIG_AsVal_double(argv[6], NULL__null); |
14847 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
14848 | } |
14849 | if (_v) { |
14850 | return _wrap_new_GWcsAIT__SWIG_1(self, args); |
14851 | } |
14852 | } |
14853 | } |
14854 | } |
14855 | } |
14856 | } |
14857 | } |
14858 | } |
14859 | |
14860 | fail: |
14861 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GWcsAIT'.\n" |
14862 | " Possible C/C++ prototypes are:\n" |
14863 | " GWcsAIT::GWcsAIT()\n" |
14864 | " GWcsAIT::GWcsAIT(std::string const &,double const &,double const &,double const &,double const &,double const &,double const &)\n" |
14865 | " GWcsAIT::GWcsAIT(GWcsAIT const &)\n"); |
14866 | return 0; |
14867 | } |
14868 | |
14869 | |
14870 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcsAIT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14871 | PyObject *resultobj = 0; |
14872 | GWcsAIT *arg1 = (GWcsAIT *) 0 ; |
14873 | void *argp1 = 0 ; |
14874 | int res1 = 0 ; |
14875 | PyObject * obj0 = 0 ; |
14876 | |
14877 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcsAIT",&obj0)) SWIG_failgoto fail; |
14878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAIT, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0x1 | 0, 0); |
14879 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcsAIT" "', argument " "1"" of type '" "GWcsAIT *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcsAIT" "', argument " "1"" of type '" "GWcsAIT *""'"); goto fail; } while(0); |
14881 | } |
14882 | arg1 = reinterpret_cast< GWcsAIT * >(argp1); |
14883 | { |
14884 | try { |
14885 | delete arg1; |
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_Py_Void(); |
14898 | return resultobj; |
14899 | fail: |
14900 | return NULL__null; |
14901 | } |
14902 | |
14903 | |
14904 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAIT_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14905 | PyObject *resultobj = 0; |
14906 | GWcsAIT *arg1 = (GWcsAIT *) 0 ; |
14907 | void *argp1 = 0 ; |
14908 | int res1 = 0 ; |
14909 | PyObject * obj0 = 0 ; |
14910 | |
14911 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAIT_clear",&obj0)) SWIG_failgoto fail; |
14912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAIT, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
14913 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAIT_clear" "', argument " "1"" of type '" "GWcsAIT *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAIT_clear" "', argument " "1"" of type '" "GWcsAIT *""'"); goto fail; } while(0); |
14915 | } |
14916 | arg1 = reinterpret_cast< GWcsAIT * >(argp1); |
14917 | { |
14918 | try { |
14919 | (arg1)->clear(); |
14920 | } |
14921 | catch (const GException::out_of_range& e) { |
14922 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14923 | } |
14924 | catch (const GExceptionHandler& e) { |
14925 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14926 | } |
14927 | catch (const std::exception& e) { |
14928 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14929 | } |
14930 | } |
14931 | resultobj = SWIG_Py_Void(); |
14932 | return resultobj; |
14933 | fail: |
14934 | return NULL__null; |
14935 | } |
14936 | |
14937 | |
14938 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAIT_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14939 | PyObject *resultobj = 0; |
14940 | GWcsAIT *arg1 = (GWcsAIT *) 0 ; |
14941 | void *argp1 = 0 ; |
14942 | int res1 = 0 ; |
14943 | PyObject * obj0 = 0 ; |
14944 | GWcsAIT *result = 0 ; |
14945 | |
14946 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAIT_clone",&obj0)) SWIG_failgoto fail; |
14947 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAIT, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
14948 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAIT_clone" "', argument " "1"" of type '" "GWcsAIT const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAIT_clone" "', argument " "1"" of type '" "GWcsAIT const *""'"); goto fail; } while(0); |
14950 | } |
14951 | arg1 = reinterpret_cast< GWcsAIT * >(argp1); |
14952 | { |
14953 | try { |
14954 | result = (GWcsAIT *)((GWcsAIT const *)arg1)->clone(); |
14955 | } |
14956 | catch (const GException::out_of_range& e) { |
14957 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14958 | } |
14959 | catch (const GExceptionHandler& e) { |
14960 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14961 | } |
14962 | catch (const std::exception& e) { |
14963 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14964 | } |
14965 | } |
14966 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAIT, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[15], 0 | 0); |
14967 | return resultobj; |
14968 | fail: |
14969 | return NULL__null; |
14970 | } |
14971 | |
14972 | |
14973 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAIT_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14974 | PyObject *resultobj = 0; |
14975 | GWcsAIT *arg1 = (GWcsAIT *) 0 ; |
14976 | void *argp1 = 0 ; |
14977 | int res1 = 0 ; |
14978 | PyObject * obj0 = 0 ; |
14979 | std::string result; |
14980 | |
14981 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAIT_code",&obj0)) SWIG_failgoto fail; |
14982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAIT, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
14983 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
14984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAIT_code" "', argument " "1"" of type '" "GWcsAIT const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAIT_code" "', argument " "1"" of type '" "GWcsAIT const *""'"); goto fail; } while(0); |
14985 | } |
14986 | arg1 = reinterpret_cast< GWcsAIT * >(argp1); |
14987 | { |
14988 | try { |
14989 | result = ((GWcsAIT const *)arg1)->code(); |
14990 | } |
14991 | catch (const GException::out_of_range& e) { |
14992 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
14993 | } |
14994 | catch (const GExceptionHandler& e) { |
14995 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14996 | } |
14997 | catch (const std::exception& e) { |
14998 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
14999 | } |
15000 | } |
15001 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
15002 | return resultobj; |
15003 | fail: |
15004 | return NULL__null; |
15005 | } |
15006 | |
15007 | |
15008 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAIT_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15009 | PyObject *resultobj = 0; |
15010 | GWcsAIT *arg1 = (GWcsAIT *) 0 ; |
15011 | void *argp1 = 0 ; |
15012 | int res1 = 0 ; |
15013 | PyObject * obj0 = 0 ; |
15014 | std::string result; |
15015 | |
15016 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAIT_name",&obj0)) SWIG_failgoto fail; |
15017 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAIT, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
15018 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAIT_name" "', argument " "1"" of type '" "GWcsAIT const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAIT_name" "', argument " "1"" of type '" "GWcsAIT const *""'"); goto fail; } while(0); |
15020 | } |
15021 | arg1 = reinterpret_cast< GWcsAIT * >(argp1); |
15022 | { |
15023 | try { |
15024 | result = ((GWcsAIT const *)arg1)->name(); |
15025 | } |
15026 | catch (const GException::out_of_range& e) { |
15027 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15028 | } |
15029 | catch (const GExceptionHandler& e) { |
15030 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15031 | } |
15032 | catch (const std::exception& e) { |
15033 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15034 | } |
15035 | } |
15036 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
15037 | return resultobj; |
15038 | fail: |
15039 | return NULL__null; |
15040 | } |
15041 | |
15042 | |
15043 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAIT_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15044 | PyObject *resultobj = 0; |
15045 | GWcsAIT *arg1 = (GWcsAIT *) 0 ; |
15046 | void *argp1 = 0 ; |
15047 | int res1 = 0 ; |
15048 | PyObject * obj0 = 0 ; |
15049 | GWcsAIT result; |
15050 | |
15051 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAIT_copy",&obj0)) SWIG_failgoto fail; |
15052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAIT, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15] , 0 | 0, 0); |
15053 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAIT_copy" "', argument " "1"" of type '" "GWcsAIT *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAIT_copy" "', argument " "1"" of type '" "GWcsAIT *""'"); goto fail; } while(0); |
15055 | } |
15056 | arg1 = reinterpret_cast< GWcsAIT * >(argp1); |
15057 | { |
15058 | try { |
15059 | result = GWcsAIT_copy(arg1); |
15060 | } |
15061 | catch (const GException::out_of_range& e) { |
15062 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15063 | } |
15064 | catch (const GExceptionHandler& e) { |
15065 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15066 | } |
15067 | catch (const std::exception& e) { |
15068 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15069 | } |
15070 | } |
15071 | resultobj = SWIG_NewPointerObj((new GWcsAIT(static_cast< const GWcsAIT& >(result))), SWIGTYPE_p_GWcsAIT, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GWcsAIT(static_cast< const GWcsAIT& >(result))), swig_types[15], 0x1 | 0); |
15072 | return resultobj; |
15073 | fail: |
15074 | return NULL__null; |
15075 | } |
15076 | |
15077 | |
15078 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcsAIT_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15079 | PyObject *obj; |
15080 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
15081 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsAITswig_types[15], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
15082 | return SWIG_Py_Void(); |
15083 | } |
15084 | |
15085 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAZP__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15086 | PyObject *resultobj = 0; |
15087 | GWcsAZP *result = 0 ; |
15088 | |
15089 | if (!PyArg_ParseTuple(args,(char *)":new_GWcsAZP")) SWIG_failgoto fail; |
15090 | { |
15091 | try { |
15092 | result = (GWcsAZP *)new GWcsAZP(); |
15093 | } |
15094 | catch (const GException::out_of_range& e) { |
15095 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15096 | } |
15097 | catch (const GExceptionHandler& e) { |
15098 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15099 | } |
15100 | catch (const std::exception& e) { |
15101 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15102 | } |
15103 | } |
15104 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAZP, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], ( (0x1 << 1) | 0x1) | 0); |
15105 | return resultobj; |
15106 | fail: |
15107 | return NULL__null; |
15108 | } |
15109 | |
15110 | |
15111 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAZP__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15112 | PyObject *resultobj = 0; |
15113 | std::string *arg1 = 0 ; |
15114 | double *arg2 = 0 ; |
15115 | double *arg3 = 0 ; |
15116 | double *arg4 = 0 ; |
15117 | double *arg5 = 0 ; |
15118 | double *arg6 = 0 ; |
15119 | double *arg7 = 0 ; |
15120 | int res1 = SWIG_OLDOBJ((0)) ; |
15121 | double temp2 ; |
15122 | double val2 ; |
15123 | int ecode2 = 0 ; |
15124 | double temp3 ; |
15125 | double val3 ; |
15126 | int ecode3 = 0 ; |
15127 | double temp4 ; |
15128 | double val4 ; |
15129 | int ecode4 = 0 ; |
15130 | double temp5 ; |
15131 | double val5 ; |
15132 | int ecode5 = 0 ; |
15133 | double temp6 ; |
15134 | double val6 ; |
15135 | int ecode6 = 0 ; |
15136 | double temp7 ; |
15137 | double val7 ; |
15138 | int ecode7 = 0 ; |
15139 | PyObject * obj0 = 0 ; |
15140 | PyObject * obj1 = 0 ; |
15141 | PyObject * obj2 = 0 ; |
15142 | PyObject * obj3 = 0 ; |
15143 | PyObject * obj4 = 0 ; |
15144 | PyObject * obj5 = 0 ; |
15145 | PyObject * obj6 = 0 ; |
15146 | GWcsAZP *result = 0 ; |
15147 | |
15148 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_GWcsAZP",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_failgoto fail; |
15149 | { |
15150 | std::string *ptr = (std::string *)0; |
15151 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
15152 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
15154 | } |
15155 | if (!ptr) { |
15156 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
15157 | } |
15158 | arg1 = ptr; |
15159 | } |
15160 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
15161 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
15162 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GWcsAZP" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GWcsAZP" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
15163 | } |
15164 | temp2 = static_cast< double >(val2); |
15165 | arg2 = &temp2; |
15166 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
15167 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
15168 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GWcsAZP" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GWcsAZP" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
15169 | } |
15170 | temp3 = static_cast< double >(val3); |
15171 | arg3 = &temp3; |
15172 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
15173 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
15174 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GWcsAZP" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GWcsAZP" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
15175 | } |
15176 | temp4 = static_cast< double >(val4); |
15177 | arg4 = &temp4; |
15178 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
15179 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
15180 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GWcsAZP" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GWcsAZP" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
15181 | } |
15182 | temp5 = static_cast< double >(val5); |
15183 | arg5 = &temp5; |
15184 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
15185 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
15186 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GWcsAZP" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GWcsAZP" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
15187 | } |
15188 | temp6 = static_cast< double >(val6); |
15189 | arg6 = &temp6; |
15190 | ecode7 = SWIG_AsVal_double(obj6, &val7); |
15191 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
15192 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GWcsAZP" "', argument " "7"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GWcsAZP" "', argument " "7"" of type '" "double""'"); goto fail; } while(0); |
15193 | } |
15194 | temp7 = static_cast< double >(val7); |
15195 | arg7 = &temp7; |
15196 | { |
15197 | try { |
15198 | result = (GWcsAZP *)new GWcsAZP((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(double const &)*arg7); |
15199 | } |
15200 | catch (const GException::out_of_range& e) { |
15201 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15202 | } |
15203 | catch (const GExceptionHandler& e) { |
15204 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15205 | } |
15206 | catch (const std::exception& e) { |
15207 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15208 | } |
15209 | } |
15210 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAZP, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], ( (0x1 << 1) | 0x1) | 0); |
15211 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
15212 | return resultobj; |
15213 | fail: |
15214 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
15215 | return NULL__null; |
15216 | } |
15217 | |
15218 | |
15219 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAZP__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15220 | PyObject *resultobj = 0; |
15221 | GWcsAZP *arg1 = 0 ; |
15222 | void *argp1 = 0 ; |
15223 | int res1 = 0 ; |
15224 | PyObject * obj0 = 0 ; |
15225 | GWcsAZP *result = 0 ; |
15226 | |
15227 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsAZP",&obj0)) SWIG_failgoto fail; |
15228 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GWcsAZP, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
15229 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "GWcsAZP const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "GWcsAZP const &""'"); goto fail; } while (0); |
15231 | } |
15232 | if (!argp1) { |
15233 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "GWcsAZP const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsAZP" "', argument " "1"" of type '" "GWcsAZP const &" "'"); goto fail; } while(0); |
15234 | } |
15235 | arg1 = reinterpret_cast< GWcsAZP * >(argp1); |
15236 | { |
15237 | try { |
15238 | result = (GWcsAZP *)new GWcsAZP((GWcsAZP const &)*arg1); |
15239 | } |
15240 | catch (const GException::out_of_range& e) { |
15241 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15242 | } |
15243 | catch (const GExceptionHandler& e) { |
15244 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15245 | } |
15246 | catch (const std::exception& e) { |
15247 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15248 | } |
15249 | } |
15250 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAZP, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], ( (0x1 << 1) | 0x1) | 0); |
15251 | return resultobj; |
15252 | fail: |
15253 | return NULL__null; |
15254 | } |
15255 | |
15256 | |
15257 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsAZP(PyObject *self, PyObject *args) { |
15258 | int argc; |
15259 | PyObject *argv[8]; |
15260 | int ii; |
15261 | |
15262 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
15263 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
15264 | for (ii = 0; (ii < 7) && (ii < argc); ii++) { |
15265 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
15266 | } |
15267 | if (argc == 0) { |
15268 | return _wrap_new_GWcsAZP__SWIG_0(self, args); |
15269 | } |
15270 | if (argc == 1) { |
15271 | int _v; |
15272 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GWcsAZP, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[16], 0, 0 ); |
15273 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15274 | if (_v) { |
15275 | return _wrap_new_GWcsAZP__SWIG_2(self, args); |
15276 | } |
15277 | } |
15278 | if (argc == 7) { |
15279 | int _v; |
15280 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
15281 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15282 | if (_v) { |
15283 | { |
15284 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
15285 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15286 | } |
15287 | if (_v) { |
15288 | { |
15289 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
15290 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15291 | } |
15292 | if (_v) { |
15293 | { |
15294 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
15295 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15296 | } |
15297 | if (_v) { |
15298 | { |
15299 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
15300 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15301 | } |
15302 | if (_v) { |
15303 | { |
15304 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
15305 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15306 | } |
15307 | if (_v) { |
15308 | { |
15309 | int res = SWIG_AsVal_double(argv[6], NULL__null); |
15310 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15311 | } |
15312 | if (_v) { |
15313 | return _wrap_new_GWcsAZP__SWIG_1(self, args); |
15314 | } |
15315 | } |
15316 | } |
15317 | } |
15318 | } |
15319 | } |
15320 | } |
15321 | } |
15322 | |
15323 | fail: |
15324 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GWcsAZP'.\n" |
15325 | " Possible C/C++ prototypes are:\n" |
15326 | " GWcsAZP::GWcsAZP()\n" |
15327 | " GWcsAZP::GWcsAZP(std::string const &,double const &,double const &,double const &,double const &,double const &,double const &)\n" |
15328 | " GWcsAZP::GWcsAZP(GWcsAZP const &)\n"); |
15329 | return 0; |
15330 | } |
15331 | |
15332 | |
15333 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcsAZP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15334 | PyObject *resultobj = 0; |
15335 | GWcsAZP *arg1 = (GWcsAZP *) 0 ; |
15336 | void *argp1 = 0 ; |
15337 | int res1 = 0 ; |
15338 | PyObject * obj0 = 0 ; |
15339 | |
15340 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcsAZP",&obj0)) SWIG_failgoto fail; |
15341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAZP, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0x1 | 0, 0); |
15342 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcsAZP" "', argument " "1"" of type '" "GWcsAZP *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcsAZP" "', argument " "1"" of type '" "GWcsAZP *""'"); goto fail; } while(0); |
15344 | } |
15345 | arg1 = reinterpret_cast< GWcsAZP * >(argp1); |
15346 | { |
15347 | try { |
15348 | delete arg1; |
15349 | } |
15350 | catch (const GException::out_of_range& e) { |
15351 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15352 | } |
15353 | catch (const GExceptionHandler& e) { |
15354 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15355 | } |
15356 | catch (const std::exception& e) { |
15357 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15358 | } |
15359 | } |
15360 | resultobj = SWIG_Py_Void(); |
15361 | return resultobj; |
15362 | fail: |
15363 | return NULL__null; |
15364 | } |
15365 | |
15366 | |
15367 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAZP_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15368 | PyObject *resultobj = 0; |
15369 | GWcsAZP *arg1 = (GWcsAZP *) 0 ; |
15370 | void *argp1 = 0 ; |
15371 | int res1 = 0 ; |
15372 | PyObject * obj0 = 0 ; |
15373 | |
15374 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAZP_clear",&obj0)) SWIG_failgoto fail; |
15375 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAZP, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
15376 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAZP_clear" "', argument " "1"" of type '" "GWcsAZP *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAZP_clear" "', argument " "1"" of type '" "GWcsAZP *""'"); goto fail; } while(0); |
15378 | } |
15379 | arg1 = reinterpret_cast< GWcsAZP * >(argp1); |
15380 | { |
15381 | try { |
15382 | (arg1)->clear(); |
15383 | } |
15384 | catch (const GException::out_of_range& e) { |
15385 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15386 | } |
15387 | catch (const GExceptionHandler& e) { |
15388 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15389 | } |
15390 | catch (const std::exception& e) { |
15391 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15392 | } |
15393 | } |
15394 | resultobj = SWIG_Py_Void(); |
15395 | return resultobj; |
15396 | fail: |
15397 | return NULL__null; |
15398 | } |
15399 | |
15400 | |
15401 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAZP_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15402 | PyObject *resultobj = 0; |
15403 | GWcsAZP *arg1 = (GWcsAZP *) 0 ; |
15404 | void *argp1 = 0 ; |
15405 | int res1 = 0 ; |
15406 | PyObject * obj0 = 0 ; |
15407 | GWcsAZP *result = 0 ; |
15408 | |
15409 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAZP_clone",&obj0)) SWIG_failgoto fail; |
15410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAZP, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
15411 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAZP_clone" "', argument " "1"" of type '" "GWcsAZP const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAZP_clone" "', argument " "1"" of type '" "GWcsAZP const *""'"); goto fail; } while(0); |
15413 | } |
15414 | arg1 = reinterpret_cast< GWcsAZP * >(argp1); |
15415 | { |
15416 | try { |
15417 | result = (GWcsAZP *)((GWcsAZP const *)arg1)->clone(); |
15418 | } |
15419 | catch (const GException::out_of_range& e) { |
15420 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15421 | } |
15422 | catch (const GExceptionHandler& e) { |
15423 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15424 | } |
15425 | catch (const std::exception& e) { |
15426 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15427 | } |
15428 | } |
15429 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsAZP, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[16], 0 | 0); |
15430 | return resultobj; |
15431 | fail: |
15432 | return NULL__null; |
15433 | } |
15434 | |
15435 | |
15436 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAZP_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15437 | PyObject *resultobj = 0; |
15438 | GWcsAZP *arg1 = (GWcsAZP *) 0 ; |
15439 | void *argp1 = 0 ; |
15440 | int res1 = 0 ; |
15441 | PyObject * obj0 = 0 ; |
15442 | std::string result; |
15443 | |
15444 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAZP_code",&obj0)) SWIG_failgoto fail; |
15445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAZP, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
15446 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAZP_code" "', argument " "1"" of type '" "GWcsAZP const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAZP_code" "', argument " "1"" of type '" "GWcsAZP const *""'"); goto fail; } while(0); |
15448 | } |
15449 | arg1 = reinterpret_cast< GWcsAZP * >(argp1); |
15450 | { |
15451 | try { |
15452 | result = ((GWcsAZP const *)arg1)->code(); |
15453 | } |
15454 | catch (const GException::out_of_range& e) { |
15455 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15456 | } |
15457 | catch (const GExceptionHandler& e) { |
15458 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15459 | } |
15460 | catch (const std::exception& e) { |
15461 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15462 | } |
15463 | } |
15464 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
15465 | return resultobj; |
15466 | fail: |
15467 | return NULL__null; |
15468 | } |
15469 | |
15470 | |
15471 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAZP_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15472 | PyObject *resultobj = 0; |
15473 | GWcsAZP *arg1 = (GWcsAZP *) 0 ; |
15474 | void *argp1 = 0 ; |
15475 | int res1 = 0 ; |
15476 | PyObject * obj0 = 0 ; |
15477 | std::string result; |
15478 | |
15479 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAZP_name",&obj0)) SWIG_failgoto fail; |
15480 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAZP, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
15481 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAZP_name" "', argument " "1"" of type '" "GWcsAZP const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAZP_name" "', argument " "1"" of type '" "GWcsAZP const *""'"); goto fail; } while(0); |
15483 | } |
15484 | arg1 = reinterpret_cast< GWcsAZP * >(argp1); |
15485 | { |
15486 | try { |
15487 | result = ((GWcsAZP const *)arg1)->name(); |
15488 | } |
15489 | catch (const GException::out_of_range& e) { |
15490 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15491 | } |
15492 | catch (const GExceptionHandler& e) { |
15493 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15494 | } |
15495 | catch (const std::exception& e) { |
15496 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15497 | } |
15498 | } |
15499 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
15500 | return resultobj; |
15501 | fail: |
15502 | return NULL__null; |
15503 | } |
15504 | |
15505 | |
15506 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsAZP_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15507 | PyObject *resultobj = 0; |
15508 | GWcsAZP *arg1 = (GWcsAZP *) 0 ; |
15509 | void *argp1 = 0 ; |
15510 | int res1 = 0 ; |
15511 | PyObject * obj0 = 0 ; |
15512 | GWcsAZP result; |
15513 | |
15514 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsAZP_copy",&obj0)) SWIG_failgoto fail; |
15515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsAZP, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16] , 0 | 0, 0); |
15516 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsAZP_copy" "', argument " "1"" of type '" "GWcsAZP *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsAZP_copy" "', argument " "1"" of type '" "GWcsAZP *""'"); goto fail; } while(0); |
15518 | } |
15519 | arg1 = reinterpret_cast< GWcsAZP * >(argp1); |
15520 | { |
15521 | try { |
15522 | result = GWcsAZP_copy(arg1); |
15523 | } |
15524 | catch (const GException::out_of_range& e) { |
15525 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15526 | } |
15527 | catch (const GExceptionHandler& e) { |
15528 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15529 | } |
15530 | catch (const std::exception& e) { |
15531 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15532 | } |
15533 | } |
15534 | resultobj = SWIG_NewPointerObj((new GWcsAZP(static_cast< const GWcsAZP& >(result))), SWIGTYPE_p_GWcsAZP, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GWcsAZP(static_cast< const GWcsAZP& >(result))), swig_types[16], 0x1 | 0); |
15535 | return resultobj; |
15536 | fail: |
15537 | return NULL__null; |
15538 | } |
15539 | |
15540 | |
15541 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcsAZP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15542 | PyObject *obj; |
15543 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
15544 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsAZPswig_types[16], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
15545 | return SWIG_Py_Void(); |
15546 | } |
15547 | |
15548 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsCAR__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15549 | PyObject *resultobj = 0; |
15550 | GWcsCAR *result = 0 ; |
15551 | |
15552 | if (!PyArg_ParseTuple(args,(char *)":new_GWcsCAR")) SWIG_failgoto fail; |
15553 | { |
15554 | try { |
15555 | result = (GWcsCAR *)new GWcsCAR(); |
15556 | } |
15557 | catch (const GException::out_of_range& e) { |
15558 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15559 | } |
15560 | catch (const GExceptionHandler& e) { |
15561 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15562 | } |
15563 | catch (const std::exception& e) { |
15564 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15565 | } |
15566 | } |
15567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsCAR, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], ( (0x1 << 1) | 0x1) | 0); |
15568 | return resultobj; |
15569 | fail: |
15570 | return NULL__null; |
15571 | } |
15572 | |
15573 | |
15574 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsCAR__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15575 | PyObject *resultobj = 0; |
15576 | std::string *arg1 = 0 ; |
15577 | double *arg2 = 0 ; |
15578 | double *arg3 = 0 ; |
15579 | double *arg4 = 0 ; |
15580 | double *arg5 = 0 ; |
15581 | double *arg6 = 0 ; |
15582 | double *arg7 = 0 ; |
15583 | int res1 = SWIG_OLDOBJ((0)) ; |
15584 | double temp2 ; |
15585 | double val2 ; |
15586 | int ecode2 = 0 ; |
15587 | double temp3 ; |
15588 | double val3 ; |
15589 | int ecode3 = 0 ; |
15590 | double temp4 ; |
15591 | double val4 ; |
15592 | int ecode4 = 0 ; |
15593 | double temp5 ; |
15594 | double val5 ; |
15595 | int ecode5 = 0 ; |
15596 | double temp6 ; |
15597 | double val6 ; |
15598 | int ecode6 = 0 ; |
15599 | double temp7 ; |
15600 | double val7 ; |
15601 | int ecode7 = 0 ; |
15602 | PyObject * obj0 = 0 ; |
15603 | PyObject * obj1 = 0 ; |
15604 | PyObject * obj2 = 0 ; |
15605 | PyObject * obj3 = 0 ; |
15606 | PyObject * obj4 = 0 ; |
15607 | PyObject * obj5 = 0 ; |
15608 | PyObject * obj6 = 0 ; |
15609 | GWcsCAR *result = 0 ; |
15610 | |
15611 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_GWcsCAR",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_failgoto fail; |
15612 | { |
15613 | std::string *ptr = (std::string *)0; |
15614 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
15615 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
15617 | } |
15618 | if (!ptr) { |
15619 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
15620 | } |
15621 | arg1 = ptr; |
15622 | } |
15623 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
15624 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
15625 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GWcsCAR" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GWcsCAR" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
15626 | } |
15627 | temp2 = static_cast< double >(val2); |
15628 | arg2 = &temp2; |
15629 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
15630 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
15631 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GWcsCAR" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GWcsCAR" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
15632 | } |
15633 | temp3 = static_cast< double >(val3); |
15634 | arg3 = &temp3; |
15635 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
15636 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
15637 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GWcsCAR" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GWcsCAR" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
15638 | } |
15639 | temp4 = static_cast< double >(val4); |
15640 | arg4 = &temp4; |
15641 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
15642 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
15643 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GWcsCAR" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GWcsCAR" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
15644 | } |
15645 | temp5 = static_cast< double >(val5); |
15646 | arg5 = &temp5; |
15647 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
15648 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
15649 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GWcsCAR" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GWcsCAR" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
15650 | } |
15651 | temp6 = static_cast< double >(val6); |
15652 | arg6 = &temp6; |
15653 | ecode7 = SWIG_AsVal_double(obj6, &val7); |
15654 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
15655 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GWcsCAR" "', argument " "7"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GWcsCAR" "', argument " "7"" of type '" "double""'"); goto fail; } while(0); |
15656 | } |
15657 | temp7 = static_cast< double >(val7); |
15658 | arg7 = &temp7; |
15659 | { |
15660 | try { |
15661 | result = (GWcsCAR *)new GWcsCAR((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(double const &)*arg7); |
15662 | } |
15663 | catch (const GException::out_of_range& e) { |
15664 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15665 | } |
15666 | catch (const GExceptionHandler& e) { |
15667 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15668 | } |
15669 | catch (const std::exception& e) { |
15670 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15671 | } |
15672 | } |
15673 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsCAR, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], ( (0x1 << 1) | 0x1) | 0); |
15674 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
15675 | return resultobj; |
15676 | fail: |
15677 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
15678 | return NULL__null; |
15679 | } |
15680 | |
15681 | |
15682 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsCAR__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15683 | PyObject *resultobj = 0; |
15684 | GWcsCAR *arg1 = 0 ; |
15685 | void *argp1 = 0 ; |
15686 | int res1 = 0 ; |
15687 | PyObject * obj0 = 0 ; |
15688 | GWcsCAR *result = 0 ; |
15689 | |
15690 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsCAR",&obj0)) SWIG_failgoto fail; |
15691 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GWcsCAR, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
15692 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "GWcsCAR const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "GWcsCAR const &""'"); goto fail; } while (0); |
15694 | } |
15695 | if (!argp1) { |
15696 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "GWcsCAR const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsCAR" "', argument " "1"" of type '" "GWcsCAR const &" "'"); goto fail; } while(0); |
15697 | } |
15698 | arg1 = reinterpret_cast< GWcsCAR * >(argp1); |
15699 | { |
15700 | try { |
15701 | result = (GWcsCAR *)new GWcsCAR((GWcsCAR const &)*arg1); |
15702 | } |
15703 | catch (const GException::out_of_range& e) { |
15704 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15705 | } |
15706 | catch (const GExceptionHandler& e) { |
15707 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15708 | } |
15709 | catch (const std::exception& e) { |
15710 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15711 | } |
15712 | } |
15713 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsCAR, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], ( (0x1 << 1) | 0x1) | 0); |
15714 | return resultobj; |
15715 | fail: |
15716 | return NULL__null; |
15717 | } |
15718 | |
15719 | |
15720 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsCAR(PyObject *self, PyObject *args) { |
15721 | int argc; |
15722 | PyObject *argv[8]; |
15723 | int ii; |
15724 | |
15725 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
15726 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
15727 | for (ii = 0; (ii < 7) && (ii < argc); ii++) { |
15728 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
15729 | } |
15730 | if (argc == 0) { |
15731 | return _wrap_new_GWcsCAR__SWIG_0(self, args); |
15732 | } |
15733 | if (argc == 1) { |
15734 | int _v; |
15735 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GWcsCAR, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[17], 0, 0 ); |
15736 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15737 | if (_v) { |
15738 | return _wrap_new_GWcsCAR__SWIG_2(self, args); |
15739 | } |
15740 | } |
15741 | if (argc == 7) { |
15742 | int _v; |
15743 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
15744 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15745 | if (_v) { |
15746 | { |
15747 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
15748 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15749 | } |
15750 | if (_v) { |
15751 | { |
15752 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
15753 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15754 | } |
15755 | if (_v) { |
15756 | { |
15757 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
15758 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15759 | } |
15760 | if (_v) { |
15761 | { |
15762 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
15763 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15764 | } |
15765 | if (_v) { |
15766 | { |
15767 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
15768 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15769 | } |
15770 | if (_v) { |
15771 | { |
15772 | int res = SWIG_AsVal_double(argv[6], NULL__null); |
15773 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
15774 | } |
15775 | if (_v) { |
15776 | return _wrap_new_GWcsCAR__SWIG_1(self, args); |
15777 | } |
15778 | } |
15779 | } |
15780 | } |
15781 | } |
15782 | } |
15783 | } |
15784 | } |
15785 | |
15786 | fail: |
15787 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GWcsCAR'.\n" |
15788 | " Possible C/C++ prototypes are:\n" |
15789 | " GWcsCAR::GWcsCAR()\n" |
15790 | " GWcsCAR::GWcsCAR(std::string const &,double const &,double const &,double const &,double const &,double const &,double const &)\n" |
15791 | " GWcsCAR::GWcsCAR(GWcsCAR const &)\n"); |
15792 | return 0; |
15793 | } |
15794 | |
15795 | |
15796 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcsCAR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15797 | PyObject *resultobj = 0; |
15798 | GWcsCAR *arg1 = (GWcsCAR *) 0 ; |
15799 | void *argp1 = 0 ; |
15800 | int res1 = 0 ; |
15801 | PyObject * obj0 = 0 ; |
15802 | |
15803 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcsCAR",&obj0)) SWIG_failgoto fail; |
15804 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsCAR, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0x1 | 0, 0); |
15805 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcsCAR" "', argument " "1"" of type '" "GWcsCAR *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcsCAR" "', argument " "1"" of type '" "GWcsCAR *""'"); goto fail; } while(0); |
15807 | } |
15808 | arg1 = reinterpret_cast< GWcsCAR * >(argp1); |
15809 | { |
15810 | try { |
15811 | delete arg1; |
15812 | } |
15813 | catch (const GException::out_of_range& e) { |
15814 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15815 | } |
15816 | catch (const GExceptionHandler& e) { |
15817 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15818 | } |
15819 | catch (const std::exception& e) { |
15820 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15821 | } |
15822 | } |
15823 | resultobj = SWIG_Py_Void(); |
15824 | return resultobj; |
15825 | fail: |
15826 | return NULL__null; |
15827 | } |
15828 | |
15829 | |
15830 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsCAR_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15831 | PyObject *resultobj = 0; |
15832 | GWcsCAR *arg1 = (GWcsCAR *) 0 ; |
15833 | void *argp1 = 0 ; |
15834 | int res1 = 0 ; |
15835 | PyObject * obj0 = 0 ; |
15836 | |
15837 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsCAR_clear",&obj0)) SWIG_failgoto fail; |
15838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsCAR, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
15839 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsCAR_clear" "', argument " "1"" of type '" "GWcsCAR *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsCAR_clear" "', argument " "1"" of type '" "GWcsCAR *""'"); goto fail; } while(0); |
15841 | } |
15842 | arg1 = reinterpret_cast< GWcsCAR * >(argp1); |
15843 | { |
15844 | try { |
15845 | (arg1)->clear(); |
15846 | } |
15847 | catch (const GException::out_of_range& e) { |
15848 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15849 | } |
15850 | catch (const GExceptionHandler& e) { |
15851 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15852 | } |
15853 | catch (const std::exception& e) { |
15854 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15855 | } |
15856 | } |
15857 | resultobj = SWIG_Py_Void(); |
15858 | return resultobj; |
15859 | fail: |
15860 | return NULL__null; |
15861 | } |
15862 | |
15863 | |
15864 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsCAR_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15865 | PyObject *resultobj = 0; |
15866 | GWcsCAR *arg1 = (GWcsCAR *) 0 ; |
15867 | void *argp1 = 0 ; |
15868 | int res1 = 0 ; |
15869 | PyObject * obj0 = 0 ; |
15870 | GWcsCAR *result = 0 ; |
15871 | |
15872 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsCAR_clone",&obj0)) SWIG_failgoto fail; |
15873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsCAR, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
15874 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsCAR_clone" "', argument " "1"" of type '" "GWcsCAR const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsCAR_clone" "', argument " "1"" of type '" "GWcsCAR const *""'"); goto fail; } while(0); |
15876 | } |
15877 | arg1 = reinterpret_cast< GWcsCAR * >(argp1); |
15878 | { |
15879 | try { |
15880 | result = (GWcsCAR *)((GWcsCAR const *)arg1)->clone(); |
15881 | } |
15882 | catch (const GException::out_of_range& e) { |
15883 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15884 | } |
15885 | catch (const GExceptionHandler& e) { |
15886 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15887 | } |
15888 | catch (const std::exception& e) { |
15889 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15890 | } |
15891 | } |
15892 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsCAR, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[17], 0 | 0); |
15893 | return resultobj; |
15894 | fail: |
15895 | return NULL__null; |
15896 | } |
15897 | |
15898 | |
15899 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsCAR_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15900 | PyObject *resultobj = 0; |
15901 | GWcsCAR *arg1 = (GWcsCAR *) 0 ; |
15902 | void *argp1 = 0 ; |
15903 | int res1 = 0 ; |
15904 | PyObject * obj0 = 0 ; |
15905 | std::string result; |
15906 | |
15907 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsCAR_code",&obj0)) SWIG_failgoto fail; |
15908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsCAR, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
15909 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsCAR_code" "', argument " "1"" of type '" "GWcsCAR const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsCAR_code" "', argument " "1"" of type '" "GWcsCAR const *""'"); goto fail; } while(0); |
15911 | } |
15912 | arg1 = reinterpret_cast< GWcsCAR * >(argp1); |
15913 | { |
15914 | try { |
15915 | result = ((GWcsCAR const *)arg1)->code(); |
15916 | } |
15917 | catch (const GException::out_of_range& e) { |
15918 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15919 | } |
15920 | catch (const GExceptionHandler& e) { |
15921 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15922 | } |
15923 | catch (const std::exception& e) { |
15924 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15925 | } |
15926 | } |
15927 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
15928 | return resultobj; |
15929 | fail: |
15930 | return NULL__null; |
15931 | } |
15932 | |
15933 | |
15934 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsCAR_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15935 | PyObject *resultobj = 0; |
15936 | GWcsCAR *arg1 = (GWcsCAR *) 0 ; |
15937 | void *argp1 = 0 ; |
15938 | int res1 = 0 ; |
15939 | PyObject * obj0 = 0 ; |
15940 | std::string result; |
15941 | |
15942 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsCAR_name",&obj0)) SWIG_failgoto fail; |
15943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsCAR, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
15944 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsCAR_name" "', argument " "1"" of type '" "GWcsCAR const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsCAR_name" "', argument " "1"" of type '" "GWcsCAR const *""'"); goto fail; } while(0); |
15946 | } |
15947 | arg1 = reinterpret_cast< GWcsCAR * >(argp1); |
15948 | { |
15949 | try { |
15950 | result = ((GWcsCAR const *)arg1)->name(); |
15951 | } |
15952 | catch (const GException::out_of_range& e) { |
15953 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15954 | } |
15955 | catch (const GExceptionHandler& e) { |
15956 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15957 | } |
15958 | catch (const std::exception& e) { |
15959 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15960 | } |
15961 | } |
15962 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
15963 | return resultobj; |
15964 | fail: |
15965 | return NULL__null; |
15966 | } |
15967 | |
15968 | |
15969 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsCAR_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15970 | PyObject *resultobj = 0; |
15971 | GWcsCAR *arg1 = (GWcsCAR *) 0 ; |
15972 | void *argp1 = 0 ; |
15973 | int res1 = 0 ; |
15974 | PyObject * obj0 = 0 ; |
15975 | GWcsCAR result; |
15976 | |
15977 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsCAR_copy",&obj0)) SWIG_failgoto fail; |
15978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsCAR, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[17] , 0 | 0, 0); |
15979 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
15980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsCAR_copy" "', argument " "1"" of type '" "GWcsCAR *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsCAR_copy" "', argument " "1"" of type '" "GWcsCAR *""'"); goto fail; } while(0); |
15981 | } |
15982 | arg1 = reinterpret_cast< GWcsCAR * >(argp1); |
15983 | { |
15984 | try { |
15985 | result = GWcsCAR_copy(arg1); |
15986 | } |
15987 | catch (const GException::out_of_range& e) { |
15988 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
15989 | } |
15990 | catch (const GExceptionHandler& e) { |
15991 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15992 | } |
15993 | catch (const std::exception& e) { |
15994 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
15995 | } |
15996 | } |
15997 | resultobj = SWIG_NewPointerObj((new GWcsCAR(static_cast< const GWcsCAR& >(result))), SWIGTYPE_p_GWcsCAR, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GWcsCAR(static_cast< const GWcsCAR& >(result))), swig_types[17], 0x1 | 0); |
15998 | return resultobj; |
15999 | fail: |
16000 | return NULL__null; |
16001 | } |
16002 | |
16003 | |
16004 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcsCAR_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16005 | PyObject *obj; |
16006 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
16007 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsCARswig_types[17], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
16008 | return SWIG_Py_Void(); |
16009 | } |
16010 | |
16011 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsMER__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16012 | PyObject *resultobj = 0; |
16013 | GWcsMER *result = 0 ; |
16014 | |
16015 | if (!PyArg_ParseTuple(args,(char *)":new_GWcsMER")) SWIG_failgoto fail; |
16016 | { |
16017 | try { |
16018 | result = (GWcsMER *)new GWcsMER(); |
16019 | } |
16020 | catch (const GException::out_of_range& e) { |
16021 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16022 | } |
16023 | catch (const GExceptionHandler& e) { |
16024 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16025 | } |
16026 | catch (const std::exception& e) { |
16027 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16028 | } |
16029 | } |
16030 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsMER, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], ( (0x1 << 1) | 0x1) | 0); |
16031 | return resultobj; |
16032 | fail: |
16033 | return NULL__null; |
16034 | } |
16035 | |
16036 | |
16037 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsMER__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16038 | PyObject *resultobj = 0; |
16039 | std::string *arg1 = 0 ; |
16040 | double *arg2 = 0 ; |
16041 | double *arg3 = 0 ; |
16042 | double *arg4 = 0 ; |
16043 | double *arg5 = 0 ; |
16044 | double *arg6 = 0 ; |
16045 | double *arg7 = 0 ; |
16046 | int res1 = SWIG_OLDOBJ((0)) ; |
16047 | double temp2 ; |
16048 | double val2 ; |
16049 | int ecode2 = 0 ; |
16050 | double temp3 ; |
16051 | double val3 ; |
16052 | int ecode3 = 0 ; |
16053 | double temp4 ; |
16054 | double val4 ; |
16055 | int ecode4 = 0 ; |
16056 | double temp5 ; |
16057 | double val5 ; |
16058 | int ecode5 = 0 ; |
16059 | double temp6 ; |
16060 | double val6 ; |
16061 | int ecode6 = 0 ; |
16062 | double temp7 ; |
16063 | double val7 ; |
16064 | int ecode7 = 0 ; |
16065 | PyObject * obj0 = 0 ; |
16066 | PyObject * obj1 = 0 ; |
16067 | PyObject * obj2 = 0 ; |
16068 | PyObject * obj3 = 0 ; |
16069 | PyObject * obj4 = 0 ; |
16070 | PyObject * obj5 = 0 ; |
16071 | PyObject * obj6 = 0 ; |
16072 | GWcsMER *result = 0 ; |
16073 | |
16074 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_GWcsMER",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_failgoto fail; |
16075 | { |
16076 | std::string *ptr = (std::string *)0; |
16077 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
16078 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsMER" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsMER" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
16080 | } |
16081 | if (!ptr) { |
16082 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsMER" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsMER" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
16083 | } |
16084 | arg1 = ptr; |
16085 | } |
16086 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
16087 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
16088 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GWcsMER" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GWcsMER" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
16089 | } |
16090 | temp2 = static_cast< double >(val2); |
16091 | arg2 = &temp2; |
16092 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
16093 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
16094 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GWcsMER" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GWcsMER" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
16095 | } |
16096 | temp3 = static_cast< double >(val3); |
16097 | arg3 = &temp3; |
16098 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
16099 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
16100 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GWcsMER" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GWcsMER" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
16101 | } |
16102 | temp4 = static_cast< double >(val4); |
16103 | arg4 = &temp4; |
16104 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
16105 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
16106 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GWcsMER" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GWcsMER" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
16107 | } |
16108 | temp5 = static_cast< double >(val5); |
16109 | arg5 = &temp5; |
16110 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
16111 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
16112 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GWcsMER" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GWcsMER" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
16113 | } |
16114 | temp6 = static_cast< double >(val6); |
16115 | arg6 = &temp6; |
16116 | ecode7 = SWIG_AsVal_double(obj6, &val7); |
16117 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
16118 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GWcsMER" "', argument " "7"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GWcsMER" "', argument " "7"" of type '" "double""'"); goto fail; } while(0); |
16119 | } |
16120 | temp7 = static_cast< double >(val7); |
16121 | arg7 = &temp7; |
16122 | { |
16123 | try { |
16124 | result = (GWcsMER *)new GWcsMER((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(double const &)*arg7); |
16125 | } |
16126 | catch (const GException::out_of_range& e) { |
16127 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16128 | } |
16129 | catch (const GExceptionHandler& e) { |
16130 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16131 | } |
16132 | catch (const std::exception& e) { |
16133 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16134 | } |
16135 | } |
16136 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsMER, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], ( (0x1 << 1) | 0x1) | 0); |
16137 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
16138 | return resultobj; |
16139 | fail: |
16140 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
16141 | return NULL__null; |
16142 | } |
16143 | |
16144 | |
16145 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsMER__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16146 | PyObject *resultobj = 0; |
16147 | GWcsMER *arg1 = 0 ; |
16148 | void *argp1 = 0 ; |
16149 | int res1 = 0 ; |
16150 | PyObject * obj0 = 0 ; |
16151 | GWcsMER *result = 0 ; |
16152 | |
16153 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsMER",&obj0)) SWIG_failgoto fail; |
16154 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GWcsMER, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
16155 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsMER" "', argument " "1"" of type '" "GWcsMER const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsMER" "', argument " "1"" of type '" "GWcsMER const &""'"); goto fail; } while (0); |
16157 | } |
16158 | if (!argp1) { |
16159 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsMER" "', argument " "1"" of type '" "GWcsMER const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsMER" "', argument " "1"" of type '" "GWcsMER const &" "'"); goto fail; } while(0); |
16160 | } |
16161 | arg1 = reinterpret_cast< GWcsMER * >(argp1); |
16162 | { |
16163 | try { |
16164 | result = (GWcsMER *)new GWcsMER((GWcsMER const &)*arg1); |
16165 | } |
16166 | catch (const GException::out_of_range& e) { |
16167 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16168 | } |
16169 | catch (const GExceptionHandler& e) { |
16170 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16171 | } |
16172 | catch (const std::exception& e) { |
16173 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16174 | } |
16175 | } |
16176 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsMER, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], ( (0x1 << 1) | 0x1) | 0); |
16177 | return resultobj; |
16178 | fail: |
16179 | return NULL__null; |
16180 | } |
16181 | |
16182 | |
16183 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsMER(PyObject *self, PyObject *args) { |
16184 | int argc; |
16185 | PyObject *argv[8]; |
16186 | int ii; |
16187 | |
16188 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
16189 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
16190 | for (ii = 0; (ii < 7) && (ii < argc); ii++) { |
16191 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
16192 | } |
16193 | if (argc == 0) { |
16194 | return _wrap_new_GWcsMER__SWIG_0(self, args); |
16195 | } |
16196 | if (argc == 1) { |
16197 | int _v; |
16198 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GWcsMER, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[18], 0, 0 ); |
16199 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16200 | if (_v) { |
16201 | return _wrap_new_GWcsMER__SWIG_2(self, args); |
16202 | } |
16203 | } |
16204 | if (argc == 7) { |
16205 | int _v; |
16206 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
16207 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16208 | if (_v) { |
16209 | { |
16210 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
16211 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16212 | } |
16213 | if (_v) { |
16214 | { |
16215 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
16216 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16217 | } |
16218 | if (_v) { |
16219 | { |
16220 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
16221 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16222 | } |
16223 | if (_v) { |
16224 | { |
16225 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
16226 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16227 | } |
16228 | if (_v) { |
16229 | { |
16230 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
16231 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16232 | } |
16233 | if (_v) { |
16234 | { |
16235 | int res = SWIG_AsVal_double(argv[6], NULL__null); |
16236 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16237 | } |
16238 | if (_v) { |
16239 | return _wrap_new_GWcsMER__SWIG_1(self, args); |
16240 | } |
16241 | } |
16242 | } |
16243 | } |
16244 | } |
16245 | } |
16246 | } |
16247 | } |
16248 | |
16249 | fail: |
16250 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GWcsMER'.\n" |
16251 | " Possible C/C++ prototypes are:\n" |
16252 | " GWcsMER::GWcsMER()\n" |
16253 | " GWcsMER::GWcsMER(std::string const &,double const &,double const &,double const &,double const &,double const &,double const &)\n" |
16254 | " GWcsMER::GWcsMER(GWcsMER const &)\n"); |
16255 | return 0; |
16256 | } |
16257 | |
16258 | |
16259 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcsMER(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16260 | PyObject *resultobj = 0; |
16261 | GWcsMER *arg1 = (GWcsMER *) 0 ; |
16262 | void *argp1 = 0 ; |
16263 | int res1 = 0 ; |
16264 | PyObject * obj0 = 0 ; |
16265 | |
16266 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcsMER",&obj0)) SWIG_failgoto fail; |
16267 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsMER, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0x1 | 0, 0); |
16268 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcsMER" "', argument " "1"" of type '" "GWcsMER *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcsMER" "', argument " "1"" of type '" "GWcsMER *""'"); goto fail; } while(0); |
16270 | } |
16271 | arg1 = reinterpret_cast< GWcsMER * >(argp1); |
16272 | { |
16273 | try { |
16274 | delete arg1; |
16275 | } |
16276 | catch (const GException::out_of_range& e) { |
16277 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16278 | } |
16279 | catch (const GExceptionHandler& e) { |
16280 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16281 | } |
16282 | catch (const std::exception& e) { |
16283 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16284 | } |
16285 | } |
16286 | resultobj = SWIG_Py_Void(); |
16287 | return resultobj; |
16288 | fail: |
16289 | return NULL__null; |
16290 | } |
16291 | |
16292 | |
16293 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsMER_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16294 | PyObject *resultobj = 0; |
16295 | GWcsMER *arg1 = (GWcsMER *) 0 ; |
16296 | void *argp1 = 0 ; |
16297 | int res1 = 0 ; |
16298 | PyObject * obj0 = 0 ; |
16299 | |
16300 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsMER_clear",&obj0)) SWIG_failgoto fail; |
16301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsMER, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
16302 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsMER_clear" "', argument " "1"" of type '" "GWcsMER *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsMER_clear" "', argument " "1"" of type '" "GWcsMER *""'"); goto fail; } while(0); |
16304 | } |
16305 | arg1 = reinterpret_cast< GWcsMER * >(argp1); |
16306 | { |
16307 | try { |
16308 | (arg1)->clear(); |
16309 | } |
16310 | catch (const GException::out_of_range& e) { |
16311 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16312 | } |
16313 | catch (const GExceptionHandler& e) { |
16314 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16315 | } |
16316 | catch (const std::exception& e) { |
16317 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16318 | } |
16319 | } |
16320 | resultobj = SWIG_Py_Void(); |
16321 | return resultobj; |
16322 | fail: |
16323 | return NULL__null; |
16324 | } |
16325 | |
16326 | |
16327 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsMER_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16328 | PyObject *resultobj = 0; |
16329 | GWcsMER *arg1 = (GWcsMER *) 0 ; |
16330 | void *argp1 = 0 ; |
16331 | int res1 = 0 ; |
16332 | PyObject * obj0 = 0 ; |
16333 | GWcsMER *result = 0 ; |
16334 | |
16335 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsMER_clone",&obj0)) SWIG_failgoto fail; |
16336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsMER, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
16337 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsMER_clone" "', argument " "1"" of type '" "GWcsMER const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsMER_clone" "', argument " "1"" of type '" "GWcsMER const *""'"); goto fail; } while(0); |
16339 | } |
16340 | arg1 = reinterpret_cast< GWcsMER * >(argp1); |
16341 | { |
16342 | try { |
16343 | result = (GWcsMER *)((GWcsMER const *)arg1)->clone(); |
16344 | } |
16345 | catch (const GException::out_of_range& e) { |
16346 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16347 | } |
16348 | catch (const GExceptionHandler& e) { |
16349 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16350 | } |
16351 | catch (const std::exception& e) { |
16352 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16353 | } |
16354 | } |
16355 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsMER, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[18], 0 | 0); |
16356 | return resultobj; |
16357 | fail: |
16358 | return NULL__null; |
16359 | } |
16360 | |
16361 | |
16362 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsMER_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16363 | PyObject *resultobj = 0; |
16364 | GWcsMER *arg1 = (GWcsMER *) 0 ; |
16365 | void *argp1 = 0 ; |
16366 | int res1 = 0 ; |
16367 | PyObject * obj0 = 0 ; |
16368 | std::string result; |
16369 | |
16370 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsMER_code",&obj0)) SWIG_failgoto fail; |
16371 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsMER, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
16372 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsMER_code" "', argument " "1"" of type '" "GWcsMER const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsMER_code" "', argument " "1"" of type '" "GWcsMER const *""'"); goto fail; } while(0); |
16374 | } |
16375 | arg1 = reinterpret_cast< GWcsMER * >(argp1); |
16376 | { |
16377 | try { |
16378 | result = ((GWcsMER const *)arg1)->code(); |
16379 | } |
16380 | catch (const GException::out_of_range& e) { |
16381 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16382 | } |
16383 | catch (const GExceptionHandler& e) { |
16384 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16385 | } |
16386 | catch (const std::exception& e) { |
16387 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16388 | } |
16389 | } |
16390 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
16391 | return resultobj; |
16392 | fail: |
16393 | return NULL__null; |
16394 | } |
16395 | |
16396 | |
16397 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsMER_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16398 | PyObject *resultobj = 0; |
16399 | GWcsMER *arg1 = (GWcsMER *) 0 ; |
16400 | void *argp1 = 0 ; |
16401 | int res1 = 0 ; |
16402 | PyObject * obj0 = 0 ; |
16403 | std::string result; |
16404 | |
16405 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsMER_name",&obj0)) SWIG_failgoto fail; |
16406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsMER, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
16407 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsMER_name" "', argument " "1"" of type '" "GWcsMER const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsMER_name" "', argument " "1"" of type '" "GWcsMER const *""'"); goto fail; } while(0); |
16409 | } |
16410 | arg1 = reinterpret_cast< GWcsMER * >(argp1); |
16411 | { |
16412 | try { |
16413 | result = ((GWcsMER const *)arg1)->name(); |
16414 | } |
16415 | catch (const GException::out_of_range& e) { |
16416 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16417 | } |
16418 | catch (const GExceptionHandler& e) { |
16419 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16420 | } |
16421 | catch (const std::exception& e) { |
16422 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16423 | } |
16424 | } |
16425 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
16426 | return resultobj; |
16427 | fail: |
16428 | return NULL__null; |
16429 | } |
16430 | |
16431 | |
16432 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsMER_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16433 | PyObject *resultobj = 0; |
16434 | GWcsMER *arg1 = (GWcsMER *) 0 ; |
16435 | void *argp1 = 0 ; |
16436 | int res1 = 0 ; |
16437 | PyObject * obj0 = 0 ; |
16438 | GWcsMER result; |
16439 | |
16440 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsMER_copy",&obj0)) SWIG_failgoto fail; |
16441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsMER, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18] , 0 | 0, 0); |
16442 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsMER_copy" "', argument " "1"" of type '" "GWcsMER *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsMER_copy" "', argument " "1"" of type '" "GWcsMER *""'"); goto fail; } while(0); |
16444 | } |
16445 | arg1 = reinterpret_cast< GWcsMER * >(argp1); |
16446 | { |
16447 | try { |
16448 | result = GWcsMER_copy(arg1); |
16449 | } |
16450 | catch (const GException::out_of_range& e) { |
16451 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16452 | } |
16453 | catch (const GExceptionHandler& e) { |
16454 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16455 | } |
16456 | catch (const std::exception& e) { |
16457 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16458 | } |
16459 | } |
16460 | resultobj = SWIG_NewPointerObj((new GWcsMER(static_cast< const GWcsMER& >(result))), SWIGTYPE_p_GWcsMER, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GWcsMER(static_cast< const GWcsMER& >(result))), swig_types[18], 0x1 | 0); |
16461 | return resultobj; |
16462 | fail: |
16463 | return NULL__null; |
16464 | } |
16465 | |
16466 | |
16467 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcsMER_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16468 | PyObject *obj; |
16469 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
16470 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsMERswig_types[18], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
16471 | return SWIG_Py_Void(); |
16472 | } |
16473 | |
16474 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsTAN__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16475 | PyObject *resultobj = 0; |
16476 | GWcsTAN *result = 0 ; |
16477 | |
16478 | if (!PyArg_ParseTuple(args,(char *)":new_GWcsTAN")) SWIG_failgoto fail; |
16479 | { |
16480 | try { |
16481 | result = (GWcsTAN *)new GWcsTAN(); |
16482 | } |
16483 | catch (const GException::out_of_range& e) { |
16484 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16485 | } |
16486 | catch (const GExceptionHandler& e) { |
16487 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16488 | } |
16489 | catch (const std::exception& e) { |
16490 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16491 | } |
16492 | } |
16493 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsTAN, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], ( (0x1 << 1) | 0x1) | 0); |
16494 | return resultobj; |
16495 | fail: |
16496 | return NULL__null; |
16497 | } |
16498 | |
16499 | |
16500 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsTAN__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16501 | PyObject *resultobj = 0; |
16502 | std::string *arg1 = 0 ; |
16503 | double *arg2 = 0 ; |
16504 | double *arg3 = 0 ; |
16505 | double *arg4 = 0 ; |
16506 | double *arg5 = 0 ; |
16507 | double *arg6 = 0 ; |
16508 | double *arg7 = 0 ; |
16509 | int res1 = SWIG_OLDOBJ((0)) ; |
16510 | double temp2 ; |
16511 | double val2 ; |
16512 | int ecode2 = 0 ; |
16513 | double temp3 ; |
16514 | double val3 ; |
16515 | int ecode3 = 0 ; |
16516 | double temp4 ; |
16517 | double val4 ; |
16518 | int ecode4 = 0 ; |
16519 | double temp5 ; |
16520 | double val5 ; |
16521 | int ecode5 = 0 ; |
16522 | double temp6 ; |
16523 | double val6 ; |
16524 | int ecode6 = 0 ; |
16525 | double temp7 ; |
16526 | double val7 ; |
16527 | int ecode7 = 0 ; |
16528 | PyObject * obj0 = 0 ; |
16529 | PyObject * obj1 = 0 ; |
16530 | PyObject * obj2 = 0 ; |
16531 | PyObject * obj3 = 0 ; |
16532 | PyObject * obj4 = 0 ; |
16533 | PyObject * obj5 = 0 ; |
16534 | PyObject * obj6 = 0 ; |
16535 | GWcsTAN *result = 0 ; |
16536 | |
16537 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_GWcsTAN",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_failgoto fail; |
16538 | { |
16539 | std::string *ptr = (std::string *)0; |
16540 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
16541 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
16543 | } |
16544 | if (!ptr) { |
16545 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
16546 | } |
16547 | arg1 = ptr; |
16548 | } |
16549 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
16550 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
16551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GWcsTAN" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GWcsTAN" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
16552 | } |
16553 | temp2 = static_cast< double >(val2); |
16554 | arg2 = &temp2; |
16555 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
16556 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
16557 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GWcsTAN" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GWcsTAN" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
16558 | } |
16559 | temp3 = static_cast< double >(val3); |
16560 | arg3 = &temp3; |
16561 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
16562 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
16563 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GWcsTAN" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GWcsTAN" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
16564 | } |
16565 | temp4 = static_cast< double >(val4); |
16566 | arg4 = &temp4; |
16567 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
16568 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
16569 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GWcsTAN" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GWcsTAN" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
16570 | } |
16571 | temp5 = static_cast< double >(val5); |
16572 | arg5 = &temp5; |
16573 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
16574 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
16575 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GWcsTAN" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GWcsTAN" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
16576 | } |
16577 | temp6 = static_cast< double >(val6); |
16578 | arg6 = &temp6; |
16579 | ecode7 = SWIG_AsVal_double(obj6, &val7); |
16580 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
16581 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GWcsTAN" "', argument " "7"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GWcsTAN" "', argument " "7"" of type '" "double""'"); goto fail; } while(0); |
16582 | } |
16583 | temp7 = static_cast< double >(val7); |
16584 | arg7 = &temp7; |
16585 | { |
16586 | try { |
16587 | result = (GWcsTAN *)new GWcsTAN((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(double const &)*arg7); |
16588 | } |
16589 | catch (const GException::out_of_range& e) { |
16590 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16591 | } |
16592 | catch (const GExceptionHandler& e) { |
16593 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16594 | } |
16595 | catch (const std::exception& e) { |
16596 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16597 | } |
16598 | } |
16599 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsTAN, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], ( (0x1 << 1) | 0x1) | 0); |
16600 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
16601 | return resultobj; |
16602 | fail: |
16603 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
16604 | return NULL__null; |
16605 | } |
16606 | |
16607 | |
16608 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsTAN__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16609 | PyObject *resultobj = 0; |
16610 | GWcsTAN *arg1 = 0 ; |
16611 | void *argp1 = 0 ; |
16612 | int res1 = 0 ; |
16613 | PyObject * obj0 = 0 ; |
16614 | GWcsTAN *result = 0 ; |
16615 | |
16616 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsTAN",&obj0)) SWIG_failgoto fail; |
16617 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GWcsTAN, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
16618 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "GWcsTAN const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "GWcsTAN const &""'"); goto fail; } while (0); |
16620 | } |
16621 | if (!argp1) { |
16622 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "GWcsTAN const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsTAN" "', argument " "1"" of type '" "GWcsTAN const &" "'"); goto fail; } while(0); |
16623 | } |
16624 | arg1 = reinterpret_cast< GWcsTAN * >(argp1); |
16625 | { |
16626 | try { |
16627 | result = (GWcsTAN *)new GWcsTAN((GWcsTAN const &)*arg1); |
16628 | } |
16629 | catch (const GException::out_of_range& e) { |
16630 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16631 | } |
16632 | catch (const GExceptionHandler& e) { |
16633 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16634 | } |
16635 | catch (const std::exception& e) { |
16636 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16637 | } |
16638 | } |
16639 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsTAN, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], ( (0x1 << 1) | 0x1) | 0); |
16640 | return resultobj; |
16641 | fail: |
16642 | return NULL__null; |
16643 | } |
16644 | |
16645 | |
16646 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsTAN(PyObject *self, PyObject *args) { |
16647 | int argc; |
16648 | PyObject *argv[8]; |
16649 | int ii; |
16650 | |
16651 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
16652 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
16653 | for (ii = 0; (ii < 7) && (ii < argc); ii++) { |
16654 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
16655 | } |
16656 | if (argc == 0) { |
16657 | return _wrap_new_GWcsTAN__SWIG_0(self, args); |
16658 | } |
16659 | if (argc == 1) { |
16660 | int _v; |
16661 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GWcsTAN, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[21], 0, 0 ); |
16662 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16663 | if (_v) { |
16664 | return _wrap_new_GWcsTAN__SWIG_2(self, args); |
16665 | } |
16666 | } |
16667 | if (argc == 7) { |
16668 | int _v; |
16669 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
16670 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16671 | if (_v) { |
16672 | { |
16673 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
16674 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16675 | } |
16676 | if (_v) { |
16677 | { |
16678 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
16679 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16680 | } |
16681 | if (_v) { |
16682 | { |
16683 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
16684 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16685 | } |
16686 | if (_v) { |
16687 | { |
16688 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
16689 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16690 | } |
16691 | if (_v) { |
16692 | { |
16693 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
16694 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16695 | } |
16696 | if (_v) { |
16697 | { |
16698 | int res = SWIG_AsVal_double(argv[6], NULL__null); |
16699 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
16700 | } |
16701 | if (_v) { |
16702 | return _wrap_new_GWcsTAN__SWIG_1(self, args); |
16703 | } |
16704 | } |
16705 | } |
16706 | } |
16707 | } |
16708 | } |
16709 | } |
16710 | } |
16711 | |
16712 | fail: |
16713 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GWcsTAN'.\n" |
16714 | " Possible C/C++ prototypes are:\n" |
16715 | " GWcsTAN::GWcsTAN()\n" |
16716 | " GWcsTAN::GWcsTAN(std::string const &,double const &,double const &,double const &,double const &,double const &,double const &)\n" |
16717 | " GWcsTAN::GWcsTAN(GWcsTAN const &)\n"); |
16718 | return 0; |
16719 | } |
16720 | |
16721 | |
16722 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcsTAN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16723 | PyObject *resultobj = 0; |
16724 | GWcsTAN *arg1 = (GWcsTAN *) 0 ; |
16725 | void *argp1 = 0 ; |
16726 | int res1 = 0 ; |
16727 | PyObject * obj0 = 0 ; |
16728 | |
16729 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcsTAN",&obj0)) SWIG_failgoto fail; |
16730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsTAN, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0x1 | 0, 0); |
16731 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcsTAN" "', argument " "1"" of type '" "GWcsTAN *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcsTAN" "', argument " "1"" of type '" "GWcsTAN *""'"); goto fail; } while(0); |
16733 | } |
16734 | arg1 = reinterpret_cast< GWcsTAN * >(argp1); |
16735 | { |
16736 | try { |
16737 | delete arg1; |
16738 | } |
16739 | catch (const GException::out_of_range& e) { |
16740 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16741 | } |
16742 | catch (const GExceptionHandler& e) { |
16743 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16744 | } |
16745 | catch (const std::exception& e) { |
16746 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16747 | } |
16748 | } |
16749 | resultobj = SWIG_Py_Void(); |
16750 | return resultobj; |
16751 | fail: |
16752 | return NULL__null; |
16753 | } |
16754 | |
16755 | |
16756 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsTAN_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16757 | PyObject *resultobj = 0; |
16758 | GWcsTAN *arg1 = (GWcsTAN *) 0 ; |
16759 | void *argp1 = 0 ; |
16760 | int res1 = 0 ; |
16761 | PyObject * obj0 = 0 ; |
16762 | |
16763 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsTAN_clear",&obj0)) SWIG_failgoto fail; |
16764 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsTAN, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
16765 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsTAN_clear" "', argument " "1"" of type '" "GWcsTAN *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsTAN_clear" "', argument " "1"" of type '" "GWcsTAN *""'"); goto fail; } while(0); |
16767 | } |
16768 | arg1 = reinterpret_cast< GWcsTAN * >(argp1); |
16769 | { |
16770 | try { |
16771 | (arg1)->clear(); |
16772 | } |
16773 | catch (const GException::out_of_range& e) { |
16774 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16775 | } |
16776 | catch (const GExceptionHandler& e) { |
16777 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16778 | } |
16779 | catch (const std::exception& e) { |
16780 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16781 | } |
16782 | } |
16783 | resultobj = SWIG_Py_Void(); |
16784 | return resultobj; |
16785 | fail: |
16786 | return NULL__null; |
16787 | } |
16788 | |
16789 | |
16790 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsTAN_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16791 | PyObject *resultobj = 0; |
16792 | GWcsTAN *arg1 = (GWcsTAN *) 0 ; |
16793 | void *argp1 = 0 ; |
16794 | int res1 = 0 ; |
16795 | PyObject * obj0 = 0 ; |
16796 | GWcsTAN *result = 0 ; |
16797 | |
16798 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsTAN_clone",&obj0)) SWIG_failgoto fail; |
16799 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsTAN, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
16800 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16801 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsTAN_clone" "', argument " "1"" of type '" "GWcsTAN const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsTAN_clone" "', argument " "1"" of type '" "GWcsTAN const *""'"); goto fail; } while(0); |
16802 | } |
16803 | arg1 = reinterpret_cast< GWcsTAN * >(argp1); |
16804 | { |
16805 | try { |
16806 | result = (GWcsTAN *)((GWcsTAN const *)arg1)->clone(); |
16807 | } |
16808 | catch (const GException::out_of_range& e) { |
16809 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16810 | } |
16811 | catch (const GExceptionHandler& e) { |
16812 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16813 | } |
16814 | catch (const std::exception& e) { |
16815 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16816 | } |
16817 | } |
16818 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsTAN, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[21], 0 | 0); |
16819 | return resultobj; |
16820 | fail: |
16821 | return NULL__null; |
16822 | } |
16823 | |
16824 | |
16825 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsTAN_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16826 | PyObject *resultobj = 0; |
16827 | GWcsTAN *arg1 = (GWcsTAN *) 0 ; |
16828 | void *argp1 = 0 ; |
16829 | int res1 = 0 ; |
16830 | PyObject * obj0 = 0 ; |
16831 | std::string result; |
16832 | |
16833 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsTAN_code",&obj0)) SWIG_failgoto fail; |
16834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsTAN, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
16835 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsTAN_code" "', argument " "1"" of type '" "GWcsTAN const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsTAN_code" "', argument " "1"" of type '" "GWcsTAN const *""'"); goto fail; } while(0); |
16837 | } |
16838 | arg1 = reinterpret_cast< GWcsTAN * >(argp1); |
16839 | { |
16840 | try { |
16841 | result = ((GWcsTAN const *)arg1)->code(); |
16842 | } |
16843 | catch (const GException::out_of_range& e) { |
16844 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16845 | } |
16846 | catch (const GExceptionHandler& e) { |
16847 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16848 | } |
16849 | catch (const std::exception& e) { |
16850 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16851 | } |
16852 | } |
16853 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
16854 | return resultobj; |
16855 | fail: |
16856 | return NULL__null; |
16857 | } |
16858 | |
16859 | |
16860 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsTAN_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16861 | PyObject *resultobj = 0; |
16862 | GWcsTAN *arg1 = (GWcsTAN *) 0 ; |
16863 | void *argp1 = 0 ; |
16864 | int res1 = 0 ; |
16865 | PyObject * obj0 = 0 ; |
16866 | std::string result; |
16867 | |
16868 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsTAN_name",&obj0)) SWIG_failgoto fail; |
16869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsTAN, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
16870 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsTAN_name" "', argument " "1"" of type '" "GWcsTAN const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsTAN_name" "', argument " "1"" of type '" "GWcsTAN const *""'"); goto fail; } while(0); |
16872 | } |
16873 | arg1 = reinterpret_cast< GWcsTAN * >(argp1); |
16874 | { |
16875 | try { |
16876 | result = ((GWcsTAN const *)arg1)->name(); |
16877 | } |
16878 | catch (const GException::out_of_range& e) { |
16879 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16880 | } |
16881 | catch (const GExceptionHandler& e) { |
16882 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16883 | } |
16884 | catch (const std::exception& e) { |
16885 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16886 | } |
16887 | } |
16888 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
16889 | return resultobj; |
16890 | fail: |
16891 | return NULL__null; |
16892 | } |
16893 | |
16894 | |
16895 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsTAN_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16896 | PyObject *resultobj = 0; |
16897 | GWcsTAN *arg1 = (GWcsTAN *) 0 ; |
16898 | void *argp1 = 0 ; |
16899 | int res1 = 0 ; |
16900 | PyObject * obj0 = 0 ; |
16901 | GWcsTAN result; |
16902 | |
16903 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsTAN_copy",&obj0)) SWIG_failgoto fail; |
16904 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsTAN, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21] , 0 | 0, 0); |
16905 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
16906 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsTAN_copy" "', argument " "1"" of type '" "GWcsTAN *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsTAN_copy" "', argument " "1"" of type '" "GWcsTAN *""'"); goto fail; } while(0); |
16907 | } |
16908 | arg1 = reinterpret_cast< GWcsTAN * >(argp1); |
16909 | { |
16910 | try { |
16911 | result = GWcsTAN_copy(arg1); |
16912 | } |
16913 | catch (const GException::out_of_range& e) { |
16914 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16915 | } |
16916 | catch (const GExceptionHandler& e) { |
16917 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16918 | } |
16919 | catch (const std::exception& e) { |
16920 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16921 | } |
16922 | } |
16923 | resultobj = SWIG_NewPointerObj((new GWcsTAN(static_cast< const GWcsTAN& >(result))), SWIGTYPE_p_GWcsTAN, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GWcsTAN(static_cast< const GWcsTAN& >(result))), swig_types[21], 0x1 | 0); |
16924 | return resultobj; |
16925 | fail: |
16926 | return NULL__null; |
16927 | } |
16928 | |
16929 | |
16930 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcsTAN_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16931 | PyObject *obj; |
16932 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
16933 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsTANswig_types[21], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
16934 | return SWIG_Py_Void(); |
16935 | } |
16936 | |
16937 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsSTG__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16938 | PyObject *resultobj = 0; |
16939 | GWcsSTG *result = 0 ; |
16940 | |
16941 | if (!PyArg_ParseTuple(args,(char *)":new_GWcsSTG")) SWIG_failgoto fail; |
16942 | { |
16943 | try { |
16944 | result = (GWcsSTG *)new GWcsSTG(); |
16945 | } |
16946 | catch (const GException::out_of_range& e) { |
16947 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
16948 | } |
16949 | catch (const GExceptionHandler& e) { |
16950 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16951 | } |
16952 | catch (const std::exception& e) { |
16953 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
16954 | } |
16955 | } |
16956 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsSTG, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], ( (0x1 << 1) | 0x1) | 0); |
16957 | return resultobj; |
16958 | fail: |
16959 | return NULL__null; |
16960 | } |
16961 | |
16962 | |
16963 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsSTG__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16964 | PyObject *resultobj = 0; |
16965 | std::string *arg1 = 0 ; |
16966 | double *arg2 = 0 ; |
16967 | double *arg3 = 0 ; |
16968 | double *arg4 = 0 ; |
16969 | double *arg5 = 0 ; |
16970 | double *arg6 = 0 ; |
16971 | double *arg7 = 0 ; |
16972 | int res1 = SWIG_OLDOBJ((0)) ; |
16973 | double temp2 ; |
16974 | double val2 ; |
16975 | int ecode2 = 0 ; |
16976 | double temp3 ; |
16977 | double val3 ; |
16978 | int ecode3 = 0 ; |
16979 | double temp4 ; |
16980 | double val4 ; |
16981 | int ecode4 = 0 ; |
16982 | double temp5 ; |
16983 | double val5 ; |
16984 | int ecode5 = 0 ; |
16985 | double temp6 ; |
16986 | double val6 ; |
16987 | int ecode6 = 0 ; |
16988 | double temp7 ; |
16989 | double val7 ; |
16990 | int ecode7 = 0 ; |
16991 | PyObject * obj0 = 0 ; |
16992 | PyObject * obj1 = 0 ; |
16993 | PyObject * obj2 = 0 ; |
16994 | PyObject * obj3 = 0 ; |
16995 | PyObject * obj4 = 0 ; |
16996 | PyObject * obj5 = 0 ; |
16997 | PyObject * obj6 = 0 ; |
16998 | GWcsSTG *result = 0 ; |
16999 | |
17000 | if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:new_GWcsSTG",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_failgoto fail; |
17001 | { |
17002 | std::string *ptr = (std::string *)0; |
17003 | res1 = SWIG_AsPtr_std_string(obj0, &ptr); |
17004 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "std::string const &""'"); goto fail; } while (0); |
17006 | } |
17007 | if (!ptr) { |
17008 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "std::string const &" "'"); goto fail; } while(0); |
17009 | } |
17010 | arg1 = ptr; |
17011 | } |
17012 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
17013 | if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) { |
17014 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GWcsSTG" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 != (-1)) ? ecode2 : -5)), "in method '" "new_GWcsSTG" "', argument " "2"" of type '" "double""'"); goto fail; } while(0); |
17015 | } |
17016 | temp2 = static_cast< double >(val2); |
17017 | arg2 = &temp2; |
17018 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
17019 | if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) { |
17020 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GWcsSTG" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 != (-1)) ? ecode3 : -5)), "in method '" "new_GWcsSTG" "', argument " "3"" of type '" "double""'"); goto fail; } while(0); |
17021 | } |
17022 | temp3 = static_cast< double >(val3); |
17023 | arg3 = &temp3; |
17024 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
17025 | if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) { |
17026 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GWcsSTG" "', argument " "4"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 != (-1)) ? ecode4 : -5)), "in method '" "new_GWcsSTG" "', argument " "4"" of type '" "double""'"); goto fail; } while(0); |
17027 | } |
17028 | temp4 = static_cast< double >(val4); |
17029 | arg4 = &temp4; |
17030 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
17031 | if (!SWIG_IsOK(ecode5)(ecode5 >= 0)) { |
17032 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GWcsSTG" "', argument " "5"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode5 != (-1)) ? ecode5 : -5)), "in method '" "new_GWcsSTG" "', argument " "5"" of type '" "double""'"); goto fail; } while(0); |
17033 | } |
17034 | temp5 = static_cast< double >(val5); |
17035 | arg5 = &temp5; |
17036 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
17037 | if (!SWIG_IsOK(ecode6)(ecode6 >= 0)) { |
17038 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GWcsSTG" "', argument " "6"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode6 != (-1)) ? ecode6 : -5)), "in method '" "new_GWcsSTG" "', argument " "6"" of type '" "double""'"); goto fail; } while(0); |
17039 | } |
17040 | temp6 = static_cast< double >(val6); |
17041 | arg6 = &temp6; |
17042 | ecode7 = SWIG_AsVal_double(obj6, &val7); |
17043 | if (!SWIG_IsOK(ecode7)(ecode7 >= 0)) { |
17044 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_GWcsSTG" "', argument " "7"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode7 != (-1)) ? ecode7 : -5)), "in method '" "new_GWcsSTG" "', argument " "7"" of type '" "double""'"); goto fail; } while(0); |
17045 | } |
17046 | temp7 = static_cast< double >(val7); |
17047 | arg7 = &temp7; |
17048 | { |
17049 | try { |
17050 | result = (GWcsSTG *)new GWcsSTG((std::string const &)*arg1,(double const &)*arg2,(double const &)*arg3,(double const &)*arg4,(double const &)*arg5,(double const &)*arg6,(double const &)*arg7); |
17051 | } |
17052 | catch (const GException::out_of_range& e) { |
17053 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17054 | } |
17055 | catch (const GExceptionHandler& e) { |
17056 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17057 | } |
17058 | catch (const std::exception& e) { |
17059 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17060 | } |
17061 | } |
17062 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsSTG, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], ( (0x1 << 1) | 0x1) | 0); |
17063 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
17064 | return resultobj; |
17065 | fail: |
17066 | if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) << 1)))) delete arg1; |
17067 | return NULL__null; |
17068 | } |
17069 | |
17070 | |
17071 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsSTG__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17072 | PyObject *resultobj = 0; |
17073 | GWcsSTG *arg1 = 0 ; |
17074 | void *argp1 = 0 ; |
17075 | int res1 = 0 ; |
17076 | PyObject * obj0 = 0 ; |
17077 | GWcsSTG *result = 0 ; |
17078 | |
17079 | if (!PyArg_ParseTuple(args,(char *)"O:new_GWcsSTG",&obj0)) SWIG_failgoto fail; |
17080 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GWcsSTG, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
17081 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17082 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "GWcsSTG const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "GWcsSTG const &""'"); goto fail; } while (0); |
17083 | } |
17084 | if (!argp1) { |
17085 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "GWcsSTG const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference " "in method '" "new_GWcsSTG" "', argument " "1"" of type '" "GWcsSTG const &" "'"); goto fail; } while(0); |
17086 | } |
17087 | arg1 = reinterpret_cast< GWcsSTG * >(argp1); |
17088 | { |
17089 | try { |
17090 | result = (GWcsSTG *)new GWcsSTG((GWcsSTG const &)*arg1); |
17091 | } |
17092 | catch (const GException::out_of_range& e) { |
17093 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17094 | } |
17095 | catch (const GExceptionHandler& e) { |
17096 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17097 | } |
17098 | catch (const std::exception& e) { |
17099 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17100 | } |
17101 | } |
17102 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsSTG, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], ( (0x1 << 1) | 0x1) | 0); |
17103 | return resultobj; |
17104 | fail: |
17105 | return NULL__null; |
17106 | } |
17107 | |
17108 | |
17109 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GWcsSTG(PyObject *self, PyObject *args) { |
17110 | int argc; |
17111 | PyObject *argv[8]; |
17112 | int ii; |
17113 | |
17114 | if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L <<26))) != 0)) SWIG_failgoto fail; |
17115 | argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0; |
17116 | for (ii = 0; (ii < 7) && (ii < argc); ii++) { |
17117 | argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]); |
17118 | } |
17119 | if (argc == 0) { |
17120 | return _wrap_new_GWcsSTG__SWIG_0(self, args); |
17121 | } |
17122 | if (argc == 1) { |
17123 | int _v; |
17124 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GWcsSTG, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[20], 0, 0 ); |
17125 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17126 | if (_v) { |
17127 | return _wrap_new_GWcsSTG__SWIG_2(self, args); |
17128 | } |
17129 | } |
17130 | if (argc == 7) { |
17131 | int _v; |
17132 | int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0)); |
17133 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17134 | if (_v) { |
17135 | { |
17136 | int res = SWIG_AsVal_double(argv[1], NULL__null); |
17137 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17138 | } |
17139 | if (_v) { |
17140 | { |
17141 | int res = SWIG_AsVal_double(argv[2], NULL__null); |
17142 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17143 | } |
17144 | if (_v) { |
17145 | { |
17146 | int res = SWIG_AsVal_double(argv[3], NULL__null); |
17147 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17148 | } |
17149 | if (_v) { |
17150 | { |
17151 | int res = SWIG_AsVal_double(argv[4], NULL__null); |
17152 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17153 | } |
17154 | if (_v) { |
17155 | { |
17156 | int res = SWIG_AsVal_double(argv[5], NULL__null); |
17157 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17158 | } |
17159 | if (_v) { |
17160 | { |
17161 | int res = SWIG_AsVal_double(argv[6], NULL__null); |
17162 | _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0); |
17163 | } |
17164 | if (_v) { |
17165 | return _wrap_new_GWcsSTG__SWIG_1(self, args); |
17166 | } |
17167 | } |
17168 | } |
17169 | } |
17170 | } |
17171 | } |
17172 | } |
17173 | } |
17174 | |
17175 | fail: |
17176 | SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GWcsSTG'.\n" |
17177 | " Possible C/C++ prototypes are:\n" |
17178 | " GWcsSTG::GWcsSTG()\n" |
17179 | " GWcsSTG::GWcsSTG(std::string const &,double const &,double const &,double const &,double const &,double const &,double const &)\n" |
17180 | " GWcsSTG::GWcsSTG(GWcsSTG const &)\n"); |
17181 | return 0; |
17182 | } |
17183 | |
17184 | |
17185 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GWcsSTG(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17186 | PyObject *resultobj = 0; |
17187 | GWcsSTG *arg1 = (GWcsSTG *) 0 ; |
17188 | void *argp1 = 0 ; |
17189 | int res1 = 0 ; |
17190 | PyObject * obj0 = 0 ; |
17191 | |
17192 | if (!PyArg_ParseTuple(args,(char *)"O:delete_GWcsSTG",&obj0)) SWIG_failgoto fail; |
17193 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsSTG, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0x1 | 0, 0); |
17194 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17195 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GWcsSTG" "', argument " "1"" of type '" "GWcsSTG *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "delete_GWcsSTG" "', argument " "1"" of type '" "GWcsSTG *""'"); goto fail; } while(0); |
17196 | } |
17197 | arg1 = reinterpret_cast< GWcsSTG * >(argp1); |
17198 | { |
17199 | try { |
17200 | delete arg1; |
17201 | } |
17202 | catch (const GException::out_of_range& e) { |
17203 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17204 | } |
17205 | catch (const GExceptionHandler& e) { |
17206 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17207 | } |
17208 | catch (const std::exception& e) { |
17209 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17210 | } |
17211 | } |
17212 | resultobj = SWIG_Py_Void(); |
17213 | return resultobj; |
17214 | fail: |
17215 | return NULL__null; |
17216 | } |
17217 | |
17218 | |
17219 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsSTG_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17220 | PyObject *resultobj = 0; |
17221 | GWcsSTG *arg1 = (GWcsSTG *) 0 ; |
17222 | void *argp1 = 0 ; |
17223 | int res1 = 0 ; |
17224 | PyObject * obj0 = 0 ; |
17225 | |
17226 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsSTG_clear",&obj0)) SWIG_failgoto fail; |
17227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsSTG, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
17228 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsSTG_clear" "', argument " "1"" of type '" "GWcsSTG *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsSTG_clear" "', argument " "1"" of type '" "GWcsSTG *""'"); goto fail; } while(0); |
17230 | } |
17231 | arg1 = reinterpret_cast< GWcsSTG * >(argp1); |
17232 | { |
17233 | try { |
17234 | (arg1)->clear(); |
17235 | } |
17236 | catch (const GException::out_of_range& e) { |
17237 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17238 | } |
17239 | catch (const GExceptionHandler& e) { |
17240 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17241 | } |
17242 | catch (const std::exception& e) { |
17243 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17244 | } |
17245 | } |
17246 | resultobj = SWIG_Py_Void(); |
17247 | return resultobj; |
17248 | fail: |
17249 | return NULL__null; |
17250 | } |
17251 | |
17252 | |
17253 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsSTG_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17254 | PyObject *resultobj = 0; |
17255 | GWcsSTG *arg1 = (GWcsSTG *) 0 ; |
17256 | void *argp1 = 0 ; |
17257 | int res1 = 0 ; |
17258 | PyObject * obj0 = 0 ; |
17259 | GWcsSTG *result = 0 ; |
17260 | |
17261 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsSTG_clone",&obj0)) SWIG_failgoto fail; |
17262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsSTG, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
17263 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsSTG_clone" "', argument " "1"" of type '" "GWcsSTG const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsSTG_clone" "', argument " "1"" of type '" "GWcsSTG const *""'"); goto fail; } while(0); |
17265 | } |
17266 | arg1 = reinterpret_cast< GWcsSTG * >(argp1); |
17267 | { |
17268 | try { |
17269 | result = (GWcsSTG *)((GWcsSTG const *)arg1)->clone(); |
17270 | } |
17271 | catch (const GException::out_of_range& e) { |
17272 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17273 | } |
17274 | catch (const GExceptionHandler& e) { |
17275 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17276 | } |
17277 | catch (const std::exception& e) { |
17278 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17279 | } |
17280 | } |
17281 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GWcsSTG, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >( static_cast< const void * >(result)), swig_types[20], 0 | 0); |
17282 | return resultobj; |
17283 | fail: |
17284 | return NULL__null; |
17285 | } |
17286 | |
17287 | |
17288 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsSTG_code(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17289 | PyObject *resultobj = 0; |
17290 | GWcsSTG *arg1 = (GWcsSTG *) 0 ; |
17291 | void *argp1 = 0 ; |
17292 | int res1 = 0 ; |
17293 | PyObject * obj0 = 0 ; |
17294 | std::string result; |
17295 | |
17296 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsSTG_code",&obj0)) SWIG_failgoto fail; |
17297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsSTG, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
17298 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsSTG_code" "', argument " "1"" of type '" "GWcsSTG const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsSTG_code" "', argument " "1"" of type '" "GWcsSTG const *""'"); goto fail; } while(0); |
17300 | } |
17301 | arg1 = reinterpret_cast< GWcsSTG * >(argp1); |
17302 | { |
17303 | try { |
17304 | result = ((GWcsSTG const *)arg1)->code(); |
17305 | } |
17306 | catch (const GException::out_of_range& e) { |
17307 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17308 | } |
17309 | catch (const GExceptionHandler& e) { |
17310 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17311 | } |
17312 | catch (const std::exception& e) { |
17313 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17314 | } |
17315 | } |
17316 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
17317 | return resultobj; |
17318 | fail: |
17319 | return NULL__null; |
17320 | } |
17321 | |
17322 | |
17323 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsSTG_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17324 | PyObject *resultobj = 0; |
17325 | GWcsSTG *arg1 = (GWcsSTG *) 0 ; |
17326 | void *argp1 = 0 ; |
17327 | int res1 = 0 ; |
17328 | PyObject * obj0 = 0 ; |
17329 | std::string result; |
17330 | |
17331 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsSTG_name",&obj0)) SWIG_failgoto fail; |
17332 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsSTG, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
17333 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsSTG_name" "', argument " "1"" of type '" "GWcsSTG const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsSTG_name" "', argument " "1"" of type '" "GWcsSTG const *""'"); goto fail; } while(0); |
17335 | } |
17336 | arg1 = reinterpret_cast< GWcsSTG * >(argp1); |
17337 | { |
17338 | try { |
17339 | result = ((GWcsSTG const *)arg1)->name(); |
17340 | } |
17341 | catch (const GException::out_of_range& e) { |
17342 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17343 | } |
17344 | catch (const GExceptionHandler& e) { |
17345 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17346 | } |
17347 | catch (const std::exception& e) { |
17348 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17349 | } |
17350 | } |
17351 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
17352 | return resultobj; |
17353 | fail: |
17354 | return NULL__null; |
17355 | } |
17356 | |
17357 | |
17358 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GWcsSTG_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17359 | PyObject *resultobj = 0; |
17360 | GWcsSTG *arg1 = (GWcsSTG *) 0 ; |
17361 | void *argp1 = 0 ; |
17362 | int res1 = 0 ; |
17363 | PyObject * obj0 = 0 ; |
17364 | GWcsSTG result; |
17365 | |
17366 | if (!PyArg_ParseTuple(args,(char *)"O:GWcsSTG_copy",&obj0)) SWIG_failgoto fail; |
17367 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GWcsSTG, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20] , 0 | 0, 0); |
17368 | if (!SWIG_IsOK(res1)(res1 >= 0)) { |
17369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GWcsSTG_copy" "', argument " "1"" of type '" "GWcsSTG *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != ( -1)) ? res1 : -5)), "in method '" "GWcsSTG_copy" "', argument " "1"" of type '" "GWcsSTG *""'"); goto fail; } while(0); |
17370 | } |
17371 | arg1 = reinterpret_cast< GWcsSTG * >(argp1); |
17372 | { |
17373 | try { |
17374 | result = GWcsSTG_copy(arg1); |
17375 | } |
17376 | catch (const GException::out_of_range& e) { |
17377 | SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what ()); goto fail;; } while(0); |
17378 | } |
17379 | catch (const GExceptionHandler& e) { |
17380 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17381 | } |
17382 | catch (const std::exception& e) { |
17383 | SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what ()); goto fail;; } while(0); |
17384 | } |
17385 | } |
17386 | resultobj = SWIG_NewPointerObj((new GWcsSTG(static_cast< const GWcsSTG& >(result))), SWIGTYPE_p_GWcsSTG, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GWcsSTG(static_cast< const GWcsSTG& >(result))), swig_types[20], 0x1 | 0); |
17387 | return resultobj; |
17388 | fail: |
17389 | return NULL__null; |
17390 | } |
17391 | |
17392 | |
17393 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GWcsSTG_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17394 | PyObject *obj; |
17395 | if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null; |
17396 | SWIG_TypeNewClientData(SWIGTYPE_p_GWcsSTGswig_types[20], SWIG_NewClientData(obj)SwigPyClientData_New(obj)); |
17397 | return SWIG_Py_Void(); |
17398 | } |
17399 | |
17400 | static PyMethodDef SwigMethods[] = { |
17401 | { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null}, |
17402 | { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"}, |
17403 | { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"}, |
17404 | { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n" |
17405 | "incr(size_t n=1) -> SwigPyIterator\n" |
17406 | "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n" |
17407 | ""}, |
17408 | { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n" |
17409 | "decr(size_t n=1) -> SwigPyIterator\n" |
17410 | "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n" |
17411 | ""}, |
17412 | { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"}, |
17413 | { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
17414 | { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"}, |
17415 | { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"}, |
17416 | { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"}, |
17417 | { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"}, |
17418 | { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
17419 | { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
17420 | { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"}, |
17421 | { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
17422 | { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
17423 | { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"}, |
17424 | { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n" |
17425 | "__sub__(ptrdiff_t n) -> SwigPyIterator\n" |
17426 | "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n" |
17427 | ""}, |
17428 | { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null}, |
17429 | { (char *)"new_GSkyDir", _wrap_new_GSkyDir, METH_VARARGS0x0001, (char *)"\n" |
17430 | "GSkyDir()\n" |
17431 | "new_GSkyDir(GSkyDir dir) -> GSkyDir\n" |
17432 | ""}, |
17433 | { (char *)"delete_GSkyDir", _wrap_delete_GSkyDir, METH_VARARGS0x0001, (char *)"delete_GSkyDir(GSkyDir self)"}, |
17434 | { (char *)"GSkyDir_clear", _wrap_GSkyDir_clear, METH_VARARGS0x0001, (char *)"GSkyDir_clear(GSkyDir self)"}, |
17435 | { (char *)"GSkyDir_clone", _wrap_GSkyDir_clone, METH_VARARGS0x0001, (char *)"GSkyDir_clone(GSkyDir self) -> GSkyDir"}, |
17436 | { (char *)"GSkyDir_radec", _wrap_GSkyDir_radec, METH_VARARGS0x0001, (char *)"GSkyDir_radec(GSkyDir self, double const & ra, double const & dec)"}, |
17437 | { (char *)"GSkyDir_radec_deg", _wrap_GSkyDir_radec_deg, METH_VARARGS0x0001, (char *)"GSkyDir_radec_deg(GSkyDir self, double const & ra, double const & dec)"}, |
17438 | { (char *)"GSkyDir_lb", _wrap_GSkyDir_lb, METH_VARARGS0x0001, (char *)"GSkyDir_lb(GSkyDir self, double const & l, double const & b)"}, |
17439 | { (char *)"GSkyDir_lb_deg", _wrap_GSkyDir_lb_deg, METH_VARARGS0x0001, (char *)"GSkyDir_lb_deg(GSkyDir self, double const & l, double const & b)"}, |
17440 | { (char *)"GSkyDir_rotate_deg", _wrap_GSkyDir_rotate_deg, METH_VARARGS0x0001, (char *)"GSkyDir_rotate_deg(GSkyDir self, double const & phi, double const & theta)"}, |
17441 | { (char *)"GSkyDir_l", _wrap_GSkyDir_l, METH_VARARGS0x0001, (char *)"GSkyDir_l(GSkyDir self) -> double const &"}, |
17442 | { (char *)"GSkyDir_b", _wrap_GSkyDir_b, METH_VARARGS0x0001, (char *)"GSkyDir_b(GSkyDir self) -> double const &"}, |
17443 | { (char *)"GSkyDir_ra", _wrap_GSkyDir_ra, METH_VARARGS0x0001, (char *)"GSkyDir_ra(GSkyDir self) -> double const &"}, |
17444 | { (char *)"GSkyDir_dec", _wrap_GSkyDir_dec, METH_VARARGS0x0001, (char *)"GSkyDir_dec(GSkyDir self) -> double const &"}, |
17445 | { (char *)"GSkyDir_l_deg", _wrap_GSkyDir_l_deg, METH_VARARGS0x0001, (char *)"GSkyDir_l_deg(GSkyDir self) -> double"}, |
17446 | { (char *)"GSkyDir_b_deg", _wrap_GSkyDir_b_deg, METH_VARARGS0x0001, (char *)"GSkyDir_b_deg(GSkyDir self) -> double"}, |
17447 | { (char *)"GSkyDir_ra_deg", _wrap_GSkyDir_ra_deg, METH_VARARGS0x0001, (char *)"GSkyDir_ra_deg(GSkyDir self) -> double"}, |
17448 | { (char *)"GSkyDir_dec_deg", _wrap_GSkyDir_dec_deg, METH_VARARGS0x0001, (char *)"GSkyDir_dec_deg(GSkyDir self) -> double"}, |
17449 | { (char *)"GSkyDir_celvector", _wrap_GSkyDir_celvector, METH_VARARGS0x0001, (char *)"\n" |
17450 | "celvector(GVector const & vector)\n" |
17451 | "GSkyDir_celvector(GSkyDir self) -> GVector\n" |
17452 | ""}, |
17453 | { (char *)"GSkyDir_dist", _wrap_GSkyDir_dist, METH_VARARGS0x0001, (char *)"GSkyDir_dist(GSkyDir self, GSkyDir dir) -> double"}, |
17454 | { (char *)"GSkyDir_dist_deg", _wrap_GSkyDir_dist_deg, METH_VARARGS0x0001, (char *)"GSkyDir_dist_deg(GSkyDir self, GSkyDir dir) -> double"}, |
17455 | { (char *)"GSkyDir_posang", _wrap_GSkyDir_posang, METH_VARARGS0x0001, (char *)"GSkyDir_posang(GSkyDir self, GSkyDir dir) -> double"}, |
17456 | { (char *)"GSkyDir_posang_deg", _wrap_GSkyDir_posang_deg, METH_VARARGS0x0001, (char *)"GSkyDir_posang_deg(GSkyDir self, GSkyDir dir) -> double"}, |
17457 | { (char *)"GSkyDir___eq__", _wrap_GSkyDir___eq__, METH_VARARGS0x0001, (char *)"GSkyDir___eq__(GSkyDir self, GSkyDir dir) -> bool"}, |
17458 | { (char *)"GSkyDir___ne__", _wrap_GSkyDir___ne__, METH_VARARGS0x0001, (char *)"GSkyDir___ne__(GSkyDir self, GSkyDir dir) -> bool"}, |
17459 | { (char *)"GSkyDir_copy", _wrap_GSkyDir_copy, METH_VARARGS0x0001, (char *)"GSkyDir_copy(GSkyDir self) -> GSkyDir"}, |
17460 | { (char *)"GSkyDir_swigregister", GSkyDir_swigregister, METH_VARARGS0x0001, NULL__null}, |
17461 | { (char *)"new_GSkyPixel", _wrap_new_GSkyPixel, METH_VARARGS0x0001, (char *)"\n" |
17462 | "GSkyPixel()\n" |
17463 | "GSkyPixel(int const & index)\n" |
17464 | "GSkyPixel(double const & index)\n" |
17465 | "GSkyPixel(int const & x, int const & y)\n" |
17466 | "GSkyPixel(double const & x, double const & y)\n" |
17467 | "new_GSkyPixel(GSkyPixel pixel) -> GSkyPixel\n" |
17468 | ""}, |
17469 | { (char *)"delete_GSkyPixel", _wrap_delete_GSkyPixel, METH_VARARGS0x0001, (char *)"delete_GSkyPixel(GSkyPixel self)"}, |
17470 | { (char *)"GSkyPixel_clear", _wrap_GSkyPixel_clear, METH_VARARGS0x0001, (char *)"GSkyPixel_clear(GSkyPixel self)"}, |
17471 | { (char *)"GSkyPixel_clone", _wrap_GSkyPixel_clone, METH_VARARGS0x0001, (char *)"GSkyPixel_clone(GSkyPixel self) -> GSkyPixel"}, |
17472 | { (char *)"GSkyPixel_size", _wrap_GSkyPixel_size, METH_VARARGS0x0001, (char *)"GSkyPixel_size(GSkyPixel self) -> int"}, |
17473 | { (char *)"GSkyPixel_is1D", _wrap_GSkyPixel_is1D, METH_VARARGS0x0001, (char *)"GSkyPixel_is1D(GSkyPixel self) -> bool"}, |
17474 | { (char *)"GSkyPixel_is2D", _wrap_GSkyPixel_is2D, METH_VARARGS0x0001, (char *)"GSkyPixel_is2D(GSkyPixel self) -> bool"}, |
17475 | { (char *)"GSkyPixel_xy", _wrap_GSkyPixel_xy, METH_VARARGS0x0001, (char *)"GSkyPixel_xy(GSkyPixel self, double const & x, double const & y)"}, |
17476 | { (char *)"GSkyPixel_index", _wrap_GSkyPixel_index, METH_VARARGS0x0001, (char *)"\n" |
17477 | "index(double const & index)\n" |
17478 | "GSkyPixel_index(GSkyPixel self) -> double const &\n" |
17479 | ""}, |
17480 | { (char *)"GSkyPixel_x", _wrap_GSkyPixel_x, METH_VARARGS0x0001, (char *)"\n" |
17481 | "x(double const & x)\n" |
17482 | "GSkyPixel_x(GSkyPixel self) -> double const &\n" |
17483 | ""}, |
17484 | { (char *)"GSkyPixel_y", _wrap_GSkyPixel_y, METH_VARARGS0x0001, (char *)"\n" |
17485 | "y(double const & y)\n" |
17486 | "GSkyPixel_y(GSkyPixel self) -> double const &\n" |
17487 | ""}, |
17488 | { (char *)"GSkyPixel_copy", _wrap_GSkyPixel_copy, METH_VARARGS0x0001, (char *)"GSkyPixel_copy(GSkyPixel self) -> GSkyPixel"}, |
17489 | { (char *)"GSkyPixel_swigregister", GSkyPixel_swigregister, METH_VARARGS0x0001, NULL__null}, |
17490 | { (char *)"new_GSkymap", _wrap_new_GSkymap, METH_VARARGS0x0001, (char *)"\n" |
17491 | "GSkymap()\n" |
17492 | "GSkymap(std::string const & filename)\n" |
17493 | "GSkymap(std::string const & coords, int const & nside, std::string const & order, int const & nmaps=1)\n" |
17494 | "GSkymap(std::string const & coords, int const & nside, std::string const & order)\n" |
17495 | "GSkymap(std::string const & proj, std::string const & coords, double const & x, double const & y, \n" |
17496 | " double const & dx, double const & dy, int const & nx, int const & ny, \n" |
17497 | " int const & nmaps=1)\n" |
17498 | "GSkymap(std::string const & proj, std::string const & coords, double const & x, double const & y, \n" |
17499 | " double const & dx, double const & dy, int const & nx, int const & ny)\n" |
17500 | "new_GSkymap(GSkymap map) -> GSkymap\n" |
17501 | ""}, |
17502 | { (char *)"delete_GSkymap", _wrap_delete_GSkymap, METH_VARARGS0x0001, (char *)"delete_GSkymap(GSkymap self)"}, |
17503 | { (char *)"GSkymap_clear", _wrap_GSkymap_clear, METH_VARARGS0x0001, (char *)"GSkymap_clear(GSkymap self)"}, |
17504 | { (char *)"GSkymap_clone", _wrap_GSkymap_clone, METH_VARARGS0x0001, (char *)"GSkymap_clone(GSkymap self) -> GSkymap"}, |
17505 | { (char *)"GSkymap_npix", _wrap_GSkymap_npix, METH_VARARGS0x0001, (char *)"GSkymap_npix(GSkymap self) -> int const &"}, |
17506 | { (char *)"GSkymap_nx", _wrap_GSkymap_nx, METH_VARARGS0x0001, (char *)"GSkymap_nx(GSkymap self) -> int const &"}, |
17507 | { (char *)"GSkymap_ny", _wrap_GSkymap_ny, METH_VARARGS0x0001, (char *)"GSkymap_ny(GSkymap self) -> int const &"}, |
17508 | { (char *)"GSkymap_nmaps", _wrap_GSkymap_nmaps, METH_VARARGS0x0001, (char *)"GSkymap_nmaps(GSkymap self) -> int const &"}, |
17509 | { (char *)"GSkymap_inx2pix", _wrap_GSkymap_inx2pix, METH_VARARGS0x0001, (char *)"GSkymap_inx2pix(GSkymap self, int const & index) -> GSkyPixel"}, |
17510 | { (char *)"GSkymap_inx2dir", _wrap_GSkymap_inx2dir, METH_VARARGS0x0001, (char *)"GSkymap_inx2dir(GSkymap self, int const & index) -> GSkyDir"}, |
17511 | { (char *)"GSkymap_pix2dir", _wrap_GSkymap_pix2dir, METH_VARARGS0x0001, (char *)"GSkymap_pix2dir(GSkymap self, GSkyPixel pixel) -> GSkyDir"}, |
17512 | { (char *)"GSkymap_pix2inx", _wrap_GSkymap_pix2inx, METH_VARARGS0x0001, (char *)"GSkymap_pix2inx(GSkymap self, GSkyPixel pixel) -> int"}, |
17513 | { (char *)"GSkymap_dir2inx", _wrap_GSkymap_dir2inx, METH_VARARGS0x0001, (char *)"GSkymap_dir2inx(GSkymap self, GSkyDir dir) -> int"}, |
17514 | { (char *)"GSkymap_dir2pix", _wrap_GSkymap_dir2pix, METH_VARARGS0x0001, (char *)"GSkymap_dir2pix(GSkymap self, GSkyDir dir) -> GSkyPixel"}, |
17515 | { (char *)"GSkymap_solidangle", _wrap_GSkymap_solidangle, METH_VARARGS0x0001, (char *)"\n" |
17516 | "solidangle(int const & index) -> double\n" |
17517 | "GSkymap_solidangle(GSkymap self, GSkyPixel pixel) -> double\n" |
17518 | ""}, |
17519 | { (char *)"GSkymap_contains", _wrap_GSkymap_contains, METH_VARARGS0x0001, (char *)"\n" |
17520 | "contains(GSkyDir dir) -> bool\n" |
17521 | "GSkymap_contains(GSkymap self, GSkyPixel pixel) -> bool\n" |
17522 | ""}, |
17523 | { (char *)"GSkymap_projection", _wrap_GSkymap_projection, METH_VARARGS0x0001, (char *)"\n" |
17524 | "projection() -> GSkyProjection\n" |
17525 | "GSkymap_projection(GSkymap self, GSkyProjection proj)\n" |
17526 | ""}, |
17527 | { (char *)"GSkymap_pixels", _wrap_GSkymap_pixels, METH_VARARGS0x0001, (char *)"GSkymap_pixels(GSkymap self) -> double const *"}, |
17528 | { (char *)"GSkymap_load", _wrap_GSkymap_load, METH_VARARGS0x0001, (char *)"GSkymap_load(GSkymap self, std::string const & filename)"}, |
17529 | { (char *)"GSkymap_save", _wrap_GSkymap_save, METH_VARARGS0x0001, (char *)"\n" |
17530 | "save(std::string const & filename, bool clobber=False)\n" |
17531 | "GSkymap_save(GSkymap self, std::string const & filename)\n" |
17532 | ""}, |
17533 | { (char *)"GSkymap_read", _wrap_GSkymap_read, METH_VARARGS0x0001, (char *)"GSkymap_read(GSkymap self, GFitsHDU const & hdu)"}, |
17534 | { (char *)"GSkymap_write", _wrap_GSkymap_write, METH_VARARGS0x0001, (char *)"GSkymap_write(GSkymap self, GFits & file)"}, |
17535 | { (char *)"GSkymap___getitem__", _wrap_GSkymap___getitem__, METH_VARARGS0x0001, (char *)"GSkymap___getitem__(GSkymap self, int [] GSkymapInx) -> double"}, |
17536 | { (char *)"GSkymap___setitem__", _wrap_GSkymap___setitem__, METH_VARARGS0x0001, (char *)"GSkymap___setitem__(GSkymap self, int [] GSkymapInx, double value)"}, |
17537 | { (char *)"GSkymap_copy", _wrap_GSkymap_copy, METH_VARARGS0x0001, (char *)"GSkymap_copy(GSkymap self) -> GSkymap"}, |
17538 | { (char *)"GSkymap_swigregister", GSkymap_swigregister, METH_VARARGS0x0001, NULL__null}, |
17539 | { (char *)"new_GSkyRegions", _wrap_new_GSkyRegions, METH_VARARGS0x0001, (char *)"\n" |
17540 | "GSkyRegions()\n" |
17541 | "GSkyRegions(GSkyRegions regions)\n" |
17542 | "new_GSkyRegions(std::string const & filename) -> GSkyRegions\n" |
17543 | ""}, |
17544 | { (char *)"delete_GSkyRegions", _wrap_delete_GSkyRegions, METH_VARARGS0x0001, (char *)"delete_GSkyRegions(GSkyRegions self)"}, |
17545 | { (char *)"GSkyRegions_clear", _wrap_GSkyRegions_clear, METH_VARARGS0x0001, (char *)"GSkyRegions_clear(GSkyRegions self)"}, |
17546 | { (char *)"GSkyRegions_clone", _wrap_GSkyRegions_clone, METH_VARARGS0x0001, (char *)"GSkyRegions_clone(GSkyRegions self) -> GSkyRegions"}, |
17547 | { (char *)"GSkyRegions_at", _wrap_GSkyRegions_at, METH_VARARGS0x0001, (char *)"GSkyRegions_at(GSkyRegions self, int const & index) -> GSkyRegion"}, |
17548 | { (char *)"GSkyRegions_size", _wrap_GSkyRegions_size, METH_VARARGS0x0001, (char *)"GSkyRegions_size(GSkyRegions self) -> int"}, |
17549 | { (char *)"GSkyRegions_isempty", _wrap_GSkyRegions_isempty, METH_VARARGS0x0001, (char *)"GSkyRegions_isempty(GSkyRegions self) -> bool"}, |
17550 | { (char *)"GSkyRegions_set", _wrap_GSkyRegions_set, METH_VARARGS0x0001, (char *)"\n" |
17551 | "set(int const & index, GSkyRegion region) -> GSkyRegion\n" |
17552 | "GSkyRegions_set(GSkyRegions self, std::string const & name, GSkyRegion region) -> GSkyRegion\n" |
17553 | ""}, |
17554 | { (char *)"GSkyRegions_append", _wrap_GSkyRegions_append, METH_VARARGS0x0001, (char *)"GSkyRegions_append(GSkyRegions self, GSkyRegion region) -> GSkyRegion"}, |
17555 | { (char *)"GSkyRegions_insert", _wrap_GSkyRegions_insert, METH_VARARGS0x0001, (char *)"\n" |
17556 | "insert(int const & index, GSkyRegion region) -> GSkyRegion\n" |
17557 | "GSkyRegions_insert(GSkyRegions self, std::string const & name, GSkyRegion region) -> GSkyRegion\n" |
17558 | ""}, |
17559 | { (char *)"GSkyRegions_remove", _wrap_GSkyRegions_remove, METH_VARARGS0x0001, (char *)"\n" |
17560 | "remove(int const & index)\n" |
17561 | "GSkyRegions_remove(GSkyRegions self, std::string const & name)\n" |
17562 | ""}, |
17563 | { (char *)"GSkyRegions_reserve", _wrap_GSkyRegions_reserve, METH_VARARGS0x0001, (char *)"GSkyRegions_reserve(GSkyRegions self, int const & num)"}, |
17564 | { (char *)"GSkyRegions_extend", _wrap_GSkyRegions_extend, METH_VARARGS0x0001, (char *)"GSkyRegions_extend(GSkyRegions self, GSkyRegions regions)"}, |
17565 | { (char *)"GSkyRegions_contains", _wrap_GSkyRegions_contains, METH_VARARGS0x0001, (char *)"GSkyRegions_contains(GSkyRegions self, std::string const & name) -> bool"}, |
17566 | { (char *)"GSkyRegions_load", _wrap_GSkyRegions_load, METH_VARARGS0x0001, (char *)"GSkyRegions_load(GSkyRegions self, std::string const & filename)"}, |
17567 | { (char *)"GSkyRegions_save", _wrap_GSkyRegions_save, METH_VARARGS0x0001, (char *)"GSkyRegions_save(GSkyRegions self, std::string const & filename)"}, |
17568 | { (char *)"GSkyRegions___getitem__", _wrap_GSkyRegions___getitem__, METH_VARARGS0x0001, (char *)"GSkyRegions___getitem__(GSkyRegions self, int const & index) -> GSkyRegion"}, |
17569 | { (char *)"GSkyRegions___setitem__", _wrap_GSkyRegions___setitem__, METH_VARARGS0x0001, (char *)"GSkyRegions___setitem__(GSkyRegions self, int const & index, GSkyRegion val)"}, |
17570 | { (char *)"GSkyRegions_copy", _wrap_GSkyRegions_copy, METH_VARARGS0x0001, (char *)"GSkyRegions_copy(GSkyRegions self) -> GSkyRegions"}, |
17571 | { (char *)"GSkyRegions_swigregister", GSkyRegions_swigregister, METH_VARARGS0x0001, NULL__null}, |
17572 | { (char *)"delete_GSkyRegion", _wrap_delete_GSkyRegion, METH_VARARGS0x0001, (char *)"delete_GSkyRegion(GSkyRegion self)"}, |
17573 | { (char *)"GSkyRegion_clear", _wrap_GSkyRegion_clear, METH_VARARGS0x0001, (char *)"GSkyRegion_clear(GSkyRegion self)"}, |
17574 | { (char *)"GSkyRegion_clone", _wrap_GSkyRegion_clone, METH_VARARGS0x0001, (char *)"GSkyRegion_clone(GSkyRegion self) -> GSkyRegion"}, |
17575 | { (char *)"GSkyRegion_read", _wrap_GSkyRegion_read, METH_VARARGS0x0001, (char *)"GSkyRegion_read(GSkyRegion self, std::string const & regstring)"}, |
17576 | { (char *)"GSkyRegion_write", _wrap_GSkyRegion_write, METH_VARARGS0x0001, (char *)"GSkyRegion_write(GSkyRegion self) -> std::string"}, |
17577 | { (char *)"GSkyRegion_overlaps", _wrap_GSkyRegion_overlaps, METH_VARARGS0x0001, (char *)"GSkyRegion_overlaps(GSkyRegion self, GSkyRegion reg) -> bool"}, |
17578 | { (char *)"GSkyRegion_contains", _wrap_GSkyRegion_contains, METH_VARARGS0x0001, (char *)"\n" |
17579 | "contains(GSkyDir dir) -> bool\n" |
17580 | "GSkyRegion_contains(GSkyRegion self, GSkyRegion reg) -> bool\n" |
17581 | ""}, |
17582 | { (char *)"GSkyRegion_type", _wrap_GSkyRegion_type, METH_VARARGS0x0001, (char *)"GSkyRegion_type(GSkyRegion self) -> std::string const &"}, |
17583 | { (char *)"GSkyRegion_name", _wrap_GSkyRegion_name, METH_VARARGS0x0001, (char *)"GSkyRegion_name(GSkyRegion self) -> std::string const &"}, |
17584 | { (char *)"GSkyRegion_solidangle", _wrap_GSkyRegion_solidangle, METH_VARARGS0x0001, (char *)"GSkyRegion_solidangle(GSkyRegion self) -> double const &"}, |
17585 | { (char *)"GSkyRegion_swigregister", GSkyRegion_swigregister, METH_VARARGS0x0001, NULL__null}, |
17586 | { (char *)"new_GSkyRegionCircle", _wrap_new_GSkyRegionCircle, METH_VARARGS0x0001, (char *)"\n" |
17587 | "GSkyRegionCircle()\n" |
17588 | "GSkyRegionCircle(GSkyDir centre, double const & radius)\n" |
17589 | "GSkyRegionCircle(double const & ra, double const & dec, double const & radius)\n" |
17590 | "GSkyRegionCircle(std::string const & line)\n" |
17591 | "new_GSkyRegionCircle(GSkyRegionCircle region) -> GSkyRegionCircle\n" |
17592 | ""}, |
17593 | { (char *)"delete_GSkyRegionCircle", _wrap_delete_GSkyRegionCircle, METH_VARARGS0x0001, (char *)"delete_GSkyRegionCircle(GSkyRegionCircle self)"}, |
17594 | { (char *)"GSkyRegionCircle_clear", _wrap_GSkyRegionCircle_clear, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_clear(GSkyRegionCircle self)"}, |
17595 | { (char *)"GSkyRegionCircle_clone", _wrap_GSkyRegionCircle_clone, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_clone(GSkyRegionCircle self) -> GSkyRegionCircle"}, |
17596 | { (char *)"GSkyRegionCircle_radius", _wrap_GSkyRegionCircle_radius, METH_VARARGS0x0001, (char *)"\n" |
17597 | "radius() -> double const\n" |
17598 | "GSkyRegionCircle_radius(GSkyRegionCircle self, double const & radius)\n" |
17599 | ""}, |
17600 | { (char *)"GSkyRegionCircle_centre", _wrap_GSkyRegionCircle_centre, METH_VARARGS0x0001, (char *)"\n" |
17601 | "centre() -> GSkyDir\n" |
17602 | "centre(GSkyDir centre)\n" |
17603 | "GSkyRegionCircle_centre(GSkyRegionCircle self, double const & ra, double const & dec)\n" |
17604 | ""}, |
17605 | { (char *)"GSkyRegionCircle_ra", _wrap_GSkyRegionCircle_ra, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_ra(GSkyRegionCircle self) -> double"}, |
17606 | { (char *)"GSkyRegionCircle_dec", _wrap_GSkyRegionCircle_dec, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_dec(GSkyRegionCircle self) -> double"}, |
17607 | { (char *)"GSkyRegionCircle_read", _wrap_GSkyRegionCircle_read, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_read(GSkyRegionCircle self, std::string const & line)"}, |
17608 | { (char *)"GSkyRegionCircle_write", _wrap_GSkyRegionCircle_write, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_write(GSkyRegionCircle self) -> std::string"}, |
17609 | { (char *)"GSkyRegionCircle_contains", _wrap_GSkyRegionCircle_contains, METH_VARARGS0x0001, (char *)"\n" |
17610 | "contains(GSkyDir dir) -> bool\n" |
17611 | "GSkyRegionCircle_contains(GSkyRegionCircle self, GSkyRegion reg) -> bool\n" |
17612 | ""}, |
17613 | { (char *)"GSkyRegionCircle_overlaps", _wrap_GSkyRegionCircle_overlaps, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_overlaps(GSkyRegionCircle self, GSkyRegion reg) -> bool"}, |
17614 | { (char *)"GSkyRegionCircle_copy", _wrap_GSkyRegionCircle_copy, METH_VARARGS0x0001, (char *)"GSkyRegionCircle_copy(GSkyRegionCircle self) -> GSkyRegionCircle"}, |
17615 | { (char *)"GSkyRegionCircle_swigregister", GSkyRegionCircle_swigregister, METH_VARARGS0x0001, NULL__null}, |
17616 | { (char *)"delete_GSkyProjection", _wrap_delete_GSkyProjection, METH_VARARGS0x0001, (char *)"delete_GSkyProjection(GSkyProjection self)"}, |
17617 | { (char *)"GSkyProjection_clear", _wrap_GSkyProjection_clear, METH_VARARGS0x0001, (char *)"GSkyProjection_clear(GSkyProjection self)"}, |
17618 | { (char *)"GSkyProjection_clone", _wrap_GSkyProjection_clone, METH_VARARGS0x0001, (char *)"GSkyProjection_clone(GSkyProjection self) -> GSkyProjection"}, |
17619 | { (char *)"GSkyProjection_size", _wrap_GSkyProjection_size, METH_VARARGS0x0001, (char *)"GSkyProjection_size(GSkyProjection self) -> int"}, |
17620 | { (char *)"GSkyProjection_code", _wrap_GSkyProjection_code, METH_VARARGS0x0001, (char *)"GSkyProjection_code(GSkyProjection self) -> std::string"}, |
17621 | { (char *)"GSkyProjection_name", _wrap_GSkyProjection_name, METH_VARARGS0x0001, (char *)"GSkyProjection_name(GSkyProjection self) -> std::string"}, |
17622 | { (char *)"GSkyProjection_read", _wrap_GSkyProjection_read, METH_VARARGS0x0001, (char *)"GSkyProjection_read(GSkyProjection self, GFitsHDU const & hdu)"}, |
17623 | { (char *)"GSkyProjection_write", _wrap_GSkyProjection_write, METH_VARARGS0x0001, (char *)"GSkyProjection_write(GSkyProjection self, GFitsHDU & hdu)"}, |
17624 | { (char *)"GSkyProjection_solidangle", _wrap_GSkyProjection_solidangle, METH_VARARGS0x0001, (char *)"GSkyProjection_solidangle(GSkyProjection self, GSkyPixel pixel) -> double"}, |
17625 | { (char *)"GSkyProjection_pix2dir", _wrap_GSkyProjection_pix2dir, METH_VARARGS0x0001, (char *)"GSkyProjection_pix2dir(GSkyProjection self, GSkyPixel pixel) -> GSkyDir"}, |
17626 | { (char *)"GSkyProjection_dir2pix", _wrap_GSkyProjection_dir2pix, METH_VARARGS0x0001, (char *)"GSkyProjection_dir2pix(GSkyProjection self, GSkyDir dir) -> GSkyPixel"}, |
17627 | { (char *)"GSkyProjection_coordsys", _wrap_GSkyProjection_coordsys, METH_VARARGS0x0001, (char *)"\n" |
17628 | "coordsys() -> std::string\n" |
17629 | "GSkyProjection_coordsys(GSkyProjection self, std::string const & coordsys)\n" |
17630 | ""}, |
17631 | { (char *)"GSkyProjection___is__", _wrap_GSkyProjection___is__, METH_VARARGS0x0001, (char *)"GSkyProjection___is__(GSkyProjection self, GSkyProjection proj) -> bool"}, |
17632 | { (char *)"GSkyProjection_swigregister", GSkyProjection_swigregister, METH_VARARGS0x0001, NULL__null}, |
17633 | { (char *)"new_GHealpix", _wrap_new_GHealpix, METH_VARARGS0x0001, (char *)"\n" |
17634 | "GHealpix()\n" |
17635 | "GHealpix(int const & nside, std::string const & ordering=\"NESTED\", std::string const & coordsys=\"GAL\")\n" |
17636 | "GHealpix(int const & nside, std::string const & ordering=\"NESTED\")\n" |
17637 | "GHealpix(int const & nside)\n" |
17638 | "GHealpix(GFitsHDU const & hdu)\n" |
17639 | "new_GHealpix(GHealpix wcs) -> GHealpix\n" |
17640 | ""}, |
17641 | { (char *)"delete_GHealpix", _wrap_delete_GHealpix, METH_VARARGS0x0001, (char *)"delete_GHealpix(GHealpix self)"}, |
17642 | { (char *)"GHealpix_clear", _wrap_GHealpix_clear, METH_VARARGS0x0001, (char *)"GHealpix_clear(GHealpix self)"}, |
17643 | { (char *)"GHealpix_clone", _wrap_GHealpix_clone, METH_VARARGS0x0001, (char *)"GHealpix_clone(GHealpix self) -> GHealpix"}, |
17644 | { (char *)"GHealpix_size", _wrap_GHealpix_size, METH_VARARGS0x0001, (char *)"GHealpix_size(GHealpix self) -> int"}, |
17645 | { (char *)"GHealpix_code", _wrap_GHealpix_code, METH_VARARGS0x0001, (char *)"GHealpix_code(GHealpix self) -> std::string"}, |
17646 | { (char *)"GHealpix_name", _wrap_GHealpix_name, METH_VARARGS0x0001, (char *)"GHealpix_name(GHealpix self) -> std::string"}, |
17647 | { (char *)"GHealpix_read", _wrap_GHealpix_read, METH_VARARGS0x0001, (char *)"GHealpix_read(GHealpix self, GFitsHDU const & hdu)"}, |
17648 | { (char *)"GHealpix_write", _wrap_GHealpix_write, METH_VARARGS0x0001, (char *)"GHealpix_write(GHealpix self, GFitsHDU & hdu)"}, |
17649 | { (char *)"GHealpix_solidangle", _wrap_GHealpix_solidangle, METH_VARARGS0x0001, (char *)"GHealpix_solidangle(GHealpix self, GSkyPixel pixel) -> double"}, |
17650 | { (char *)"GHealpix_pix2dir", _wrap_GHealpix_pix2dir, METH_VARARGS0x0001, (char *)"GHealpix_pix2dir(GHealpix self, GSkyPixel pixel) -> GSkyDir"}, |
17651 | { (char *)"GHealpix_dir2pix", _wrap_GHealpix_dir2pix, METH_VARARGS0x0001, (char *)"GHealpix_dir2pix(GHealpix self, GSkyDir dir) -> GSkyPixel"}, |
17652 | { (char *)"GHealpix_npix", _wrap_GHealpix_npix, METH_VARARGS0x0001, (char *)"GHealpix_npix(GHealpix self) -> int const &"}, |
17653 | { (char *)"GHealpix_nside", _wrap_GHealpix_nside, METH_VARARGS0x0001, (char *)"GHealpix_nside(GHealpix self) -> int const &"}, |
17654 | { (char *)"GHealpix_ordering", _wrap_GHealpix_ordering, METH_VARARGS0x0001, (char *)"\n" |
17655 | "ordering() -> std::string\n" |
17656 | "GHealpix_ordering(GHealpix self, std::string const & ordering)\n" |
17657 | ""}, |
17658 | { (char *)"GHealpix_copy", _wrap_GHealpix_copy, METH_VARARGS0x0001, (char *)"GHealpix_copy(GHealpix self) -> GHealpix"}, |
17659 | { (char *)"GHealpix_swigregister", GHealpix_swigregister, METH_VARARGS0x0001, NULL__null}, |
17660 | { (char *)"new_GWcsRegistry", _wrap_new_GWcsRegistry, METH_VARARGS0x0001, (char *)"\n" |
17661 | "GWcsRegistry()\n" |
17662 | "GWcsRegistry(GWcs wcs)\n" |
17663 | "new_GWcsRegistry(GWcsRegistry registry) -> GWcsRegistry\n" |
17664 | ""}, |
17665 | { (char *)"delete_GWcsRegistry", _wrap_delete_GWcsRegistry, METH_VARARGS0x0001, (char *)"delete_GWcsRegistry(GWcsRegistry self)"}, |
17666 | { (char *)"GWcsRegistry_size", _wrap_GWcsRegistry_size, METH_VARARGS0x0001, (char *)"GWcsRegistry_size(GWcsRegistry self) -> int"}, |
17667 | { (char *)"GWcsRegistry_alloc", _wrap_GWcsRegistry_alloc, METH_VARARGS0x0001, (char *)"GWcsRegistry_alloc(GWcsRegistry self, std::string const & code) -> GWcs"}, |
17668 | { (char *)"GWcsRegistry_code", _wrap_GWcsRegistry_code, METH_VARARGS0x0001, (char *)"GWcsRegistry_code(GWcsRegistry self, int const & index) -> std::string"}, |
17669 | { (char *)"GWcsRegistry_name", _wrap_GWcsRegistry_name, METH_VARARGS0x0001, (char *)"GWcsRegistry_name(GWcsRegistry self, int const & index) -> std::string"}, |
17670 | { (char *)"GWcsRegistry_list", _wrap_GWcsRegistry_list, METH_VARARGS0x0001, (char *)"GWcsRegistry_list(GWcsRegistry self) -> std::string"}, |
17671 | { (char *)"GWcsRegistry_swigregister", GWcsRegistry_swigregister, METH_VARARGS0x0001, NULL__null}, |
17672 | { (char *)"delete_GWcs", _wrap_delete_GWcs, METH_VARARGS0x0001, (char *)"delete_GWcs(GWcs self)"}, |
17673 | { (char *)"GWcs_clear", _wrap_GWcs_clear, METH_VARARGS0x0001, (char *)"GWcs_clear(GWcs self)"}, |
17674 | { (char *)"GWcs_clone", _wrap_GWcs_clone, METH_VARARGS0x0001, (char *)"GWcs_clone(GWcs self) -> GWcs"}, |
17675 | { (char *)"GWcs_code", _wrap_GWcs_code, METH_VARARGS0x0001, (char *)"GWcs_code(GWcs self) -> std::string"}, |
17676 | { (char *)"GWcs_name", _wrap_GWcs_name, METH_VARARGS0x0001, (char *)"GWcs_name(GWcs self) -> std::string"}, |
17677 | { (char *)"GWcs_size", _wrap_GWcs_size, METH_VARARGS0x0001, (char *)"GWcs_size(GWcs self) -> int"}, |
17678 | { (char *)"GWcs_read", _wrap_GWcs_read, METH_VARARGS0x0001, (char *)"GWcs_read(GWcs self, GFitsHDU const & hdu)"}, |
17679 | { (char *)"GWcs_write", _wrap_GWcs_write, METH_VARARGS0x0001, (char *)"GWcs_write(GWcs self, GFitsHDU & hdu)"}, |
17680 | { (char *)"GWcs_solidangle", _wrap_GWcs_solidangle, METH_VARARGS0x0001, (char *)"GWcs_solidangle(GWcs self, GSkyPixel pixel) -> double"}, |
17681 | { (char *)"GWcs_pix2dir", _wrap_GWcs_pix2dir, METH_VARARGS0x0001, (char *)"GWcs_pix2dir(GWcs self, GSkyPixel pixel) -> GSkyDir"}, |
17682 | { (char *)"GWcs_dir2pix", _wrap_GWcs_dir2pix, METH_VARARGS0x0001, (char *)"GWcs_dir2pix(GWcs self, GSkyDir dir) -> GSkyPixel"}, |
17683 | { (char *)"GWcs_set", _wrap_GWcs_set, METH_VARARGS0x0001, (char *)"\n" |
17684 | "GWcs_set(GWcs self, std::string const & coords, double const & crval1, double const & crval2, \n" |
17685 | " double const & crpix1, double const & crpix2, double const & cdelt1, double const & cdelt2)\n" |
17686 | ""}, |
17687 | { (char *)"GWcs_crval", _wrap_GWcs_crval, METH_VARARGS0x0001, (char *)"GWcs_crval(GWcs self, int const & inx) -> double"}, |
17688 | { (char *)"GWcs_crpix", _wrap_GWcs_crpix, METH_VARARGS0x0001, (char *)"GWcs_crpix(GWcs self, int const & inx) -> double"}, |
17689 | { (char *)"GWcs_cdelt", _wrap_GWcs_cdelt, METH_VARARGS0x0001, (char *)"GWcs_cdelt(GWcs self, int const & inx) -> double"}, |
17690 | { (char *)"GWcs_swigregister", GWcs_swigregister, METH_VARARGS0x0001, NULL__null}, |
17691 | { (char *)"new_GWcsAIT", _wrap_new_GWcsAIT, METH_VARARGS0x0001, (char *)"\n" |
17692 | "GWcsAIT()\n" |
17693 | "GWcsAIT(std::string const & coords, double const & crval1, double const & crval2, double const & crpix1, \n" |
17694 | " double const & crpix2, double const & cdelt1, double const & cdelt2)\n" |
17695 | "new_GWcsAIT(GWcsAIT wcs) -> GWcsAIT\n" |
17696 | ""}, |
17697 | { (char *)"delete_GWcsAIT", _wrap_delete_GWcsAIT, METH_VARARGS0x0001, (char *)"delete_GWcsAIT(GWcsAIT self)"}, |
17698 | { (char *)"GWcsAIT_clear", _wrap_GWcsAIT_clear, METH_VARARGS0x0001, (char *)"GWcsAIT_clear(GWcsAIT self)"}, |
17699 | { (char *)"GWcsAIT_clone", _wrap_GWcsAIT_clone, METH_VARARGS0x0001, (char *)"GWcsAIT_clone(GWcsAIT self) -> GWcsAIT"}, |
17700 | { (char *)"GWcsAIT_code", _wrap_GWcsAIT_code, METH_VARARGS0x0001, (char *)"GWcsAIT_code(GWcsAIT self) -> std::string"}, |
17701 | { (char *)"GWcsAIT_name", _wrap_GWcsAIT_name, METH_VARARGS0x0001, (char *)"GWcsAIT_name(GWcsAIT self) -> std::string"}, |
17702 | { (char *)"GWcsAIT_copy", _wrap_GWcsAIT_copy, METH_VARARGS0x0001, (char *)"GWcsAIT_copy(GWcsAIT self) -> GWcsAIT"}, |
17703 | { (char *)"GWcsAIT_swigregister", GWcsAIT_swigregister, METH_VARARGS0x0001, NULL__null}, |
17704 | { (char *)"new_GWcsAZP", _wrap_new_GWcsAZP, METH_VARARGS0x0001, (char *)"\n" |
17705 | "GWcsAZP()\n" |
17706 | "GWcsAZP(std::string const & coords, double const & crval1, double const & crval2, double const & crpix1, \n" |
17707 | " double const & crpix2, double const & cdelt1, double const & cdelt2)\n" |
17708 | "new_GWcsAZP(GWcsAZP wcs) -> GWcsAZP\n" |
17709 | ""}, |
17710 | { (char *)"delete_GWcsAZP", _wrap_delete_GWcsAZP, METH_VARARGS0x0001, (char *)"delete_GWcsAZP(GWcsAZP self)"}, |
17711 | { (char *)"GWcsAZP_clear", _wrap_GWcsAZP_clear, METH_VARARGS0x0001, (char *)"GWcsAZP_clear(GWcsAZP self)"}, |
17712 | { (char *)"GWcsAZP_clone", _wrap_GWcsAZP_clone, METH_VARARGS0x0001, (char *)"GWcsAZP_clone(GWcsAZP self) -> GWcsAZP"}, |
17713 | { (char *)"GWcsAZP_code", _wrap_GWcsAZP_code, METH_VARARGS0x0001, (char *)"GWcsAZP_code(GWcsAZP self) -> std::string"}, |
17714 | { (char *)"GWcsAZP_name", _wrap_GWcsAZP_name, METH_VARARGS0x0001, (char *)"GWcsAZP_name(GWcsAZP self) -> std::string"}, |
17715 | { (char *)"GWcsAZP_copy", _wrap_GWcsAZP_copy, METH_VARARGS0x0001, (char *)"GWcsAZP_copy(GWcsAZP self) -> GWcsAZP"}, |
17716 | { (char *)"GWcsAZP_swigregister", GWcsAZP_swigregister, METH_VARARGS0x0001, NULL__null}, |
17717 | { (char *)"new_GWcsCAR", _wrap_new_GWcsCAR, METH_VARARGS0x0001, (char *)"\n" |
17718 | "GWcsCAR()\n" |
17719 | "GWcsCAR(std::string const & coords, double const & crval1, double const & crval2, double const & crpix1, \n" |
17720 | " double const & crpix2, double const & cdelt1, double const & cdelt2)\n" |
17721 | "new_GWcsCAR(GWcsCAR wcs) -> GWcsCAR\n" |
17722 | ""}, |
17723 | { (char *)"delete_GWcsCAR", _wrap_delete_GWcsCAR, METH_VARARGS0x0001, (char *)"delete_GWcsCAR(GWcsCAR self)"}, |
17724 | { (char *)"GWcsCAR_clear", _wrap_GWcsCAR_clear, METH_VARARGS0x0001, (char *)"GWcsCAR_clear(GWcsCAR self)"}, |
17725 | { (char *)"GWcsCAR_clone", _wrap_GWcsCAR_clone, METH_VARARGS0x0001, (char *)"GWcsCAR_clone(GWcsCAR self) -> GWcsCAR"}, |
17726 | { (char *)"GWcsCAR_code", _wrap_GWcsCAR_code, METH_VARARGS0x0001, (char *)"GWcsCAR_code(GWcsCAR self) -> std::string"}, |
17727 | { (char *)"GWcsCAR_name", _wrap_GWcsCAR_name, METH_VARARGS0x0001, (char *)"GWcsCAR_name(GWcsCAR self) -> std::string"}, |
17728 | { (char *)"GWcsCAR_copy", _wrap_GWcsCAR_copy, METH_VARARGS0x0001, (char *)"GWcsCAR_copy(GWcsCAR self) -> GWcsCAR"}, |
17729 | { (char *)"GWcsCAR_swigregister", GWcsCAR_swigregister, METH_VARARGS0x0001, NULL__null}, |
17730 | { (char *)"new_GWcsMER", _wrap_new_GWcsMER, METH_VARARGS0x0001, (char *)"\n" |
17731 | "GWcsMER()\n" |
17732 | "GWcsMER(std::string const & coords, double const & crval1, double const & crval2, double const & crpix1, \n" |
17733 | " double const & crpix2, double const & cdelt1, double const & cdelt2)\n" |
17734 | "new_GWcsMER(GWcsMER wcs) -> GWcsMER\n" |
17735 | ""}, |
17736 | { (char *)"delete_GWcsMER", _wrap_delete_GWcsMER, METH_VARARGS0x0001, (char *)"delete_GWcsMER(GWcsMER self)"}, |
17737 | { (char *)"GWcsMER_clear", _wrap_GWcsMER_clear, METH_VARARGS0x0001, (char *)"GWcsMER_clear(GWcsMER self)"}, |
17738 | { (char *)"GWcsMER_clone", _wrap_GWcsMER_clone, METH_VARARGS0x0001, (char *)"GWcsMER_clone(GWcsMER self) -> GWcsMER"}, |
17739 | { (char *)"GWcsMER_code", _wrap_GWcsMER_code, METH_VARARGS0x0001, (char *)"GWcsMER_code(GWcsMER self) -> std::string"}, |
17740 | { (char *)"GWcsMER_name", _wrap_GWcsMER_name, METH_VARARGS0x0001, (char *)"GWcsMER_name(GWcsMER self) -> std::string"}, |
17741 | { (char *)"GWcsMER_copy", _wrap_GWcsMER_copy, METH_VARARGS0x0001, (char *)"GWcsMER_copy(GWcsMER self) -> GWcsMER"}, |
17742 | { (char *)"GWcsMER_swigregister", GWcsMER_swigregister, METH_VARARGS0x0001, NULL__null}, |
17743 | { (char *)"new_GWcsTAN", _wrap_new_GWcsTAN, METH_VARARGS0x0001, (char *)"\n" |
17744 | "GWcsTAN()\n" |
17745 | "GWcsTAN(std::string const & coords, double const & crval1, double const & crval2, double const & crpix1, \n" |
17746 | " double const & crpix2, double const & cdelt1, double const & cdelt2)\n" |
17747 | "new_GWcsTAN(GWcsTAN wcs) -> GWcsTAN\n" |
17748 | ""}, |
17749 | { (char *)"delete_GWcsTAN", _wrap_delete_GWcsTAN, METH_VARARGS0x0001, (char *)"delete_GWcsTAN(GWcsTAN self)"}, |
17750 | { (char *)"GWcsTAN_clear", _wrap_GWcsTAN_clear, METH_VARARGS0x0001, (char *)"GWcsTAN_clear(GWcsTAN self)"}, |
17751 | { (char *)"GWcsTAN_clone", _wrap_GWcsTAN_clone, METH_VARARGS0x0001, (char *)"GWcsTAN_clone(GWcsTAN self) -> GWcsTAN"}, |
17752 | { (char *)"GWcsTAN_code", _wrap_GWcsTAN_code, METH_VARARGS0x0001, (char *)"GWcsTAN_code(GWcsTAN self) -> std::string"}, |
17753 | { (char *)"GWcsTAN_name", _wrap_GWcsTAN_name, METH_VARARGS0x0001, (char *)"GWcsTAN_name(GWcsTAN self) -> std::string"}, |
17754 | { (char *)"GWcsTAN_copy", _wrap_GWcsTAN_copy, METH_VARARGS0x0001, (char *)"GWcsTAN_copy(GWcsTAN self) -> GWcsTAN"}, |
17755 | { (char *)"GWcsTAN_swigregister", GWcsTAN_swigregister, METH_VARARGS0x0001, NULL__null}, |
17756 | { (char *)"new_GWcsSTG", _wrap_new_GWcsSTG, METH_VARARGS0x0001, (char *)"\n" |
17757 | "GWcsSTG()\n" |
17758 | "GWcsSTG(std::string const & coords, double const & crval1, double const & crval2, double const & crpix1, \n" |
17759 | " double const & crpix2, double const & cdelt1, double const & cdelt2)\n" |
17760 | "new_GWcsSTG(GWcsSTG wcs) -> GWcsSTG\n" |
17761 | ""}, |
17762 | { (char *)"delete_GWcsSTG", _wrap_delete_GWcsSTG, METH_VARARGS0x0001, (char *)"delete_GWcsSTG(GWcsSTG self)"}, |
17763 | { (char *)"GWcsSTG_clear", _wrap_GWcsSTG_clear, METH_VARARGS0x0001, (char *)"GWcsSTG_clear(GWcsSTG self)"}, |
17764 | { (char *)"GWcsSTG_clone", _wrap_GWcsSTG_clone, METH_VARARGS0x0001, (char *)"GWcsSTG_clone(GWcsSTG self) -> GWcsSTG"}, |
17765 | { (char *)"GWcsSTG_code", _wrap_GWcsSTG_code, METH_VARARGS0x0001, (char *)"GWcsSTG_code(GWcsSTG self) -> std::string"}, |
17766 | { (char *)"GWcsSTG_name", _wrap_GWcsSTG_name, METH_VARARGS0x0001, (char *)"GWcsSTG_name(GWcsSTG self) -> std::string"}, |
17767 | { (char *)"GWcsSTG_copy", _wrap_GWcsSTG_copy, METH_VARARGS0x0001, (char *)"GWcsSTG_copy(GWcsSTG self) -> GWcsSTG"}, |
17768 | { (char *)"GWcsSTG_swigregister", GWcsSTG_swigregister, METH_VARARGS0x0001, NULL__null}, |
17769 | { NULL__null, NULL__null, 0, NULL__null } |
17770 | }; |
17771 | |
17772 | |
17773 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ |
17774 | |
17775 | static void *_p_GSkyRegionCircleTo_p_GSkyRegion(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17776 | return (void *)((GSkyRegion *) ((GSkyRegionCircle *) x)); |
17777 | } |
17778 | static void *_p_GWcsRegistryTo_p_GRegistry(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17779 | return (void *)((GRegistry *) ((GWcsRegistry *) x)); |
17780 | } |
17781 | static void *_p_GWcsTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17782 | return (void *)((GSkyProjection *) ((GWcs *) x)); |
17783 | } |
17784 | static void *_p_GWcsAITTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17785 | return (void *)((GSkyProjection *) (GWcs *) ((GWcsAIT *) x)); |
17786 | } |
17787 | static void *_p_GWcsTANTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17788 | return (void *)((GSkyProjection *) (GWcs *) ((GWcsTAN *) x)); |
17789 | } |
17790 | static void *_p_GWcsAZPTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17791 | return (void *)((GSkyProjection *) (GWcs *) ((GWcsAZP *) x)); |
17792 | } |
17793 | static void *_p_GHealpixTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17794 | return (void *)((GSkyProjection *) ((GHealpix *) x)); |
17795 | } |
17796 | static void *_p_GWcsSTGTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17797 | return (void *)((GSkyProjection *) (GWcs *) ((GWcsSTG *) x)); |
17798 | } |
17799 | static void *_p_GWcsCARTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17800 | return (void *)((GSkyProjection *) (GWcs *) ((GWcsCAR *) x)); |
17801 | } |
17802 | static void *_p_GWcsMERTo_p_GSkyProjection(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17803 | return (void *)((GSkyProjection *) (GWcs *) ((GWcsMER *) x)); |
17804 | } |
17805 | static void *_p_GWcsAITTo_p_GWcs(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17806 | return (void *)((GWcs *) ((GWcsAIT *) x)); |
17807 | } |
17808 | static void *_p_GWcsTANTo_p_GWcs(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17809 | return (void *)((GWcs *) ((GWcsTAN *) x)); |
17810 | } |
17811 | static void *_p_GWcsAZPTo_p_GWcs(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17812 | return (void *)((GWcs *) ((GWcsAZP *) x)); |
17813 | } |
17814 | static void *_p_GWcsSTGTo_p_GWcs(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17815 | return (void *)((GWcs *) ((GWcsSTG *) x)); |
17816 | } |
17817 | static void *_p_GWcsCARTo_p_GWcs(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17818 | return (void *)((GWcs *) ((GWcsCAR *) x)); |
17819 | } |
17820 | static void *_p_GWcsMERTo_p_GWcs(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17821 | return (void *)((GWcs *) ((GWcsMER *) x)); |
17822 | } |
17823 | static void *_p_GSkyRegionsTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17824 | return (void *)((GContainer *) ((GSkyRegions *) x)); |
17825 | } |
17826 | static void *_p_GSkyProjectionTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17827 | return (void *)((GBase *) ((GSkyProjection *) x)); |
17828 | } |
17829 | static void *_p_GSkyRegionCircleTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17830 | return (void *)((GBase *) (GSkyRegion *) ((GSkyRegionCircle *) x)); |
17831 | } |
17832 | static void *_p_GSkyDirTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17833 | return (void *)((GBase *) ((GSkyDir *) x)); |
17834 | } |
17835 | static void *_p_GWcsAITTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17836 | return (void *)((GBase *) (GSkyProjection *)(GWcs *) ((GWcsAIT *) x)); |
17837 | } |
17838 | static void *_p_GWcsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17839 | return (void *)((GBase *) (GSkyProjection *) ((GWcs *) x)); |
17840 | } |
17841 | static void *_p_GWcsTANTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17842 | return (void *)((GBase *) (GSkyProjection *)(GWcs *) ((GWcsTAN *) x)); |
17843 | } |
17844 | static void *_p_GWcsMERTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17845 | return (void *)((GBase *) (GSkyProjection *)(GWcs *) ((GWcsMER *) x)); |
17846 | } |
17847 | static void *_p_GWcsSTGTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17848 | return (void *)((GBase *) (GSkyProjection *)(GWcs *) ((GWcsSTG *) x)); |
17849 | } |
17850 | static void *_p_GWcsCARTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17851 | return (void *)((GBase *) (GSkyProjection *)(GWcs *) ((GWcsCAR *) x)); |
17852 | } |
17853 | static void *_p_GSkyPixelTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17854 | return (void *)((GBase *) ((GSkyPixel *) x)); |
17855 | } |
17856 | static void *_p_GSkyRegionTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17857 | return (void *)((GBase *) ((GSkyRegion *) x)); |
17858 | } |
17859 | static void *_p_GSkymapTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17860 | return (void *)((GBase *) ((GSkymap *) x)); |
17861 | } |
17862 | static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17863 | return (void *)((GBase *) ((GContainer *) x)); |
17864 | } |
17865 | static void *_p_GSkyRegionsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17866 | return (void *)((GBase *) (GContainer *) ((GSkyRegions *) x)); |
17867 | } |
17868 | static void *_p_GHealpixTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17869 | return (void *)((GBase *) (GSkyProjection *) ((GHealpix *) x)); |
17870 | } |
17871 | static void *_p_GWcsAZPTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) { |
17872 | return (void *)((GBase *) (GSkyProjection *)(GWcs *) ((GWcsAZP *) x)); |
17873 | } |
17874 | static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0}; |
17875 | static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0}; |
17876 | static swig_type_info _swigt__p_GFits = {"_p_GFits", "GFits *", 0, 0, (void*)0, 0}; |
17877 | static swig_type_info _swigt__p_GFitsHDU = {"_p_GFitsHDU", "GFitsHDU *", 0, 0, (void*)0, 0}; |
17878 | static swig_type_info _swigt__p_GHealpix = {"_p_GHealpix", "GHealpix *", 0, 0, (void*)0, 0}; |
17879 | static swig_type_info _swigt__p_GRegistry = {"_p_GRegistry", "GRegistry *", 0, 0, (void*)0, 0}; |
17880 | static swig_type_info _swigt__p_GSkyDir = {"_p_GSkyDir", "GSkyDir *", 0, 0, (void*)0, 0}; |
17881 | static swig_type_info _swigt__p_GSkyPixel = {"_p_GSkyPixel", "GSkyPixel *", 0, 0, (void*)0, 0}; |
17882 | static swig_type_info _swigt__p_GSkyProjection = {"_p_GSkyProjection", "GSkyProjection *", 0, 0, (void*)0, 0}; |
17883 | static swig_type_info _swigt__p_GSkyRegion = {"_p_GSkyRegion", "GSkyRegion *", 0, 0, (void*)0, 0}; |
17884 | static swig_type_info _swigt__p_GSkyRegionCircle = {"_p_GSkyRegionCircle", "GSkyRegionCircle *", 0, 0, (void*)0, 0}; |
17885 | static swig_type_info _swigt__p_GSkyRegions = {"_p_GSkyRegions", "GSkyRegions *", 0, 0, (void*)0, 0}; |
17886 | static swig_type_info _swigt__p_GSkymap = {"_p_GSkymap", "GSkymap *", 0, 0, (void*)0, 0}; |
17887 | static swig_type_info _swigt__p_GVector = {"_p_GVector", "GVector *", 0, 0, (void*)0, 0}; |
17888 | static swig_type_info _swigt__p_GWcs = {"_p_GWcs", "GWcs *", 0, 0, (void*)0, 0}; |
17889 | static swig_type_info _swigt__p_GWcsAIT = {"_p_GWcsAIT", "GWcsAIT *", 0, 0, (void*)0, 0}; |
17890 | static swig_type_info _swigt__p_GWcsAZP = {"_p_GWcsAZP", "GWcsAZP *", 0, 0, (void*)0, 0}; |
17891 | static swig_type_info _swigt__p_GWcsCAR = {"_p_GWcsCAR", "GWcsCAR *", 0, 0, (void*)0, 0}; |
17892 | static swig_type_info _swigt__p_GWcsMER = {"_p_GWcsMER", "GWcsMER *", 0, 0, (void*)0, 0}; |
17893 | static swig_type_info _swigt__p_GWcsRegistry = {"_p_GWcsRegistry", "GWcsRegistry *", 0, 0, (void*)0, 0}; |
17894 | static swig_type_info _swigt__p_GWcsSTG = {"_p_GWcsSTG", "GWcsSTG *", 0, 0, (void*)0, 0}; |
17895 | static swig_type_info _swigt__p_GWcsTAN = {"_p_GWcsTAN", "GWcsTAN *", 0, 0, (void*)0, 0}; |
17896 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
17897 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; |
17898 | static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0}; |
17899 | static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0}; |
17900 | |
17901 | static swig_type_info *swig_type_initial[] = { |
17902 | &_swigt__p_GBase, |
17903 | &_swigt__p_GContainer, |
17904 | &_swigt__p_GFits, |
17905 | &_swigt__p_GFitsHDU, |
17906 | &_swigt__p_GHealpix, |
17907 | &_swigt__p_GRegistry, |
17908 | &_swigt__p_GSkyDir, |
17909 | &_swigt__p_GSkyPixel, |
17910 | &_swigt__p_GSkyProjection, |
17911 | &_swigt__p_GSkyRegion, |
17912 | &_swigt__p_GSkyRegionCircle, |
17913 | &_swigt__p_GSkyRegions, |
17914 | &_swigt__p_GSkymap, |
17915 | &_swigt__p_GVector, |
17916 | &_swigt__p_GWcs, |
17917 | &_swigt__p_GWcsAIT, |
17918 | &_swigt__p_GWcsAZP, |
17919 | &_swigt__p_GWcsCAR, |
17920 | &_swigt__p_GWcsMER, |
17921 | &_swigt__p_GWcsRegistry, |
17922 | &_swigt__p_GWcsSTG, |
17923 | &_swigt__p_GWcsTAN, |
17924 | &_swigt__p_char, |
17925 | &_swigt__p_double, |
17926 | &_swigt__p_std__invalid_argument, |
17927 | &_swigt__p_swig__SwigPyIterator, |
17928 | }; |
17929 | |
17930 | static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GSkyProjection, _p_GSkyProjectionTo_p_GBase, 0, 0}, {&_swigt__p_GSkyRegionCircle, _p_GSkyRegionCircleTo_p_GBase, 0, 0}, {&_swigt__p_GSkyDir, _p_GSkyDirTo_p_GBase, 0, 0}, {&_swigt__p_GWcsAIT, _p_GWcsAITTo_p_GBase, 0, 0}, {&_swigt__p_GWcsTAN, _p_GWcsTANTo_p_GBase, 0, 0}, {&_swigt__p_GWcsMER, _p_GWcsMERTo_p_GBase, 0, 0}, {&_swigt__p_GWcsSTG, _p_GWcsSTGTo_p_GBase, 0, 0}, {&_swigt__p_GWcs, _p_GWcsTo_p_GBase, 0, 0}, {&_swigt__p_GWcsCAR, _p_GWcsCARTo_p_GBase, 0, 0}, {&_swigt__p_GSkyPixel, _p_GSkyPixelTo_p_GBase, 0, 0}, {&_swigt__p_GSkyRegion, _p_GSkyRegionTo_p_GBase, 0, 0}, {&_swigt__p_GSkymap, _p_GSkymapTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0}, {&_swigt__p_GSkyRegions, _p_GSkyRegionsTo_p_GBase, 0, 0}, {&_swigt__p_GHealpix, _p_GHealpixTo_p_GBase, 0, 0}, {&_swigt__p_GWcsAZP, _p_GWcsAZPTo_p_GBase, 0, 0},{0, 0, 0, 0}}; |
17931 | static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GSkyRegions, _p_GSkyRegionsTo_p_GContainer, 0, 0}, {&_swigt__p_GContainer, 0, 0, 0},{0, 0, 0, 0}}; |
17932 | static swig_cast_info _swigc__p_GFits[] = { {&_swigt__p_GFits, 0, 0, 0},{0, 0, 0, 0}}; |
17933 | static swig_cast_info _swigc__p_GFitsHDU[] = { {&_swigt__p_GFitsHDU, 0, 0, 0},{0, 0, 0, 0}}; |
17934 | static swig_cast_info _swigc__p_GHealpix[] = { {&_swigt__p_GHealpix, 0, 0, 0},{0, 0, 0, 0}}; |
17935 | static swig_cast_info _swigc__p_GRegistry[] = { {&_swigt__p_GRegistry, 0, 0, 0}, {&_swigt__p_GWcsRegistry, _p_GWcsRegistryTo_p_GRegistry, 0, 0},{0, 0, 0, 0}}; |
17936 | static swig_cast_info _swigc__p_GSkyDir[] = { {&_swigt__p_GSkyDir, 0, 0, 0},{0, 0, 0, 0}}; |
17937 | static swig_cast_info _swigc__p_GSkyPixel[] = { {&_swigt__p_GSkyPixel, 0, 0, 0},{0, 0, 0, 0}}; |
17938 | static swig_cast_info _swigc__p_GSkyProjection[] = { {&_swigt__p_GWcsAIT, _p_GWcsAITTo_p_GSkyProjection, 0, 0}, {&_swigt__p_GWcsTAN, _p_GWcsTANTo_p_GSkyProjection, 0, 0}, {&_swigt__p_GWcsAZP, _p_GWcsAZPTo_p_GSkyProjection, 0, 0}, {&_swigt__p_GHealpix, _p_GHealpixTo_p_GSkyProjection, 0, 0}, {&_swigt__p_GWcsSTG, _p_GWcsSTGTo_p_GSkyProjection, 0, 0}, {&_swigt__p_GWcsCAR, _p_GWcsCARTo_p_GSkyProjection, 0, 0}, {&_swigt__p_GSkyProjection, 0, 0, 0}, {&_swigt__p_GWcs, _p_GWcsTo_p_GSkyProjection, 0, 0}, {&_swigt__p_GWcsMER, _p_GWcsMERTo_p_GSkyProjection, 0, 0},{0, 0, 0, 0}}; |
17939 | static swig_cast_info _swigc__p_GSkyRegion[] = { {&_swigt__p_GSkyRegionCircle, _p_GSkyRegionCircleTo_p_GSkyRegion, 0, 0}, {&_swigt__p_GSkyRegion, 0, 0, 0},{0, 0, 0, 0}}; |
17940 | static swig_cast_info _swigc__p_GSkyRegionCircle[] = { {&_swigt__p_GSkyRegionCircle, 0, 0, 0},{0, 0, 0, 0}}; |
17941 | static swig_cast_info _swigc__p_GSkyRegions[] = { {&_swigt__p_GSkyRegions, 0, 0, 0},{0, 0, 0, 0}}; |
17942 | static swig_cast_info _swigc__p_GSkymap[] = { {&_swigt__p_GSkymap, 0, 0, 0},{0, 0, 0, 0}}; |
17943 | static swig_cast_info _swigc__p_GVector[] = { {&_swigt__p_GVector, 0, 0, 0},{0, 0, 0, 0}}; |
17944 | static swig_cast_info _swigc__p_GWcs[] = { {&_swigt__p_GWcsAIT, _p_GWcsAITTo_p_GWcs, 0, 0}, {&_swigt__p_GWcsTAN, _p_GWcsTANTo_p_GWcs, 0, 0}, {&_swigt__p_GWcsAZP, _p_GWcsAZPTo_p_GWcs, 0, 0}, {&_swigt__p_GWcsSTG, _p_GWcsSTGTo_p_GWcs, 0, 0}, {&_swigt__p_GWcsCAR, _p_GWcsCARTo_p_GWcs, 0, 0}, {&_swigt__p_GWcs, 0, 0, 0}, {&_swigt__p_GWcsMER, _p_GWcsMERTo_p_GWcs, 0, 0},{0, 0, 0, 0}}; |
17945 | static swig_cast_info _swigc__p_GWcsAIT[] = { {&_swigt__p_GWcsAIT, 0, 0, 0},{0, 0, 0, 0}}; |
17946 | static swig_cast_info _swigc__p_GWcsAZP[] = { {&_swigt__p_GWcsAZP, 0, 0, 0},{0, 0, 0, 0}}; |
17947 | static swig_cast_info _swigc__p_GWcsCAR[] = { {&_swigt__p_GWcsCAR, 0, 0, 0},{0, 0, 0, 0}}; |
17948 | static swig_cast_info _swigc__p_GWcsMER[] = { {&_swigt__p_GWcsMER, 0, 0, 0},{0, 0, 0, 0}}; |
17949 | static swig_cast_info _swigc__p_GWcsRegistry[] = { {&_swigt__p_GWcsRegistry, 0, 0, 0},{0, 0, 0, 0}}; |
17950 | static swig_cast_info _swigc__p_GWcsSTG[] = { {&_swigt__p_GWcsSTG, 0, 0, 0},{0, 0, 0, 0}}; |
17951 | static swig_cast_info _swigc__p_GWcsTAN[] = { {&_swigt__p_GWcsTAN, 0, 0, 0},{0, 0, 0, 0}}; |
17952 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
17953 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; |
17954 | static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}}; |
17955 | static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}}; |
17956 | |
17957 | static swig_cast_info *swig_cast_initial[] = { |
17958 | _swigc__p_GBase, |
17959 | _swigc__p_GContainer, |
17960 | _swigc__p_GFits, |
17961 | _swigc__p_GFitsHDU, |
17962 | _swigc__p_GHealpix, |
17963 | _swigc__p_GRegistry, |
17964 | _swigc__p_GSkyDir, |
17965 | _swigc__p_GSkyPixel, |
17966 | _swigc__p_GSkyProjection, |
17967 | _swigc__p_GSkyRegion, |
17968 | _swigc__p_GSkyRegionCircle, |
17969 | _swigc__p_GSkyRegions, |
17970 | _swigc__p_GSkymap, |
17971 | _swigc__p_GVector, |
17972 | _swigc__p_GWcs, |
17973 | _swigc__p_GWcsAIT, |
17974 | _swigc__p_GWcsAZP, |
17975 | _swigc__p_GWcsCAR, |
17976 | _swigc__p_GWcsMER, |
17977 | _swigc__p_GWcsRegistry, |
17978 | _swigc__p_GWcsSTG, |
17979 | _swigc__p_GWcsTAN, |
17980 | _swigc__p_char, |
17981 | _swigc__p_double, |
17982 | _swigc__p_std__invalid_argument, |
17983 | _swigc__p_swig__SwigPyIterator, |
17984 | }; |
17985 | |
17986 | |
17987 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ |
17988 | |
17989 | static swig_const_info swig_const_table[] = { |
17990 | {0, 0, 0, 0.0, 0, 0}}; |
17991 | |
17992 | #ifdef __cplusplus199711L |
17993 | } |
17994 | #endif |
17995 | /* ----------------------------------------------------------------------------- |
17996 | * Type initialization: |
17997 | * This problem is tough by the requirement that no dynamic |
17998 | * memory is used. Also, since swig_type_info structures store pointers to |
17999 | * swig_cast_info structures and swig_cast_info structures store pointers back |
18000 | * to swig_type_info structures, we need some lookup code at initialization. |
18001 | * The idea is that swig generates all the structures that are needed. |
18002 | * The runtime then collects these partially filled structures. |
18003 | * The SWIG_InitializeModule function takes these initial arrays out of |
18004 | * swig_module, and does all the lookup, filling in the swig_module.types |
18005 | * array with the correct data and linking the correct swig_cast_info |
18006 | * structures together. |
18007 | * |
18008 | * The generated swig_type_info structures are assigned staticly to an initial |
18009 | * array. We just loop through that array, and handle each type individually. |
18010 | * First we lookup if this type has been already loaded, and if so, use the |
18011 | * loaded structure instead of the generated one. Then we have to fill in the |
18012 | * cast linked list. The cast data is initially stored in something like a |
18013 | * two-dimensional array. Each row corresponds to a type (there are the same |
18014 | * number of rows as there are in the swig_type_initial array). Each entry in |
18015 | * a column is one of the swig_cast_info structures for that type. |
18016 | * The cast_initial array is actually an array of arrays, because each row has |
18017 | * a variable number of columns. So to actually build the cast linked list, |
18018 | * we find the array of casts associated with the type, and loop through it |
18019 | * adding the casts to the list. The one last trick we need to do is making |
18020 | * sure the type pointer in the swig_cast_info struct is correct. |
18021 | * |
18022 | * First off, we lookup the cast->type name to see if it is already loaded. |
18023 | * There are three cases to handle: |
18024 | * 1) If the cast->type has already been loaded AND the type we are adding |
18025 | * casting info to has not been loaded (it is in this module), THEN we |
18026 | * replace the cast->type pointer with the type pointer that has already |
18027 | * been loaded. |
18028 | * 2) If BOTH types (the one we are adding casting info to, and the |
18029 | * cast->type) are loaded, THEN the cast info has already been loaded by |
18030 | * the previous module so we just ignore it. |
18031 | * 3) Finally, if cast->type has not already been loaded, then we add that |
18032 | * swig_cast_info to the linked list (because the cast->type) pointer will |
18033 | * be correct. |
18034 | * ----------------------------------------------------------------------------- */ |
18035 | |
18036 | #ifdef __cplusplus199711L |
18037 | extern "C" { |
18038 | #if 0 |
18039 | } /* c-mode */ |
18040 | #endif |
18041 | #endif |
18042 | |
18043 | #if 0 |
18044 | #define SWIGRUNTIME_DEBUG |
18045 | #endif |
18046 | |
18047 | |
18048 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
18049 | SWIG_InitializeModule(void *clientdata) { |
18050 | size_t i; |
18051 | swig_module_info *module_head, *iter; |
18052 | int found, init; |
18053 | |
18054 | /* check to see if the circular list has been setup, if not, set it up */ |
18055 | if (swig_module.next==0) { |
18056 | /* Initialize the swig_module */ |
18057 | swig_module.type_initial = swig_type_initial; |
18058 | swig_module.cast_initial = swig_cast_initial; |
18059 | swig_module.next = &swig_module; |
18060 | init = 1; |
18061 | } else { |
18062 | init = 0; |
18063 | } |
18064 | |
18065 | /* Try and load any already created modules */ |
18066 | module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata); |
18067 | if (!module_head) { |
18068 | /* This is the first module loaded for this interpreter */ |
18069 | /* so set the swig module into the interpreter */ |
18070 | SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module); |
18071 | module_head = &swig_module; |
Value stored to 'module_head' is never read | |
18072 | } else { |
18073 | /* the interpreter has loaded a SWIG module, but has it loaded this one? */ |
18074 | found=0; |
18075 | iter=module_head; |
18076 | do { |
18077 | if (iter==&swig_module) { |
18078 | found=1; |
18079 | break; |
18080 | } |
18081 | iter=iter->next; |
18082 | } while (iter!= module_head); |
18083 | |
18084 | /* if the is found in the list, then all is done and we may leave */ |
18085 | if (found) return; |
18086 | /* otherwise we must add out module into the list */ |
18087 | swig_module.next = module_head->next; |
18088 | module_head->next = &swig_module; |
18089 | } |
18090 | |
18091 | /* When multiple interpreters are used, a module could have already been initialized in |
18092 | a different interpreter, but not yet have a pointer in this interpreter. |
18093 | In this case, we do not want to continue adding types... everything should be |
18094 | set up already */ |
18095 | if (init == 0) return; |
18096 | |
18097 | /* Now work on filling in swig_module.types */ |
18098 | #ifdef SWIGRUNTIME_DEBUG |
18099 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); |
18100 | #endif |
18101 | for (i = 0; i < swig_module.size; ++i) { |
18102 | swig_type_info *type = 0; |
18103 | swig_type_info *ret; |
18104 | swig_cast_info *cast; |
18105 | |
18106 | #ifdef SWIGRUNTIME_DEBUG |
18107 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
18108 | #endif |
18109 | |
18110 | /* if there is another module already loaded */ |
18111 | if (swig_module.next != &swig_module) { |
18112 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); |
18113 | } |
18114 | if (type) { |
18115 | /* Overwrite clientdata field */ |
18116 | #ifdef SWIGRUNTIME_DEBUG |
18117 | printf("SWIG_InitializeModule: found type %s\n", type->name); |
18118 | #endif |
18119 | if (swig_module.type_initial[i]->clientdata) { |
18120 | type->clientdata = swig_module.type_initial[i]->clientdata; |
18121 | #ifdef SWIGRUNTIME_DEBUG |
18122 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); |
18123 | #endif |
18124 | } |
18125 | } else { |
18126 | type = swig_module.type_initial[i]; |
18127 | } |
18128 | |
18129 | /* Insert casting types */ |
18130 | cast = swig_module.cast_initial[i]; |
18131 | while (cast->type) { |
18132 | /* Don't need to add information already in the list */ |
18133 | ret = 0; |
18134 | #ifdef SWIGRUNTIME_DEBUG |
18135 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); |
18136 | #endif |
18137 | if (swig_module.next != &swig_module) { |
18138 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); |
18139 | #ifdef SWIGRUNTIME_DEBUG |
18140 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); |
18141 | #endif |
18142 | } |
18143 | if (ret) { |
18144 | if (type == swig_module.type_initial[i]) { |
18145 | #ifdef SWIGRUNTIME_DEBUG |
18146 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); |
18147 | #endif |
18148 | cast->type = ret; |
18149 | ret = 0; |
18150 | } else { |
18151 | /* Check for casting already in the list */ |
18152 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); |
18153 | #ifdef SWIGRUNTIME_DEBUG |
18154 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); |
18155 | #endif |
18156 | if (!ocast) ret = 0; |
18157 | } |
18158 | } |
18159 | |
18160 | if (!ret) { |
18161 | #ifdef SWIGRUNTIME_DEBUG |
18162 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); |
18163 | #endif |
18164 | if (type->cast) { |
18165 | type->cast->prev = cast; |
18166 | cast->next = type->cast; |
18167 | } |
18168 | type->cast = cast; |
18169 | } |
18170 | cast++; |
18171 | } |
18172 | /* Set entry in modules->types array equal to the type */ |
18173 | swig_module.types[i] = type; |
18174 | } |
18175 | swig_module.types[i] = 0; |
18176 | |
18177 | #ifdef SWIGRUNTIME_DEBUG |
18178 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
18179 | for (i = 0; i < swig_module.size; ++i) { |
18180 | int j = 0; |
18181 | swig_cast_info *cast = swig_module.cast_initial[i]; |
18182 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); |
18183 | while (cast->type) { |
18184 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); |
18185 | cast++; |
18186 | ++j; |
18187 | } |
18188 | printf("---- Total casts: %d\n",j); |
18189 | } |
18190 | printf("**** SWIG_InitializeModule: Cast List ******\n"); |
18191 | #endif |
18192 | } |
18193 | |
18194 | /* This function will propagate the clientdata field of type to |
18195 | * any new swig_type_info structures that have been added into the list |
18196 | * of equivalent types. It is like calling |
18197 | * SWIG_TypeClientData(type, clientdata) a second time. |
18198 | */ |
18199 | SWIGRUNTIMEstatic __attribute__ ((__unused__)) void |
18200 | SWIG_PropagateClientData(void) { |
18201 | size_t i; |
18202 | swig_cast_info *equiv; |
18203 | static int init_run = 0; |
18204 | |
18205 | if (init_run) return; |
18206 | init_run = 1; |
18207 | |
18208 | for (i = 0; i < swig_module.size; i++) { |
18209 | if (swig_module.types[i]->clientdata) { |
18210 | equiv = swig_module.types[i]->cast; |
18211 | while (equiv) { |
18212 | if (!equiv->converter) { |
18213 | if (equiv->type && !equiv->type->clientdata) |
18214 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); |
18215 | } |
18216 | equiv = equiv->next; |
18217 | } |
18218 | } |
18219 | } |
18220 | } |
18221 | |
18222 | #ifdef __cplusplus199711L |
18223 | #if 0 |
18224 | { |
18225 | /* c-mode */ |
18226 | #endif |
18227 | } |
18228 | #endif |
18229 | |
18230 | |
18231 | |
18232 | #ifdef __cplusplus199711L |
18233 | extern "C" { |
18234 | #endif |
18235 | |
18236 | /* Python-specific SWIG API */ |
18237 | #define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink() |
18238 | #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) |
18239 | #define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) |
18240 | |
18241 | /* ----------------------------------------------------------------------------- |
18242 | * global variable support code. |
18243 | * ----------------------------------------------------------------------------- */ |
18244 | |
18245 | typedef struct swig_globalvar { |
18246 | char *name; /* Name of global variable */ |
18247 | PyObject *(*get_attr)(void); /* Return the current value */ |
18248 | int (*set_attr)(PyObject *); /* Set the value */ |
18249 | struct swig_globalvar *next; |
18250 | } swig_globalvar; |
18251 | |
18252 | typedef struct swig_varlinkobject { |
18253 | PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type; |
18254 | swig_globalvar *vars; |
18255 | } swig_varlinkobject; |
18256 | |
18257 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
18258 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { |
18259 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18260 | return PyUnicode_InternFromString("<Swig global variables>"); |
18261 | #else |
18262 | return PyString_FromString("<Swig global variables>"); |
18263 | #endif |
18264 | } |
18265 | |
18266 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
18267 | swig_varlink_str(swig_varlinkobject *v) { |
18268 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18269 | PyObject *str = PyUnicode_InternFromString("("); |
18270 | PyObject *tail; |
18271 | PyObject *joined; |
18272 | swig_globalvar *var; |
18273 | for (var = v->vars; var; var=var->next) { |
18274 | tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name); |
18275 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
18276 | Py_DecRef(str); |
18277 | Py_DecRef(tail); |
18278 | str = joined; |
18279 | if (var->next) { |
18280 | tail = PyUnicode_InternFromString(", "); |
18281 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
18282 | Py_DecRef(str); |
18283 | Py_DecRef(tail); |
18284 | str = joined; |
18285 | } |
18286 | } |
18287 | tail = PyUnicode_InternFromString(")"); |
18288 | joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail); |
18289 | Py_DecRef(str); |
18290 | Py_DecRef(tail); |
18291 | str = joined; |
18292 | #else |
18293 | PyObject *str = PyString_FromString("("); |
18294 | swig_globalvar *var; |
18295 | for (var = v->vars; var; var=var->next) { |
18296 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); |
18297 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); |
18298 | } |
18299 | PyString_ConcatAndDel(&str,PyString_FromString(")")); |
18300 | #endif |
18301 | return str; |
18302 | } |
18303 | |
18304 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
18305 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { |
18306 | char *tmp; |
18307 | PyObject *str = swig_varlink_str(v); |
18308 | fprintf(fp,"Swig global variables "); |
18309 | fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str)); |
18310 | SWIG_Python_str_DelForPy3(tmp); |
18311 | Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(str)))); } while (0); |
18312 | return 0; |
18313 | } |
18314 | |
18315 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
18316 | swig_varlink_dealloc(swig_varlinkobject *v) { |
18317 | swig_globalvar *var = v->vars; |
18318 | while (var) { |
18319 | swig_globalvar *n = var->next; |
18320 | free(var->name); |
18321 | free(var); |
18322 | var = n; |
18323 | } |
18324 | } |
18325 | |
18326 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
18327 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { |
18328 | PyObject *res = NULL__null; |
18329 | swig_globalvar *var = v->vars; |
18330 | while (var) { |
18331 | if (strcmp(var->name,n) == 0) { |
18332 | res = (*var->get_attr)(); |
18333 | break; |
18334 | } |
18335 | var = var->next; |
18336 | } |
18337 | if (res == NULL__null && !PyErr_Occurred()) { |
18338 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
18339 | } |
18340 | return res; |
18341 | } |
18342 | |
18343 | SWIGINTERNstatic __attribute__ ((__unused__)) int |
18344 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { |
18345 | int res = 1; |
18346 | swig_globalvar *var = v->vars; |
18347 | while (var) { |
18348 | if (strcmp(var->name,n) == 0) { |
18349 | res = (*var->set_attr)(p); |
18350 | break; |
18351 | } |
18352 | var = var->next; |
18353 | } |
18354 | if (res == 1 && !PyErr_Occurred()) { |
18355 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); |
18356 | } |
18357 | return res; |
18358 | } |
18359 | |
18360 | SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject* |
18361 | swig_varlink_type(void) { |
18362 | static char varlink__doc__[] = "Swig var link object"; |
18363 | static PyTypeObject varlink_type; |
18364 | static int type_init = 0; |
18365 | if (!type_init) { |
18366 | const PyTypeObject tmp = { |
18367 | /* PyObject header changed in Python 3 */ |
18368 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18369 | PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0, |
18370 | #else |
18371 | PyObject_HEAD_INIT(NULL)1, __null, |
18372 | 0, /* ob_size */ |
18373 | #endif |
18374 | (char *)"swigvarlink", /* tp_name */ |
18375 | sizeof(swig_varlinkobject), /* tp_basicsize */ |
18376 | 0, /* tp_itemsize */ |
18377 | (destructor) swig_varlink_dealloc, /* tp_dealloc */ |
18378 | (printfunc) swig_varlink_print, /* tp_print */ |
18379 | (getattrfunc) swig_varlink_getattr, /* tp_getattr */ |
18380 | (setattrfunc) swig_varlink_setattr, /* tp_setattr */ |
18381 | 0, /* tp_compare */ |
18382 | (reprfunc) swig_varlink_repr, /* tp_repr */ |
18383 | 0, /* tp_as_number */ |
18384 | 0, /* tp_as_sequence */ |
18385 | 0, /* tp_as_mapping */ |
18386 | 0, /* tp_hash */ |
18387 | 0, /* tp_call */ |
18388 | (reprfunc) swig_varlink_str, /* tp_str */ |
18389 | 0, /* tp_getattro */ |
18390 | 0, /* tp_setattro */ |
18391 | 0, /* tp_as_buffer */ |
18392 | 0, /* tp_flags */ |
18393 | varlink__doc__, /* tp_doc */ |
18394 | 0, /* tp_traverse */ |
18395 | 0, /* tp_clear */ |
18396 | 0, /* tp_richcompare */ |
18397 | 0, /* tp_weaklistoffset */ |
18398 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02020000 |
18399 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ |
18400 | #endif |
18401 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02030000 |
18402 | 0, /* tp_del */ |
18403 | #endif |
18404 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x02060000 |
18405 | 0, /* tp_version */ |
18406 | #endif |
18407 | #ifdef COUNT_ALLOCS |
18408 | 0,0,0,0 /* tp_alloc -> tp_next */ |
18409 | #endif |
18410 | }; |
18411 | varlink_type = tmp; |
18412 | type_init = 1; |
18413 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) < 0x02020000 |
18414 | varlink_type.ob_type = &PyType_Type; |
18415 | #else |
18416 | if (PyType_Ready(&varlink_type) < 0) |
18417 | return NULL__null; |
18418 | #endif |
18419 | } |
18420 | return &varlink_type; |
18421 | } |
18422 | |
18423 | /* Create a variable linking object for use later */ |
18424 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
18425 | SWIG_Python_newvarlink(void) { |
18426 | 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 ())) ); |
18427 | if (result) { |
18428 | result->vars = 0; |
18429 | } |
18430 | return ((PyObject*) result); |
18431 | } |
18432 | |
18433 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
18434 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { |
18435 | swig_varlinkobject *v = (swig_varlinkobject *) p; |
18436 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); |
18437 | if (gv) { |
18438 | size_t size = strlen(name)+1; |
18439 | gv->name = (char *)malloc(size); |
18440 | if (gv->name) { |
18441 | strncpy(gv->name,name,size); |
18442 | gv->get_attr = get_attr; |
18443 | gv->set_attr = set_attr; |
18444 | gv->next = v->vars; |
18445 | } |
18446 | } |
18447 | v->vars = gv; |
18448 | } |
18449 | |
18450 | SWIGINTERNstatic __attribute__ ((__unused__)) PyObject * |
18451 | SWIG_globals(void) { |
18452 | static PyObject *_SWIG_globals = 0; |
18453 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink(); |
18454 | return _SWIG_globals; |
18455 | } |
18456 | |
18457 | /* ----------------------------------------------------------------------------- |
18458 | * constants/methods manipulation |
18459 | * ----------------------------------------------------------------------------- */ |
18460 | |
18461 | /* Install Constants */ |
18462 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
18463 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { |
18464 | PyObject *obj = 0; |
18465 | size_t i; |
18466 | for (i = 0; constants[i].type; ++i) { |
18467 | switch(constants[i].type) { |
18468 | case SWIG_PY_POINTER4: |
18469 | obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants [i]).ptype, 0); |
18470 | break; |
18471 | case SWIG_PY_BINARY5: |
18472 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue , *(constants[i].ptype)); |
18473 | break; |
18474 | default: |
18475 | obj = 0; |
18476 | break; |
18477 | } |
18478 | if (obj) { |
18479 | PyDict_SetItemString(d, constants[i].name, obj); |
18480 | Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( ( *(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc )((PyObject *)((PyObject *)(obj)))); } while (0); |
18481 | } |
18482 | } |
18483 | } |
18484 | |
18485 | /* -----------------------------------------------------------------------------*/ |
18486 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
18487 | /* -----------------------------------------------------------------------------*/ |
18488 | |
18489 | SWIGINTERNstatic __attribute__ ((__unused__)) void |
18490 | SWIG_Python_FixMethods(PyMethodDef *methods, |
18491 | swig_const_info *const_table, |
18492 | swig_type_info **types, |
18493 | swig_type_info **types_initial) { |
18494 | size_t i; |
18495 | for (i = 0; methods[i].ml_name; ++i) { |
18496 | const char *c = methods[i].ml_doc; |
18497 | if (c && (c = strstr(c, "swig_ptr: "))) { |
18498 | int j; |
18499 | swig_const_info *ci = 0; |
18500 | const char *name = c + 10; |
18501 | for (j = 0; const_table[j].type; ++j) { |
18502 | if (strncmp(const_table[j].name, name, |
18503 | strlen(const_table[j].name)) == 0) { |
18504 | ci = &(const_table[j]); |
18505 | break; |
18506 | } |
18507 | } |
18508 | if (ci) { |
18509 | void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0; |
18510 | if (ptr) { |
18511 | size_t shift = (ci->ptype) - types; |
18512 | swig_type_info *ty = types_initial[shift]; |
18513 | size_t ldoc = (c - methods[i].ml_doc); |
18514 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; |
18515 | char *ndoc = (char*)malloc(ldoc + lptr + 10); |
18516 | if (ndoc) { |
18517 | char *buff = ndoc; |
18518 | strncpy(buff, methods[i].ml_doc, ldoc); |
18519 | buff += ldoc; |
18520 | strncpy(buff, "swig_ptr: ", 10); |
18521 | buff += 10; |
18522 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); |
18523 | methods[i].ml_doc = ndoc; |
18524 | } |
18525 | } |
18526 | } |
18527 | } |
18528 | } |
18529 | } |
18530 | |
18531 | #ifdef __cplusplus199711L |
18532 | } |
18533 | #endif |
18534 | |
18535 | /* -----------------------------------------------------------------------------* |
18536 | * Partial Init method |
18537 | * -----------------------------------------------------------------------------*/ |
18538 | |
18539 | #ifdef __cplusplus199711L |
18540 | extern "C" |
18541 | #endif |
18542 | |
18543 | SWIGEXPORT__attribute__ ((visibility("default"))) |
18544 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18545 | PyObject* |
18546 | #else |
18547 | void |
18548 | #endif |
18549 | SWIG_initinit_sky(void) { |
18550 | PyObject *m, *d, *md; |
18551 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18552 | static struct PyModuleDef SWIG_module = { |
18553 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03020000 |
18554 | PyModuleDef_HEAD_INIT, |
18555 | # else |
18556 | { |
18557 | PyObject_HEAD_INIT(NULL)1, __null, |
18558 | NULL__null, /* m_init */ |
18559 | 0, /* m_index */ |
18560 | NULL__null, /* m_copy */ |
18561 | }, |
18562 | # endif |
18563 | (char *) SWIG_name"_sky", |
18564 | NULL__null, |
18565 | -1, |
18566 | SwigMethods, |
18567 | NULL__null, |
18568 | NULL__null, |
18569 | NULL__null, |
18570 | NULL__null |
18571 | }; |
18572 | #endif |
18573 | |
18574 | #if defined(SWIGPYTHON_BUILTIN) |
18575 | static SwigPyClientData SwigPyObject_clientdata = { |
18576 | 0, 0, 0, 0, 0, 0, 0 |
18577 | }; |
18578 | static PyGetSetDef this_getset_def = { |
18579 | (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null |
18580 | }; |
18581 | static SwigPyGetSet thisown_getset_closure = { |
18582 | (PyCFunction) SwigPyObject_own, |
18583 | (PyCFunction) SwigPyObject_own |
18584 | }; |
18585 | static PyGetSetDef thisown_getset_def = { |
18586 | (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure |
18587 | }; |
18588 | PyObject *metatype_args; |
18589 | PyTypeObject *builtin_pytype; |
18590 | int builtin_base_count; |
18591 | swig_type_info *builtin_basetype; |
18592 | PyObject *tuple; |
18593 | PyGetSetDescrObject *static_getset; |
18594 | PyTypeObject *metatype; |
18595 | SwigPyClientData *cd; |
18596 | PyObject *public_interface, *public_symbol; |
18597 | PyObject *this_descr; |
18598 | PyObject *thisown_descr; |
18599 | int i; |
18600 | |
18601 | (void)builtin_pytype; |
18602 | (void)builtin_base_count; |
18603 | (void)builtin_basetype; |
18604 | (void)tuple; |
18605 | (void)static_getset; |
18606 | |
18607 | /* metatype is used to implement static member variables. */ |
18608 | metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type); |
18609 | assert(metatype_args)((void)0); |
18610 | metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null); |
18611 | assert(metatype)((void)0); |
18612 | 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); |
18613 | metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro; |
18614 | assert(PyType_Ready(metatype) >= 0)((void)0); |
18615 | #endif |
18616 | |
18617 | /* Fix SwigMethods to carry the callback ptrs when needed */ |
18618 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); |
18619 | |
18620 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18621 | m = PyModule_Create(&SWIG_module); |
18622 | #else |
18623 | m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_sky", SwigMethods, (char *)__null , (PyObject *)__null, 1013); |
18624 | #endif |
18625 | md = d = PyModule_GetDict(m); |
18626 | (void)md; |
18627 | |
18628 | SWIG_InitializeModule(0); |
18629 | |
18630 | #ifdef SWIGPYTHON_BUILTIN |
18631 | SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module , "_p_SwigPyObject"); |
18632 | assert(SwigPyObject_stype)((void)0); |
18633 | cd = (SwigPyClientData*) SwigPyObject_stype->clientdata; |
18634 | if (!cd) { |
18635 | SwigPyObject_stype->clientdata = &SwigPyObject_clientdata; |
18636 | SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce(); |
18637 | } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) { |
18638 | PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules."); |
18639 | # if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18640 | return NULL__null; |
18641 | # else |
18642 | return; |
18643 | # endif |
18644 | } |
18645 | |
18646 | /* All objects have a 'this' attribute */ |
18647 | this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def); |
18648 | (void)this_descr; |
18649 | |
18650 | /* All objects have a 'thisown' attribute */ |
18651 | thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def); |
18652 | (void)thisown_descr; |
18653 | |
18654 | public_interface = PyList_New(0); |
18655 | public_symbol = 0; |
18656 | (void)public_symbol; |
18657 | |
18658 | PyDict_SetItemString(md, "__all__", public_interface); |
18659 | 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); |
18660 | for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i) |
18661 | SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name); |
18662 | for (i = 0; swig_const_table[i].name != 0; ++i) |
18663 | SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name); |
18664 | #endif |
18665 | |
18666 | SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table); |
18667 | |
18668 | #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF << 4) | (0 << 0)) >= 0x03000000 |
18669 | return m; |
18670 | #else |
18671 | return; |
18672 | #endif |
18673 | } |
18674 |