Bug Summary

File:pyext/gammalib/mwl_wrap.cpp
Location:line 8363, column 5
Description:Value stored to 'module_head' is never read

Annotated Source Code

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 */
17template<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);
26public:
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
33template <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)
320SWIGINTERNINLINEstatic __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}
323SWIGINTERNINLINEstatic __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
335extern "C" {
336#endif
337
338typedef void *(*swig_converter_func)(void *, int *);
339typedef struct swig_type_info *(*swig_dycast_func)(void **);
340
341/* Structure to store information on one type */
342typedef 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 */
352typedef 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.*/
362typedef 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*/
378SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
379SWIG_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*/
393SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
394SWIG_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*/
412SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
413SWIG_TypeEquiv(const char *nb, const char *tb) {
414 return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
415}
416
417/*
418 Check the typename
419*/
420SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
421SWIG_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*/
447SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_cast_info *
448SWIG_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*/
474SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline void *
475SWIG_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*/
482SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
483SWIG_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*/
496SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
497SWIG_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*/
505SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
506SWIG_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*/
526SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
527SWIG_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}
542SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
543SWIG_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*/
556SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
557SWIG_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*/
601SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
602SWIG_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*/
630SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
631SWIG_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*/
646SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
647SWIG_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*/
674SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
675SWIG_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
685SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
686SWIG_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
698SWIGRUNTIMEstatic __attribute__ ((__unused__)) char *
699SWIG_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
713SWIGRUNTIMEstatic __attribute__ ((__unused__)) const char *
714SWIG_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 */
783SWIGINTERNstatic __attribute__ ((__unused__)) char*
784SWIG_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
808SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
809SWIG_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
834static PyObject *
835PyString_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
887static
888PyObject *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))
900typedef 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)
903typedef inquiry lenfunc;
904typedef intargfunc ssizeargfunc;
905typedef intintargfunc ssizessizeargfunc;
906typedef intobjargproc ssizeobjargproc;
907typedef intintobjargproc ssizessizeobjargproc;
908typedef getreadbufferproc readbufferproc;
909typedef getwritebufferproc writebufferproc;
910typedef getsegcountproc segcountproc;
911typedef getcharbufferproc charbufferproc;
912static 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
940typedef 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
951typedef 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
970SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
971SWIG_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
1014SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1015SWIG_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
1109extern "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 */
1121typedef 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
1136SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject* SWIG_PyInstanceMethod_New(PyObject *SWIGUNUSEDPARM(self), PyObject *func)
1137{
1138 return PyInstanceMethod_New(func);
1139}
1140#else
1141SWIGRUNTIMEstatic __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
1214SWIGINTERNstatic __attribute__ ((__unused__)) void
1215SWIG_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
1222SWIGINTERNstatic __attribute__ ((__unused__)) void
1223SWIG_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
1235SWIGINTERNstatic __attribute__ ((__unused__)) void
1236SwigPyBuiltin_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
1242SWIGINTERNstatic __attribute__ ((__unused__)) void
1243SWIG_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
1256SWIGINTERNstatic __attribute__ ((__unused__)) void
1257SWIG_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
1270SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1271SWIG_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
1315SWIGINTERNstatic __attribute__ ((__unused__)) int
1316SWIG_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
1392extern "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
1409SWIGRUNTIMEINLINEstatic __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}
1416SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1417SWIG_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
1426SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1427SWIG_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
1436typedef 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
1446SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1447SWIG_Python_CheckImplicit(swig_type_info *ty)
1448{
1449 SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
1450 return data ? data->implicitconv : 0;
1451}
1452
1453SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
1454SWIG_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
1461SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyClientData *
1462SwigPyClientData_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
1515SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1516SwigPyClientData_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
1524typedef 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
1535SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1536SwigPyObject_long(SwigPyObject *v)
1537{
1538 return PyLong_FromVoidPtr(v->ptr);
1539}
1540
1541SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1542SwigPyObject_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
1563SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1564SwigPyObject_oct(SwigPyObject *v)
1565{
1566 return SwigPyObject_format("%o",v);
1567}
1568
1569SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1570SwigPyObject_hex(SwigPyObject *v)
1571{
1572 return SwigPyObject_format("%x",v);
1573}
1574
1575SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1576#ifdef METH_NOARGS0x0004
1577SwigPyObject_repr(SwigPyObject *v)
1578#else
1579SwigPyObject_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
1602SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1603SwigPyObject_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? */
1611SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1612SwigPyObject_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
1624SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyObject_TypeOnce(void);
1625
1626#ifdef SWIGPYTHON_BUILTIN
1627static swig_type_info *SwigPyObject_stype = 0;
1628SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1629SwigPyObject_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
1638SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1639SwigPyObject_type(void) {
1640 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyObject_TypeOnce();
1641 return type;
1642}
1643#endif
1644
1645SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
1646SwigPyObject_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
1658SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1659SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
1660
1661SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
1662SwigPyObject_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
1696SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1697SwigPyObject_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
1713SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
1714#ifdef METH_NOARGS0x0004
1715SwigPyObject_next(PyObject* v)
1716#else
1717SwigPyObject_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
1729SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1730#ifdef METH_NOARGS0x0004
1731SwigPyObject_disown(PyObject *v)
1732#else
1733SwigPyObject_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
1741SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1742#ifdef METH_NOARGS0x0004
1743SwigPyObject_acquire(PyObject *v)
1744#else
1745SwigPyObject_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
1753SWIGINTERNstatic __attribute__ ((__unused__)) PyObject*
1754SwigPyObject_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
1791static PyMethodDef
1792swigobject_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
1802static PyMethodDef
1803swigobject_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
1815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
1816SwigPyObject_getattr(SwigPyObject *sobj,char *name)
1817{
1818 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1819}
1820#endif
1821
1822SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
1823SwigPyObject_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
1959SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1960SwigPyObject_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
1976typedef 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
1983SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
1984SwigPyPacked_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
1997SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
1998SwigPyPacked_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
2008SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2009SwigPyPacked_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
2019SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2020SwigPyPacked_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
2028SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject* SwigPyPacked_TypeOnce(void);
2029
2030SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2031SwigPyPacked_type(void) {
2032 static PyTypeObject *SWIG_STATIC_POINTER(type)type = SwigPyPacked_TypeOnce();
2033 return type;
2034}
2035
2036SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline int
2037SwigPyPacked_Check(PyObject *op) {
2038 return ((op)->ob_type == SwigPyPacked_TypeOnce())
2039 || (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
2040}
2041
2042SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2043SwigPyPacked_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
2052SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyTypeObject*
2053SwigPyPacked_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
2138SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2139SwigPyPacked_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
2157SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2158SwigPyPacked_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
2174SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2175_SWIG_This(void)
2176{
2177 return SWIG_Python_str_FromChar("this");
2178}
2179
2180static PyObject *swig_this = NULL__null;
2181
2182SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2183SWIG_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
2197SWIGRUNTIMEstatic __attribute__ ((__unused__)) SwigPyObject *
2198SWIG_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
2263SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2264SWIG_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
2278SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2279SWIG_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
2383SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2384SWIG_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
2415SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2416SWIG_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
2438SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject*
2439SWIG_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
2513SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2514SWIG_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
2535SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
2536SWIG_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
2553SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2554SWIG_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
2604SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline PyObject *
2605SWIG_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
2614void *SWIG_ReturnGlobalTypeList(void *);
2615#endif
2616
2617SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_module_info *
2618SWIG_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 */
2643SWIGINTERNstatic __attribute__ ((__unused__)) int
2644PyModule_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
2672SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2673#ifdef SWIGPY_USE_CAPSULE
2674SWIG_Python_DestroyModule(PyObject *obj)
2675#else
2676SWIG_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
2697SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2698SWIG_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 */
2724SWIGRUNTIMEstatic __attribute__ ((__unused__)) PyObject *
2725SWIG_Python_TypeCache(void) {
2726 static PyObject *SWIG_STATIC_POINTER(cache)cache = PyDict_New();
2727 return cache;
2728}
2729
2730SWIGRUNTIMEstatic __attribute__ ((__unused__)) swig_type_info *
2731SWIG_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
2767SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2768SWIG_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
2794SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2795SWIG_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
2807SWIGRUNTIMEINLINEstatic __attribute__ ((__unused__)) inline const char *
2808SwigPyObject_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
2815SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
2816SWIG_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 */
2854SWIGRUNTIMEstatic __attribute__ ((__unused__)) void *
2855SWIG_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
2870SWIGRUNTIMEstatic __attribute__ ((__unused__)) int
2871SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
2872 PyTypeObject *tp = obj->ob_type;
2873 PyObject *descr;
2874 PyObject *encoded_name;
2875 descrsetfunc f;
2876 int res = -1;
2877
2878# ifdef Py_USING_UNICODE1
2879 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2880 name = PyUnicode_DecodePyUnicodeUCS2_Decode(PyString_AsString(name), PyString_Size(name), NULL__null, NULL__null);
2881 if (!name)
2882 return -1;
2883 } else if (!PyUnicode_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<28))) != 0)
)
2884# else
2885 if (!PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
)
2886# endif
2887 {
2888 PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%.200s'", name->ob_type->tp_name);
2889 return -1;
2890 } else {
2891 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2892 }
2893
2894 if (!tp->tp_dict) {
2895 if (PyType_Ready(tp) < 0)
2896 goto done;
2897 }
2898
2899 descr = _PyType_Lookup(tp, name);
2900 f = NULL__null;
2901 if (descr != NULL__null)
2902 f = descr->ob_type->tp_descr_set;
2903 if (!f) {
2904 if (PyString_Check(name)((((((PyObject*)(name))->ob_type))->tp_flags & ((1L
<<27))) != 0)
) {
2905 encoded_name = name;
2906 Py_INCREF(name)( ((PyObject*)(name))->ob_refcnt++);
2907 } else {
2908 encoded_name = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(name);
2909 }
2910 PyErr_Format(PyExc_AttributeError, "'%.100s' object has no attribute '%.200s'", tp->tp_name, PyString_AsString(encoded_name));
2911 Py_DECREF(encoded_name)do { if ( --((PyObject*)(encoded_name))->ob_refcnt != 0) ;
else ( (*(((PyObject*)((PyObject *)(encoded_name)))->ob_type
)->tp_dealloc)((PyObject *)((PyObject *)(encoded_name))));
} while (0)
;
2912 } else {
2913 res = f(descr, obj, value);
2914 }
2915
2916 done:
2917 Py_DECREF(name)do { if ( --((PyObject*)(name))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(name)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(name)))); } while (0)
;
2918 return res;
2919}
2920#endif
2921
2922
2923#ifdef __cplusplus199711L
2924}
2925#endif
2926
2927
2928
2929#define SWIG_exception_fail(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail; } while(0)
2930
2931#define SWIG_contract_assert(expr, msg)if (!(expr)) { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(
-3), msg); goto fail; } else
if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), msg); SWIG_failgoto fail; } else
2932
2933
2934
2935 #define SWIG_exception(code, msg)do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg
); goto fail;; } while(0)
do { SWIG_Error(code, msg)SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(code), msg); SWIG_failgoto fail;; } while(0)
2936
2937
2938/* -------- TYPES TABLE (BEGIN) -------- */
2939
2940#define SWIGTYPE_p_GBaseswig_types[0] swig_types[0]
2941#define SWIGTYPE_p_GEnergyswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GEventswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_GEventBinswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_GEventCubeswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_GEventsswig_types[5] swig_types[5]
2946#define SWIGTYPE_p_GFitsswig_types[6] swig_types[6]
2947#define SWIGTYPE_p_GInstDirswig_types[7] swig_types[7]
2948#define SWIGTYPE_p_GMWLDatumswig_types[8] swig_types[8]
2949#define SWIGTYPE_p_GMWLObservationswig_types[9] swig_types[9]
2950#define SWIGTYPE_p_GMWLResponseswig_types[10] swig_types[10]
2951#define SWIGTYPE_p_GMWLSpectrumswig_types[11] swig_types[11]
2952#define SWIGTYPE_p_GObservationswig_types[12] swig_types[12]
2953#define SWIGTYPE_p_GResponseswig_types[13] swig_types[13]
2954#define SWIGTYPE_p_GTimeswig_types[14] swig_types[14]
2955#define SWIGTYPE_p_GXmlElementswig_types[15] swig_types[15]
2956#define SWIGTYPE_p_charswig_types[16] swig_types[16]
2957#define SWIGTYPE_p_std__invalid_argumentswig_types[17] swig_types[17]
2958#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[18] swig_types[18]
2959static swig_type_info *swig_types[20];
2960static swig_module_info swig_module = {swig_types, 19, 0, 0, 0, 0};
2961#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2962#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2963
2964/* -------- TYPES TABLE (END) -------- */
2965
2966#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2967# if !defined(SWIG_PYTHON_CLASSIC)
2968# error "This python version requires swig to be run with the '-classic' option"
2969# endif
2970#endif
2971
2972/*-----------------------------------------------
2973 @(target):= _mwl.so
2974 ------------------------------------------------*/
2975#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2976# define SWIG_initinit_mwl PyInit__mwl
2977
2978#else
2979# define SWIG_initinit_mwl init_mwl
2980
2981#endif
2982#define SWIG_name"_mwl" "_mwl"
2983
2984#define SWIGVERSION0x020011 0x020011
2985#define SWIG_VERSION0x020011 SWIGVERSION0x020011
2986
2987
2988#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
2989#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))
2990
2991
2992#include <stdexcept>
2993
2994
2995namespace swig {
2996 class SwigPtr_PyObject {
2997 protected:
2998 PyObject *_obj;
2999
3000 public:
3001 SwigPtr_PyObject() :_obj(0)
3002 {
3003 }
3004
3005 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3006 {
3007 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3008 }
3009
3010 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3011 {
3012 if (initial_ref) {
3013 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3014 }
3015 }
3016
3017 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3018 {
3019 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3020 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3021 _obj = item._obj;
3022 return *this;
3023 }
3024
3025 ~SwigPtr_PyObject()
3026 {
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 }
3029
3030 operator PyObject *() const
3031 {
3032 return _obj;
3033 }
3034
3035 PyObject *operator->() const
3036 {
3037 return _obj;
3038 }
3039 };
3040}
3041
3042
3043namespace swig {
3044 struct SwigVar_PyObject : SwigPtr_PyObject {
3045 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3046
3047 SwigVar_PyObject & operator = (PyObject* obj)
3048 {
3049 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)
;
3050 _obj = obj;
3051 return *this;
3052 }
3053 };
3054}
3055
3056
3057#include <stddef.h>
3058#include "GException.hpp"
3059#include "GTools.hpp"
3060
3061
3062#include <stdexcept>
3063
3064
3065#if defined(__GNUC__4)
3066# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3067# define SWIG_STD_NOMODERN_STL
3068# endif
3069#endif
3070
3071
3072#include <string>
3073#include <stdexcept>
3074#include <stddef.h>
3075
3076
3077#include <string>
3078
3079
3080#include <iostream>
3081
3082#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3083# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3084#else
3085# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3086#endif
3087
3088
3089 #include <stddef.h>
3090
3091
3092namespace swig {
3093 struct stop_iteration {
3094 };
3095
3096 struct SwigPyIterator {
3097 private:
3098 SwigPtr_PyObject _seq;
3099
3100 protected:
3101 SwigPyIterator(PyObject *seq) : _seq(seq)
3102 {
3103 }
3104
3105 public:
3106 virtual ~SwigPyIterator() {}
3107
3108 // Access iterator method, required by Python
3109 virtual PyObject *value() const = 0;
3110
3111 // Forward iterator method, required by Python
3112 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3113
3114 // Backward iterator method, very common in C++, but not required in Python
3115 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3116 {
3117 throw stop_iteration();
3118 }
3119
3120 // Random access iterator methods, but not required in Python
3121 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3122 {
3123 throw std::invalid_argument("operation not supported");
3124 }
3125
3126 virtual bool equal (const SwigPyIterator &/*x*/) const
3127 {
3128 throw std::invalid_argument("operation not supported");
3129 }
3130
3131 // C++ common/needed methods
3132 virtual SwigPyIterator *copy() const = 0;
3133
3134 PyObject *next()
3135 {
3136 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3137 PyObject *obj = value();
3138 incr();
3139 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3140 return obj;
3141 }
3142
3143 /* Make an alias for Python 3.x */
3144 PyObject *__next__()
3145 {
3146 return next();
3147 }
3148
3149 PyObject *previous()
3150 {
3151 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3152 decr();
3153 PyObject *obj = value();
3154 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3155 return obj;
3156 }
3157
3158 SwigPyIterator *advance(ptrdiff_t n)
3159 {
3160 return (n > 0) ? incr(n) : decr(-n);
3161 }
3162
3163 bool operator == (const SwigPyIterator& x) const
3164 {
3165 return equal(x);
3166 }
3167
3168 bool operator != (const SwigPyIterator& x) const
3169 {
3170 return ! operator==(x);
3171 }
3172
3173 SwigPyIterator& operator += (ptrdiff_t n)
3174 {
3175 return *advance(n);
3176 }
3177
3178 SwigPyIterator& operator -= (ptrdiff_t n)
3179 {
3180 return *advance(-n);
3181 }
3182
3183 SwigPyIterator* operator + (ptrdiff_t n) const
3184 {
3185 return copy()->advance(n);
3186 }
3187
3188 SwigPyIterator* operator - (ptrdiff_t n) const
3189 {
3190 return copy()->advance(-n);
3191 }
3192
3193 ptrdiff_t operator - (const SwigPyIterator& x) const
3194 {
3195 return x.distance(*this);
3196 }
3197
3198 static swig_type_info* descriptor() {
3199 static int init = 0;
3200 static swig_type_info* desc = 0;
3201 if (!init) {
3202 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3203 init = 1;
3204 }
3205 return desc;
3206 }
3207 };
3208
3209#if defined(SWIGPYTHON_BUILTIN)
3210 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3211 {
3212 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3213 return pyself;
3214 }
3215#endif
3216}
3217
3218
3219SWIGINTERNstatic __attribute__ ((__unused__)) int
3220SWIG_AsVal_double (PyObject *obj, double *val)
3221{
3222 int res = SWIG_TypeError-5;
3223 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3224 if (val) *val = PyFloat_AsDouble(obj);
3225 return SWIG_OK(0);
3226 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3227 if (val) *val = PyInt_AsLong(obj);
3228 return SWIG_OK(0);
3229 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3230 double v = PyLong_AsDouble(obj);
3231 if (!PyErr_Occurred()) {
3232 if (val) *val = v;
3233 return SWIG_OK(0);
3234 } else {
3235 PyErr_Clear();
3236 }
3237 }
3238#ifdef SWIG_PYTHON_CAST_MODE
3239 {
3240 int dispatch = 0;
3241 double d = PyFloat_AsDouble(obj);
3242 if (!PyErr_Occurred()) {
3243 if (val) *val = d;
3244 return SWIG_AddCast(SWIG_OK)((0));
3245 } else {
3246 PyErr_Clear();
3247 }
3248 if (!dispatch) {
3249 long v = PyLong_AsLong(obj);
3250 if (!PyErr_Occurred()) {
3251 if (val) *val = v;
3252 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3253 } else {
3254 PyErr_Clear();
3255 }
3256 }
3257 }
3258#endif
3259 return res;
3260}
3261
3262
3263#include <float.h>
3264
3265
3266#include <math.h>
3267
3268
3269SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3270SWIG_CanCastAsInteger(double *d, double min, double max) {
3271 double x = *d;
3272 if ((min <= x && x <= max)) {
3273 double fx = floor(x);
3274 double cx = ceil(x);
3275 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3276 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3277 errno(*__error()) = 0;
3278 } else {
3279 double summ, reps, diff;
3280 if (rd < x) {
3281 diff = x - rd;
3282 } else if (rd > x) {
3283 diff = rd - x;
3284 } else {
3285 return 1;
3286 }
3287 summ = rd + x;
3288 reps = diff/summ;
3289 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3290 *d = rd;
3291 return 1;
3292 }
3293 }
3294 }
3295 return 0;
3296}
3297
3298
3299SWIGINTERNstatic __attribute__ ((__unused__)) int
3300SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3301{
3302#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3303 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3304 long v = PyInt_AsLong(obj);
3305 if (v >= 0) {
3306 if (val) *val = v;
3307 return SWIG_OK(0);
3308 } else {
3309 return SWIG_OverflowError-7;
3310 }
3311 } else
3312#endif
3313 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3314 unsigned long v = PyLong_AsUnsignedLong(obj);
3315 if (!PyErr_Occurred()) {
3316 if (val) *val = v;
3317 return SWIG_OK(0);
3318 } else {
3319 PyErr_Clear();
3320#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3321 {
3322 long v = PyLong_AsLong(obj);
3323 if (!PyErr_Occurred()) {
3324 if (v < 0) {
3325 return SWIG_OverflowError-7;
3326 }
3327 } else {
3328 PyErr_Clear();
3329 }
3330 }
3331#endif
3332 }
3333 }
3334#ifdef SWIG_PYTHON_CAST_MODE
3335 {
3336 int dispatch = 0;
3337 unsigned long v = PyLong_AsUnsignedLong(obj);
3338 if (!PyErr_Occurred()) {
3339 if (val) *val = v;
3340 return SWIG_AddCast(SWIG_OK)((0));
3341 } else {
3342 PyErr_Clear();
3343 }
3344 if (!dispatch) {
3345 double d;
3346 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3347 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3348 if (val) *val = (unsigned long)(d);
3349 return res;
3350 }
3351 }
3352 }
3353#endif
3354 return SWIG_TypeError-5;
3355}
3356
3357
3358SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3359SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3360{
3361 unsigned long v;
3362 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3363 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3364 return res;
3365}
3366
3367
3368 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3369
3370
3371SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3372SWIG_From_ptrdiff_t (ptrdiff_t value)
3373{
3374 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3375}
3376
3377
3378SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3379 SWIG_From_bool (bool value)
3380{
3381 return PyBool_FromLong(value ? 1 : 0);
3382}
3383
3384
3385SWIGINTERNstatic __attribute__ ((__unused__)) int
3386SWIG_AsVal_long (PyObject *obj, long* val)
3387{
3388 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3389 if (val) *val = PyInt_AsLong(obj);
3390 return SWIG_OK(0);
3391 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3392 long v = PyLong_AsLong(obj);
3393 if (!PyErr_Occurred()) {
3394 if (val) *val = v;
3395 return SWIG_OK(0);
3396 } else {
3397 PyErr_Clear();
3398 }
3399 }
3400#ifdef SWIG_PYTHON_CAST_MODE
3401 {
3402 int dispatch = 0;
3403 long v = PyInt_AsLong(obj);
3404 if (!PyErr_Occurred()) {
3405 if (val) *val = v;
3406 return SWIG_AddCast(SWIG_OK)((0));
3407 } else {
3408 PyErr_Clear();
3409 }
3410 if (!dispatch) {
3411 double d;
3412 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3413 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3414 if (val) *val = (long)(d);
3415 return res;
3416 }
3417 }
3418 }
3419#endif
3420 return SWIG_TypeError-5;
3421}
3422
3423
3424SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3425SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3426{
3427 long v;
3428 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3429 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3430 return res;
3431}
3432
3433
3434#include <stdexcept>
3435
3436
3437#include <algorithm>
3438
3439
3440#include <vector>
3441
3442
3443#include <utility>
3444
3445
3446#include <map>
3447#include <algorithm>
3448#include <stdexcept>
3449
3450
3451/* Put headers and other declarations here that are needed for compilation */
3452#include "GMWLObservation.hpp"
3453
3454
3455SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3456SWIG_pchar_descriptor(void)
3457{
3458 static int init = 0;
3459 static swig_type_info* info = 0;
3460 if (!init) {
3461 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3462 init = 1;
3463 }
3464 return info;
3465}
3466
3467
3468SWIGINTERNstatic __attribute__ ((__unused__)) int
3469SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3470{
3471#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3472 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3473#else
3474 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3475#endif
3476 {
3477 char *cstr; Py_ssize_t len;
3478#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3479 if (!alloc && cptr) {
3480 /* We can't allow converting without allocation, since the internal
3481 representation of string in Python 3 is UCS-2/UCS-4 but we require
3482 a UTF-8 representation.
3483 TODO(bhy) More detailed explanation */
3484 return SWIG_RuntimeError-3;
3485 }
3486 obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj);
3487 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3488 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3489#else
3490 PyString_AsStringAndSize(obj, &cstr, &len);
3491#endif
3492 if (cptr) {
3493 if (alloc) {
3494 /*
3495 In python the user should not be able to modify the inner
3496 string representation. To warranty that, if you define
3497 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3498 buffer is always returned.
3499
3500 The default behavior is just to return the pointer value,
3501 so, be careful.
3502 */
3503#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3504 if (*alloc != SWIG_OLDOBJ((0)))
3505#else
3506 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3507#endif
3508 {
3509 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3510 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3511 }
3512 else {
3513 *cptr = cstr;
3514 *alloc = SWIG_OLDOBJ((0));
3515 }
3516 } else {
3517 #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3518 assert(0)((void)0); /* Should never reach here in Python 3 */
3519 #endif
3520 *cptr = SWIG_Python_str_AsChar(obj);
3521 }
3522 }
3523 if (psize) *psize = len + 1;
3524#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3525 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)
;
3526#endif
3527 return SWIG_OK(0);
3528 } else {
3529 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3530 if (pchar_descriptor) {
3531 void* vptr = 0;
3532 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3533 if (cptr) *cptr = (char *) vptr;
3534 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3535 if (alloc) *alloc = SWIG_OLDOBJ((0));
3536 return SWIG_OK(0);
3537 }
3538 }
3539 }
3540 return SWIG_TypeError-5;
3541}
3542
3543
3544SWIGINTERNstatic __attribute__ ((__unused__)) int
3545SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
3546{
3547 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0));
3548 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)
) >= 0)
) {
3549 if (buf) {
3550 if (val) *val = new std::string(buf, size - 1);
3551 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf;
3552 return SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3553 } else {
3554 if (val) *val = 0;
3555 return SWIG_OLDOBJ((0));
3556 }
3557 } else {
3558 static int init = 0;
3559 static swig_type_info* descriptor = 0;
3560 if (!init) {
3561 descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string"
" *")
;
3562 init = 1;
3563 }
3564 if (descriptor) {
3565 std::string *vptr;
3566 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor
, 0, 0)
;
3567 if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr;
3568 return res;
3569 }
3570 }
3571 return SWIG_ERROR(-1);
3572}
3573
3574
3575#include <limits.h>
3576#if !defined(SWIG_NO_LLONG_MAX)
3577# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3578# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3579# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3580# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3581# endif
3582#endif
3583
3584
3585SWIGINTERNstatic __attribute__ ((__unused__)) int
3586SWIG_AsVal_int (PyObject * obj, int *val)
3587{
3588 long v;
3589 int res = SWIG_AsVal_long (obj, &v);
3590 if (SWIG_IsOK(res)(res >= 0)) {
3591 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3592 return SWIG_OverflowError-7;
3593 } else {
3594 if (val) *val = static_cast< int >(v);
3595 }
3596 }
3597 return res;
3598}
3599
3600
3601SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3602SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3603{
3604 if (carray) {
3605 if (size > INT_MAX2147483647) {
3606 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3607 return pchar_descriptor ?
3608 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3609 } else {
3610#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3611 return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size));
3612#else
3613 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3614#endif
3615 }
3616 } else {
3617 return SWIG_Py_Void();
3618 }
3619}
3620
3621
3622SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3623SWIG_From_std_string (const std::string& s)
3624{
3625 return SWIG_FromCharPtrAndSize(s.data(), s.size());
3626}
3627
3628
3629 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
3630
3631SWIGINTERNstatic __attribute__ ((__unused__)) GMWLObservation GMWLObservation_copy(GMWLObservation *self){
3632 return (*self);
3633 }
3634
3635/* Put headers and other declarations here that are needed for compilation */
3636#include "GMWLSpectrum.hpp"
3637
3638
3639SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3640 SWIG_From_int (int value)
3641{
3642 return PyInt_FromLong((long) value);
3643}
3644
3645
3646SWIGINTERNstatic __attribute__ ((__unused__)) int
3647SWIG_AsVal_bool (PyObject *obj, bool *val)
3648{
3649 int r = PyObject_IsTrue(obj);
3650 if (r == -1)
3651 return SWIG_ERROR(-1);
3652 if (val) *val = r ? true : false;
3653 return SWIG_OK(0);
3654}
3655
3656SWIGINTERNstatic __attribute__ ((__unused__)) GMWLSpectrum GMWLSpectrum_copy(GMWLSpectrum *self){
3657 return (*self);
3658 }
3659SWIGINTERNstatic __attribute__ ((__unused__)) GMWLDatum *GMWLSpectrum___getitem__(GMWLSpectrum *self,int index){
3660 if (index >= 0 && index < self->size()) {
3661 return (*self)[index];
3662 }
3663 else {
3664 throw GException::out_of_range("__getitem__(int)", "Spectral point",
3665 index, self->size());
3666 }
3667 }
3668
3669/* Put headers and other declarations here that are needed for compilation */
3670#include "GMWLDatum.hpp"
3671
3672SWIGINTERNstatic __attribute__ ((__unused__)) GMWLDatum GMWLDatum_copy(GMWLDatum *self){
3673 return (*self);
3674 }
3675#ifdef __cplusplus199711L
3676extern "C" {
3677#endif
3678SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3679 PyObject *resultobj = 0;
3680 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3681 void *argp1 = 0 ;
3682 int res1 = 0 ;
3683 PyObject * obj0 = 0 ;
3684
3685 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
3686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0x1 | 0, 0)
;
3687 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3688 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)
;
3689 }
3690 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3691 delete arg1;
3692 resultobj = SWIG_Py_Void();
3693 return resultobj;
3694fail:
3695 return NULL__null;
3696}
3697
3698
3699SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3700 PyObject *resultobj = 0;
3701 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3702 void *argp1 = 0 ;
3703 int res1 = 0 ;
3704 PyObject * obj0 = 0 ;
3705 PyObject *result = 0 ;
3706
3707 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
3708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
3709 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3710 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)
;
3711 }
3712 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3713 try {
3714 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
3715 }
3716 catch(swig::stop_iteration &_e) {
3717 {
3718 (void)_e;
3719 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3720 SWIG_failgoto fail;
3721 }
3722 }
3723
3724 resultobj = result;
3725 return resultobj;
3726fail:
3727 return NULL__null;
3728}
3729
3730
3731SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3732 PyObject *resultobj = 0;
3733 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3734 size_t arg2 ;
3735 void *argp1 = 0 ;
3736 int res1 = 0 ;
3737 size_t val2 ;
3738 int ecode2 = 0 ;
3739 PyObject * obj0 = 0 ;
3740 PyObject * obj1 = 0 ;
3741 swig::SwigPyIterator *result = 0 ;
3742
3743 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
3744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
3745 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3746 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)
;
3747 }
3748 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3749 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3750 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3751 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)
;
3752 }
3753 arg2 = static_cast< size_t >(val2);
3754 try {
3755 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
3756 }
3757 catch(swig::stop_iteration &_e) {
3758 {
3759 (void)_e;
3760 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3761 SWIG_failgoto fail;
3762 }
3763 }
3764
3765 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[18], 0
| 0)
;
3766 return resultobj;
3767fail:
3768 return NULL__null;
3769}
3770
3771
3772SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3773 PyObject *resultobj = 0;
3774 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3775 void *argp1 = 0 ;
3776 int res1 = 0 ;
3777 PyObject * obj0 = 0 ;
3778 swig::SwigPyIterator *result = 0 ;
3779
3780 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
3781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
3782 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3783 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)
;
3784 }
3785 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3786 try {
3787 result = (swig::SwigPyIterator *)(arg1)->incr();
3788 }
3789 catch(swig::stop_iteration &_e) {
3790 {
3791 (void)_e;
3792 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3793 SWIG_failgoto fail;
3794 }
3795 }
3796
3797 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[18], 0
| 0)
;
3798 return resultobj;
3799fail:
3800 return NULL__null;
3801}
3802
3803
3804SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
3805 int argc;
3806 PyObject *argv[3];
3807 int ii;
3808
3809 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3810 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3811 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3812 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3813 }
3814 if (argc == 1) {
3815 int _v;
3816 void *vptr = 0;
3817 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
3818 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3819 if (_v) {
3820 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
3821 }
3822 }
3823 if (argc == 2) {
3824 int _v;
3825 void *vptr = 0;
3826 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
3827 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3828 if (_v) {
3829 {
3830 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3831 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3832 }
3833 if (_v) {
3834 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
3835 }
3836 }
3837 }
3838
3839fail:
3840 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
3841 " Possible C/C++ prototypes are:\n"
3842 " swig::SwigPyIterator::incr(size_t)\n"
3843 " swig::SwigPyIterator::incr()\n");
3844 return 0;
3845}
3846
3847
3848SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3849 PyObject *resultobj = 0;
3850 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3851 size_t arg2 ;
3852 void *argp1 = 0 ;
3853 int res1 = 0 ;
3854 size_t val2 ;
3855 int ecode2 = 0 ;
3856 PyObject * obj0 = 0 ;
3857 PyObject * obj1 = 0 ;
3858 swig::SwigPyIterator *result = 0 ;
3859
3860 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
3861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
3862 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3863 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)
;
3864 }
3865 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3866 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3867 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3868 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)
;
3869 }
3870 arg2 = static_cast< size_t >(val2);
3871 try {
3872 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
3873 }
3874 catch(swig::stop_iteration &_e) {
3875 {
3876 (void)_e;
3877 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3878 SWIG_failgoto fail;
3879 }
3880 }
3881
3882 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[18], 0
| 0)
;
3883 return resultobj;
3884fail:
3885 return NULL__null;
3886}
3887
3888
3889SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3890 PyObject *resultobj = 0;
3891 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3892 void *argp1 = 0 ;
3893 int res1 = 0 ;
3894 PyObject * obj0 = 0 ;
3895 swig::SwigPyIterator *result = 0 ;
3896
3897 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
3898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
3899 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3900 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)
;
3901 }
3902 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3903 try {
3904 result = (swig::SwigPyIterator *)(arg1)->decr();
3905 }
3906 catch(swig::stop_iteration &_e) {
3907 {
3908 (void)_e;
3909 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3910 SWIG_failgoto fail;
3911 }
3912 }
3913
3914 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[18], 0
| 0)
;
3915 return resultobj;
3916fail:
3917 return NULL__null;
3918}
3919
3920
3921SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
3922 int argc;
3923 PyObject *argv[3];
3924 int ii;
3925
3926 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3927 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3928 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3929 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3930 }
3931 if (argc == 1) {
3932 int _v;
3933 void *vptr = 0;
3934 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
3935 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3936 if (_v) {
3937 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
3938 }
3939 }
3940 if (argc == 2) {
3941 int _v;
3942 void *vptr = 0;
3943 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
3944 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3945 if (_v) {
3946 {
3947 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3948 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3949 }
3950 if (_v) {
3951 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
3952 }
3953 }
3954 }
3955
3956fail:
3957 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
3958 " Possible C/C++ prototypes are:\n"
3959 " swig::SwigPyIterator::decr(size_t)\n"
3960 " swig::SwigPyIterator::decr()\n");
3961 return 0;
3962}
3963
3964
3965SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3966 PyObject *resultobj = 0;
3967 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3968 swig::SwigPyIterator *arg2 = 0 ;
3969 void *argp1 = 0 ;
3970 int res1 = 0 ;
3971 void *argp2 = 0 ;
3972 int res2 = 0 ;
3973 PyObject * obj0 = 0 ;
3974 PyObject * obj1 = 0 ;
3975 ptrdiff_t result;
3976
3977 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
3978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
3979 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3980 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)
;
3981 }
3982 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3983 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[18]
, 0 | 0, 0)
;
3984 if (!SWIG_IsOK(res2)(res2 >= 0)) {
3985 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)
;
3986 }
3987 if (!argp2) {
3988 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
)
;
3989 }
3990 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
3991 try {
3992 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
3993 }
3994 catch(std::invalid_argument &_e) {
3995 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[
17]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[17], 0x1))
; SWIG_failgoto fail;
3996 }
3997
3998 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
3999 return resultobj;
4000fail:
4001 return NULL__null;
4002}
4003
4004
4005SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4006 PyObject *resultobj = 0;
4007 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4008 swig::SwigPyIterator *arg2 = 0 ;
4009 void *argp1 = 0 ;
4010 int res1 = 0 ;
4011 void *argp2 = 0 ;
4012 int res2 = 0 ;
4013 PyObject * obj0 = 0 ;
4014 PyObject * obj1 = 0 ;
4015 bool result;
4016
4017 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
4018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4019 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4020 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)
;
4021 }
4022 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4023 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[18]
, 0 | 0, 0)
;
4024 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4025 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)
;
4026 }
4027 if (!argp2) {
4028 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
)
;
4029 }
4030 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4031 try {
4032 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
4033 }
4034 catch(std::invalid_argument &_e) {
4035 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[
17]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[17], 0x1))
; SWIG_failgoto fail;
4036 }
4037
4038 resultobj = SWIG_From_bool(static_cast< bool >(result));
4039 return resultobj;
4040fail:
4041 return NULL__null;
4042}
4043
4044
4045SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4046 PyObject *resultobj = 0;
4047 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject * obj0 = 0 ;
4051 swig::SwigPyIterator *result = 0 ;
4052
4053 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
4054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4055 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4056 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)
;
4057 }
4058 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4059 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
4060 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[18], 0x1
| 0)
;
4061 return resultobj;
4062fail:
4063 return NULL__null;
4064}
4065
4066
4067SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4068 PyObject *resultobj = 0;
4069 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 PyObject * obj0 = 0 ;
4073 PyObject *result = 0 ;
4074
4075 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
4076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4077 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4078 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)
;
4079 }
4080 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4081 try {
4082 result = (PyObject *)(arg1)->next();
4083 }
4084 catch(swig::stop_iteration &_e) {
4085 {
4086 (void)_e;
4087 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4088 SWIG_failgoto fail;
4089 }
4090 }
4091
4092 resultobj = result;
4093 return resultobj;
4094fail:
4095 return NULL__null;
4096}
4097
4098
4099SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4100 PyObject *resultobj = 0;
4101 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4102 void *argp1 = 0 ;
4103 int res1 = 0 ;
4104 PyObject * obj0 = 0 ;
4105 PyObject *result = 0 ;
4106
4107 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
4108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4109 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4110 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)
;
4111 }
4112 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4113 try {
4114 result = (PyObject *)(arg1)->__next__();
4115 }
4116 catch(swig::stop_iteration &_e) {
4117 {
4118 (void)_e;
4119 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4120 SWIG_failgoto fail;
4121 }
4122 }
4123
4124 resultobj = result;
4125 return resultobj;
4126fail:
4127 return NULL__null;
4128}
4129
4130
4131SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4132 PyObject *resultobj = 0;
4133 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4134 void *argp1 = 0 ;
4135 int res1 = 0 ;
4136 PyObject * obj0 = 0 ;
4137 PyObject *result = 0 ;
4138
4139 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
4140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4141 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4142 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)
;
4143 }
4144 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4145 try {
4146 result = (PyObject *)(arg1)->previous();
4147 }
4148 catch(swig::stop_iteration &_e) {
4149 {
4150 (void)_e;
4151 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4152 SWIG_failgoto fail;
4153 }
4154 }
4155
4156 resultobj = result;
4157 return resultobj;
4158fail:
4159 return NULL__null;
4160}
4161
4162
4163SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4164 PyObject *resultobj = 0;
4165 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4166 ptrdiff_t arg2 ;
4167 void *argp1 = 0 ;
4168 int res1 = 0 ;
4169 ptrdiff_t val2 ;
4170 int ecode2 = 0 ;
4171 PyObject * obj0 = 0 ;
4172 PyObject * obj1 = 0 ;
4173 swig::SwigPyIterator *result = 0 ;
4174
4175 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4177 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4178 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)
;
4179 }
4180 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4181 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4182 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4183 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)
;
4184 }
4185 arg2 = static_cast< ptrdiff_t >(val2);
4186 try {
4187 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4188 }
4189 catch(swig::stop_iteration &_e) {
4190 {
4191 (void)_e;
4192 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4193 SWIG_failgoto fail;
4194 }
4195 }
4196
4197 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[18], 0
| 0)
;
4198 return resultobj;
4199fail:
4200 return NULL__null;
4201}
4202
4203
4204SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4205 PyObject *resultobj = 0;
4206 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4207 swig::SwigPyIterator *arg2 = 0 ;
4208 void *argp1 = 0 ;
4209 int res1 = 0 ;
4210 void *argp2 = 0 ;
4211 int res2 = 0 ;
4212 PyObject * obj0 = 0 ;
4213 PyObject * obj1 = 0 ;
4214 bool result;
4215
4216 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4218 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4219 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)
;
4220 }
4221 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[18]
, 0 | 0, 0)
;
4223 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4224 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)
;
4225 }
4226 if (!argp2) {
4227 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
)
;
4228 }
4229 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4230 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4231 resultobj = SWIG_From_bool(static_cast< bool >(result));
4232 return resultobj;
4233fail:
4234 return NULL__null;
4235}
4236
4237
4238SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4239 PyObject *resultobj = 0;
4240 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4241 swig::SwigPyIterator *arg2 = 0 ;
4242 void *argp1 = 0 ;
4243 int res1 = 0 ;
4244 void *argp2 = 0 ;
4245 int res2 = 0 ;
4246 PyObject * obj0 = 0 ;
4247 PyObject * obj1 = 0 ;
4248 bool result;
4249
4250 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4252 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4253 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)
;
4254 }
4255 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[18]
, 0 | 0, 0)
;
4257 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4258 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)
;
4259 }
4260 if (!argp2) {
4261 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
)
;
4262 }
4263 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4264 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4265 resultobj = SWIG_From_bool(static_cast< bool >(result));
4266 return resultobj;
4267fail:
4268 return NULL__null;
4269}
4270
4271
4272SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4273 PyObject *resultobj = 0;
4274 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4275 ptrdiff_t arg2 ;
4276 void *argp1 = 0 ;
4277 int res1 = 0 ;
4278 ptrdiff_t val2 ;
4279 int ecode2 = 0 ;
4280 PyObject * obj0 = 0 ;
4281 PyObject * obj1 = 0 ;
4282 swig::SwigPyIterator *result = 0 ;
4283
4284 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0x1 | 0, 0)
;
4286 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4287 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)
;
4288 }
4289 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4290 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4291 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4292 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)
;
4293 }
4294 arg2 = static_cast< ptrdiff_t >(val2);
4295 try {
4296 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4297 }
4298 catch(swig::stop_iteration &_e) {
4299 {
4300 (void)_e;
4301 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4302 SWIG_failgoto fail;
4303 }
4304 }
4305
4306 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[18], 0x1
| 0)
;
4307 return resultobj;
4308fail:
4309 return NULL__null;
4310}
4311
4312
4313SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4314 PyObject *resultobj = 0;
4315 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4316 ptrdiff_t arg2 ;
4317 void *argp1 = 0 ;
4318 int res1 = 0 ;
4319 ptrdiff_t val2 ;
4320 int ecode2 = 0 ;
4321 PyObject * obj0 = 0 ;
4322 PyObject * obj1 = 0 ;
4323 swig::SwigPyIterator *result = 0 ;
4324
4325 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0x1 | 0, 0)
;
4327 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4328 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)
;
4329 }
4330 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4331 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4332 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4333 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)
;
4334 }
4335 arg2 = static_cast< ptrdiff_t >(val2);
4336 try {
4337 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4338 }
4339 catch(swig::stop_iteration &_e) {
4340 {
4341 (void)_e;
4342 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4343 SWIG_failgoto fail;
4344 }
4345 }
4346
4347 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[18], 0x1
| 0)
;
4348 return resultobj;
4349fail:
4350 return NULL__null;
4351}
4352
4353
4354SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4355 PyObject *resultobj = 0;
4356 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4357 ptrdiff_t arg2 ;
4358 void *argp1 = 0 ;
4359 int res1 = 0 ;
4360 ptrdiff_t val2 ;
4361 int ecode2 = 0 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 swig::SwigPyIterator *result = 0 ;
4365
4366 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4368 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4369 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)
;
4370 }
4371 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4372 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4373 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4374 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)
;
4375 }
4376 arg2 = static_cast< ptrdiff_t >(val2);
4377 try {
4378 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4379 }
4380 catch(swig::stop_iteration &_e) {
4381 {
4382 (void)_e;
4383 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4384 SWIG_failgoto fail;
4385 }
4386 }
4387
4388 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[18], 0x1
| 0)
;
4389 return resultobj;
4390fail:
4391 return NULL__null;
4392}
4393
4394
4395SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4396 PyObject *resultobj = 0;
4397 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4398 ptrdiff_t arg2 ;
4399 void *argp1 = 0 ;
4400 int res1 = 0 ;
4401 ptrdiff_t val2 ;
4402 int ecode2 = 0 ;
4403 PyObject * obj0 = 0 ;
4404 PyObject * obj1 = 0 ;
4405 swig::SwigPyIterator *result = 0 ;
4406
4407 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4409 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4410 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)
;
4411 }
4412 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4413 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4414 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4415 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)
;
4416 }
4417 arg2 = static_cast< ptrdiff_t >(val2);
4418 try {
4419 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4420 }
4421 catch(swig::stop_iteration &_e) {
4422 {
4423 (void)_e;
4424 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4425 SWIG_failgoto fail;
4426 }
4427 }
4428
4429 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[18], 0x1
| 0)
;
4430 return resultobj;
4431fail:
4432 return NULL__null;
4433}
4434
4435
4436SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4437 PyObject *resultobj = 0;
4438 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4439 swig::SwigPyIterator *arg2 = 0 ;
4440 void *argp1 = 0 ;
4441 int res1 = 0 ;
4442 void *argp2 = 0 ;
4443 int res2 = 0 ;
4444 PyObject * obj0 = 0 ;
4445 PyObject * obj1 = 0 ;
4446 ptrdiff_t result;
4447
4448 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[18]
, 0 | 0, 0)
;
4450 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4451 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)
;
4452 }
4453 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[18]
, 0 | 0, 0)
;
4455 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4456 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)
;
4457 }
4458 if (!argp2) {
4459 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
)
;
4460 }
4461 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4462 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4463 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4464 return resultobj;
4465fail:
4466 return NULL__null;
4467}
4468
4469
4470SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4471 int argc;
4472 PyObject *argv[3];
4473 int ii;
4474
4475 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4476 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4477 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4478 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4479 }
4480 if (argc == 2) {
4481 int _v;
4482 void *vptr = 0;
4483 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
4484 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4485 if (_v) {
4486 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[18], 0, 0
)
;
4487 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4488 if (_v) {
4489 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4490 }
4491 }
4492 }
4493 if (argc == 2) {
4494 int _v;
4495 void *vptr = 0;
4496 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[18
], 0, 0)
;
4497 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4498 if (_v) {
4499 {
4500 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4501 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4502 }
4503 if (_v) {
4504 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4505 }
4506 }
4507 }
4508
4509fail:
4510 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4511 return Py_NotImplemented(&_Py_NotImplementedStruct);
4512}
4513
4514
4515SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4516 PyObject *obj;
4517 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4518 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[18], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4519 return SWIG_Py_Void();
4520}
4521
4522SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLObservation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4523 PyObject *resultobj = 0;
4524 GMWLObservation *result = 0 ;
4525
4526 if (!PyArg_ParseTuple(args,(char *)":new_GMWLObservation")) SWIG_failgoto fail;
4527 {
4528 try {
4529 result = (GMWLObservation *)new GMWLObservation();
4530 }
4531 catch (const GException::out_of_range& e) {
4532 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4533 }
4534 catch (const GExceptionHandler& e) {
4535 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4536 }
4537 catch (const std::exception& e) {
4538 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4539 }
4540 }
4541 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
4542 return resultobj;
4543fail:
4544 return NULL__null;
4545}
4546
4547
4548SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLObservation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4549 PyObject *resultobj = 0;
4550 std::string *arg1 = 0 ;
4551 int res1 = SWIG_OLDOBJ((0)) ;
4552 PyObject * obj0 = 0 ;
4553 GMWLObservation *result = 0 ;
4554
4555 if (!PyArg_ParseTuple(args,(char *)"O:new_GMWLObservation",&obj0)) SWIG_failgoto fail;
4556 {
4557 std::string *ptr = (std::string *)0;
4558 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
4559 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMWLObservation" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4561 }
4562 if (!ptr) {
4563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLObservation" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
4564 }
4565 arg1 = ptr;
4566 }
4567 {
4568 try {
4569 result = (GMWLObservation *)new GMWLObservation((std::string const &)*arg1);
4570 }
4571 catch (const GException::out_of_range& e) {
4572 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4573 }
4574 catch (const GExceptionHandler& e) {
4575 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4576 }
4577 catch (const std::exception& e) {
4578 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4579 }
4580 }
4581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
4582 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4583 return resultobj;
4584fail:
4585 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4586 return NULL__null;
4587}
4588
4589
4590SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLObservation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4591 PyObject *resultobj = 0;
4592 std::string *arg1 = 0 ;
4593 int *arg2 = 0 ;
4594 int res1 = SWIG_OLDOBJ((0)) ;
4595 int temp2 ;
4596 int val2 ;
4597 int ecode2 = 0 ;
4598 PyObject * obj0 = 0 ;
4599 PyObject * obj1 = 0 ;
4600 GMWLObservation *result = 0 ;
4601
4602 if (!PyArg_ParseTuple(args,(char *)"OO:new_GMWLObservation",&obj0,&obj1)) SWIG_failgoto fail;
4603 {
4604 std::string *ptr = (std::string *)0;
4605 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
4606 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMWLObservation" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4608 }
4609 if (!ptr) {
4610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLObservation" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
4611 }
4612 arg1 = ptr;
4613 }
4614 ecode2 = SWIG_AsVal_int(obj1, &val2);
4615 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GMWLObservation" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GMWLObservation" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
4617 }
4618 temp2 = static_cast< int >(val2);
4619 arg2 = &temp2;
4620 {
4621 try {
4622 result = (GMWLObservation *)new GMWLObservation((std::string const &)*arg1,(int const &)*arg2);
4623 }
4624 catch (const GException::out_of_range& e) {
4625 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4626 }
4627 catch (const GExceptionHandler& e) {
4628 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4629 }
4630 catch (const std::exception& e) {
4631 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4632 }
4633 }
4634 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
4635 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4636 return resultobj;
4637fail:
4638 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4639 return NULL__null;
4640}
4641
4642
4643SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLObservation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4644 PyObject *resultobj = 0;
4645 std::string *arg1 = 0 ;
4646 std::string *arg2 = 0 ;
4647 int res1 = SWIG_OLDOBJ((0)) ;
4648 int res2 = SWIG_OLDOBJ((0)) ;
4649 PyObject * obj0 = 0 ;
4650 PyObject * obj1 = 0 ;
4651 GMWLObservation *result = 0 ;
4652
4653 if (!PyArg_ParseTuple(args,(char *)"OO:new_GMWLObservation",&obj0,&obj1)) SWIG_failgoto fail;
4654 {
4655 std::string *ptr = (std::string *)0;
4656 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
4657 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMWLObservation" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4659 }
4660 if (!ptr) {
4661 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLObservation" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
4662 }
4663 arg1 = ptr;
4664 }
4665 {
4666 std::string *ptr = (std::string *)0;
4667 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
4668 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GMWLObservation" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GMWLObservation" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4670 }
4671 if (!ptr) {
4672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLObservation" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLObservation" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
4673 }
4674 arg2 = ptr;
4675 }
4676 {
4677 try {
4678 result = (GMWLObservation *)new GMWLObservation((std::string const &)*arg1,(std::string const &)*arg2);
4679 }
4680 catch (const GException::out_of_range& e) {
4681 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4682 }
4683 catch (const GExceptionHandler& e) {
4684 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4685 }
4686 catch (const std::exception& e) {
4687 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4688 }
4689 }
4690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
4691 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4692 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
4693 return resultobj;
4694fail:
4695 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4696 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
4697 return NULL__null;
4698}
4699
4700
4701SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLObservation__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4702 PyObject *resultobj = 0;
4703 GMWLObservation *arg1 = 0 ;
4704 void *argp1 = 0 ;
4705 int res1 = 0 ;
4706 PyObject * obj0 = 0 ;
4707 GMWLObservation *result = 0 ;
4708
4709 if (!PyArg_ParseTuple(args,(char *)"O:new_GMWLObservation",&obj0)) SWIG_failgoto fail;
4710 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMWLObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
4711 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "GMWLObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMWLObservation" "', argument "
"1"" of type '" "GMWLObservation const &""'"); goto fail
; } while(0)
;
4713 }
4714 if (!argp1) {
4715 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLObservation" "', argument " "1"" of type '" "GMWLObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLObservation" "', argument " "1"" of type '"
"GMWLObservation const &""'"); goto fail; } while(0)
;
4716 }
4717 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
4718 {
4719 try {
4720 result = (GMWLObservation *)new GMWLObservation((GMWLObservation const &)*arg1);
4721 }
4722 catch (const GException::out_of_range& e) {
4723 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4724 }
4725 catch (const GExceptionHandler& e) {
4726 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4727 }
4728 catch (const std::exception& e) {
4729 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4730 }
4731 }
4732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLObservation, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
4733 return resultobj;
4734fail:
4735 return NULL__null;
4736}
4737
4738
4739SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLObservation(PyObject *self, PyObject *args) {
4740 int argc;
4741 PyObject *argv[3];
4742 int ii;
4743
4744 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4745 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4746 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4747 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4748 }
4749 if (argc == 0) {
4750 return _wrap_new_GMWLObservation__SWIG_0(self, args);
4751 }
4752 if (argc == 1) {
4753 int _v;
4754 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[9], 0, 0);
4755 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4756 if (_v) {
4757 return _wrap_new_GMWLObservation__SWIG_4(self, args);
4758 }
4759 }
4760 if (argc == 1) {
4761 int _v;
4762 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
4763 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4764 if (_v) {
4765 return _wrap_new_GMWLObservation__SWIG_1(self, args);
4766 }
4767 }
4768 if (argc == 2) {
4769 int _v;
4770 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
4771 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4772 if (_v) {
4773 {
4774 int res = SWIG_AsVal_int(argv[1], NULL__null);
4775 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4776 }
4777 if (_v) {
4778 return _wrap_new_GMWLObservation__SWIG_2(self, args);
4779 }
4780 }
4781 }
4782 if (argc == 2) {
4783 int _v;
4784 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
4785 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4786 if (_v) {
4787 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
4788 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4789 if (_v) {
4790 return _wrap_new_GMWLObservation__SWIG_3(self, args);
4791 }
4792 }
4793 }
4794
4795fail:
4796 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GMWLObservation'.\n"
4797 " Possible C/C++ prototypes are:\n"
4798 " GMWLObservation::GMWLObservation()\n"
4799 " GMWLObservation::GMWLObservation(std::string const &)\n"
4800 " GMWLObservation::GMWLObservation(std::string const &,int const &)\n"
4801 " GMWLObservation::GMWLObservation(std::string const &,std::string const &)\n"
4802 " GMWLObservation::GMWLObservation(GMWLObservation const &)\n");
4803 return 0;
4804}
4805
4806
4807SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GMWLObservation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4808 PyObject *resultobj = 0;
4809 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
4810 void *argp1 = 0 ;
4811 int res1 = 0 ;
4812 PyObject * obj0 = 0 ;
4813
4814 if (!PyArg_ParseTuple(args,(char *)"O:delete_GMWLObservation",&obj0)) SWIG_failgoto fail;
4815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0x1 | 0, 0)
;
4816 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GMWLObservation" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GMWLObservation" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
4818 }
4819 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
4820 {
4821 try {
4822 delete arg1;
4823 }
4824 catch (const GException::out_of_range& e) {
4825 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4826 }
4827 catch (const GExceptionHandler& e) {
4828 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4829 }
4830 catch (const std::exception& e) {
4831 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4832 }
4833 }
4834 resultobj = SWIG_Py_Void();
4835 return resultobj;
4836fail:
4837 return NULL__null;
4838}
4839
4840
4841SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4842 PyObject *resultobj = 0;
4843 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
4844 void *argp1 = 0 ;
4845 int res1 = 0 ;
4846 PyObject * obj0 = 0 ;
4847
4848 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_clear",&obj0)) SWIG_failgoto fail;
4849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
4850 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_clear" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_clear" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
4852 }
4853 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
4854 {
4855 try {
4856 (arg1)->clear();
4857 }
4858 catch (const GException::out_of_range& e) {
4859 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4860 }
4861 catch (const GExceptionHandler& e) {
4862 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4863 }
4864 catch (const std::exception& e) {
4865 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4866 }
4867 }
4868 resultobj = SWIG_Py_Void();
4869 return resultobj;
4870fail:
4871 return NULL__null;
4872}
4873
4874
4875SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4876 PyObject *resultobj = 0;
4877 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
4878 void *argp1 = 0 ;
4879 int res1 = 0 ;
4880 PyObject * obj0 = 0 ;
4881 GMWLObservation *result = 0 ;
4882
4883 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_clone",&obj0)) SWIG_failgoto fail;
4884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
4885 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_clone" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_clone" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
4887 }
4888 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
4889 {
4890 try {
4891 result = (GMWLObservation *)((GMWLObservation const *)arg1)->clone();
4892 }
4893 catch (const GException::out_of_range& e) {
4894 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4895 }
4896 catch (const GExceptionHandler& e) {
4897 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4898 }
4899 catch (const std::exception& e) {
4900 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4901 }
4902 }
4903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
4904 return resultobj;
4905fail:
4906 return NULL__null;
4907}
4908
4909
4910SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_response__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4911 PyObject *resultobj = 0;
4912 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
4913 GResponse *arg2 = 0 ;
4914 void *argp1 = 0 ;
4915 int res1 = 0 ;
4916 void *argp2 = 0 ;
4917 int res2 = 0 ;
4918 PyObject * obj0 = 0 ;
4919 PyObject * obj1 = 0 ;
4920
4921 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_response",&obj0,&obj1)) SWIG_failgoto fail;
4922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
4923 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_response" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_response" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
4925 }
4926 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
4927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GResponse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0 | 0, 0)
;
4928 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_response" "', argument "
"2"" of type '" "GResponse const &""'"); goto fail; } while
(0)
;
4930 }
4931 if (!argp2) {
4932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_response" "', argument " "2"" of type '"
"GResponse const &""'"); goto fail; } while(0)
;
4933 }
4934 arg2 = reinterpret_cast< GResponse * >(argp2);
4935 {
4936 try {
4937 (arg1)->response((GResponse const &)*arg2);
4938 }
4939 catch (const GException::out_of_range& e) {
4940 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4941 }
4942 catch (const GExceptionHandler& e) {
4943 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4944 }
4945 catch (const std::exception& e) {
4946 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4947 }
4948 }
4949 resultobj = SWIG_Py_Void();
4950 return resultobj;
4951fail:
4952 return NULL__null;
4953}
4954
4955
4956SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_response__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4957 PyObject *resultobj = 0;
4958 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
4959 void *argp1 = 0 ;
4960 int res1 = 0 ;
4961 PyObject * obj0 = 0 ;
4962 GMWLResponse *result = 0 ;
4963
4964 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_response",&obj0)) SWIG_failgoto fail;
4965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
4966 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_response" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_response" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
4968 }
4969 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
4970 {
4971 try {
4972 result = (GMWLResponse *) &((GMWLObservation const *)arg1)->response();
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_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLResponse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
4985 return resultobj;
4986fail:
4987 return NULL__null;
4988}
4989
4990
4991SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_response(PyObject *self, PyObject *args) {
4992 int argc;
4993 PyObject *argv[3];
4994 int ii;
4995
4996 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4997 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4998 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4999 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5000 }
5001 if (argc == 1) {
5002 int _v;
5003 void *vptr = 0;
5004 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5005 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5006 if (_v) {
5007 return _wrap_GMWLObservation_response__SWIG_1(self, args);
5008 }
5009 }
5010 if (argc == 2) {
5011 int _v;
5012 void *vptr = 0;
5013 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5014 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5015 if (_v) {
5016 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[13], 0, 0
)
;
5017 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5018 if (_v) {
5019 return _wrap_GMWLObservation_response__SWIG_0(self, args);
5020 }
5021 }
5022 }
5023
5024fail:
5025 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLObservation_response'.\n"
5026 " Possible C/C++ prototypes are:\n"
5027 " GMWLObservation::response(GResponse const &)\n"
5028 " GMWLObservation::response() const\n");
5029 return 0;
5030}
5031
5032
5033SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_instrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5034 PyObject *resultobj = 0;
5035 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5036 void *argp1 = 0 ;
5037 int res1 = 0 ;
5038 PyObject * obj0 = 0 ;
5039 std::string result;
5040
5041 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_instrument",&obj0)) SWIG_failgoto fail;
5042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5043 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_instrument" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_instrument"
"', argument " "1"" of type '" "GMWLObservation const *""'")
; goto fail; } while(0)
;
5045 }
5046 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5047 {
5048 try {
5049 result = ((GMWLObservation const *)arg1)->instrument();
5050 }
5051 catch (const GException::out_of_range& e) {
5052 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5053 }
5054 catch (const GExceptionHandler& e) {
5055 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5056 }
5057 catch (const std::exception& e) {
5058 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5059 }
5060 }
5061 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
5062 return resultobj;
5063fail:
5064 return NULL__null;
5065}
5066
5067
5068SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_ontime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5069 PyObject *resultobj = 0;
5070 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5071 void *argp1 = 0 ;
5072 int res1 = 0 ;
5073 PyObject * obj0 = 0 ;
5074 double result;
5075
5076 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_ontime",&obj0)) SWIG_failgoto fail;
5077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5078 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_ontime" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_ontime" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
5080 }
5081 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5082 {
5083 try {
5084 result = (double)((GMWLObservation const *)arg1)->ontime();
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_From_doublePyFloat_FromDouble(static_cast< double >(result));
5097 return resultobj;
5098fail:
5099 return NULL__null;
5100}
5101
5102
5103SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_livetime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5104 PyObject *resultobj = 0;
5105 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5106 void *argp1 = 0 ;
5107 int res1 = 0 ;
5108 PyObject * obj0 = 0 ;
5109 double result;
5110
5111 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_livetime",&obj0)) SWIG_failgoto fail;
5112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5113 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_livetime" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_livetime" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
5115 }
5116 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5117 {
5118 try {
5119 result = (double)((GMWLObservation const *)arg1)->livetime();
5120 }
5121 catch (const GException::out_of_range& e) {
5122 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5123 }
5124 catch (const GExceptionHandler& e) {
5125 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5126 }
5127 catch (const std::exception& e) {
5128 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5129 }
5130 }
5131 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5132 return resultobj;
5133fail:
5134 return NULL__null;
5135}
5136
5137
5138SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_deadc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5139 PyObject *resultobj = 0;
5140 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5141 GTime *arg2 = 0 ;
5142 void *argp1 = 0 ;
5143 int res1 = 0 ;
5144 void *argp2 = 0 ;
5145 int res2 = 0 ;
5146 PyObject * obj0 = 0 ;
5147 PyObject * obj1 = 0 ;
5148 double result;
5149
5150 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_deadc",&obj0,&obj1)) SWIG_failgoto fail;
5151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5152 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_deadc" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_deadc" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
5154 }
5155 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[14]
, 0 | 0, 0)
;
5157 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_deadc" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
5159 }
5160 if (!argp2) {
5161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_deadc" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
5162 }
5163 arg2 = reinterpret_cast< GTime * >(argp2);
5164 {
5165 try {
5166 result = (double)((GMWLObservation const *)arg1)->deadc((GTime const &)*arg2);
5167 }
5168 catch (const GException::out_of_range& e) {
5169 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5170 }
5171 catch (const GExceptionHandler& e) {
5172 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5173 }
5174 catch (const std::exception& e) {
5175 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5176 }
5177 }
5178 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5179 return resultobj;
5180fail:
5181 return NULL__null;
5182}
5183
5184
5185SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5186 PyObject *resultobj = 0;
5187 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5188 GXmlElement *arg2 = 0 ;
5189 void *argp1 = 0 ;
5190 int res1 = 0 ;
5191 void *argp2 = 0 ;
5192 int res2 = 0 ;
5193 PyObject * obj0 = 0 ;
5194 PyObject * obj1 = 0 ;
5195
5196 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_read",&obj0,&obj1)) SWIG_failgoto fail;
5197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5198 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_read" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_read" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5200 }
5201 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5202 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15]
, 0 | 0, 0)
;
5203 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5204 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
5205 }
5206 if (!argp2) {
5207 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
5208 }
5209 arg2 = reinterpret_cast< GXmlElement * >(argp2);
5210 {
5211 try {
5212 (arg1)->read((GXmlElement const &)*arg2);
5213 }
5214 catch (const GException::out_of_range& e) {
5215 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5216 }
5217 catch (const GExceptionHandler& e) {
5218 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5219 }
5220 catch (const std::exception& e) {
5221 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5222 }
5223 }
5224 resultobj = SWIG_Py_Void();
5225 return resultobj;
5226fail:
5227 return NULL__null;
5228}
5229
5230
5231SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5232 PyObject *resultobj = 0;
5233 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5234 GXmlElement *arg2 = 0 ;
5235 void *argp1 = 0 ;
5236 int res1 = 0 ;
5237 void *argp2 = 0 ;
5238 int res2 = 0 ;
5239 PyObject * obj0 = 0 ;
5240 PyObject * obj1 = 0 ;
5241
5242 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_write",&obj0,&obj1)) SWIG_failgoto fail;
5243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5244 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_write" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_write" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
5246 }
5247 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5248 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15]
, 0, 0)
;
5249 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5250 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
5251 }
5252 if (!argp2) {
5253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
5254 }
5255 arg2 = reinterpret_cast< GXmlElement * >(argp2);
5256 {
5257 try {
5258 ((GMWLObservation const *)arg1)->write(*arg2);
5259 }
5260 catch (const GException::out_of_range& e) {
5261 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5262 }
5263 catch (const GExceptionHandler& e) {
5264 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5265 }
5266 catch (const std::exception& e) {
5267 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5268 }
5269 }
5270 resultobj = SWIG_Py_Void();
5271 return resultobj;
5272fail:
5273 return NULL__null;
5274}
5275
5276
5277SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5278 PyObject *resultobj = 0;
5279 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5280 std::string *arg2 = 0 ;
5281 void *argp1 = 0 ;
5282 int res1 = 0 ;
5283 int res2 = SWIG_OLDOBJ((0)) ;
5284 PyObject * obj0 = 0 ;
5285 PyObject * obj1 = 0 ;
5286
5287 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_load",&obj0,&obj1)) SWIG_failgoto fail;
5288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5289 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_load" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_load" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5291 }
5292 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5293 {
5294 std::string *ptr = (std::string *)0;
5295 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5296 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5298 }
5299 if (!ptr) {
5300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5301 }
5302 arg2 = ptr;
5303 }
5304 {
5305 try {
5306 (arg1)->load((std::string const &)*arg2);
5307 }
5308 catch (const GException::out_of_range& e) {
5309 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5310 }
5311 catch (const GExceptionHandler& e) {
5312 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5313 }
5314 catch (const std::exception& e) {
5315 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5316 }
5317 }
5318 resultobj = SWIG_Py_Void();
5319 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5320 return resultobj;
5321fail:
5322 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5323 return NULL__null;
5324}
5325
5326
5327SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5328 PyObject *resultobj = 0;
5329 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5330 std::string *arg2 = 0 ;
5331 int *arg3 = 0 ;
5332 void *argp1 = 0 ;
5333 int res1 = 0 ;
5334 int res2 = SWIG_OLDOBJ((0)) ;
5335 int temp3 ;
5336 int val3 ;
5337 int ecode3 = 0 ;
5338 PyObject * obj0 = 0 ;
5339 PyObject * obj1 = 0 ;
5340 PyObject * obj2 = 0 ;
5341
5342 if (!PyArg_ParseTuple(args,(char *)"OOO:GMWLObservation_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5344 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_load" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_load" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5346 }
5347 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5348 {
5349 std::string *ptr = (std::string *)0;
5350 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5351 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5353 }
5354 if (!ptr) {
5355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5356 }
5357 arg2 = ptr;
5358 }
5359 ecode3 = SWIG_AsVal_int(obj2, &val3);
5360 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5361 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMWLObservation_load" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMWLObservation_load" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
5362 }
5363 temp3 = static_cast< int >(val3);
5364 arg3 = &temp3;
5365 {
5366 try {
5367 (arg1)->load((std::string const &)*arg2,(int const &)*arg3);
5368 }
5369 catch (const GException::out_of_range& e) {
5370 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5371 }
5372 catch (const GExceptionHandler& e) {
5373 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5374 }
5375 catch (const std::exception& e) {
5376 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5377 }
5378 }
5379 resultobj = SWIG_Py_Void();
5380 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5381 return resultobj;
5382fail:
5383 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5384 return NULL__null;
5385}
5386
5387
5388SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5389 PyObject *resultobj = 0;
5390 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5391 std::string *arg2 = 0 ;
5392 std::string *arg3 = 0 ;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 int res2 = SWIG_OLDOBJ((0)) ;
5396 int res3 = SWIG_OLDOBJ((0)) ;
5397 PyObject * obj0 = 0 ;
5398 PyObject * obj1 = 0 ;
5399 PyObject * obj2 = 0 ;
5400
5401 if (!PyArg_ParseTuple(args,(char *)"OOO:GMWLObservation_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5403 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_load" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_load" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5405 }
5406 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5407 {
5408 std::string *ptr = (std::string *)0;
5409 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5410 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5412 }
5413 if (!ptr) {
5414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5415 }
5416 arg2 = ptr;
5417 }
5418 {
5419 std::string *ptr = (std::string *)0;
5420 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
5421 if (!SWIG_IsOK(res3)(res3 >= 0)) {
5422 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMWLObservation_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMWLObservation_load" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5423 }
5424 if (!ptr) {
5425 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_load" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5426 }
5427 arg3 = ptr;
5428 }
5429 {
5430 try {
5431 (arg1)->load((std::string const &)*arg2,(std::string const &)*arg3);
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_Py_Void();
5444 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5445 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
5446 return resultobj;
5447fail:
5448 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5449 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
5450 return NULL__null;
5451}
5452
5453
5454SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_load(PyObject *self, PyObject *args) {
5455 int argc;
5456 PyObject *argv[4];
5457 int ii;
5458
5459 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5460 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5461 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5462 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5463 }
5464 if (argc == 2) {
5465 int _v;
5466 void *vptr = 0;
5467 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5468 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5469 if (_v) {
5470 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5471 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5472 if (_v) {
5473 return _wrap_GMWLObservation_load__SWIG_0(self, args);
5474 }
5475 }
5476 }
5477 if (argc == 3) {
5478 int _v;
5479 void *vptr = 0;
5480 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5481 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5482 if (_v) {
5483 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5484 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5485 if (_v) {
5486 {
5487 int res = SWIG_AsVal_int(argv[2], NULL__null);
5488 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5489 }
5490 if (_v) {
5491 return _wrap_GMWLObservation_load__SWIG_1(self, args);
5492 }
5493 }
5494 }
5495 }
5496 if (argc == 3) {
5497 int _v;
5498 void *vptr = 0;
5499 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5500 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5501 if (_v) {
5502 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5503 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5504 if (_v) {
5505 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
5506 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5507 if (_v) {
5508 return _wrap_GMWLObservation_load__SWIG_2(self, args);
5509 }
5510 }
5511 }
5512 }
5513
5514fail:
5515 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLObservation_load'.\n"
5516 " Possible C/C++ prototypes are:\n"
5517 " GMWLObservation::load(std::string const &)\n"
5518 " GMWLObservation::load(std::string const &,int const &)\n"
5519 " GMWLObservation::load(std::string const &,std::string const &)\n");
5520 return 0;
5521}
5522
5523
5524SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_filename__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5525 PyObject *resultobj = 0;
5526 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5527 void *argp1 = 0 ;
5528 int res1 = 0 ;
5529 PyObject * obj0 = 0 ;
5530 std::string *result = 0 ;
5531
5532 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_filename",&obj0)) SWIG_failgoto fail;
5533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5534 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_filename" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_filename" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
5536 }
5537 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5538 {
5539 try {
5540 result = (std::string *) &((GMWLObservation const *)arg1)->filename();
5541 }
5542 catch (const GException::out_of_range& e) {
5543 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5544 }
5545 catch (const GExceptionHandler& e) {
5546 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5547 }
5548 catch (const std::exception& e) {
5549 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5550 }
5551 }
5552 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
5553 return resultobj;
5554fail:
5555 return NULL__null;
5556}
5557
5558
5559SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_extno__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5560 PyObject *resultobj = 0;
5561 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5562 void *argp1 = 0 ;
5563 int res1 = 0 ;
5564 PyObject * obj0 = 0 ;
5565 std::string *result = 0 ;
5566
5567 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_extno",&obj0)) SWIG_failgoto fail;
5568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5569 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_extno" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_extno" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
5571 }
5572 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5573 {
5574 try {
5575 result = (std::string *) &((GMWLObservation const *)arg1)->extno();
5576 }
5577 catch (const GException::out_of_range& e) {
5578 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5579 }
5580 catch (const GExceptionHandler& e) {
5581 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5582 }
5583 catch (const std::exception& e) {
5584 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5585 }
5586 }
5587 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
5588 return resultobj;
5589fail:
5590 return NULL__null;
5591}
5592
5593
5594SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_extname__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5595 PyObject *resultobj = 0;
5596 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5597 void *argp1 = 0 ;
5598 int res1 = 0 ;
5599 PyObject * obj0 = 0 ;
5600 std::string *result = 0 ;
5601
5602 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_extname",&obj0)) SWIG_failgoto fail;
5603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5604 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_extname" "', argument " "1"" of type '" "GMWLObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_extname" "', argument "
"1"" of type '" "GMWLObservation const *""'"); goto fail; } while
(0)
;
5606 }
5607 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5608 {
5609 try {
5610 result = (std::string *) &((GMWLObservation const *)arg1)->extname();
5611 }
5612 catch (const GException::out_of_range& e) {
5613 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5614 }
5615 catch (const GExceptionHandler& e) {
5616 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5617 }
5618 catch (const std::exception& e) {
5619 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5620 }
5621 }
5622 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
5623 return resultobj;
5624fail:
5625 return NULL__null;
5626}
5627
5628
5629SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_filename__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5630 PyObject *resultobj = 0;
5631 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5632 std::string *arg2 = 0 ;
5633 void *argp1 = 0 ;
5634 int res1 = 0 ;
5635 int res2 = SWIG_OLDOBJ((0)) ;
5636 PyObject * obj0 = 0 ;
5637 PyObject * obj1 = 0 ;
5638
5639 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_filename",&obj0,&obj1)) SWIG_failgoto fail;
5640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5641 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_filename" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_filename" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5643 }
5644 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5645 {
5646 std::string *ptr = (std::string *)0;
5647 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5648 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5649 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_filename" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5650 }
5651 if (!ptr) {
5652 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_filename" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_filename" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5653 }
5654 arg2 = ptr;
5655 }
5656 {
5657 try {
5658 (arg1)->filename((std::string const &)*arg2);
5659 }
5660 catch (const GException::out_of_range& e) {
5661 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5662 }
5663 catch (const GExceptionHandler& e) {
5664 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5665 }
5666 catch (const std::exception& e) {
5667 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5668 }
5669 }
5670 resultobj = SWIG_Py_Void();
5671 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5672 return resultobj;
5673fail:
5674 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5675 return NULL__null;
5676}
5677
5678
5679SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_filename(PyObject *self, PyObject *args) {
5680 int argc;
5681 PyObject *argv[3];
5682 int ii;
5683
5684 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5685 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5686 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5687 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5688 }
5689 if (argc == 1) {
5690 int _v;
5691 void *vptr = 0;
5692 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5693 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5694 if (_v) {
5695 return _wrap_GMWLObservation_filename__SWIG_0(self, args);
5696 }
5697 }
5698 if (argc == 2) {
5699 int _v;
5700 void *vptr = 0;
5701 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5702 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5703 if (_v) {
5704 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5705 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5706 if (_v) {
5707 return _wrap_GMWLObservation_filename__SWIG_1(self, args);
5708 }
5709 }
5710 }
5711
5712fail:
5713 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLObservation_filename'.\n"
5714 " Possible C/C++ prototypes are:\n"
5715 " GMWLObservation::filename() const\n"
5716 " GMWLObservation::filename(std::string const &)\n");
5717 return 0;
5718}
5719
5720
5721SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_extno__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5722 PyObject *resultobj = 0;
5723 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5724 std::string *arg2 = 0 ;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 int res2 = SWIG_OLDOBJ((0)) ;
5728 PyObject * obj0 = 0 ;
5729 PyObject * obj1 = 0 ;
5730
5731 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_extno",&obj0,&obj1)) SWIG_failgoto fail;
5732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5733 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_extno" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_extno" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5735 }
5736 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5737 {
5738 std::string *ptr = (std::string *)0;
5739 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5740 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5741 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_extno" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_extno" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5742 }
5743 if (!ptr) {
5744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_extno" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_extno" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5745 }
5746 arg2 = ptr;
5747 }
5748 {
5749 try {
5750 (arg1)->extno((std::string const &)*arg2);
5751 }
5752 catch (const GException::out_of_range& e) {
5753 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5754 }
5755 catch (const GExceptionHandler& e) {
5756 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5757 }
5758 catch (const std::exception& e) {
5759 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5760 }
5761 }
5762 resultobj = SWIG_Py_Void();
5763 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5764 return resultobj;
5765fail:
5766 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5767 return NULL__null;
5768}
5769
5770
5771SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_extno(PyObject *self, PyObject *args) {
5772 int argc;
5773 PyObject *argv[3];
5774 int ii;
5775
5776 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5777 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5778 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5779 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5780 }
5781 if (argc == 1) {
5782 int _v;
5783 void *vptr = 0;
5784 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5785 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5786 if (_v) {
5787 return _wrap_GMWLObservation_extno__SWIG_0(self, args);
5788 }
5789 }
5790 if (argc == 2) {
5791 int _v;
5792 void *vptr = 0;
5793 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5794 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5795 if (_v) {
5796 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5797 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5798 if (_v) {
5799 return _wrap_GMWLObservation_extno__SWIG_1(self, args);
5800 }
5801 }
5802 }
5803
5804fail:
5805 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLObservation_extno'.\n"
5806 " Possible C/C++ prototypes are:\n"
5807 " GMWLObservation::extno() const\n"
5808 " GMWLObservation::extno(std::string const &)\n");
5809 return 0;
5810}
5811
5812
5813SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_extname__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5814 PyObject *resultobj = 0;
5815 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5816 std::string *arg2 = 0 ;
5817 void *argp1 = 0 ;
5818 int res1 = 0 ;
5819 int res2 = SWIG_OLDOBJ((0)) ;
5820 PyObject * obj0 = 0 ;
5821 PyObject * obj1 = 0 ;
5822
5823 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLObservation_extname",&obj0,&obj1)) SWIG_failgoto fail;
5824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5825 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_extname" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_extname" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5827 }
5828 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5829 {
5830 std::string *ptr = (std::string *)0;
5831 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5832 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLObservation_extname" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLObservation_extname" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5834 }
5835 if (!ptr) {
5836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLObservation_extname" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLObservation_extname" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5837 }
5838 arg2 = ptr;
5839 }
5840 {
5841 try {
5842 (arg1)->extname((std::string const &)*arg2);
5843 }
5844 catch (const GException::out_of_range& e) {
5845 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5846 }
5847 catch (const GExceptionHandler& e) {
5848 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5849 }
5850 catch (const std::exception& e) {
5851 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5852 }
5853 }
5854 resultobj = SWIG_Py_Void();
5855 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5856 return resultobj;
5857fail:
5858 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5859 return NULL__null;
5860}
5861
5862
5863SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_extname(PyObject *self, PyObject *args) {
5864 int argc;
5865 PyObject *argv[3];
5866 int ii;
5867
5868 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5869 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5870 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5871 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5872 }
5873 if (argc == 1) {
5874 int _v;
5875 void *vptr = 0;
5876 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5877 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5878 if (_v) {
5879 return _wrap_GMWLObservation_extname__SWIG_0(self, args);
5880 }
5881 }
5882 if (argc == 2) {
5883 int _v;
5884 void *vptr = 0;
5885 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
5886 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5887 if (_v) {
5888 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5889 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5890 if (_v) {
5891 return _wrap_GMWLObservation_extname__SWIG_1(self, args);
5892 }
5893 }
5894 }
5895
5896fail:
5897 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLObservation_extname'.\n"
5898 " Possible C/C++ prototypes are:\n"
5899 " GMWLObservation::extname() const\n"
5900 " GMWLObservation::extname(std::string const &)\n");
5901 return 0;
5902}
5903
5904
5905SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLObservation_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5906 PyObject *resultobj = 0;
5907 GMWLObservation *arg1 = (GMWLObservation *) 0 ;
5908 void *argp1 = 0 ;
5909 int res1 = 0 ;
5910 PyObject * obj0 = 0 ;
5911 GMWLObservation result;
5912
5913 if (!PyArg_ParseTuple(args,(char *)"O:GMWLObservation_copy",&obj0)) SWIG_failgoto fail;
5914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
5915 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLObservation_copy" "', argument " "1"" of type '" "GMWLObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLObservation_copy" "', argument "
"1"" of type '" "GMWLObservation *""'"); goto fail; } while(
0)
;
5917 }
5918 arg1 = reinterpret_cast< GMWLObservation * >(argp1);
5919 {
5920 try {
5921 result = GMWLObservation_copy(arg1);
5922 }
5923 catch (const GException::out_of_range& e) {
5924 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5925 }
5926 catch (const GExceptionHandler& e) {
5927 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5928 }
5929 catch (const std::exception& e) {
5930 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5931 }
5932 }
5933 resultobj = SWIG_NewPointerObj((new GMWLObservation(static_cast< const GMWLObservation& >(result))), SWIGTYPE_p_GMWLObservation, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMWLObservation(static_cast
< const GMWLObservation& >(result))), swig_types[9]
, 0x1 | 0)
;
5934 return resultobj;
5935fail:
5936 return NULL__null;
5937}
5938
5939
5940SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GMWLObservation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5941 PyObject *obj;
5942 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
5943 SWIG_TypeNewClientData(SWIGTYPE_p_GMWLObservationswig_types[9], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
5944 return SWIG_Py_Void();
5945}
5946
5947SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLSpectrum__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5948 PyObject *resultobj = 0;
5949 GMWLSpectrum *result = 0 ;
5950
5951 if (!PyArg_ParseTuple(args,(char *)":new_GMWLSpectrum")) SWIG_failgoto fail;
5952 {
5953 try {
5954 result = (GMWLSpectrum *)new GMWLSpectrum();
5955 }
5956 catch (const GException::out_of_range& e) {
5957 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5958 }
5959 catch (const GExceptionHandler& e) {
5960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5961 }
5962 catch (const std::exception& e) {
5963 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5964 }
5965 }
5966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLSpectrum, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], (
(0x1 << 1) | 0x1) | 0)
;
5967 return resultobj;
5968fail:
5969 return NULL__null;
5970}
5971
5972
5973SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLSpectrum__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5974 PyObject *resultobj = 0;
5975 std::string *arg1 = 0 ;
5976 int res1 = SWIG_OLDOBJ((0)) ;
5977 PyObject * obj0 = 0 ;
5978 GMWLSpectrum *result = 0 ;
5979
5980 if (!PyArg_ParseTuple(args,(char *)"O:new_GMWLSpectrum",&obj0)) SWIG_failgoto fail;
5981 {
5982 std::string *ptr = (std::string *)0;
5983 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
5984 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMWLSpectrum" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMWLSpectrum" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5986 }
5987 if (!ptr) {
5988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLSpectrum" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLSpectrum" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5989 }
5990 arg1 = ptr;
5991 }
5992 {
5993 try {
5994 result = (GMWLSpectrum *)new GMWLSpectrum((std::string const &)*arg1);
5995 }
5996 catch (const GException::out_of_range& e) {
5997 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5998 }
5999 catch (const GExceptionHandler& e) {
6000 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6001 }
6002 catch (const std::exception& e) {
6003 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6004 }
6005 }
6006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLSpectrum, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], (
(0x1 << 1) | 0x1) | 0)
;
6007 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6008 return resultobj;
6009fail:
6010 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6011 return NULL__null;
6012}
6013
6014
6015SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLSpectrum__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6016 PyObject *resultobj = 0;
6017 GMWLSpectrum *arg1 = 0 ;
6018 void *argp1 = 0 ;
6019 int res1 = 0 ;
6020 PyObject * obj0 = 0 ;
6021 GMWLSpectrum *result = 0 ;
6022
6023 if (!PyArg_ParseTuple(args,(char *)"O:new_GMWLSpectrum",&obj0)) SWIG_failgoto fail;
6024 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMWLSpectrum, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6025 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMWLSpectrum" "', argument " "1"" of type '" "GMWLSpectrum const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMWLSpectrum" "', argument "
"1"" of type '" "GMWLSpectrum const &""'"); goto fail; }
while(0)
;
6027 }
6028 if (!argp1) {
6029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLSpectrum" "', argument " "1"" of type '" "GMWLSpectrum const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLSpectrum" "', argument " "1"" of type '"
"GMWLSpectrum const &""'"); goto fail; } while(0)
;
6030 }
6031 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6032 {
6033 try {
6034 result = (GMWLSpectrum *)new GMWLSpectrum((GMWLSpectrum const &)*arg1);
6035 }
6036 catch (const GException::out_of_range& e) {
6037 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6038 }
6039 catch (const GExceptionHandler& e) {
6040 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6041 }
6042 catch (const std::exception& e) {
6043 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6044 }
6045 }
6046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLSpectrum, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], (
(0x1 << 1) | 0x1) | 0)
;
6047 return resultobj;
6048fail:
6049 return NULL__null;
6050}
6051
6052
6053SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLSpectrum(PyObject *self, PyObject *args) {
6054 int argc;
6055 PyObject *argv[2];
6056 int ii;
6057
6058 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6059 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6060 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
6061 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6062 }
6063 if (argc == 0) {
6064 return _wrap_new_GMWLSpectrum__SWIG_0(self, args);
6065 }
6066 if (argc == 1) {
6067 int _v;
6068 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[11], 0, 0
)
;
6069 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6070 if (_v) {
6071 return _wrap_new_GMWLSpectrum__SWIG_2(self, args);
6072 }
6073 }
6074 if (argc == 1) {
6075 int _v;
6076 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
6077 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6078 if (_v) {
6079 return _wrap_new_GMWLSpectrum__SWIG_1(self, args);
6080 }
6081 }
6082
6083fail:
6084 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GMWLSpectrum'.\n"
6085 " Possible C/C++ prototypes are:\n"
6086 " GMWLSpectrum::GMWLSpectrum()\n"
6087 " GMWLSpectrum::GMWLSpectrum(std::string const &)\n"
6088 " GMWLSpectrum::GMWLSpectrum(GMWLSpectrum const &)\n");
6089 return 0;
6090}
6091
6092
6093SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GMWLSpectrum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6094 PyObject *resultobj = 0;
6095 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6096 void *argp1 = 0 ;
6097 int res1 = 0 ;
6098 PyObject * obj0 = 0 ;
6099
6100 if (!PyArg_ParseTuple(args,(char *)"O:delete_GMWLSpectrum",&obj0)) SWIG_failgoto fail;
6101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0x1 | 0, 0)
;
6102 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GMWLSpectrum" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GMWLSpectrum" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6104 }
6105 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6106 {
6107 try {
6108 delete arg1;
6109 }
6110 catch (const GException::out_of_range& e) {
6111 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6112 }
6113 catch (const GExceptionHandler& e) {
6114 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6115 }
6116 catch (const std::exception& e) {
6117 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6118 }
6119 }
6120 resultobj = SWIG_Py_Void();
6121 return resultobj;
6122fail:
6123 return NULL__null;
6124}
6125
6126
6127SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6128 PyObject *resultobj = 0;
6129 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6130 void *argp1 = 0 ;
6131 int res1 = 0 ;
6132 PyObject * obj0 = 0 ;
6133
6134 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_clear",&obj0)) SWIG_failgoto fail;
6135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6136 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_clear" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_clear" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6138 }
6139 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6140 {
6141 try {
6142 (arg1)->clear();
6143 }
6144 catch (const GException::out_of_range& e) {
6145 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6146 }
6147 catch (const GExceptionHandler& e) {
6148 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6149 }
6150 catch (const std::exception& e) {
6151 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6152 }
6153 }
6154 resultobj = SWIG_Py_Void();
6155 return resultobj;
6156fail:
6157 return NULL__null;
6158}
6159
6160
6161SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6162 PyObject *resultobj = 0;
6163 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6164 void *argp1 = 0 ;
6165 int res1 = 0 ;
6166 PyObject * obj0 = 0 ;
6167 GMWLSpectrum *result = 0 ;
6168
6169 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_clone",&obj0)) SWIG_failgoto fail;
6170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6171 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_clone" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_clone" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6173 }
6174 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6175 {
6176 try {
6177 result = (GMWLSpectrum *)((GMWLSpectrum const *)arg1)->clone();
6178 }
6179 catch (const GException::out_of_range& e) {
6180 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6181 }
6182 catch (const GExceptionHandler& e) {
6183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6184 }
6185 catch (const std::exception& e) {
6186 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6187 }
6188 }
6189 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], 0
| 0)
;
6190 return resultobj;
6191fail:
6192 return NULL__null;
6193}
6194
6195
6196SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6197 PyObject *resultobj = 0;
6198 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6199 void *argp1 = 0 ;
6200 int res1 = 0 ;
6201 PyObject * obj0 = 0 ;
6202 int result;
6203
6204 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_size",&obj0)) SWIG_failgoto fail;
6205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6206 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_size" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_size" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6208 }
6209 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6210 {
6211 try {
6212 result = (int)((GMWLSpectrum const *)arg1)->size();
6213 }
6214 catch (const GException::out_of_range& e) {
6215 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6216 }
6217 catch (const GExceptionHandler& e) {
6218 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6219 }
6220 catch (const std::exception& e) {
6221 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6222 }
6223 }
6224 resultobj = SWIG_From_int(static_cast< int >(result));
6225 return resultobj;
6226fail:
6227 return NULL__null;
6228}
6229
6230
6231SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6232 PyObject *resultobj = 0;
6233 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6234 void *argp1 = 0 ;
6235 int res1 = 0 ;
6236 PyObject * obj0 = 0 ;
6237 int result;
6238
6239 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_dim",&obj0)) SWIG_failgoto fail;
6240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6241 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_dim" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_dim" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6243 }
6244 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6245 {
6246 try {
6247 result = (int)((GMWLSpectrum const *)arg1)->dim();
6248 }
6249 catch (const GException::out_of_range& e) {
6250 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6251 }
6252 catch (const GExceptionHandler& e) {
6253 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6254 }
6255 catch (const std::exception& e) {
6256 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6257 }
6258 }
6259 resultobj = SWIG_From_int(static_cast< int >(result));
6260 return resultobj;
6261fail:
6262 return NULL__null;
6263}
6264
6265
6266SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_naxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6267 PyObject *resultobj = 0;
6268 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6269 int *arg2 = 0 ;
6270 void *argp1 = 0 ;
6271 int res1 = 0 ;
6272 int temp2 ;
6273 int val2 ;
6274 int ecode2 = 0 ;
6275 PyObject * obj0 = 0 ;
6276 PyObject * obj1 = 0 ;
6277 int result;
6278
6279 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLSpectrum_naxis",&obj0,&obj1)) SWIG_failgoto fail;
6280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6281 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_naxis" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_naxis" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6283 }
6284 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6285 ecode2 = SWIG_AsVal_int(obj1, &val2);
6286 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMWLSpectrum_naxis" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMWLSpectrum_naxis" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6288 }
6289 temp2 = static_cast< int >(val2);
6290 arg2 = &temp2;
6291 {
6292 try {
6293 result = (int)((GMWLSpectrum const *)arg1)->naxis((int const &)*arg2);
6294 }
6295 catch (const GException::out_of_range& e) {
6296 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6297 }
6298 catch (const GExceptionHandler& e) {
6299 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6300 }
6301 catch (const std::exception& e) {
6302 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6303 }
6304 }
6305 resultobj = SWIG_From_int(static_cast< int >(result));
6306 return resultobj;
6307fail:
6308 return NULL__null;
6309}
6310
6311
6312SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6313 PyObject *resultobj = 0;
6314 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6315 std::string *arg2 = 0 ;
6316 void *argp1 = 0 ;
6317 int res1 = 0 ;
6318 int res2 = SWIG_OLDOBJ((0)) ;
6319 PyObject * obj0 = 0 ;
6320 PyObject * obj1 = 0 ;
6321
6322 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLSpectrum_load",&obj0,&obj1)) SWIG_failgoto fail;
6323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6324 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_load" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6326 }
6327 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6328 {
6329 std::string *ptr = (std::string *)0;
6330 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6331 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6333 }
6334 if (!ptr) {
6335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6336 }
6337 arg2 = ptr;
6338 }
6339 {
6340 try {
6341 (arg1)->load((std::string const &)*arg2);
6342 }
6343 catch (const GException::out_of_range& e) {
6344 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6345 }
6346 catch (const GExceptionHandler& e) {
6347 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6348 }
6349 catch (const std::exception& e) {
6350 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6351 }
6352 }
6353 resultobj = SWIG_Py_Void();
6354 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6355 return resultobj;
6356fail:
6357 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6358 return NULL__null;
6359}
6360
6361
6362SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6363 PyObject *resultobj = 0;
6364 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6365 std::string *arg2 = 0 ;
6366 bool *arg3 = 0 ;
6367 void *argp1 = 0 ;
6368 int res1 = 0 ;
6369 int res2 = SWIG_OLDOBJ((0)) ;
6370 bool temp3 ;
6371 bool val3 ;
6372 int ecode3 = 0 ;
6373 PyObject * obj0 = 0 ;
6374 PyObject * obj1 = 0 ;
6375 PyObject * obj2 = 0 ;
6376
6377 if (!PyArg_ParseTuple(args,(char *)"OOO:GMWLSpectrum_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6379 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_save" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_save" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6381 }
6382 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6383 {
6384 std::string *ptr = (std::string *)0;
6385 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6386 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6387 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6388 }
6389 if (!ptr) {
6390 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6391 }
6392 arg2 = ptr;
6393 }
6394 ecode3 = SWIG_AsVal_bool(obj2, &val3);
6395 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6396 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMWLSpectrum_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMWLSpectrum_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
6397 }
6398 temp3 = static_cast< bool >(val3);
6399 arg3 = &temp3;
6400 {
6401 try {
6402 ((GMWLSpectrum const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
6403 }
6404 catch (const GException::out_of_range& e) {
6405 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6406 }
6407 catch (const GExceptionHandler& e) {
6408 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6409 }
6410 catch (const std::exception& e) {
6411 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6412 }
6413 }
6414 resultobj = SWIG_Py_Void();
6415 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6416 return resultobj;
6417fail:
6418 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6419 return NULL__null;
6420}
6421
6422
6423SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424 PyObject *resultobj = 0;
6425 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6426 std::string *arg2 = 0 ;
6427 void *argp1 = 0 ;
6428 int res1 = 0 ;
6429 int res2 = SWIG_OLDOBJ((0)) ;
6430 PyObject * obj0 = 0 ;
6431 PyObject * obj1 = 0 ;
6432
6433 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLSpectrum_save",&obj0,&obj1)) SWIG_failgoto fail;
6434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6435 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_save" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_save" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6437 }
6438 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6439 {
6440 std::string *ptr = (std::string *)0;
6441 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6442 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6444 }
6445 if (!ptr) {
6446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6447 }
6448 arg2 = ptr;
6449 }
6450 {
6451 try {
6452 ((GMWLSpectrum const *)arg1)->save((std::string const &)*arg2);
6453 }
6454 catch (const GException::out_of_range& e) {
6455 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6456 }
6457 catch (const GExceptionHandler& e) {
6458 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6459 }
6460 catch (const std::exception& e) {
6461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6462 }
6463 }
6464 resultobj = SWIG_Py_Void();
6465 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6466 return resultobj;
6467fail:
6468 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6469 return NULL__null;
6470}
6471
6472
6473SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_save(PyObject *self, PyObject *args) {
6474 int argc;
6475 PyObject *argv[4];
6476 int ii;
6477
6478 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6479 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6480 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6481 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6482 }
6483 if (argc == 2) {
6484 int _v;
6485 void *vptr = 0;
6486 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
6487 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6488 if (_v) {
6489 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6490 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6491 if (_v) {
6492 return _wrap_GMWLSpectrum_save__SWIG_1(self, args);
6493 }
6494 }
6495 }
6496 if (argc == 3) {
6497 int _v;
6498 void *vptr = 0;
6499 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
6500 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6501 if (_v) {
6502 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6503 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6504 if (_v) {
6505 {
6506 int res = SWIG_AsVal_bool(argv[2], NULL__null);
6507 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6508 }
6509 if (_v) {
6510 return _wrap_GMWLSpectrum_save__SWIG_0(self, args);
6511 }
6512 }
6513 }
6514 }
6515
6516fail:
6517 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLSpectrum_save'.\n"
6518 " Possible C/C++ prototypes are:\n"
6519 " GMWLSpectrum::save(std::string const &,bool const &) const\n"
6520 " GMWLSpectrum::save(std::string const &) const\n");
6521 return 0;
6522}
6523
6524
6525SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_read__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6526 PyObject *resultobj = 0;
6527 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6528 GFits *arg2 = 0 ;
6529 void *argp1 = 0 ;
6530 int res1 = 0 ;
6531 void *argp2 = 0 ;
6532 int res2 = 0 ;
6533 PyObject * obj0 = 0 ;
6534 PyObject * obj1 = 0 ;
6535
6536 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLSpectrum_read",&obj0,&obj1)) SWIG_failgoto fail;
6537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6538 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_read" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6540 }
6541 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6542 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
6543 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"2"" of type '" "GFits const &""'"); goto fail; } while(
0)
;
6545 }
6546 if (!argp2) {
6547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_read" "', argument " "2"" of type '"
"GFits const &""'"); goto fail; } while(0)
;
6548 }
6549 arg2 = reinterpret_cast< GFits * >(argp2);
6550 {
6551 try {
6552 (arg1)->read((GFits const &)*arg2);
6553 }
6554 catch (const GException::out_of_range& e) {
6555 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6556 }
6557 catch (const GExceptionHandler& e) {
6558 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6559 }
6560 catch (const std::exception& e) {
6561 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6562 }
6563 }
6564 resultobj = SWIG_Py_Void();
6565 return resultobj;
6566fail:
6567 return NULL__null;
6568}
6569
6570
6571SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6572 PyObject *resultobj = 0;
6573 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6574 GFits *arg2 = 0 ;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 void *argp2 = 0 ;
6578 int res2 = 0 ;
6579 PyObject * obj0 = 0 ;
6580 PyObject * obj1 = 0 ;
6581
6582 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLSpectrum_write",&obj0,&obj1)) SWIG_failgoto fail;
6583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6584 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_write" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_write" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6586 }
6587 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0, 0)
;
6589 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
6591 }
6592 if (!argp2) {
6593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
6594 }
6595 arg2 = reinterpret_cast< GFits * >(argp2);
6596 {
6597 try {
6598 ((GMWLSpectrum const *)arg1)->write(*arg2);
6599 }
6600 catch (const GException::out_of_range& e) {
6601 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6602 }
6603 catch (const GExceptionHandler& e) {
6604 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6605 }
6606 catch (const std::exception& e) {
6607 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6608 }
6609 }
6610 resultobj = SWIG_Py_Void();
6611 return resultobj;
6612fail:
6613 return NULL__null;
6614}
6615
6616
6617SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6618 PyObject *resultobj = 0;
6619 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6620 void *argp1 = 0 ;
6621 int res1 = 0 ;
6622 PyObject * obj0 = 0 ;
6623 int result;
6624
6625 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_number",&obj0)) SWIG_failgoto fail;
6626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6627 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_number" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_number" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
6629 }
6630 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6631 {
6632 try {
6633 result = (int)((GMWLSpectrum const *)arg1)->number();
6634 }
6635 catch (const GException::out_of_range& e) {
6636 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6637 }
6638 catch (const GExceptionHandler& e) {
6639 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6640 }
6641 catch (const std::exception& e) {
6642 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6643 }
6644 }
6645 resultobj = SWIG_From_int(static_cast< int >(result));
6646 return resultobj;
6647fail:
6648 return NULL__null;
6649}
6650
6651
6652SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6653 PyObject *resultobj = 0;
6654 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6655 std::string *arg2 = 0 ;
6656 std::string *arg3 = 0 ;
6657 void *argp1 = 0 ;
6658 int res1 = 0 ;
6659 int res2 = SWIG_OLDOBJ((0)) ;
6660 int res3 = SWIG_OLDOBJ((0)) ;
6661 PyObject * obj0 = 0 ;
6662 PyObject * obj1 = 0 ;
6663 PyObject * obj2 = 0 ;
6664
6665 if (!PyArg_ParseTuple(args,(char *)"OOO:GMWLSpectrum_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6667 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_load" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6669 }
6670 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6671 {
6672 std::string *ptr = (std::string *)0;
6673 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6674 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6676 }
6677 if (!ptr) {
6678 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6679 }
6680 arg2 = ptr;
6681 }
6682 {
6683 std::string *ptr = (std::string *)0;
6684 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
6685 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6686 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMWLSpectrum_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6687 }
6688 if (!ptr) {
6689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_load" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6690 }
6691 arg3 = ptr;
6692 }
6693 {
6694 try {
6695 (arg1)->load((std::string const &)*arg2,(std::string const &)*arg3);
6696 }
6697 catch (const GException::out_of_range& e) {
6698 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6699 }
6700 catch (const GExceptionHandler& e) {
6701 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6702 }
6703 catch (const std::exception& e) {
6704 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6705 }
6706 }
6707 resultobj = SWIG_Py_Void();
6708 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6709 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
6710 return resultobj;
6711fail:
6712 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6713 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
6714 return NULL__null;
6715}
6716
6717
6718SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6719 PyObject *resultobj = 0;
6720 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6721 std::string *arg2 = 0 ;
6722 int *arg3 = 0 ;
6723 void *argp1 = 0 ;
6724 int res1 = 0 ;
6725 int res2 = SWIG_OLDOBJ((0)) ;
6726 int temp3 ;
6727 int val3 ;
6728 int ecode3 = 0 ;
6729 PyObject * obj0 = 0 ;
6730 PyObject * obj1 = 0 ;
6731 PyObject * obj2 = 0 ;
6732
6733 if (!PyArg_ParseTuple(args,(char *)"OOO:GMWLSpectrum_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6735 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_load" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6737 }
6738 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6739 {
6740 std::string *ptr = (std::string *)0;
6741 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6742 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6744 }
6745 if (!ptr) {
6746 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6747 }
6748 arg2 = ptr;
6749 }
6750 ecode3 = SWIG_AsVal_int(obj2, &val3);
6751 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMWLSpectrum_load" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMWLSpectrum_load" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
6753 }
6754 temp3 = static_cast< int >(val3);
6755 arg3 = &temp3;
6756 {
6757 try {
6758 (arg1)->load((std::string const &)*arg2,(int const &)*arg3);
6759 }
6760 catch (const GException::out_of_range& e) {
6761 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6762 }
6763 catch (const GExceptionHandler& e) {
6764 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6765 }
6766 catch (const std::exception& e) {
6767 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6768 }
6769 }
6770 resultobj = SWIG_Py_Void();
6771 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6772 return resultobj;
6773fail:
6774 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6775 return NULL__null;
6776}
6777
6778
6779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_load(PyObject *self, PyObject *args) {
6780 int argc;
6781 PyObject *argv[4];
6782 int ii;
6783
6784 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6785 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6786 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6787 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6788 }
6789 if (argc == 2) {
6790 int _v;
6791 void *vptr = 0;
6792 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
6793 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6794 if (_v) {
6795 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6796 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6797 if (_v) {
6798 return _wrap_GMWLSpectrum_load__SWIG_0(self, args);
6799 }
6800 }
6801 }
6802 if (argc == 3) {
6803 int _v;
6804 void *vptr = 0;
6805 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
6806 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6807 if (_v) {
6808 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6809 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6810 if (_v) {
6811 {
6812 int res = SWIG_AsVal_int(argv[2], NULL__null);
6813 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6814 }
6815 if (_v) {
6816 return _wrap_GMWLSpectrum_load__SWIG_2(self, args);
6817 }
6818 }
6819 }
6820 }
6821 if (argc == 3) {
6822 int _v;
6823 void *vptr = 0;
6824 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
6825 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6826 if (_v) {
6827 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6828 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6829 if (_v) {
6830 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
6831 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6832 if (_v) {
6833 return _wrap_GMWLSpectrum_load__SWIG_1(self, args);
6834 }
6835 }
6836 }
6837 }
6838
6839fail:
6840 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLSpectrum_load'.\n"
6841 " Possible C/C++ prototypes are:\n"
6842 " GMWLSpectrum::load(std::string const &)\n"
6843 " GMWLSpectrum::load(std::string const &,std::string const &)\n"
6844 " GMWLSpectrum::load(std::string const &,int const &)\n");
6845 return 0;
6846}
6847
6848
6849SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_read__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6850 PyObject *resultobj = 0;
6851 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6852 GFits *arg2 = 0 ;
6853 std::string *arg3 = 0 ;
6854 void *argp1 = 0 ;
6855 int res1 = 0 ;
6856 void *argp2 = 0 ;
6857 int res2 = 0 ;
6858 int res3 = SWIG_OLDOBJ((0)) ;
6859 PyObject * obj0 = 0 ;
6860 PyObject * obj1 = 0 ;
6861 PyObject * obj2 = 0 ;
6862
6863 if (!PyArg_ParseTuple(args,(char *)"OOO:GMWLSpectrum_read",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6865 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_read" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6867 }
6868 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
6870 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"2"" of type '" "GFits const &""'"); goto fail; } while(
0)
;
6872 }
6873 if (!argp2) {
6874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_read" "', argument " "2"" of type '"
"GFits const &""'"); goto fail; } while(0)
;
6875 }
6876 arg2 = reinterpret_cast< GFits * >(argp2);
6877 {
6878 std::string *ptr = (std::string *)0;
6879 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
6880 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6881 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GMWLSpectrum_read" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6882 }
6883 if (!ptr) {
6884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_read" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_read" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6885 }
6886 arg3 = ptr;
6887 }
6888 {
6889 try {
6890 (arg1)->read((GFits const &)*arg2,(std::string const &)*arg3);
6891 }
6892 catch (const GException::out_of_range& e) {
6893 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6894 }
6895 catch (const GExceptionHandler& e) {
6896 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6897 }
6898 catch (const std::exception& e) {
6899 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6900 }
6901 }
6902 resultobj = SWIG_Py_Void();
6903 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
6904 return resultobj;
6905fail:
6906 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
6907 return NULL__null;
6908}
6909
6910
6911SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_read__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6912 PyObject *resultobj = 0;
6913 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
6914 GFits *arg2 = 0 ;
6915 int *arg3 = 0 ;
6916 void *argp1 = 0 ;
6917 int res1 = 0 ;
6918 void *argp2 = 0 ;
6919 int res2 = 0 ;
6920 int temp3 ;
6921 int val3 ;
6922 int ecode3 = 0 ;
6923 PyObject * obj0 = 0 ;
6924 PyObject * obj1 = 0 ;
6925 PyObject * obj2 = 0 ;
6926
6927 if (!PyArg_ParseTuple(args,(char *)"OOO:GMWLSpectrum_read",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
6929 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_read" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
6931 }
6932 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
6933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
6934 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GMWLSpectrum_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"2"" of type '" "GFits const &""'"); goto fail; } while(
0)
;
6936 }
6937 if (!argp2) {
6938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GMWLSpectrum_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GMWLSpectrum_read" "', argument " "2"" of type '"
"GFits const &""'"); goto fail; } while(0)
;
6939 }
6940 arg2 = reinterpret_cast< GFits * >(argp2);
6941 ecode3 = SWIG_AsVal_int(obj2, &val3);
6942 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
6943 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GMWLSpectrum_read" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GMWLSpectrum_read" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
6944 }
6945 temp3 = static_cast< int >(val3);
6946 arg3 = &temp3;
6947 {
6948 try {
6949 (arg1)->read((GFits const &)*arg2,(int const &)*arg3);
6950 }
6951 catch (const GException::out_of_range& e) {
6952 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6953 }
6954 catch (const GExceptionHandler& e) {
6955 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6956 }
6957 catch (const std::exception& e) {
6958 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6959 }
6960 }
6961 resultobj = SWIG_Py_Void();
6962 return resultobj;
6963fail:
6964 return NULL__null;
6965}
6966
6967
6968SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_read(PyObject *self, PyObject *args) {
6969 int argc;
6970 PyObject *argv[4];
6971 int ii;
6972
6973 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6974 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6975 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
6976 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6977 }
6978 if (argc == 2) {
6979 int _v;
6980 void *vptr = 0;
6981 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
6982 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6983 if (_v) {
6984 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0);
6985 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6986 if (_v) {
6987 return _wrap_GMWLSpectrum_read__SWIG_0(self, args);
6988 }
6989 }
6990 }
6991 if (argc == 3) {
6992 int _v;
6993 void *vptr = 0;
6994 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
6995 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6996 if (_v) {
6997 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0);
6998 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6999 if (_v) {
7000 {
7001 int res = SWIG_AsVal_int(argv[2], NULL__null);
7002 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7003 }
7004 if (_v) {
7005 return _wrap_GMWLSpectrum_read__SWIG_2(self, args);
7006 }
7007 }
7008 }
7009 }
7010 if (argc == 3) {
7011 int _v;
7012 void *vptr = 0;
7013 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLSpectrum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
7014 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7015 if (_v) {
7016 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0);
7017 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7018 if (_v) {
7019 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
7020 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7021 if (_v) {
7022 return _wrap_GMWLSpectrum_read__SWIG_1(self, args);
7023 }
7024 }
7025 }
7026 }
7027
7028fail:
7029 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLSpectrum_read'.\n"
7030 " Possible C/C++ prototypes are:\n"
7031 " GMWLSpectrum::read(GFits const &)\n"
7032 " GMWLSpectrum::read(GFits const &,std::string const &)\n"
7033 " GMWLSpectrum::read(GFits const &,int const &)\n");
7034 return 0;
7035}
7036
7037
7038SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_telescope(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7039 PyObject *resultobj = 0;
7040 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
7041 void *argp1 = 0 ;
7042 int res1 = 0 ;
7043 PyObject * obj0 = 0 ;
7044 std::string *result = 0 ;
7045
7046 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_telescope",&obj0)) SWIG_failgoto fail;
7047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
7048 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_telescope" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_telescope" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
7050 }
7051 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
7052 {
7053 try {
7054 result = (std::string *) &((GMWLSpectrum const *)arg1)->telescope();
7055 }
7056 catch (const GException::out_of_range& e) {
7057 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7058 }
7059 catch (const GExceptionHandler& e) {
7060 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7061 }
7062 catch (const std::exception& e) {
7063 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7064 }
7065 }
7066 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
7067 return resultobj;
7068fail:
7069 return NULL__null;
7070}
7071
7072
7073SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_instrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7074 PyObject *resultobj = 0;
7075 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
7076 void *argp1 = 0 ;
7077 int res1 = 0 ;
7078 PyObject * obj0 = 0 ;
7079 std::string *result = 0 ;
7080
7081 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_instrument",&obj0)) SWIG_failgoto fail;
7082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
7083 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_instrument" "', argument " "1"" of type '" "GMWLSpectrum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_instrument" "', argument "
"1"" of type '" "GMWLSpectrum const *""'"); goto fail; } while
(0)
;
7085 }
7086 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
7087 {
7088 try {
7089 result = (std::string *) &((GMWLSpectrum const *)arg1)->instrument();
7090 }
7091 catch (const GException::out_of_range& e) {
7092 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7093 }
7094 catch (const GExceptionHandler& e) {
7095 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7096 }
7097 catch (const std::exception& e) {
7098 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7099 }
7100 }
7101 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
7102 return resultobj;
7103fail:
7104 return NULL__null;
7105}
7106
7107
7108SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7109 PyObject *resultobj = 0;
7110 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
7111 void *argp1 = 0 ;
7112 int res1 = 0 ;
7113 PyObject * obj0 = 0 ;
7114 GMWLSpectrum result;
7115
7116 if (!PyArg_ParseTuple(args,(char *)"O:GMWLSpectrum_copy",&obj0)) SWIG_failgoto fail;
7117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
7118 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum_copy" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum_copy" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
7120 }
7121 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
7122 {
7123 try {
7124 result = GMWLSpectrum_copy(arg1);
7125 }
7126 catch (const GException::out_of_range& e) {
7127 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7128 }
7129 catch (const GExceptionHandler& e) {
7130 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7131 }
7132 catch (const std::exception& e) {
7133 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7134 }
7135 }
7136 resultobj = SWIG_NewPointerObj((new GMWLSpectrum(static_cast< const GMWLSpectrum& >(result))), SWIGTYPE_p_GMWLSpectrum, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMWLSpectrum(static_cast
< const GMWLSpectrum& >(result))), swig_types[11], 0x1
| 0)
;
7137 return resultobj;
7138fail:
7139 return NULL__null;
7140}
7141
7142
7143SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLSpectrum___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7144 PyObject *resultobj = 0;
7145 GMWLSpectrum *arg1 = (GMWLSpectrum *) 0 ;
7146 int arg2 ;
7147 void *argp1 = 0 ;
7148 int res1 = 0 ;
7149 int val2 ;
7150 int ecode2 = 0 ;
7151 PyObject * obj0 = 0 ;
7152 PyObject * obj1 = 0 ;
7153 GMWLDatum *result = 0 ;
7154
7155 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLSpectrum___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
7156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLSpectrum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
7157 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLSpectrum___getitem__" "', argument " "1"" of type '" "GMWLSpectrum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLSpectrum___getitem__" "', argument "
"1"" of type '" "GMWLSpectrum *""'"); goto fail; } while(0)
;
7159 }
7160 arg1 = reinterpret_cast< GMWLSpectrum * >(argp1);
7161 ecode2 = SWIG_AsVal_int(obj1, &val2);
7162 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMWLSpectrum___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMWLSpectrum___getitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
7164 }
7165 arg2 = static_cast< int >(val2);
7166 {
7167 try {
7168 result = (GMWLDatum *)GMWLSpectrum___getitem__(arg1,arg2);
7169 }
7170 catch (const GException::out_of_range& e) {
7171 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7172 }
7173 catch (const GExceptionHandler& e) {
7174 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7175 }
7176 catch (const std::exception& e) {
7177 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7178 }
7179 }
7180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
7181 return resultobj;
7182fail:
7183 return NULL__null;
7184}
7185
7186
7187SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GMWLSpectrum_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7188 PyObject *obj;
7189 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
7190 SWIG_TypeNewClientData(SWIGTYPE_p_GMWLSpectrumswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
7191 return SWIG_Py_Void();
7192}
7193
7194SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLDatum__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7195 PyObject *resultobj = 0;
7196 GMWLDatum *result = 0 ;
7197
7198 if (!PyArg_ParseTuple(args,(char *)":new_GMWLDatum")) SWIG_failgoto fail;
7199 {
7200 try {
7201 result = (GMWLDatum *)new GMWLDatum();
7202 }
7203 catch (const GException::out_of_range& e) {
7204 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7205 }
7206 catch (const GExceptionHandler& e) {
7207 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7208 }
7209 catch (const std::exception& e) {
7210 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7211 }
7212 }
7213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLDatum, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
7214 return resultobj;
7215fail:
7216 return NULL__null;
7217}
7218
7219
7220SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLDatum__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7221 PyObject *resultobj = 0;
7222 GMWLDatum *arg1 = 0 ;
7223 void *argp1 = 0 ;
7224 int res1 = 0 ;
7225 PyObject * obj0 = 0 ;
7226 GMWLDatum *result = 0 ;
7227
7228 if (!PyArg_ParseTuple(args,(char *)"O:new_GMWLDatum",&obj0)) SWIG_failgoto fail;
7229 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GMWLDatum, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7230 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GMWLDatum" "', argument " "1"" of type '" "GMWLDatum const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GMWLDatum" "', argument "
"1"" of type '" "GMWLDatum const &""'"); goto fail; } while
(0)
;
7232 }
7233 if (!argp1) {
7234 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GMWLDatum" "', argument " "1"" of type '" "GMWLDatum const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GMWLDatum" "', argument " "1"" of type '"
"GMWLDatum const &""'"); goto fail; } while(0)
;
7235 }
7236 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7237 {
7238 try {
7239 result = (GMWLDatum *)new GMWLDatum((GMWLDatum const &)*arg1);
7240 }
7241 catch (const GException::out_of_range& e) {
7242 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7243 }
7244 catch (const GExceptionHandler& e) {
7245 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7246 }
7247 catch (const std::exception& e) {
7248 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7249 }
7250 }
7251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLDatum, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], ((
0x1 << 1) | 0x1) | 0)
;
7252 return resultobj;
7253fail:
7254 return NULL__null;
7255}
7256
7257
7258SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GMWLDatum(PyObject *self, PyObject *args) {
7259 int argc;
7260 PyObject *argv[2];
7261 int ii;
7262
7263 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7264 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7265 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
7266 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7267 }
7268 if (argc == 0) {
7269 return _wrap_new_GMWLDatum__SWIG_0(self, args);
7270 }
7271 if (argc == 1) {
7272 int _v;
7273 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GMWLDatum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[8], 0, 0);
7274 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7275 if (_v) {
7276 return _wrap_new_GMWLDatum__SWIG_1(self, args);
7277 }
7278 }
7279
7280fail:
7281 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GMWLDatum'.\n"
7282 " Possible C/C++ prototypes are:\n"
7283 " GMWLDatum::GMWLDatum()\n"
7284 " GMWLDatum::GMWLDatum(GMWLDatum const &)\n");
7285 return 0;
7286}
7287
7288
7289SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GMWLDatum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7290 PyObject *resultobj = 0;
7291 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7292 void *argp1 = 0 ;
7293 int res1 = 0 ;
7294 PyObject * obj0 = 0 ;
7295
7296 if (!PyArg_ParseTuple(args,(char *)"O:delete_GMWLDatum",&obj0)) SWIG_failgoto fail;
7297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0x1 | 0, 0)
;
7298 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GMWLDatum" "', argument " "1"" of type '" "GMWLDatum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GMWLDatum" "', argument "
"1"" of type '" "GMWLDatum *""'"); goto fail; } while(0)
;
7300 }
7301 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7302 {
7303 try {
7304 delete arg1;
7305 }
7306 catch (const GException::out_of_range& e) {
7307 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7308 }
7309 catch (const GExceptionHandler& e) {
7310 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7311 }
7312 catch (const std::exception& e) {
7313 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7314 }
7315 }
7316 resultobj = SWIG_Py_Void();
7317 return resultobj;
7318fail:
7319 return NULL__null;
7320}
7321
7322
7323SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7324 PyObject *resultobj = 0;
7325 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 PyObject * obj0 = 0 ;
7329
7330 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_clear",&obj0)) SWIG_failgoto fail;
7331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7332 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_clear" "', argument " "1"" of type '" "GMWLDatum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_clear" "', argument "
"1"" of type '" "GMWLDatum *""'"); goto fail; } while(0)
;
7334 }
7335 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7336 {
7337 try {
7338 (arg1)->clear();
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_Py_Void();
7351 return resultobj;
7352fail:
7353 return NULL__null;
7354}
7355
7356
7357SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7360 void *argp1 = 0 ;
7361 int res1 = 0 ;
7362 PyObject * obj0 = 0 ;
7363 GMWLDatum *result = 0 ;
7364
7365 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_clone",&obj0)) SWIG_failgoto fail;
7366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7367 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_clone" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_clone" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7369 }
7370 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7371 {
7372 try {
7373 result = (GMWLDatum *)((GMWLDatum const *)arg1)->clone();
7374 }
7375 catch (const GException::out_of_range& e) {
7376 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7377 }
7378 catch (const GExceptionHandler& e) {
7379 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7380 }
7381 catch (const std::exception& e) {
7382 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7383 }
7384 }
7385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
7386 return resultobj;
7387fail:
7388 return NULL__null;
7389}
7390
7391
7392SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7393 PyObject *resultobj = 0;
7394 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7395 void *argp1 = 0 ;
7396 int res1 = 0 ;
7397 PyObject * obj0 = 0 ;
7398 double result;
7399
7400 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_size",&obj0)) SWIG_failgoto fail;
7401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7402 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_size" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_size" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7404 }
7405 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7406 {
7407 try {
7408 result = (double)((GMWLDatum const *)arg1)->size();
7409 }
7410 catch (const GException::out_of_range& e) {
7411 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7412 }
7413 catch (const GExceptionHandler& e) {
7414 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7415 }
7416 catch (const std::exception& e) {
7417 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7418 }
7419 }
7420 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7421 return resultobj;
7422fail:
7423 return NULL__null;
7424}
7425
7426
7427SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7428 PyObject *resultobj = 0;
7429 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7430 void *argp1 = 0 ;
7431 int res1 = 0 ;
7432 PyObject * obj0 = 0 ;
7433 GInstDir *result = 0 ;
7434
7435 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_dir",&obj0)) SWIG_failgoto fail;
7436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7437 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_dir" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_dir" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7439 }
7440 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7441 {
7442 try {
7443 result = (GInstDir *) &((GMWLDatum const *)arg1)->dir();
7444 }
7445 catch (const GException::out_of_range& e) {
7446 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7447 }
7448 catch (const GExceptionHandler& e) {
7449 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7450 }
7451 catch (const std::exception& e) {
7452 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7453 }
7454 }
7455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GInstDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
7456 return resultobj;
7457fail:
7458 return NULL__null;
7459}
7460
7461
7462SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7463 PyObject *resultobj = 0;
7464 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7465 void *argp1 = 0 ;
7466 int res1 = 0 ;
7467 PyObject * obj0 = 0 ;
7468 GEnergy *result = 0 ;
7469
7470 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_energy",&obj0)) SWIG_failgoto fail;
7471 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7472 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7473 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_energy" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_energy" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7474 }
7475 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7476 {
7477 try {
7478 result = (GEnergy *) &((GMWLDatum const *)arg1)->energy();
7479 }
7480 catch (const GException::out_of_range& e) {
7481 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7482 }
7483 catch (const GExceptionHandler& e) {
7484 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7485 }
7486 catch (const std::exception& e) {
7487 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7488 }
7489 }
7490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0 |
0)
;
7491 return resultobj;
7492fail:
7493 return NULL__null;
7494}
7495
7496
7497SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7498 PyObject *resultobj = 0;
7499 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7500 void *argp1 = 0 ;
7501 int res1 = 0 ;
7502 PyObject * obj0 = 0 ;
7503 GTime *result = 0 ;
7504
7505 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_time",&obj0)) SWIG_failgoto fail;
7506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7507 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_time" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_time" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7509 }
7510 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7511 {
7512 try {
7513 result = (GTime *) &((GMWLDatum const *)arg1)->time();
7514 }
7515 catch (const GException::out_of_range& e) {
7516 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7517 }
7518 catch (const GExceptionHandler& e) {
7519 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7520 }
7521 catch (const std::exception& e) {
7522 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7523 }
7524 }
7525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[14], 0
| 0)
;
7526 return resultobj;
7527fail:
7528 return NULL__null;
7529}
7530
7531
7532SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_counts__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7533 PyObject *resultobj = 0;
7534 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7535 void *argp1 = 0 ;
7536 int res1 = 0 ;
7537 PyObject * obj0 = 0 ;
7538 double result;
7539
7540 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_counts",&obj0)) SWIG_failgoto fail;
7541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7542 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_counts" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_counts" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7544 }
7545 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7546 {
7547 try {
7548 result = (double)((GMWLDatum const *)arg1)->counts();
7549 }
7550 catch (const GException::out_of_range& e) {
7551 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7552 }
7553 catch (const GExceptionHandler& e) {
7554 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7555 }
7556 catch (const std::exception& e) {
7557 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7558 }
7559 }
7560 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7561 return resultobj;
7562fail:
7563 return NULL__null;
7564}
7565
7566
7567SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7568 PyObject *resultobj = 0;
7569 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7570 void *argp1 = 0 ;
7571 int res1 = 0 ;
7572 PyObject * obj0 = 0 ;
7573 double result;
7574
7575 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_error",&obj0)) SWIG_failgoto fail;
7576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7577 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_error" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_error" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7579 }
7580 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7581 {
7582 try {
7583 result = (double)((GMWLDatum const *)arg1)->error();
7584 }
7585 catch (const GException::out_of_range& e) {
7586 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7587 }
7588 catch (const GExceptionHandler& e) {
7589 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7590 }
7591 catch (const std::exception& e) {
7592 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7593 }
7594 }
7595 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
7596 return resultobj;
7597fail:
7598 return NULL__null;
7599}
7600
7601
7602SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_counts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7603 PyObject *resultobj = 0;
7604 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7605 double *arg2 = 0 ;
7606 void *argp1 = 0 ;
7607 int res1 = 0 ;
7608 double temp2 ;
7609 double val2 ;
7610 int ecode2 = 0 ;
7611 PyObject * obj0 = 0 ;
7612 PyObject * obj1 = 0 ;
7613
7614 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLDatum_counts",&obj0,&obj1)) SWIG_failgoto fail;
7615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7616 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_counts" "', argument " "1"" of type '" "GMWLDatum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_counts" "', argument "
"1"" of type '" "GMWLDatum *""'"); goto fail; } while(0)
;
7618 }
7619 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7620 ecode2 = SWIG_AsVal_double(obj1, &val2);
7621 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMWLDatum_counts" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMWLDatum_counts" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
7623 }
7624 temp2 = static_cast< double >(val2);
7625 arg2 = &temp2;
7626 {
7627 try {
7628 (arg1)->counts((double const &)*arg2);
7629 }
7630 catch (const GException::out_of_range& e) {
7631 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7632 }
7633 catch (const GExceptionHandler& e) {
7634 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7635 }
7636 catch (const std::exception& e) {
7637 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7638 }
7639 }
7640 resultobj = SWIG_Py_Void();
7641 return resultobj;
7642fail:
7643 return NULL__null;
7644}
7645
7646
7647SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_counts(PyObject *self, PyObject *args) {
7648 int argc;
7649 PyObject *argv[3];
7650 int ii;
7651
7652 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7653 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7654 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7655 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7656 }
7657 if (argc == 1) {
7658 int _v;
7659 void *vptr = 0;
7660 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLDatum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7661 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7662 if (_v) {
7663 return _wrap_GMWLDatum_counts__SWIG_0(self, args);
7664 }
7665 }
7666 if (argc == 2) {
7667 int _v;
7668 void *vptr = 0;
7669 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLDatum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7670 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7671 if (_v) {
7672 {
7673 int res = SWIG_AsVal_double(argv[1], NULL__null);
7674 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7675 }
7676 if (_v) {
7677 return _wrap_GMWLDatum_counts__SWIG_1(self, args);
7678 }
7679 }
7680 }
7681
7682fail:
7683 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLDatum_counts'.\n"
7684 " Possible C/C++ prototypes are:\n"
7685 " GMWLDatum::counts() const\n"
7686 " GMWLDatum::counts(double const &)\n");
7687 return 0;
7688}
7689
7690
7691SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_energy_err(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7692 PyObject *resultobj = 0;
7693 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7694 void *argp1 = 0 ;
7695 int res1 = 0 ;
7696 PyObject * obj0 = 0 ;
7697 GEnergy *result = 0 ;
7698
7699 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_energy_err",&obj0)) SWIG_failgoto fail;
7700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7701 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_energy_err" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_energy_err" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7703 }
7704 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7705 {
7706 try {
7707 result = (GEnergy *) &((GMWLDatum const *)arg1)->energy_err();
7708 }
7709 catch (const GException::out_of_range& e) {
7710 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7711 }
7712 catch (const GExceptionHandler& e) {
7713 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7714 }
7715 catch (const std::exception& e) {
7716 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7717 }
7718 }
7719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0 |
0)
;
7720 return resultobj;
7721fail:
7722 return NULL__null;
7723}
7724
7725
7726SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_flux__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *resultobj = 0;
7728 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7729 void *argp1 = 0 ;
7730 int res1 = 0 ;
7731 PyObject * obj0 = 0 ;
7732 double *result = 0 ;
7733
7734 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_flux",&obj0)) SWIG_failgoto fail;
7735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7736 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_flux" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_flux" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7738 }
7739 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7740 {
7741 try {
7742 result = (double *) &((GMWLDatum const *)arg1)->flux();
7743 }
7744 catch (const GException::out_of_range& e) {
7745 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7746 }
7747 catch (const GExceptionHandler& e) {
7748 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7749 }
7750 catch (const std::exception& e) {
7751 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7752 }
7753 }
7754 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
7755 return resultobj;
7756fail:
7757 return NULL__null;
7758}
7759
7760
7761SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_flux_err__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7762 PyObject *resultobj = 0;
7763 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7764 void *argp1 = 0 ;
7765 int res1 = 0 ;
7766 PyObject * obj0 = 0 ;
7767 double *result = 0 ;
7768
7769 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_flux_err",&obj0)) SWIG_failgoto fail;
7770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7771 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_flux_err" "', argument " "1"" of type '" "GMWLDatum const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_flux_err" "', argument "
"1"" of type '" "GMWLDatum const *""'"); goto fail; } while(
0)
;
7773 }
7774 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7775 {
7776 try {
7777 result = (double *) &((GMWLDatum const *)arg1)->flux_err();
7778 }
7779 catch (const GException::out_of_range& e) {
7780 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7781 }
7782 catch (const GExceptionHandler& e) {
7783 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7784 }
7785 catch (const std::exception& e) {
7786 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7787 }
7788 }
7789 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
7790 return resultobj;
7791fail:
7792 return NULL__null;
7793}
7794
7795
7796SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_flux__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7797 PyObject *resultobj = 0;
7798 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7799 double *arg2 = 0 ;
7800 void *argp1 = 0 ;
7801 int res1 = 0 ;
7802 double temp2 ;
7803 double val2 ;
7804 int ecode2 = 0 ;
7805 PyObject * obj0 = 0 ;
7806 PyObject * obj1 = 0 ;
7807
7808 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLDatum_flux",&obj0,&obj1)) SWIG_failgoto fail;
7809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7810 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_flux" "', argument " "1"" of type '" "GMWLDatum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_flux" "', argument "
"1"" of type '" "GMWLDatum *""'"); goto fail; } while(0)
;
7812 }
7813 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7814 ecode2 = SWIG_AsVal_double(obj1, &val2);
7815 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMWLDatum_flux" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMWLDatum_flux" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
7817 }
7818 temp2 = static_cast< double >(val2);
7819 arg2 = &temp2;
7820 {
7821 try {
7822 (arg1)->flux((double const &)*arg2);
7823 }
7824 catch (const GException::out_of_range& e) {
7825 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7826 }
7827 catch (const GExceptionHandler& e) {
7828 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7829 }
7830 catch (const std::exception& e) {
7831 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7832 }
7833 }
7834 resultobj = SWIG_Py_Void();
7835 return resultobj;
7836fail:
7837 return NULL__null;
7838}
7839
7840
7841SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_flux(PyObject *self, PyObject *args) {
7842 int argc;
7843 PyObject *argv[3];
7844 int ii;
7845
7846 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7847 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7848 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7849 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7850 }
7851 if (argc == 1) {
7852 int _v;
7853 void *vptr = 0;
7854 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLDatum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7855 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7856 if (_v) {
7857 return _wrap_GMWLDatum_flux__SWIG_0(self, args);
7858 }
7859 }
7860 if (argc == 2) {
7861 int _v;
7862 void *vptr = 0;
7863 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLDatum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7864 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7865 if (_v) {
7866 {
7867 int res = SWIG_AsVal_double(argv[1], NULL__null);
7868 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7869 }
7870 if (_v) {
7871 return _wrap_GMWLDatum_flux__SWIG_1(self, args);
7872 }
7873 }
7874 }
7875
7876fail:
7877 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLDatum_flux'.\n"
7878 " Possible C/C++ prototypes are:\n"
7879 " GMWLDatum::flux() const\n"
7880 " GMWLDatum::flux(double const &)\n");
7881 return 0;
7882}
7883
7884
7885SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_flux_err__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7886 PyObject *resultobj = 0;
7887 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7888 double *arg2 = 0 ;
7889 void *argp1 = 0 ;
7890 int res1 = 0 ;
7891 double temp2 ;
7892 double val2 ;
7893 int ecode2 = 0 ;
7894 PyObject * obj0 = 0 ;
7895 PyObject * obj1 = 0 ;
7896
7897 if (!PyArg_ParseTuple(args,(char *)"OO:GMWLDatum_flux_err",&obj0,&obj1)) SWIG_failgoto fail;
7898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7899 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_flux_err" "', argument " "1"" of type '" "GMWLDatum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_flux_err" "', argument "
"1"" of type '" "GMWLDatum *""'"); goto fail; } while(0)
;
7901 }
7902 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7903 ecode2 = SWIG_AsVal_double(obj1, &val2);
7904 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GMWLDatum_flux_err" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GMWLDatum_flux_err" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
7906 }
7907 temp2 = static_cast< double >(val2);
7908 arg2 = &temp2;
7909 {
7910 try {
7911 (arg1)->flux_err((double const &)*arg2);
7912 }
7913 catch (const GException::out_of_range& e) {
7914 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7915 }
7916 catch (const GExceptionHandler& e) {
7917 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7918 }
7919 catch (const std::exception& e) {
7920 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7921 }
7922 }
7923 resultobj = SWIG_Py_Void();
7924 return resultobj;
7925fail:
7926 return NULL__null;
7927}
7928
7929
7930SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_flux_err(PyObject *self, PyObject *args) {
7931 int argc;
7932 PyObject *argv[3];
7933 int ii;
7934
7935 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7936 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7937 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7938 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7939 }
7940 if (argc == 1) {
7941 int _v;
7942 void *vptr = 0;
7943 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLDatum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7944 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7945 if (_v) {
7946 return _wrap_GMWLDatum_flux_err__SWIG_0(self, args);
7947 }
7948 }
7949 if (argc == 2) {
7950 int _v;
7951 void *vptr = 0;
7952 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GMWLDatum, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7953 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7954 if (_v) {
7955 {
7956 int res = SWIG_AsVal_double(argv[1], NULL__null);
7957 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7958 }
7959 if (_v) {
7960 return _wrap_GMWLDatum_flux_err__SWIG_1(self, args);
7961 }
7962 }
7963 }
7964
7965fail:
7966 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GMWLDatum_flux_err'.\n"
7967 " Possible C/C++ prototypes are:\n"
7968 " GMWLDatum::flux_err() const\n"
7969 " GMWLDatum::flux_err(double const &)\n");
7970 return 0;
7971}
7972
7973
7974SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GMWLDatum_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7975 PyObject *resultobj = 0;
7976 GMWLDatum *arg1 = (GMWLDatum *) 0 ;
7977 void *argp1 = 0 ;
7978 int res1 = 0 ;
7979 PyObject * obj0 = 0 ;
7980 GMWLDatum result;
7981
7982 if (!PyArg_ParseTuple(args,(char *)"O:GMWLDatum_copy",&obj0)) SWIG_failgoto fail;
7983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GMWLDatum, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7984 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GMWLDatum_copy" "', argument " "1"" of type '" "GMWLDatum *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GMWLDatum_copy" "', argument "
"1"" of type '" "GMWLDatum *""'"); goto fail; } while(0)
;
7986 }
7987 arg1 = reinterpret_cast< GMWLDatum * >(argp1);
7988 {
7989 try {
7990 result = GMWLDatum_copy(arg1);
7991 }
7992 catch (const GException::out_of_range& e) {
7993 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7994 }
7995 catch (const GExceptionHandler& e) {
7996 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7997 }
7998 catch (const std::exception& e) {
7999 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8000 }
8001 }
8002 resultobj = SWIG_NewPointerObj((new GMWLDatum(static_cast< const GMWLDatum& >(result))), SWIGTYPE_p_GMWLDatum, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GMWLDatum(static_cast<
const GMWLDatum& >(result))), swig_types[8], 0x1 | 0)
;
8003 return resultobj;
8004fail:
8005 return NULL__null;
8006}
8007
8008
8009SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GMWLDatum_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8010 PyObject *obj;
8011 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
8012 SWIG_TypeNewClientData(SWIGTYPE_p_GMWLDatumswig_types[8], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
8013 return SWIG_Py_Void();
8014}
8015
8016static PyMethodDef SwigMethods[] = {
8017 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
8018 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
8019 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
8020 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
8021 "incr(size_t n=1) -> SwigPyIterator\n"
8022 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
8023 ""},
8024 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
8025 "decr(size_t n=1) -> SwigPyIterator\n"
8026 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
8027 ""},
8028 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
8029 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
8030 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
8031 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
8032 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
8033 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
8034 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
8035 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
8036 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
8037 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
8038 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
8039 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
8040 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
8041 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
8042 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
8043 ""},
8044 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
8045 { (char *)"new_GMWLObservation", _wrap_new_GMWLObservation, METH_VARARGS0x0001, (char *)"\n"
8046 "GMWLObservation()\n"
8047 "GMWLObservation(std::string const & filename)\n"
8048 "GMWLObservation(std::string const & filename, int const & extno)\n"
8049 "GMWLObservation(std::string const & filename, std::string const & extname)\n"
8050 "new_GMWLObservation(GMWLObservation obs) -> GMWLObservation\n"
8051 ""},
8052 { (char *)"delete_GMWLObservation", _wrap_delete_GMWLObservation, METH_VARARGS0x0001, (char *)"delete_GMWLObservation(GMWLObservation self)"},
8053 { (char *)"GMWLObservation_clear", _wrap_GMWLObservation_clear, METH_VARARGS0x0001, (char *)"GMWLObservation_clear(GMWLObservation self)"},
8054 { (char *)"GMWLObservation_clone", _wrap_GMWLObservation_clone, METH_VARARGS0x0001, (char *)"GMWLObservation_clone(GMWLObservation self) -> GMWLObservation"},
8055 { (char *)"GMWLObservation_response", _wrap_GMWLObservation_response, METH_VARARGS0x0001, (char *)"\n"
8056 "response(GResponse const & rsp)\n"
8057 "GMWLObservation_response(GMWLObservation self) -> GMWLResponse const &\n"
8058 ""},
8059 { (char *)"GMWLObservation_instrument", _wrap_GMWLObservation_instrument, METH_VARARGS0x0001, (char *)"GMWLObservation_instrument(GMWLObservation self) -> std::string"},
8060 { (char *)"GMWLObservation_ontime", _wrap_GMWLObservation_ontime, METH_VARARGS0x0001, (char *)"GMWLObservation_ontime(GMWLObservation self) -> double"},
8061 { (char *)"GMWLObservation_livetime", _wrap_GMWLObservation_livetime, METH_VARARGS0x0001, (char *)"GMWLObservation_livetime(GMWLObservation self) -> double"},
8062 { (char *)"GMWLObservation_deadc", _wrap_GMWLObservation_deadc, METH_VARARGS0x0001, (char *)"GMWLObservation_deadc(GMWLObservation self, GTime const & time) -> double"},
8063 { (char *)"GMWLObservation_read", _wrap_GMWLObservation_read, METH_VARARGS0x0001, (char *)"GMWLObservation_read(GMWLObservation self, GXmlElement const & xml)"},
8064 { (char *)"GMWLObservation_write", _wrap_GMWLObservation_write, METH_VARARGS0x0001, (char *)"GMWLObservation_write(GMWLObservation self, GXmlElement & xml)"},
8065 { (char *)"GMWLObservation_load", _wrap_GMWLObservation_load, METH_VARARGS0x0001, (char *)"\n"
8066 "load(std::string const & filename)\n"
8067 "load(std::string const & filename, int const & extno)\n"
8068 "GMWLObservation_load(GMWLObservation self, std::string const & filename, std::string const & extname)\n"
8069 ""},
8070 { (char *)"GMWLObservation_filename", _wrap_GMWLObservation_filename, METH_VARARGS0x0001, (char *)"\n"
8071 "filename() -> std::string const\n"
8072 "GMWLObservation_filename(GMWLObservation self, std::string const & filename)\n"
8073 ""},
8074 { (char *)"GMWLObservation_extno", _wrap_GMWLObservation_extno, METH_VARARGS0x0001, (char *)"\n"
8075 "extno() -> std::string const\n"
8076 "GMWLObservation_extno(GMWLObservation self, std::string const & extno)\n"
8077 ""},
8078 { (char *)"GMWLObservation_extname", _wrap_GMWLObservation_extname, METH_VARARGS0x0001, (char *)"\n"
8079 "extname() -> std::string const\n"
8080 "GMWLObservation_extname(GMWLObservation self, std::string const & extname)\n"
8081 ""},
8082 { (char *)"GMWLObservation_copy", _wrap_GMWLObservation_copy, METH_VARARGS0x0001, (char *)"GMWLObservation_copy(GMWLObservation self) -> GMWLObservation"},
8083 { (char *)"GMWLObservation_swigregister", GMWLObservation_swigregister, METH_VARARGS0x0001, NULL__null},
8084 { (char *)"new_GMWLSpectrum", _wrap_new_GMWLSpectrum, METH_VARARGS0x0001, (char *)"\n"
8085 "GMWLSpectrum()\n"
8086 "GMWLSpectrum(std::string const & filename)\n"
8087 "new_GMWLSpectrum(GMWLSpectrum spec) -> GMWLSpectrum\n"
8088 ""},
8089 { (char *)"delete_GMWLSpectrum", _wrap_delete_GMWLSpectrum, METH_VARARGS0x0001, (char *)"delete_GMWLSpectrum(GMWLSpectrum self)"},
8090 { (char *)"GMWLSpectrum_clear", _wrap_GMWLSpectrum_clear, METH_VARARGS0x0001, (char *)"GMWLSpectrum_clear(GMWLSpectrum self)"},
8091 { (char *)"GMWLSpectrum_clone", _wrap_GMWLSpectrum_clone, METH_VARARGS0x0001, (char *)"GMWLSpectrum_clone(GMWLSpectrum self) -> GMWLSpectrum"},
8092 { (char *)"GMWLSpectrum_size", _wrap_GMWLSpectrum_size, METH_VARARGS0x0001, (char *)"GMWLSpectrum_size(GMWLSpectrum self) -> int"},
8093 { (char *)"GMWLSpectrum_dim", _wrap_GMWLSpectrum_dim, METH_VARARGS0x0001, (char *)"GMWLSpectrum_dim(GMWLSpectrum self) -> int"},
8094 { (char *)"GMWLSpectrum_naxis", _wrap_GMWLSpectrum_naxis, METH_VARARGS0x0001, (char *)"GMWLSpectrum_naxis(GMWLSpectrum self, int const & axis) -> int"},
8095 { (char *)"GMWLSpectrum_save", _wrap_GMWLSpectrum_save, METH_VARARGS0x0001, (char *)"\n"
8096 "save(std::string const & filename, bool const & clobber=False)\n"
8097 "GMWLSpectrum_save(GMWLSpectrum self, std::string const & filename)\n"
8098 ""},
8099 { (char *)"GMWLSpectrum_write", _wrap_GMWLSpectrum_write, METH_VARARGS0x0001, (char *)"GMWLSpectrum_write(GMWLSpectrum self, GFits & file)"},
8100 { (char *)"GMWLSpectrum_number", _wrap_GMWLSpectrum_number, METH_VARARGS0x0001, (char *)"GMWLSpectrum_number(GMWLSpectrum self) -> int"},
8101 { (char *)"GMWLSpectrum_load", _wrap_GMWLSpectrum_load, METH_VARARGS0x0001, (char *)"\n"
8102 "load(std::string const & filename)\n"
8103 "load(std::string const & filename, std::string const & extname)\n"
8104 "GMWLSpectrum_load(GMWLSpectrum self, std::string const & filename, int const & extno)\n"
8105 ""},
8106 { (char *)"GMWLSpectrum_read", _wrap_GMWLSpectrum_read, METH_VARARGS0x0001, (char *)"\n"
8107 "read(GFits const & file)\n"
8108 "read(GFits const & file, std::string const & extname)\n"
8109 "GMWLSpectrum_read(GMWLSpectrum self, GFits const & file, int const & extno)\n"
8110 ""},
8111 { (char *)"GMWLSpectrum_telescope", _wrap_GMWLSpectrum_telescope, METH_VARARGS0x0001, (char *)"GMWLSpectrum_telescope(GMWLSpectrum self) -> std::string const &"},
8112 { (char *)"GMWLSpectrum_instrument", _wrap_GMWLSpectrum_instrument, METH_VARARGS0x0001, (char *)"GMWLSpectrum_instrument(GMWLSpectrum self) -> std::string const &"},
8113 { (char *)"GMWLSpectrum_copy", _wrap_GMWLSpectrum_copy, METH_VARARGS0x0001, (char *)"GMWLSpectrum_copy(GMWLSpectrum self) -> GMWLSpectrum"},
8114 { (char *)"GMWLSpectrum___getitem__", _wrap_GMWLSpectrum___getitem__, METH_VARARGS0x0001, (char *)"GMWLSpectrum___getitem__(GMWLSpectrum self, int index) -> GMWLDatum"},
8115 { (char *)"GMWLSpectrum_swigregister", GMWLSpectrum_swigregister, METH_VARARGS0x0001, NULL__null},
8116 { (char *)"new_GMWLDatum", _wrap_new_GMWLDatum, METH_VARARGS0x0001, (char *)"\n"
8117 "GMWLDatum()\n"
8118 "new_GMWLDatum(GMWLDatum datum) -> GMWLDatum\n"
8119 ""},
8120 { (char *)"delete_GMWLDatum", _wrap_delete_GMWLDatum, METH_VARARGS0x0001, (char *)"delete_GMWLDatum(GMWLDatum self)"},
8121 { (char *)"GMWLDatum_clear", _wrap_GMWLDatum_clear, METH_VARARGS0x0001, (char *)"GMWLDatum_clear(GMWLDatum self)"},
8122 { (char *)"GMWLDatum_clone", _wrap_GMWLDatum_clone, METH_VARARGS0x0001, (char *)"GMWLDatum_clone(GMWLDatum self) -> GMWLDatum"},
8123 { (char *)"GMWLDatum_size", _wrap_GMWLDatum_size, METH_VARARGS0x0001, (char *)"GMWLDatum_size(GMWLDatum self) -> double"},
8124 { (char *)"GMWLDatum_dir", _wrap_GMWLDatum_dir, METH_VARARGS0x0001, (char *)"GMWLDatum_dir(GMWLDatum self) -> GInstDir const &"},
8125 { (char *)"GMWLDatum_energy", _wrap_GMWLDatum_energy, METH_VARARGS0x0001, (char *)"GMWLDatum_energy(GMWLDatum self) -> GEnergy const &"},
8126 { (char *)"GMWLDatum_time", _wrap_GMWLDatum_time, METH_VARARGS0x0001, (char *)"GMWLDatum_time(GMWLDatum self) -> GTime const &"},
8127 { (char *)"GMWLDatum_error", _wrap_GMWLDatum_error, METH_VARARGS0x0001, (char *)"GMWLDatum_error(GMWLDatum self) -> double"},
8128 { (char *)"GMWLDatum_counts", _wrap_GMWLDatum_counts, METH_VARARGS0x0001, (char *)"\n"
8129 "counts() -> double\n"
8130 "GMWLDatum_counts(GMWLDatum self, double const & flux)\n"
8131 ""},
8132 { (char *)"GMWLDatum_energy_err", _wrap_GMWLDatum_energy_err, METH_VARARGS0x0001, (char *)"GMWLDatum_energy_err(GMWLDatum self) -> GEnergy const &"},
8133 { (char *)"GMWLDatum_flux", _wrap_GMWLDatum_flux, METH_VARARGS0x0001, (char *)"\n"
8134 "flux() -> double const\n"
8135 "GMWLDatum_flux(GMWLDatum self, double const & flux)\n"
8136 ""},
8137 { (char *)"GMWLDatum_flux_err", _wrap_GMWLDatum_flux_err, METH_VARARGS0x0001, (char *)"\n"
8138 "flux_err() -> double const\n"
8139 "GMWLDatum_flux_err(GMWLDatum self, double const & error)\n"
8140 ""},
8141 { (char *)"GMWLDatum_copy", _wrap_GMWLDatum_copy, METH_VARARGS0x0001, (char *)"GMWLDatum_copy(GMWLDatum self) -> GMWLDatum"},
8142 { (char *)"GMWLDatum_swigregister", GMWLDatum_swigregister, METH_VARARGS0x0001, NULL__null},
8143 { NULL__null, NULL__null, 0, NULL__null }
8144};
8145
8146
8147/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
8148
8149static void *_p_GMWLObservationTo_p_GObservation(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8150 return (void *)((GObservation *) ((GMWLObservation *) x));
8151}
8152static void *_p_GMWLSpectrumTo_p_GEventCube(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8153 return (void *)((GEventCube *) ((GMWLSpectrum *) x));
8154}
8155static void *_p_GObservationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8156 return (void *)((GBase *) ((GObservation *) x));
8157}
8158static void *_p_GEventTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8159 return (void *)((GBase *) ((GEvent *) x));
8160}
8161static void *_p_GEventBinTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8162 return (void *)((GBase *) (GEvent *) ((GEventBin *) x));
8163}
8164static void *_p_GEventsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8165 return (void *)((GBase *) ((GEvents *) x));
8166}
8167static void *_p_GMWLObservationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8168 return (void *)((GBase *) (GObservation *) ((GMWLObservation *) x));
8169}
8170static void *_p_GEventCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8171 return (void *)((GBase *) (GEvents *) ((GEventCube *) x));
8172}
8173static void *_p_GMWLSpectrumTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8174 return (void *)((GBase *) (GEvents *)(GEventCube *) ((GMWLSpectrum *) x));
8175}
8176static void *_p_GMWLDatumTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8177 return (void *)((GBase *) (GEvent *)(GEventBin *) ((GMWLDatum *) x));
8178}
8179static void *_p_GEventBinTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8180 return (void *)((GEvent *) ((GEventBin *) x));
8181}
8182static void *_p_GMWLDatumTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8183 return (void *)((GEvent *) (GEventBin *) ((GMWLDatum *) x));
8184}
8185static void *_p_GEventCubeTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8186 return (void *)((GEvents *) ((GEventCube *) x));
8187}
8188static void *_p_GMWLSpectrumTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8189 return (void *)((GEvents *) (GEventCube *) ((GMWLSpectrum *) x));
8190}
8191static void *_p_GMWLDatumTo_p_GEventBin(void *x, int *SWIGUNUSEDPARM(newmemory)) {
8192 return (void *)((GEventBin *) ((GMWLDatum *) x));
8193}
8194static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
8195static swig_type_info _swigt__p_GEnergy = {"_p_GEnergy", "GEnergy *", 0, 0, (void*)0, 0};
8196static swig_type_info _swigt__p_GEvent = {"_p_GEvent", "GEvent *", 0, 0, (void*)0, 0};
8197static swig_type_info _swigt__p_GEventBin = {"_p_GEventBin", "GEventBin *", 0, 0, (void*)0, 0};
8198static swig_type_info _swigt__p_GEventCube = {"_p_GEventCube", "GEventCube *", 0, 0, (void*)0, 0};
8199static swig_type_info _swigt__p_GEvents = {"_p_GEvents", "GEvents *", 0, 0, (void*)0, 0};
8200static swig_type_info _swigt__p_GFits = {"_p_GFits", "GFits *", 0, 0, (void*)0, 0};
8201static swig_type_info _swigt__p_GInstDir = {"_p_GInstDir", "GInstDir *", 0, 0, (void*)0, 0};
8202static swig_type_info _swigt__p_GMWLDatum = {"_p_GMWLDatum", "GMWLDatum *", 0, 0, (void*)0, 0};
8203static swig_type_info _swigt__p_GMWLObservation = {"_p_GMWLObservation", "GMWLObservation *", 0, 0, (void*)0, 0};
8204static swig_type_info _swigt__p_GMWLResponse = {"_p_GMWLResponse", "GMWLResponse *", 0, 0, (void*)0, 0};
8205static swig_type_info _swigt__p_GMWLSpectrum = {"_p_GMWLSpectrum", "GMWLSpectrum *", 0, 0, (void*)0, 0};
8206static swig_type_info _swigt__p_GObservation = {"_p_GObservation", "GObservation *", 0, 0, (void*)0, 0};
8207static swig_type_info _swigt__p_GResponse = {"_p_GResponse", "GResponse *", 0, 0, (void*)0, 0};
8208static swig_type_info _swigt__p_GTime = {"_p_GTime", "GTime *", 0, 0, (void*)0, 0};
8209static swig_type_info _swigt__p_GXmlElement = {"_p_GXmlElement", "GXmlElement *", 0, 0, (void*)0, 0};
8210static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
8211static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
8212static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
8213
8214static swig_type_info *swig_type_initial[] = {
8215 &_swigt__p_GBase,
8216 &_swigt__p_GEnergy,
8217 &_swigt__p_GEvent,
8218 &_swigt__p_GEventBin,
8219 &_swigt__p_GEventCube,
8220 &_swigt__p_GEvents,
8221 &_swigt__p_GFits,
8222 &_swigt__p_GInstDir,
8223 &_swigt__p_GMWLDatum,
8224 &_swigt__p_GMWLObservation,
8225 &_swigt__p_GMWLResponse,
8226 &_swigt__p_GMWLSpectrum,
8227 &_swigt__p_GObservation,
8228 &_swigt__p_GResponse,
8229 &_swigt__p_GTime,
8230 &_swigt__p_GXmlElement,
8231 &_swigt__p_char,
8232 &_swigt__p_std__invalid_argument,
8233 &_swigt__p_swig__SwigPyIterator,
8234};
8235
8236static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GObservation, _p_GObservationTo_p_GBase, 0, 0}, {&_swigt__p_GMWLObservation, _p_GMWLObservationTo_p_GBase, 0, 0}, {&_swigt__p_GEventBin, _p_GEventBinTo_p_GBase, 0, 0}, {&_swigt__p_GEvents, _p_GEventsTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GBase, 0, 0}, {&_swigt__p_GMWLSpectrum, _p_GMWLSpectrumTo_p_GBase, 0, 0}, {&_swigt__p_GEvent, _p_GEventTo_p_GBase, 0, 0}, {&_swigt__p_GMWLDatum, _p_GMWLDatumTo_p_GBase, 0, 0},{0, 0, 0, 0}};
8237static swig_cast_info _swigc__p_GEnergy[] = { {&_swigt__p_GEnergy, 0, 0, 0},{0, 0, 0, 0}};
8238static swig_cast_info _swigc__p_GEvent[] = { {&_swigt__p_GEventBin, _p_GEventBinTo_p_GEvent, 0, 0}, {&_swigt__p_GEvent, 0, 0, 0}, {&_swigt__p_GMWLDatum, _p_GMWLDatumTo_p_GEvent, 0, 0},{0, 0, 0, 0}};
8239static swig_cast_info _swigc__p_GEventBin[] = { {&_swigt__p_GEventBin, 0, 0, 0}, {&_swigt__p_GMWLDatum, _p_GMWLDatumTo_p_GEventBin, 0, 0},{0, 0, 0, 0}};
8240static swig_cast_info _swigc__p_GEventCube[] = { {&_swigt__p_GEventCube, 0, 0, 0}, {&_swigt__p_GMWLSpectrum, _p_GMWLSpectrumTo_p_GEventCube, 0, 0},{0, 0, 0, 0}};
8241static swig_cast_info _swigc__p_GEvents[] = { {&_swigt__p_GEvents, 0, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GEvents, 0, 0}, {&_swigt__p_GMWLSpectrum, _p_GMWLSpectrumTo_p_GEvents, 0, 0},{0, 0, 0, 0}};
8242static swig_cast_info _swigc__p_GFits[] = { {&_swigt__p_GFits, 0, 0, 0},{0, 0, 0, 0}};
8243static swig_cast_info _swigc__p_GInstDir[] = { {&_swigt__p_GInstDir, 0, 0, 0},{0, 0, 0, 0}};
8244static swig_cast_info _swigc__p_GMWLDatum[] = { {&_swigt__p_GMWLDatum, 0, 0, 0},{0, 0, 0, 0}};
8245static swig_cast_info _swigc__p_GMWLObservation[] = { {&_swigt__p_GMWLObservation, 0, 0, 0},{0, 0, 0, 0}};
8246static swig_cast_info _swigc__p_GMWLResponse[] = { {&_swigt__p_GMWLResponse, 0, 0, 0},{0, 0, 0, 0}};
8247static swig_cast_info _swigc__p_GMWLSpectrum[] = { {&_swigt__p_GMWLSpectrum, 0, 0, 0},{0, 0, 0, 0}};
8248static swig_cast_info _swigc__p_GObservation[] = { {&_swigt__p_GObservation, 0, 0, 0}, {&_swigt__p_GMWLObservation, _p_GMWLObservationTo_p_GObservation, 0, 0},{0, 0, 0, 0}};
8249static swig_cast_info _swigc__p_GResponse[] = { {&_swigt__p_GResponse, 0, 0, 0},{0, 0, 0, 0}};
8250static swig_cast_info _swigc__p_GTime[] = { {&_swigt__p_GTime, 0, 0, 0},{0, 0, 0, 0}};
8251static swig_cast_info _swigc__p_GXmlElement[] = { {&_swigt__p_GXmlElement, 0, 0, 0},{0, 0, 0, 0}};
8252static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
8253static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
8254static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
8255
8256static swig_cast_info *swig_cast_initial[] = {
8257 _swigc__p_GBase,
8258 _swigc__p_GEnergy,
8259 _swigc__p_GEvent,
8260 _swigc__p_GEventBin,
8261 _swigc__p_GEventCube,
8262 _swigc__p_GEvents,
8263 _swigc__p_GFits,
8264 _swigc__p_GInstDir,
8265 _swigc__p_GMWLDatum,
8266 _swigc__p_GMWLObservation,
8267 _swigc__p_GMWLResponse,
8268 _swigc__p_GMWLSpectrum,
8269 _swigc__p_GObservation,
8270 _swigc__p_GResponse,
8271 _swigc__p_GTime,
8272 _swigc__p_GXmlElement,
8273 _swigc__p_char,
8274 _swigc__p_std__invalid_argument,
8275 _swigc__p_swig__SwigPyIterator,
8276};
8277
8278
8279/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
8280
8281static swig_const_info swig_const_table[] = {
8282{0, 0, 0, 0.0, 0, 0}};
8283
8284#ifdef __cplusplus199711L
8285}
8286#endif
8287/* -----------------------------------------------------------------------------
8288 * Type initialization:
8289 * This problem is tough by the requirement that no dynamic
8290 * memory is used. Also, since swig_type_info structures store pointers to
8291 * swig_cast_info structures and swig_cast_info structures store pointers back
8292 * to swig_type_info structures, we need some lookup code at initialization.
8293 * The idea is that swig generates all the structures that are needed.
8294 * The runtime then collects these partially filled structures.
8295 * The SWIG_InitializeModule function takes these initial arrays out of
8296 * swig_module, and does all the lookup, filling in the swig_module.types
8297 * array with the correct data and linking the correct swig_cast_info
8298 * structures together.
8299 *
8300 * The generated swig_type_info structures are assigned staticly to an initial
8301 * array. We just loop through that array, and handle each type individually.
8302 * First we lookup if this type has been already loaded, and if so, use the
8303 * loaded structure instead of the generated one. Then we have to fill in the
8304 * cast linked list. The cast data is initially stored in something like a
8305 * two-dimensional array. Each row corresponds to a type (there are the same
8306 * number of rows as there are in the swig_type_initial array). Each entry in
8307 * a column is one of the swig_cast_info structures for that type.
8308 * The cast_initial array is actually an array of arrays, because each row has
8309 * a variable number of columns. So to actually build the cast linked list,
8310 * we find the array of casts associated with the type, and loop through it
8311 * adding the casts to the list. The one last trick we need to do is making
8312 * sure the type pointer in the swig_cast_info struct is correct.
8313 *
8314 * First off, we lookup the cast->type name to see if it is already loaded.
8315 * There are three cases to handle:
8316 * 1) If the cast->type has already been loaded AND the type we are adding
8317 * casting info to has not been loaded (it is in this module), THEN we
8318 * replace the cast->type pointer with the type pointer that has already
8319 * been loaded.
8320 * 2) If BOTH types (the one we are adding casting info to, and the
8321 * cast->type) are loaded, THEN the cast info has already been loaded by
8322 * the previous module so we just ignore it.
8323 * 3) Finally, if cast->type has not already been loaded, then we add that
8324 * swig_cast_info to the linked list (because the cast->type) pointer will
8325 * be correct.
8326 * ----------------------------------------------------------------------------- */
8327
8328#ifdef __cplusplus199711L
8329extern "C" {
8330#if 0
8331} /* c-mode */
8332#endif
8333#endif
8334
8335#if 0
8336#define SWIGRUNTIME_DEBUG
8337#endif
8338
8339
8340SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
8341SWIG_InitializeModule(void *clientdata) {
8342 size_t i;
8343 swig_module_info *module_head, *iter;
8344 int found, init;
8345
8346 /* check to see if the circular list has been setup, if not, set it up */
8347 if (swig_module.next==0) {
8348 /* Initialize the swig_module */
8349 swig_module.type_initial = swig_type_initial;
8350 swig_module.cast_initial = swig_cast_initial;
8351 swig_module.next = &swig_module;
8352 init = 1;
8353 } else {
8354 init = 0;
8355 }
8356
8357 /* Try and load any already created modules */
8358 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
8359 if (!module_head) {
8360 /* This is the first module loaded for this interpreter */
8361 /* so set the swig module into the interpreter */
8362 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
8363 module_head = &swig_module;
Value stored to 'module_head' is never read
8364 } else {
8365 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
8366 found=0;
8367 iter=module_head;
8368 do {
8369 if (iter==&swig_module) {
8370 found=1;
8371 break;
8372 }
8373 iter=iter->next;
8374 } while (iter!= module_head);
8375
8376 /* if the is found in the list, then all is done and we may leave */
8377 if (found) return;
8378 /* otherwise we must add out module into the list */
8379 swig_module.next = module_head->next;
8380 module_head->next = &swig_module;
8381 }
8382
8383 /* When multiple interpreters are used, a module could have already been initialized in
8384 a different interpreter, but not yet have a pointer in this interpreter.
8385 In this case, we do not want to continue adding types... everything should be
8386 set up already */
8387 if (init == 0) return;
8388
8389 /* Now work on filling in swig_module.types */
8390#ifdef SWIGRUNTIME_DEBUG
8391 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
8392#endif
8393 for (i = 0; i < swig_module.size; ++i) {
8394 swig_type_info *type = 0;
8395 swig_type_info *ret;
8396 swig_cast_info *cast;
8397
8398#ifdef SWIGRUNTIME_DEBUG
8399 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8400#endif
8401
8402 /* if there is another module already loaded */
8403 if (swig_module.next != &swig_module) {
8404 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
8405 }
8406 if (type) {
8407 /* Overwrite clientdata field */
8408#ifdef SWIGRUNTIME_DEBUG
8409 printf("SWIG_InitializeModule: found type %s\n", type->name);
8410#endif
8411 if (swig_module.type_initial[i]->clientdata) {
8412 type->clientdata = swig_module.type_initial[i]->clientdata;
8413#ifdef SWIGRUNTIME_DEBUG
8414 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
8415#endif
8416 }
8417 } else {
8418 type = swig_module.type_initial[i];
8419 }
8420
8421 /* Insert casting types */
8422 cast = swig_module.cast_initial[i];
8423 while (cast->type) {
8424 /* Don't need to add information already in the list */
8425 ret = 0;
8426#ifdef SWIGRUNTIME_DEBUG
8427 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
8428#endif
8429 if (swig_module.next != &swig_module) {
8430 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
8431#ifdef SWIGRUNTIME_DEBUG
8432 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
8433#endif
8434 }
8435 if (ret) {
8436 if (type == swig_module.type_initial[i]) {
8437#ifdef SWIGRUNTIME_DEBUG
8438 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
8439#endif
8440 cast->type = ret;
8441 ret = 0;
8442 } else {
8443 /* Check for casting already in the list */
8444 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
8445#ifdef SWIGRUNTIME_DEBUG
8446 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
8447#endif
8448 if (!ocast) ret = 0;
8449 }
8450 }
8451
8452 if (!ret) {
8453#ifdef SWIGRUNTIME_DEBUG
8454 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
8455#endif
8456 if (type->cast) {
8457 type->cast->prev = cast;
8458 cast->next = type->cast;
8459 }
8460 type->cast = cast;
8461 }
8462 cast++;
8463 }
8464 /* Set entry in modules->types array equal to the type */
8465 swig_module.types[i] = type;
8466 }
8467 swig_module.types[i] = 0;
8468
8469#ifdef SWIGRUNTIME_DEBUG
8470 printf("**** SWIG_InitializeModule: Cast List ******\n");
8471 for (i = 0; i < swig_module.size; ++i) {
8472 int j = 0;
8473 swig_cast_info *cast = swig_module.cast_initial[i];
8474 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
8475 while (cast->type) {
8476 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
8477 cast++;
8478 ++j;
8479 }
8480 printf("---- Total casts: %d\n",j);
8481 }
8482 printf("**** SWIG_InitializeModule: Cast List ******\n");
8483#endif
8484}
8485
8486/* This function will propagate the clientdata field of type to
8487* any new swig_type_info structures that have been added into the list
8488* of equivalent types. It is like calling
8489* SWIG_TypeClientData(type, clientdata) a second time.
8490*/
8491SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
8492SWIG_PropagateClientData(void) {
8493 size_t i;
8494 swig_cast_info *equiv;
8495 static int init_run = 0;
8496
8497 if (init_run) return;
8498 init_run = 1;
8499
8500 for (i = 0; i < swig_module.size; i++) {
8501 if (swig_module.types[i]->clientdata) {
8502 equiv = swig_module.types[i]->cast;
8503 while (equiv) {
8504 if (!equiv->converter) {
8505 if (equiv->type && !equiv->type->clientdata)
8506 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
8507 }
8508 equiv = equiv->next;
8509 }
8510 }
8511 }
8512}
8513
8514#ifdef __cplusplus199711L
8515#if 0
8516{
8517 /* c-mode */
8518#endif
8519}
8520#endif
8521
8522
8523
8524#ifdef __cplusplus199711L
8525extern "C" {
8526#endif
8527
8528 /* Python-specific SWIG API */
8529#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
8530#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)
8531#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
8532
8533 /* -----------------------------------------------------------------------------
8534 * global variable support code.
8535 * ----------------------------------------------------------------------------- */
8536
8537 typedef struct swig_globalvar {
8538 char *name; /* Name of global variable */
8539 PyObject *(*get_attr)(void); /* Return the current value */
8540 int (*set_attr)(PyObject *); /* Set the value */
8541 struct swig_globalvar *next;
8542 } swig_globalvar;
8543
8544 typedef struct swig_varlinkobject {
8545 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
8546 swig_globalvar *vars;
8547 } swig_varlinkobject;
8548
8549 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8550 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
8551#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8552 return PyUnicode_InternFromString("<Swig global variables>");
8553#else
8554 return PyString_FromString("<Swig global variables>");
8555#endif
8556 }
8557
8558 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8559 swig_varlink_str(swig_varlinkobject *v) {
8560#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8561 PyObject *str = PyUnicode_InternFromString("(");
8562 PyObject *tail;
8563 PyObject *joined;
8564 swig_globalvar *var;
8565 for (var = v->vars; var; var=var->next) {
8566 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
8567 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8568 Py_DecRef(str);
8569 Py_DecRef(tail);
8570 str = joined;
8571 if (var->next) {
8572 tail = PyUnicode_InternFromString(", ");
8573 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8574 Py_DecRef(str);
8575 Py_DecRef(tail);
8576 str = joined;
8577 }
8578 }
8579 tail = PyUnicode_InternFromString(")");
8580 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
8581 Py_DecRef(str);
8582 Py_DecRef(tail);
8583 str = joined;
8584#else
8585 PyObject *str = PyString_FromString("(");
8586 swig_globalvar *var;
8587 for (var = v->vars; var; var=var->next) {
8588 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
8589 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
8590 }
8591 PyString_ConcatAndDel(&str,PyString_FromString(")"));
8592#endif
8593 return str;
8594 }
8595
8596 SWIGINTERNstatic __attribute__ ((__unused__)) int
8597 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
8598 char *tmp;
8599 PyObject *str = swig_varlink_str(v);
8600 fprintf(fp,"Swig global variables ");
8601 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
8602 SWIG_Python_str_DelForPy3(tmp);
8603 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
8604 return 0;
8605 }
8606
8607 SWIGINTERNstatic __attribute__ ((__unused__)) void
8608 swig_varlink_dealloc(swig_varlinkobject *v) {
8609 swig_globalvar *var = v->vars;
8610 while (var) {
8611 swig_globalvar *n = var->next;
8612 free(var->name);
8613 free(var);
8614 var = n;
8615 }
8616 }
8617
8618 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8619 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
8620 PyObject *res = NULL__null;
8621 swig_globalvar *var = v->vars;
8622 while (var) {
8623 if (strcmp(var->name,n) == 0) {
8624 res = (*var->get_attr)();
8625 break;
8626 }
8627 var = var->next;
8628 }
8629 if (res == NULL__null && !PyErr_Occurred()) {
8630 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8631 }
8632 return res;
8633 }
8634
8635 SWIGINTERNstatic __attribute__ ((__unused__)) int
8636 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
8637 int res = 1;
8638 swig_globalvar *var = v->vars;
8639 while (var) {
8640 if (strcmp(var->name,n) == 0) {
8641 res = (*var->set_attr)(p);
8642 break;
8643 }
8644 var = var->next;
8645 }
8646 if (res == 1 && !PyErr_Occurred()) {
8647 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
8648 }
8649 return res;
8650 }
8651
8652 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
8653 swig_varlink_type(void) {
8654 static char varlink__doc__[] = "Swig var link object";
8655 static PyTypeObject varlink_type;
8656 static int type_init = 0;
8657 if (!type_init) {
8658 const PyTypeObject tmp = {
8659 /* PyObject header changed in Python 3 */
8660#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8661 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
8662#else
8663 PyObject_HEAD_INIT(NULL)1, __null,
8664 0, /* ob_size */
8665#endif
8666 (char *)"swigvarlink", /* tp_name */
8667 sizeof(swig_varlinkobject), /* tp_basicsize */
8668 0, /* tp_itemsize */
8669 (destructor) swig_varlink_dealloc, /* tp_dealloc */
8670 (printfunc) swig_varlink_print, /* tp_print */
8671 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
8672 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
8673 0, /* tp_compare */
8674 (reprfunc) swig_varlink_repr, /* tp_repr */
8675 0, /* tp_as_number */
8676 0, /* tp_as_sequence */
8677 0, /* tp_as_mapping */
8678 0, /* tp_hash */
8679 0, /* tp_call */
8680 (reprfunc) swig_varlink_str, /* tp_str */
8681 0, /* tp_getattro */
8682 0, /* tp_setattro */
8683 0, /* tp_as_buffer */
8684 0, /* tp_flags */
8685 varlink__doc__, /* tp_doc */
8686 0, /* tp_traverse */
8687 0, /* tp_clear */
8688 0, /* tp_richcompare */
8689 0, /* tp_weaklistoffset */
8690#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
8691 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
8692#endif
8693#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
8694 0, /* tp_del */
8695#endif
8696#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
8697 0, /* tp_version */
8698#endif
8699#ifdef COUNT_ALLOCS
8700 0,0,0,0 /* tp_alloc -> tp_next */
8701#endif
8702 };
8703 varlink_type = tmp;
8704 type_init = 1;
8705#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
8706 varlink_type.ob_type = &PyType_Type;
8707#else
8708 if (PyType_Ready(&varlink_type) < 0)
8709 return NULL__null;
8710#endif
8711 }
8712 return &varlink_type;
8713 }
8714
8715 /* Create a variable linking object for use later */
8716 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8717 SWIG_Python_newvarlink(void) {
8718 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
())) )
;
8719 if (result) {
8720 result->vars = 0;
8721 }
8722 return ((PyObject*) result);
8723 }
8724
8725 SWIGINTERNstatic __attribute__ ((__unused__)) void
8726 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
8727 swig_varlinkobject *v = (swig_varlinkobject *) p;
8728 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
8729 if (gv) {
8730 size_t size = strlen(name)+1;
8731 gv->name = (char *)malloc(size);
8732 if (gv->name) {
8733 strncpy(gv->name,name,size);
8734 gv->get_attr = get_attr;
8735 gv->set_attr = set_attr;
8736 gv->next = v->vars;
8737 }
8738 }
8739 v->vars = gv;
8740 }
8741
8742 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
8743 SWIG_globals(void) {
8744 static PyObject *_SWIG_globals = 0;
8745 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
8746 return _SWIG_globals;
8747 }
8748
8749 /* -----------------------------------------------------------------------------
8750 * constants/methods manipulation
8751 * ----------------------------------------------------------------------------- */
8752
8753 /* Install Constants */
8754 SWIGINTERNstatic __attribute__ ((__unused__)) void
8755 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
8756 PyObject *obj = 0;
8757 size_t i;
8758 for (i = 0; constants[i].type; ++i) {
8759 switch(constants[i].type) {
8760 case SWIG_PY_POINTER4:
8761 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
8762 break;
8763 case SWIG_PY_BINARY5:
8764 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
8765 break;
8766 default:
8767 obj = 0;
8768 break;
8769 }
8770 if (obj) {
8771 PyDict_SetItemString(d, constants[i].name, obj);
8772 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
8773 }
8774 }
8775 }
8776
8777 /* -----------------------------------------------------------------------------*/
8778 /* Fix SwigMethods to carry the callback ptrs when needed */
8779 /* -----------------------------------------------------------------------------*/
8780
8781 SWIGINTERNstatic __attribute__ ((__unused__)) void
8782 SWIG_Python_FixMethods(PyMethodDef *methods,
8783 swig_const_info *const_table,
8784 swig_type_info **types,
8785 swig_type_info **types_initial) {
8786 size_t i;
8787 for (i = 0; methods[i].ml_name; ++i) {
8788 const char *c = methods[i].ml_doc;
8789 if (c && (c = strstr(c, "swig_ptr: "))) {
8790 int j;
8791 swig_const_info *ci = 0;
8792 const char *name = c + 10;
8793 for (j = 0; const_table[j].type; ++j) {
8794 if (strncmp(const_table[j].name, name,
8795 strlen(const_table[j].name)) == 0) {
8796 ci = &(const_table[j]);
8797 break;
8798 }
8799 }
8800 if (ci) {
8801 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
8802 if (ptr) {
8803 size_t shift = (ci->ptype) - types;
8804 swig_type_info *ty = types_initial[shift];
8805 size_t ldoc = (c - methods[i].ml_doc);
8806 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
8807 char *ndoc = (char*)malloc(ldoc + lptr + 10);
8808 if (ndoc) {
8809 char *buff = ndoc;
8810 strncpy(buff, methods[i].ml_doc, ldoc);
8811 buff += ldoc;
8812 strncpy(buff, "swig_ptr: ", 10);
8813 buff += 10;
8814 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
8815 methods[i].ml_doc = ndoc;
8816 }
8817 }
8818 }
8819 }
8820 }
8821 }
8822
8823#ifdef __cplusplus199711L
8824}
8825#endif
8826
8827/* -----------------------------------------------------------------------------*
8828 * Partial Init method
8829 * -----------------------------------------------------------------------------*/
8830
8831#ifdef __cplusplus199711L
8832extern "C"
8833#endif
8834
8835SWIGEXPORT__attribute__ ((visibility("default")))
8836#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8837PyObject*
8838#else
8839void
8840#endif
8841SWIG_initinit_mwl(void) {
8842 PyObject *m, *d, *md;
8843#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8844 static struct PyModuleDef SWIG_module = {
8845# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
8846 PyModuleDef_HEAD_INIT,
8847# else
8848 {
8849 PyObject_HEAD_INIT(NULL)1, __null,
8850 NULL__null, /* m_init */
8851 0, /* m_index */
8852 NULL__null, /* m_copy */
8853 },
8854# endif
8855 (char *) SWIG_name"_mwl",
8856 NULL__null,
8857 -1,
8858 SwigMethods,
8859 NULL__null,
8860 NULL__null,
8861 NULL__null,
8862 NULL__null
8863 };
8864#endif
8865
8866#if defined(SWIGPYTHON_BUILTIN)
8867 static SwigPyClientData SwigPyObject_clientdata = {
8868 0, 0, 0, 0, 0, 0, 0
8869 };
8870 static PyGetSetDef this_getset_def = {
8871 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
8872 };
8873 static SwigPyGetSet thisown_getset_closure = {
8874 (PyCFunction) SwigPyObject_own,
8875 (PyCFunction) SwigPyObject_own
8876 };
8877 static PyGetSetDef thisown_getset_def = {
8878 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
8879 };
8880 PyObject *metatype_args;
8881 PyTypeObject *builtin_pytype;
8882 int builtin_base_count;
8883 swig_type_info *builtin_basetype;
8884 PyObject *tuple;
8885 PyGetSetDescrObject *static_getset;
8886 PyTypeObject *metatype;
8887 SwigPyClientData *cd;
8888 PyObject *public_interface, *public_symbol;
8889 PyObject *this_descr;
8890 PyObject *thisown_descr;
8891 int i;
8892
8893 (void)builtin_pytype;
8894 (void)builtin_base_count;
8895 (void)builtin_basetype;
8896 (void)tuple;
8897 (void)static_getset;
8898
8899 /* metatype is used to implement static member variables. */
8900 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
8901 assert(metatype_args)((void)0);
8902 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
8903 assert(metatype)((void)0);
8904 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)
;
8905 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
8906 assert(PyType_Ready(metatype) >= 0)((void)0);
8907#endif
8908
8909 /* Fix SwigMethods to carry the callback ptrs when needed */
8910 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
8911
8912#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8913 m = PyModule_Create(&SWIG_module);
8914#else
8915 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_mwl", SwigMethods, (char *)__null
, (PyObject *)__null, 1013)
;
8916#endif
8917 md = d = PyModule_GetDict(m);
8918 (void)md;
8919
8920 SWIG_InitializeModule(0);
8921
8922#ifdef SWIGPYTHON_BUILTIN
8923 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
8924 assert(SwigPyObject_stype)((void)0);
8925 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
8926 if (!cd) {
8927 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
8928 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
8929 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
8930 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
8931# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8932 return NULL__null;
8933# else
8934 return;
8935# endif
8936 }
8937
8938 /* All objects have a 'this' attribute */
8939 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
8940 (void)this_descr;
8941
8942 /* All objects have a 'thisown' attribute */
8943 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
8944 (void)thisown_descr;
8945
8946 public_interface = PyList_New(0);
8947 public_symbol = 0;
8948 (void)public_symbol;
8949
8950 PyDict_SetItemString(md, "__all__", public_interface);
8951 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)
;
8952 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
8953 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
8954 for (i = 0; swig_const_table[i].name != 0; ++i)
8955 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
8956#endif
8957
8958 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
8959
8960#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
8961 return m;
8962#else
8963 return;
8964#endif
8965}
8966