Bug Summary

File:pyext/gammalib/obs_wrap.cpp
Location:line 28442, 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_GCaldbswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GContainerswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_GEboundsswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_GEnergiesswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_GEnergyswig_types[5] swig_types[5]
2946#define SWIGTYPE_p_GEventswig_types[6] swig_types[6]
2947#define SWIGTYPE_p_GEventAtomswig_types[7] swig_types[7]
2948#define SWIGTYPE_p_GEventBinswig_types[8] swig_types[8]
2949#define SWIGTYPE_p_GEventCubeswig_types[9] swig_types[9]
2950#define SWIGTYPE_p_GEventListswig_types[10] swig_types[10]
2951#define SWIGTYPE_p_GEventsswig_types[11] swig_types[11]
2952#define SWIGTYPE_p_GFitsswig_types[12] swig_types[12]
2953#define SWIGTYPE_p_GFitsHDUswig_types[13] swig_types[13]
2954#define SWIGTYPE_p_GFitsTableswig_types[14] swig_types[14]
2955#define SWIGTYPE_p_GGtiswig_types[15] swig_types[15]
2956#define SWIGTYPE_p_GInstDirswig_types[16] swig_types[16]
2957#define SWIGTYPE_p_GModelswig_types[17] swig_types[17]
2958#define SWIGTYPE_p_GModelSpatialswig_types[18] swig_types[18]
2959#define SWIGTYPE_p_GModelsswig_types[19] swig_types[19]
2960#define SWIGTYPE_p_GObservationswig_types[20] swig_types[20]
2961#define SWIGTYPE_p_GObservationRegistryswig_types[21] swig_types[21]
2962#define SWIGTYPE_p_GObservationsswig_types[22] swig_types[22]
2963#define SWIGTYPE_p_GObservations__likelihoodswig_types[23] swig_types[23]
2964#define SWIGTYPE_p_GOptimizerswig_types[24] swig_types[24]
2965#define SWIGTYPE_p_GPhotonswig_types[25] swig_types[25]
2966#define SWIGTYPE_p_GPhotonsswig_types[26] swig_types[26]
2967#define SWIGTYPE_p_GRegistryswig_types[27] swig_types[27]
2968#define SWIGTYPE_p_GResponseswig_types[28] swig_types[28]
2969#define SWIGTYPE_p_GRoiswig_types[29] swig_types[29]
2970#define SWIGTYPE_p_GSkyDirswig_types[30] swig_types[30]
2971#define SWIGTYPE_p_GSourceswig_types[31] swig_types[31]
2972#define SWIGTYPE_p_GTimeswig_types[32] swig_types[32]
2973#define SWIGTYPE_p_GTimeReferenceswig_types[33] swig_types[33]
2974#define SWIGTYPE_p_GTimesswig_types[34] swig_types[34]
2975#define SWIGTYPE_p_GVectorswig_types[35] swig_types[35]
2976#define SWIGTYPE_p_GXmlswig_types[36] swig_types[36]
2977#define SWIGTYPE_p_GXmlElementswig_types[37] swig_types[37]
2978#define SWIGTYPE_p_charswig_types[38] swig_types[38]
2979#define SWIGTYPE_p_std__invalid_argumentswig_types[39] swig_types[39]
2980#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[40] swig_types[40]
2981static swig_type_info *swig_types[42];
2982static swig_module_info swig_module = {swig_types, 41, 0, 0, 0, 0};
2983#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2984#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2985
2986/* -------- TYPES TABLE (END) -------- */
2987
2988#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2989# if !defined(SWIG_PYTHON_CLASSIC)
2990# error "This python version requires swig to be run with the '-classic' option"
2991# endif
2992#endif
2993
2994/*-----------------------------------------------
2995 @(target):= _obs.so
2996 ------------------------------------------------*/
2997#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2998# define SWIG_initinit_obs PyInit__obs
2999
3000#else
3001# define SWIG_initinit_obs init_obs
3002
3003#endif
3004#define SWIG_name"_obs" "_obs"
3005
3006#define SWIGVERSION0x020011 0x020011
3007#define SWIG_VERSION0x020011 SWIGVERSION0x020011
3008
3009
3010#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
3011#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))
3012
3013
3014#include <stdexcept>
3015
3016
3017namespace swig {
3018 class SwigPtr_PyObject {
3019 protected:
3020 PyObject *_obj;
3021
3022 public:
3023 SwigPtr_PyObject() :_obj(0)
3024 {
3025 }
3026
3027 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3028 {
3029 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3030 }
3031
3032 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3033 {
3034 if (initial_ref) {
3035 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3036 }
3037 }
3038
3039 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3040 {
3041 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3042 Py_XDECREF(_obj)do { if ((_obj) == __null) ; else do { if ( --((PyObject*)(_obj
))->ob_refcnt != 0) ; else ( (*(((PyObject*)((PyObject *)(
_obj)))->ob_type)->tp_dealloc)((PyObject *)((PyObject *
)(_obj)))); } while (0); } while (0)
;
3043 _obj = item._obj;
3044 return *this;
3045 }
3046
3047 ~SwigPtr_PyObject()
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 }
3051
3052 operator PyObject *() const
3053 {
3054 return _obj;
3055 }
3056
3057 PyObject *operator->() const
3058 {
3059 return _obj;
3060 }
3061 };
3062}
3063
3064
3065namespace swig {
3066 struct SwigVar_PyObject : SwigPtr_PyObject {
3067 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3068
3069 SwigVar_PyObject & operator = (PyObject* obj)
3070 {
3071 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)
;
3072 _obj = obj;
3073 return *this;
3074 }
3075 };
3076}
3077
3078
3079#include <stddef.h>
3080#include "GException.hpp"
3081#include "GTools.hpp"
3082
3083
3084#include <stdexcept>
3085
3086
3087#if defined(__GNUC__4)
3088# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3089# define SWIG_STD_NOMODERN_STL
3090# endif
3091#endif
3092
3093
3094#include <string>
3095#include <stdexcept>
3096#include <stddef.h>
3097
3098
3099#include <string>
3100
3101
3102#include <iostream>
3103
3104#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3105# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3106#else
3107# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3108#endif
3109
3110
3111 #include <stddef.h>
3112
3113
3114namespace swig {
3115 struct stop_iteration {
3116 };
3117
3118 struct SwigPyIterator {
3119 private:
3120 SwigPtr_PyObject _seq;
3121
3122 protected:
3123 SwigPyIterator(PyObject *seq) : _seq(seq)
3124 {
3125 }
3126
3127 public:
3128 virtual ~SwigPyIterator() {}
3129
3130 // Access iterator method, required by Python
3131 virtual PyObject *value() const = 0;
3132
3133 // Forward iterator method, required by Python
3134 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3135
3136 // Backward iterator method, very common in C++, but not required in Python
3137 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3138 {
3139 throw stop_iteration();
3140 }
3141
3142 // Random access iterator methods, but not required in Python
3143 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3144 {
3145 throw std::invalid_argument("operation not supported");
3146 }
3147
3148 virtual bool equal (const SwigPyIterator &/*x*/) const
3149 {
3150 throw std::invalid_argument("operation not supported");
3151 }
3152
3153 // C++ common/needed methods
3154 virtual SwigPyIterator *copy() const = 0;
3155
3156 PyObject *next()
3157 {
3158 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3159 PyObject *obj = value();
3160 incr();
3161 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3162 return obj;
3163 }
3164
3165 /* Make an alias for Python 3.x */
3166 PyObject *__next__()
3167 {
3168 return next();
3169 }
3170
3171 PyObject *previous()
3172 {
3173 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3174 decr();
3175 PyObject *obj = value();
3176 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3177 return obj;
3178 }
3179
3180 SwigPyIterator *advance(ptrdiff_t n)
3181 {
3182 return (n > 0) ? incr(n) : decr(-n);
3183 }
3184
3185 bool operator == (const SwigPyIterator& x) const
3186 {
3187 return equal(x);
3188 }
3189
3190 bool operator != (const SwigPyIterator& x) const
3191 {
3192 return ! operator==(x);
3193 }
3194
3195 SwigPyIterator& operator += (ptrdiff_t n)
3196 {
3197 return *advance(n);
3198 }
3199
3200 SwigPyIterator& operator -= (ptrdiff_t n)
3201 {
3202 return *advance(-n);
3203 }
3204
3205 SwigPyIterator* operator + (ptrdiff_t n) const
3206 {
3207 return copy()->advance(n);
3208 }
3209
3210 SwigPyIterator* operator - (ptrdiff_t n) const
3211 {
3212 return copy()->advance(-n);
3213 }
3214
3215 ptrdiff_t operator - (const SwigPyIterator& x) const
3216 {
3217 return x.distance(*this);
3218 }
3219
3220 static swig_type_info* descriptor() {
3221 static int init = 0;
3222 static swig_type_info* desc = 0;
3223 if (!init) {
3224 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3225 init = 1;
3226 }
3227 return desc;
3228 }
3229 };
3230
3231#if defined(SWIGPYTHON_BUILTIN)
3232 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3233 {
3234 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3235 return pyself;
3236 }
3237#endif
3238}
3239
3240
3241SWIGINTERNstatic __attribute__ ((__unused__)) int
3242SWIG_AsVal_double (PyObject *obj, double *val)
3243{
3244 int res = SWIG_TypeError-5;
3245 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3246 if (val) *val = PyFloat_AsDouble(obj);
3247 return SWIG_OK(0);
3248 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3249 if (val) *val = PyInt_AsLong(obj);
3250 return SWIG_OK(0);
3251 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3252 double v = PyLong_AsDouble(obj);
3253 if (!PyErr_Occurred()) {
3254 if (val) *val = v;
3255 return SWIG_OK(0);
3256 } else {
3257 PyErr_Clear();
3258 }
3259 }
3260#ifdef SWIG_PYTHON_CAST_MODE
3261 {
3262 int dispatch = 0;
3263 double d = PyFloat_AsDouble(obj);
3264 if (!PyErr_Occurred()) {
3265 if (val) *val = d;
3266 return SWIG_AddCast(SWIG_OK)((0));
3267 } else {
3268 PyErr_Clear();
3269 }
3270 if (!dispatch) {
3271 long v = PyLong_AsLong(obj);
3272 if (!PyErr_Occurred()) {
3273 if (val) *val = v;
3274 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3275 } else {
3276 PyErr_Clear();
3277 }
3278 }
3279 }
3280#endif
3281 return res;
3282}
3283
3284
3285#include <float.h>
3286
3287
3288#include <math.h>
3289
3290
3291SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3292SWIG_CanCastAsInteger(double *d, double min, double max) {
3293 double x = *d;
3294 if ((min <= x && x <= max)) {
3295 double fx = floor(x);
3296 double cx = ceil(x);
3297 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3298 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3299 errno(*__error()) = 0;
3300 } else {
3301 double summ, reps, diff;
3302 if (rd < x) {
3303 diff = x - rd;
3304 } else if (rd > x) {
3305 diff = rd - x;
3306 } else {
3307 return 1;
3308 }
3309 summ = rd + x;
3310 reps = diff/summ;
3311 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3312 *d = rd;
3313 return 1;
3314 }
3315 }
3316 }
3317 return 0;
3318}
3319
3320
3321SWIGINTERNstatic __attribute__ ((__unused__)) int
3322SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3323{
3324#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3325 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3326 long v = PyInt_AsLong(obj);
3327 if (v >= 0) {
3328 if (val) *val = v;
3329 return SWIG_OK(0);
3330 } else {
3331 return SWIG_OverflowError-7;
3332 }
3333 } else
3334#endif
3335 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3336 unsigned long v = PyLong_AsUnsignedLong(obj);
3337 if (!PyErr_Occurred()) {
3338 if (val) *val = v;
3339 return SWIG_OK(0);
3340 } else {
3341 PyErr_Clear();
3342#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3343 {
3344 long v = PyLong_AsLong(obj);
3345 if (!PyErr_Occurred()) {
3346 if (v < 0) {
3347 return SWIG_OverflowError-7;
3348 }
3349 } else {
3350 PyErr_Clear();
3351 }
3352 }
3353#endif
3354 }
3355 }
3356#ifdef SWIG_PYTHON_CAST_MODE
3357 {
3358 int dispatch = 0;
3359 unsigned long v = PyLong_AsUnsignedLong(obj);
3360 if (!PyErr_Occurred()) {
3361 if (val) *val = v;
3362 return SWIG_AddCast(SWIG_OK)((0));
3363 } else {
3364 PyErr_Clear();
3365 }
3366 if (!dispatch) {
3367 double d;
3368 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3369 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3370 if (val) *val = (unsigned long)(d);
3371 return res;
3372 }
3373 }
3374 }
3375#endif
3376 return SWIG_TypeError-5;
3377}
3378
3379
3380SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3381SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3382{
3383 unsigned long v;
3384 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3385 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3386 return res;
3387}
3388
3389
3390 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3391
3392
3393SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3394SWIG_From_ptrdiff_t (ptrdiff_t value)
3395{
3396 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3397}
3398
3399
3400SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3401 SWIG_From_bool (bool value)
3402{
3403 return PyBool_FromLong(value ? 1 : 0);
3404}
3405
3406
3407SWIGINTERNstatic __attribute__ ((__unused__)) int
3408SWIG_AsVal_long (PyObject *obj, long* val)
3409{
3410 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3411 if (val) *val = PyInt_AsLong(obj);
3412 return SWIG_OK(0);
3413 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3414 long v = PyLong_AsLong(obj);
3415 if (!PyErr_Occurred()) {
3416 if (val) *val = v;
3417 return SWIG_OK(0);
3418 } else {
3419 PyErr_Clear();
3420 }
3421 }
3422#ifdef SWIG_PYTHON_CAST_MODE
3423 {
3424 int dispatch = 0;
3425 long v = PyInt_AsLong(obj);
3426 if (!PyErr_Occurred()) {
3427 if (val) *val = v;
3428 return SWIG_AddCast(SWIG_OK)((0));
3429 } else {
3430 PyErr_Clear();
3431 }
3432 if (!dispatch) {
3433 double d;
3434 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3435 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3436 if (val) *val = (long)(d);
3437 return res;
3438 }
3439 }
3440 }
3441#endif
3442 return SWIG_TypeError-5;
3443}
3444
3445
3446SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3447SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3448{
3449 long v;
3450 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3451 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3452 return res;
3453}
3454
3455
3456#include <stdexcept>
3457
3458
3459#include <algorithm>
3460
3461
3462#include <vector>
3463
3464
3465#include <utility>
3466
3467
3468#include <map>
3469#include <algorithm>
3470#include <stdexcept>
3471
3472
3473/* Put headers and other declarations here that are needed for compilation */
3474#include "GEnergy.hpp"
3475#include "GTools.hpp"
3476
3477
3478SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3479SWIG_pchar_descriptor(void)
3480{
3481 static int init = 0;
3482 static swig_type_info* info = 0;
3483 if (!init) {
3484 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3485 init = 1;
3486 }
3487 return info;
3488}
3489
3490
3491SWIGINTERNstatic __attribute__ ((__unused__)) int
3492SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3493{
3494#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3495 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3496#else
3497 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3498#endif
3499 {
3500 char *cstr; Py_ssize_t len;
3501#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3502 if (!alloc && cptr) {
3503 /* We can't allow converting without allocation, since the internal
3504 representation of string in Python 3 is UCS-2/UCS-4 but we require
3505 a UTF-8 representation.
3506 TODO(bhy) More detailed explanation */
3507 return SWIG_RuntimeError-3;
3508 }
3509 obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj);
3510 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3511 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3512#else
3513 PyString_AsStringAndSize(obj, &cstr, &len);
3514#endif
3515 if (cptr) {
3516 if (alloc) {
3517 /*
3518 In python the user should not be able to modify the inner
3519 string representation. To warranty that, if you define
3520 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3521 buffer is always returned.
3522
3523 The default behavior is just to return the pointer value,
3524 so, be careful.
3525 */
3526#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3527 if (*alloc != SWIG_OLDOBJ((0)))
3528#else
3529 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3530#endif
3531 {
3532 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3533 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3534 }
3535 else {
3536 *cptr = cstr;
3537 *alloc = SWIG_OLDOBJ((0));
3538 }
3539 } else {
3540 #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3541 assert(0)((void)0); /* Should never reach here in Python 3 */
3542 #endif
3543 *cptr = SWIG_Python_str_AsChar(obj);
3544 }
3545 }
3546 if (psize) *psize = len + 1;
3547#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3548 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)
;
3549#endif
3550 return SWIG_OK(0);
3551 } else {
3552 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3553 if (pchar_descriptor) {
3554 void* vptr = 0;
3555 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3556 if (cptr) *cptr = (char *) vptr;
3557 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3558 if (alloc) *alloc = SWIG_OLDOBJ((0));
3559 return SWIG_OK(0);
3560 }
3561 }
3562 }
3563 return SWIG_TypeError-5;
3564}
3565
3566
3567SWIGINTERNstatic __attribute__ ((__unused__)) int
3568SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
3569{
3570 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0));
3571 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)
) >= 0)
) {
3572 if (buf) {
3573 if (val) *val = new std::string(buf, size - 1);
3574 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf;
3575 return SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3576 } else {
3577 if (val) *val = 0;
3578 return SWIG_OLDOBJ((0));
3579 }
3580 } else {
3581 static int init = 0;
3582 static swig_type_info* descriptor = 0;
3583 if (!init) {
3584 descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string"
" *")
;
3585 init = 1;
3586 }
3587 if (descriptor) {
3588 std::string *vptr;
3589 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor
, 0, 0)
;
3590 if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr;
3591 return res;
3592 }
3593 }
3594 return SWIG_ERROR(-1);
3595}
3596
3597
3598 #define SWIG_From_doublePyFloat_FromDouble PyFloat_FromDouble
3599
3600SWIGINTERNstatic __attribute__ ((__unused__)) GEnergy GEnergy___add__(GEnergy const *self,GEnergy const &eng){
3601 return ((*self) + eng);
3602 }
3603SWIGINTERNstatic __attribute__ ((__unused__)) GEnergy GEnergy___sub__(GEnergy const *self,GEnergy const &eng){
3604 return ((*self) - eng);
3605 }
3606SWIGINTERNstatic __attribute__ ((__unused__)) GEnergy GEnergy___mul__(GEnergy const *self,double const &factor){
3607 return ((*self) * factor);
3608 }
3609SWIGINTERNstatic __attribute__ ((__unused__)) GEnergy GEnergy___div__(GEnergy const *self,double const &factor){
3610 return ((*self) / factor);
3611 }
3612SWIGINTERNstatic __attribute__ ((__unused__)) bool GEnergy___eq__(GEnergy const *self,GEnergy const &eng){
3613 return ((*self) == eng);
3614 }
3615SWIGINTERNstatic __attribute__ ((__unused__)) bool GEnergy___ne__(GEnergy const *self,GEnergy const &eng){
3616 return ((*self) != eng);
3617 }
3618SWIGINTERNstatic __attribute__ ((__unused__)) bool GEnergy___lt__(GEnergy const *self,GEnergy const &eng){
3619 return ((*self) < eng);
3620 }
3621SWIGINTERNstatic __attribute__ ((__unused__)) bool GEnergy___gt__(GEnergy const *self,GEnergy const &eng){
3622 return ((*self) > eng);
3623 }
3624SWIGINTERNstatic __attribute__ ((__unused__)) bool GEnergy___lte__(GEnergy const *self,GEnergy const &eng){
3625 return ((*self) <= eng);
3626 }
3627SWIGINTERNstatic __attribute__ ((__unused__)) bool GEnergy___gte__(GEnergy const *self,GEnergy const &eng){
3628 return ((*self) >= eng);
3629 }
3630SWIGINTERNstatic __attribute__ ((__unused__)) GEnergy GEnergy_copy(GEnergy *self){
3631 return (*self);
3632 }
3633
3634/* Put headers and other declarations here that are needed for compilation */
3635#include "GEnergies.hpp"
3636#include "GException.hpp"
3637#include "GTools.hpp"
3638
3639
3640#include <limits.h>
3641#if !defined(SWIG_NO_LLONG_MAX)
3642# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3643# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3644# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3645# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3646# endif
3647#endif
3648
3649
3650SWIGINTERNstatic __attribute__ ((__unused__)) int
3651SWIG_AsVal_int (PyObject * obj, int *val)
3652{
3653 long v;
3654 int res = SWIG_AsVal_long (obj, &v);
3655 if (SWIG_IsOK(res)(res >= 0)) {
3656 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3657 return SWIG_OverflowError-7;
3658 } else {
3659 if (val) *val = static_cast< int >(v);
3660 }
3661 }
3662 return res;
3663}
3664
3665
3666SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3667 SWIG_From_int (int value)
3668{
3669 return PyInt_FromLong((long) value);
3670}
3671
3672
3673SWIGINTERNstatic __attribute__ ((__unused__)) int
3674SWIG_AsVal_bool (PyObject *obj, bool *val)
3675{
3676 int r = PyObject_IsTrue(obj);
3677 if (r == -1)
3678 return SWIG_ERROR(-1);
3679 if (val) *val = r ? true : false;
3680 return SWIG_OK(0);
3681}
3682
3683SWIGINTERNstatic __attribute__ ((__unused__)) GEnergy &GEnergies___getitem__(GEnergies *self,int const &index){
3684 if (index >= 0 && index < self->size()) {
3685 return (*self)[index];
3686 }
3687 else {
3688 throw GException::out_of_range("__getitem__(int)", index, self->size());
3689 }
3690 }
3691SWIGINTERNstatic __attribute__ ((__unused__)) void GEnergies___setitem__(GEnergies *self,int const &index,GEnergy const &val){
3692 if (index>=0 && index < self->size()) {
3693 (*self)[index] = val;
3694 return;
3695 }
3696 else {
3697 throw GException::out_of_range("__setitem__(int)", index, self->size());
3698 }
3699 }
3700SWIGINTERNstatic __attribute__ ((__unused__)) GEnergies GEnergies_copy(GEnergies *self){
3701 return (*self);
3702 }
3703
3704/* Put headers and other declarations here that are needed for compilation */
3705#include "GTime.hpp"
3706
3707SWIGINTERNstatic __attribute__ ((__unused__)) GTime GTime___add__(GTime const *self,GTime const &time){
3708 return ((*self) + time);
3709 }
3710SWIGINTERNstatic __attribute__ ((__unused__)) GTime GTime___sub__(GTime const *self,GTime const &time){
3711 return ((*self) - time);
3712 }
3713SWIGINTERNstatic __attribute__ ((__unused__)) GTime GTime___mul__(GTime const *self,double const &factor){
3714 return ((*self) * factor);
3715 }
3716SWIGINTERNstatic __attribute__ ((__unused__)) GTime GTime___div__(GTime const *self,double const &factor){
3717 return ((*self) / factor);
3718 }
3719SWIGINTERNstatic __attribute__ ((__unused__)) bool GTime___eq__(GTime const *self,GTime const &time){
3720 return ((*self) == time);
3721 }
3722SWIGINTERNstatic __attribute__ ((__unused__)) bool GTime___ne__(GTime const *self,GTime const &time){
3723 return ((*self) != time);
3724 }
3725SWIGINTERNstatic __attribute__ ((__unused__)) bool GTime___lt__(GTime const *self,GTime const &time){
3726 return ((*self) < time);
3727 }
3728SWIGINTERNstatic __attribute__ ((__unused__)) bool GTime___gt__(GTime const *self,GTime const &time){
3729 return ((*self) > time);
3730 }
3731SWIGINTERNstatic __attribute__ ((__unused__)) bool GTime___lte__(GTime const *self,GTime const &time){
3732 return ((*self) <= time);
3733 }
3734SWIGINTERNstatic __attribute__ ((__unused__)) bool GTime___gte__(GTime const *self,GTime const &time){
3735 return ((*self) >= time);
3736 }
3737SWIGINTERNstatic __attribute__ ((__unused__)) GTime GTime_copy(GTime *self){
3738 return (*self);
3739 }
3740
3741/* Put headers and other declarations here that are needed for compilation */
3742#include "GTimes.hpp"
3743#include "GException.hpp"
3744#include "GTools.hpp"
3745
3746SWIGINTERNstatic __attribute__ ((__unused__)) GTime &GTimes___getitem__(GTimes *self,int const &index){
3747 if (index >= 0 && index < self->size()) {
3748 return (*self)[index];
3749 }
3750 else {
3751 throw GException::out_of_range("__getitem__(int)", index, self->size());
3752 }
3753 }
3754SWIGINTERNstatic __attribute__ ((__unused__)) void GTimes___setitem__(GTimes *self,int const &index,GTime const &val){
3755 if (index>=0 && index < self->size()) {
3756 (*self)[index] = val;
3757 return;
3758 }
3759 else {
3760 throw GException::out_of_range("__setitem__(int)", index, self->size());
3761 }
3762 }
3763SWIGINTERNstatic __attribute__ ((__unused__)) GTimes GTimes_copy(GTimes *self){
3764 return (*self);
3765 }
3766
3767/* Put headers and other declarations here that are needed for compilation */
3768#include "GTimeReference.hpp"
3769#include "GTools.hpp"
3770
3771
3772SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3773SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3774{
3775 if (carray) {
3776 if (size > INT_MAX2147483647) {
3777 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3778 return pchar_descriptor ?
3779 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3780 } else {
3781#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3782 return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size));
3783#else
3784 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3785#endif
3786 }
3787 } else {
3788 return SWIG_Py_Void();
3789 }
3790}
3791
3792
3793SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3794SWIG_From_std_string (const std::string& s)
3795{
3796 return SWIG_FromCharPtrAndSize(s.data(), s.size());
3797}
3798
3799SWIGINTERNstatic __attribute__ ((__unused__)) GTimeReference GTimeReference_copy(GTimeReference *self){
3800 return (*self);
3801 }
3802
3803/* Put headers and other declarations here that are needed for compilation */
3804#include "GEbounds.hpp"
3805#include "GTools.hpp"
3806
3807SWIGINTERNstatic __attribute__ ((__unused__)) GEbounds GEbounds_copy(GEbounds *self){
3808 return (*self);
3809 }
3810
3811/* Put headers and other declarations here that are needed for compilation */
3812#include "GGti.hpp"
3813#include "GTools.hpp"
3814
3815SWIGINTERNstatic __attribute__ ((__unused__)) int GGti___len__(GGti *self){
3816 return (self->size());
3817 }
3818SWIGINTERNstatic __attribute__ ((__unused__)) GGti GGti_copy(GGti *self){
3819 return (*self);
3820 }
3821
3822/* Put headers and other declarations here that are needed for compilation */
3823#include "GCaldb.hpp"
3824
3825SWIGINTERNstatic __attribute__ ((__unused__)) GCaldb GCaldb_copy(GCaldb *self){
3826 return (*self);
3827 }
3828
3829/* Put headers and other declarations here that are needed for compilation */
3830#include "GObservations.hpp"
3831#include "GTools.hpp"
3832
3833SWIGINTERNstatic __attribute__ ((__unused__)) GObservation *GObservations___getitem__(GObservations *self,int const &index){
3834 if (index >= 0 && index < self->size()) {
3835 return (*self)[index];
3836 }
3837 else {
3838 throw GException::out_of_range("__getitem__(int)", index, self->size());
3839 }
3840 }
3841SWIGINTERNstatic __attribute__ ((__unused__)) void GObservations___setitem__(GObservations *self,int const &index,GObservation const &val){
3842 if (index>=0 && index < self->size()) {
3843 self->set(index, val);
3844 return;
3845 }
3846 else {
3847 throw GException::out_of_range("__setitem__(int)", index, self->size());
3848 }
3849 }
3850SWIGINTERNstatic __attribute__ ((__unused__)) GObservations GObservations_copy(GObservations *self){
3851 return (*self);
3852 }
3853
3854/* Put headers and other declarations here that are needed for compilation */
3855#include "GObservation.hpp"
3856#include "GEvents.hpp"
3857#include "GEventList.hpp"
3858#include "GEventCube.hpp"
3859#include "GTools.hpp"
3860
3861
3862/* Put headers and other declarations here that are needed for compilation */
3863#include "GObservationRegistry.hpp"
3864#include "GTools.hpp"
3865
3866
3867/* Put headers and other declarations here that are needed for compilation */
3868#include "GEvents.hpp"
3869#include "GEvent.hpp"
3870#include "GEventBin.hpp"
3871#include "GEventAtom.hpp"
3872#include "GTools.hpp"
3873
3874SWIGINTERNstatic __attribute__ ((__unused__)) GEvent *GEvents___getitem__(GEvents *self,int index){
3875 if (index >= 0 && index < self->size()) {
3876 return (*self)[index];
3877 }
3878 else {
3879 throw GException::out_of_range("__getitem__(int)", "Event index",
3880 index, self->size());
3881 }
3882 }
3883SWIGINTERNstatic __attribute__ ((__unused__)) void GEvents___setitem__(GEvents *self,int index,GEvent const &event){
3884 if (index>=0 && index < self->size()) {
3885 *((*self)[index]) = event;
3886 }
3887 else {
3888 throw GException::out_of_range("__setitem__(int)", "Event index",
3889 index, self->size());
3890 }
3891 }
3892
3893/* Put headers and other declarations here that are needed for compilation */
3894#include "GEventList.hpp"
3895
3896
3897/* Put headers and other declarations here that are needed for compilation */
3898#include "GEventCube.hpp"
3899
3900
3901/* Put headers and other declarations here that are needed for compilation */
3902#include "GEvent.hpp"
3903#include "GTools.hpp"
3904
3905
3906/* Put headers and other declarations here that are needed for compilation */
3907#include "GEventAtom.hpp"
3908
3909
3910/* Put headers and other declarations here that are needed for compilation */
3911#include "GEventBin.hpp"
3912
3913
3914/* Put headers and other declarations here that are needed for compilation */
3915#include "GInstDir.hpp"
3916#include "GTools.hpp"
3917
3918
3919/* Put headers and other declarations here that are needed for compilation */
3920#include "GRoi.hpp"
3921
3922
3923/* Put headers and other declarations here that are needed for compilation */
3924#include "GResponse.hpp"
3925#include "GTools.hpp"
3926
3927
3928/* Put headers and other declarations here that are needed for compilation */
3929#include "GPhoton.hpp"
3930
3931SWIGINTERNstatic __attribute__ ((__unused__)) bool GPhoton___eq__(GPhoton const *self,GPhoton const &photon){
3932 return ((*self) == photon);
3933 }
3934SWIGINTERNstatic __attribute__ ((__unused__)) bool GPhoton___ne__(GPhoton const *self,GPhoton const &photon){
3935 return ((*self) != photon);
3936 }
3937SWIGINTERNstatic __attribute__ ((__unused__)) GPhoton GPhoton_copy(GPhoton *self){
3938 return (*self);
3939 }
3940
3941/* Put headers and other declarations here that are needed for compilation */
3942#include "GPhotons.hpp"
3943#include "GTools.hpp"
3944
3945SWIGINTERNstatic __attribute__ ((__unused__)) GPhoton &GPhotons___getitem__(GPhotons *self,int const &index){
3946 if (index >= 0 && index < self->size()) {
3947 return (*self)[index];
3948 }
3949 else {
3950 throw GException::out_of_range("__getitem__(int)", index, self->size());
3951 }
3952 }
3953SWIGINTERNstatic __attribute__ ((__unused__)) void GPhotons___setitem__(GPhotons *self,int const &index,GPhoton const &val){
3954 if (index>=0 && index < self->size()) {
3955 (*self)[index] = val;
3956 return;
3957 }
3958 else {
3959 throw GException::out_of_range("__setitem__(int)", index, self->size());
3960 }
3961 }
3962SWIGINTERNstatic __attribute__ ((__unused__)) GPhotons GPhotons_copy(GPhotons *self){
3963 return (*self);
3964 }
3965
3966/* Put headers and other declarations here that are needed for compilation */
3967#include "GSource.hpp"
3968#include "GTools.hpp"
3969
3970SWIGINTERNstatic __attribute__ ((__unused__)) GSource GSource_copy(GSource *self){
3971 return (*self);
3972 }
3973#ifdef __cplusplus199711L
3974extern "C" {
3975#endif
3976SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3977 PyObject *resultobj = 0;
3978 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3979 void *argp1 = 0 ;
3980 int res1 = 0 ;
3981 PyObject * obj0 = 0 ;
3982
3983 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
3984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0x1 | 0, 0)
;
3985 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3986 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)
;
3987 }
3988 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3989 delete arg1;
3990 resultobj = SWIG_Py_Void();
3991 return resultobj;
3992fail:
3993 return NULL__null;
3994}
3995
3996
3997SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3998 PyObject *resultobj = 0;
3999 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4000 void *argp1 = 0 ;
4001 int res1 = 0 ;
4002 PyObject * obj0 = 0 ;
4003 PyObject *result = 0 ;
4004
4005 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
4006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4007 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4008 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)
;
4009 }
4010 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4011 try {
4012 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
4013 }
4014 catch(swig::stop_iteration &_e) {
4015 {
4016 (void)_e;
4017 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4018 SWIG_failgoto fail;
4019 }
4020 }
4021
4022 resultobj = result;
4023 return resultobj;
4024fail:
4025 return NULL__null;
4026}
4027
4028
4029SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4030 PyObject *resultobj = 0;
4031 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4032 size_t arg2 ;
4033 void *argp1 = 0 ;
4034 int res1 = 0 ;
4035 size_t val2 ;
4036 int ecode2 = 0 ;
4037 PyObject * obj0 = 0 ;
4038 PyObject * obj1 = 0 ;
4039 swig::SwigPyIterator *result = 0 ;
4040
4041 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
4042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4043 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4044 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)
;
4045 }
4046 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4047 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4048 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4049 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)
;
4050 }
4051 arg2 = static_cast< size_t >(val2);
4052 try {
4053 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
4054 }
4055 catch(swig::stop_iteration &_e) {
4056 {
4057 (void)_e;
4058 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4059 SWIG_failgoto fail;
4060 }
4061 }
4062
4063 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[40], 0
| 0)
;
4064 return resultobj;
4065fail:
4066 return NULL__null;
4067}
4068
4069
4070SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4071 PyObject *resultobj = 0;
4072 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4073 void *argp1 = 0 ;
4074 int res1 = 0 ;
4075 PyObject * obj0 = 0 ;
4076 swig::SwigPyIterator *result = 0 ;
4077
4078 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
4079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4080 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4081 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)
;
4082 }
4083 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4084 try {
4085 result = (swig::SwigPyIterator *)(arg1)->incr();
4086 }
4087 catch(swig::stop_iteration &_e) {
4088 {
4089 (void)_e;
4090 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4091 SWIG_failgoto fail;
4092 }
4093 }
4094
4095 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[40], 0
| 0)
;
4096 return resultobj;
4097fail:
4098 return NULL__null;
4099}
4100
4101
4102SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
4103 int argc;
4104 PyObject *argv[3];
4105 int ii;
4106
4107 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4108 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4109 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4110 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4111 }
4112 if (argc == 1) {
4113 int _v;
4114 void *vptr = 0;
4115 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[40
], 0, 0)
;
4116 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4117 if (_v) {
4118 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
4119 }
4120 }
4121 if (argc == 2) {
4122 int _v;
4123 void *vptr = 0;
4124 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[40
], 0, 0)
;
4125 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4126 if (_v) {
4127 {
4128 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
4129 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4130 }
4131 if (_v) {
4132 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
4133 }
4134 }
4135 }
4136
4137fail:
4138 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
4139 " Possible C/C++ prototypes are:\n"
4140 " swig::SwigPyIterator::incr(size_t)\n"
4141 " swig::SwigPyIterator::incr()\n");
4142 return 0;
4143}
4144
4145
4146SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4147 PyObject *resultobj = 0;
4148 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4149 size_t arg2 ;
4150 void *argp1 = 0 ;
4151 int res1 = 0 ;
4152 size_t val2 ;
4153 int ecode2 = 0 ;
4154 PyObject * obj0 = 0 ;
4155 PyObject * obj1 = 0 ;
4156 swig::SwigPyIterator *result = 0 ;
4157
4158 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
4159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4160 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4161 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)
;
4162 }
4163 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4164 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
4165 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4166 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)
;
4167 }
4168 arg2 = static_cast< size_t >(val2);
4169 try {
4170 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
4171 }
4172 catch(swig::stop_iteration &_e) {
4173 {
4174 (void)_e;
4175 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4176 SWIG_failgoto fail;
4177 }
4178 }
4179
4180 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[40], 0
| 0)
;
4181 return resultobj;
4182fail:
4183 return NULL__null;
4184}
4185
4186
4187SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4188 PyObject *resultobj = 0;
4189 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4190 void *argp1 = 0 ;
4191 int res1 = 0 ;
4192 PyObject * obj0 = 0 ;
4193 swig::SwigPyIterator *result = 0 ;
4194
4195 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
4196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4197 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4198 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)
;
4199 }
4200 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4201 try {
4202 result = (swig::SwigPyIterator *)(arg1)->decr();
4203 }
4204 catch(swig::stop_iteration &_e) {
4205 {
4206 (void)_e;
4207 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4208 SWIG_failgoto fail;
4209 }
4210 }
4211
4212 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[40], 0
| 0)
;
4213 return resultobj;
4214fail:
4215 return NULL__null;
4216}
4217
4218
4219SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
4220 int argc;
4221 PyObject *argv[3];
4222 int ii;
4223
4224 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4225 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4226 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4227 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4228 }
4229 if (argc == 1) {
4230 int _v;
4231 void *vptr = 0;
4232 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[40
], 0, 0)
;
4233 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4234 if (_v) {
4235 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
4236 }
4237 }
4238 if (argc == 2) {
4239 int _v;
4240 void *vptr = 0;
4241 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[40
], 0, 0)
;
4242 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4243 if (_v) {
4244 {
4245 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
4246 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4247 }
4248 if (_v) {
4249 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
4250 }
4251 }
4252 }
4253
4254fail:
4255 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
4256 " Possible C/C++ prototypes are:\n"
4257 " swig::SwigPyIterator::decr(size_t)\n"
4258 " swig::SwigPyIterator::decr()\n");
4259 return 0;
4260}
4261
4262
4263SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4264 PyObject *resultobj = 0;
4265 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4266 swig::SwigPyIterator *arg2 = 0 ;
4267 void *argp1 = 0 ;
4268 int res1 = 0 ;
4269 void *argp2 = 0 ;
4270 int res2 = 0 ;
4271 PyObject * obj0 = 0 ;
4272 PyObject * obj1 = 0 ;
4273 ptrdiff_t result;
4274
4275 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
4276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4277 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4278 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)
;
4279 }
4280 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
4282 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4283 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)
;
4284 }
4285 if (!argp2) {
4286 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
)
;
4287 }
4288 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4289 try {
4290 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
4291 }
4292 catch(std::invalid_argument &_e) {
4293 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[
39]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[39], 0x1))
; SWIG_failgoto fail;
4294 }
4295
4296 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4297 return resultobj;
4298fail:
4299 return NULL__null;
4300}
4301
4302
4303SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4304 PyObject *resultobj = 0;
4305 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4306 swig::SwigPyIterator *arg2 = 0 ;
4307 void *argp1 = 0 ;
4308 int res1 = 0 ;
4309 void *argp2 = 0 ;
4310 int res2 = 0 ;
4311 PyObject * obj0 = 0 ;
4312 PyObject * obj1 = 0 ;
4313 bool result;
4314
4315 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
4316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4317 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4318 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)
;
4319 }
4320 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4321 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
4322 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4323 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)
;
4324 }
4325 if (!argp2) {
4326 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
)
;
4327 }
4328 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4329 try {
4330 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
4331 }
4332 catch(std::invalid_argument &_e) {
4333 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[
39]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[39], 0x1))
; SWIG_failgoto fail;
4334 }
4335
4336 resultobj = SWIG_From_bool(static_cast< bool >(result));
4337 return resultobj;
4338fail:
4339 return NULL__null;
4340}
4341
4342
4343SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4344 PyObject *resultobj = 0;
4345 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4346 void *argp1 = 0 ;
4347 int res1 = 0 ;
4348 PyObject * obj0 = 0 ;
4349 swig::SwigPyIterator *result = 0 ;
4350
4351 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
4352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4353 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4354 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)
;
4355 }
4356 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4357 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
4358 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[40], 0x1
| 0)
;
4359 return resultobj;
4360fail:
4361 return NULL__null;
4362}
4363
4364
4365SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4366 PyObject *resultobj = 0;
4367 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4368 void *argp1 = 0 ;
4369 int res1 = 0 ;
4370 PyObject * obj0 = 0 ;
4371 PyObject *result = 0 ;
4372
4373 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
4374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4375 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4376 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)
;
4377 }
4378 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4379 try {
4380 result = (PyObject *)(arg1)->next();
4381 }
4382 catch(swig::stop_iteration &_e) {
4383 {
4384 (void)_e;
4385 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4386 SWIG_failgoto fail;
4387 }
4388 }
4389
4390 resultobj = result;
4391 return resultobj;
4392fail:
4393 return NULL__null;
4394}
4395
4396
4397SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4398 PyObject *resultobj = 0;
4399 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4400 void *argp1 = 0 ;
4401 int res1 = 0 ;
4402 PyObject * obj0 = 0 ;
4403 PyObject *result = 0 ;
4404
4405 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
4406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4407 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4408 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)
;
4409 }
4410 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4411 try {
4412 result = (PyObject *)(arg1)->__next__();
4413 }
4414 catch(swig::stop_iteration &_e) {
4415 {
4416 (void)_e;
4417 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4418 SWIG_failgoto fail;
4419 }
4420 }
4421
4422 resultobj = result;
4423 return resultobj;
4424fail:
4425 return NULL__null;
4426}
4427
4428
4429SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4430 PyObject *resultobj = 0;
4431 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4432 void *argp1 = 0 ;
4433 int res1 = 0 ;
4434 PyObject * obj0 = 0 ;
4435 PyObject *result = 0 ;
4436
4437 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
4438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4439 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4440 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)
;
4441 }
4442 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4443 try {
4444 result = (PyObject *)(arg1)->previous();
4445 }
4446 catch(swig::stop_iteration &_e) {
4447 {
4448 (void)_e;
4449 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4450 SWIG_failgoto fail;
4451 }
4452 }
4453
4454 resultobj = result;
4455 return resultobj;
4456fail:
4457 return NULL__null;
4458}
4459
4460
4461SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4462 PyObject *resultobj = 0;
4463 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4464 ptrdiff_t arg2 ;
4465 void *argp1 = 0 ;
4466 int res1 = 0 ;
4467 ptrdiff_t val2 ;
4468 int ecode2 = 0 ;
4469 PyObject * obj0 = 0 ;
4470 PyObject * obj1 = 0 ;
4471 swig::SwigPyIterator *result = 0 ;
4472
4473 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4475 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4476 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)
;
4477 }
4478 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4479 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4480 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4481 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)
;
4482 }
4483 arg2 = static_cast< ptrdiff_t >(val2);
4484 try {
4485 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4486 }
4487 catch(swig::stop_iteration &_e) {
4488 {
4489 (void)_e;
4490 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4491 SWIG_failgoto fail;
4492 }
4493 }
4494
4495 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[40], 0
| 0)
;
4496 return resultobj;
4497fail:
4498 return NULL__null;
4499}
4500
4501
4502SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4503 PyObject *resultobj = 0;
4504 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4505 swig::SwigPyIterator *arg2 = 0 ;
4506 void *argp1 = 0 ;
4507 int res1 = 0 ;
4508 void *argp2 = 0 ;
4509 int res2 = 0 ;
4510 PyObject * obj0 = 0 ;
4511 PyObject * obj1 = 0 ;
4512 bool result;
4513
4514 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4516 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4517 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)
;
4518 }
4519 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4520 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
4521 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4522 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)
;
4523 }
4524 if (!argp2) {
4525 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
)
;
4526 }
4527 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4528 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4529 resultobj = SWIG_From_bool(static_cast< bool >(result));
4530 return resultobj;
4531fail:
4532 return NULL__null;
4533}
4534
4535
4536SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4537 PyObject *resultobj = 0;
4538 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4539 swig::SwigPyIterator *arg2 = 0 ;
4540 void *argp1 = 0 ;
4541 int res1 = 0 ;
4542 void *argp2 = 0 ;
4543 int res2 = 0 ;
4544 PyObject * obj0 = 0 ;
4545 PyObject * obj1 = 0 ;
4546 bool result;
4547
4548 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4550 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4551 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)
;
4552 }
4553 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4554 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
4555 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4556 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)
;
4557 }
4558 if (!argp2) {
4559 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
)
;
4560 }
4561 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4562 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4563 resultobj = SWIG_From_bool(static_cast< bool >(result));
4564 return resultobj;
4565fail:
4566 return NULL__null;
4567}
4568
4569
4570SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4571 PyObject *resultobj = 0;
4572 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4573 ptrdiff_t arg2 ;
4574 void *argp1 = 0 ;
4575 int res1 = 0 ;
4576 ptrdiff_t val2 ;
4577 int ecode2 = 0 ;
4578 PyObject * obj0 = 0 ;
4579 PyObject * obj1 = 0 ;
4580 swig::SwigPyIterator *result = 0 ;
4581
4582 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0x1 | 0, 0)
;
4584 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4585 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)
;
4586 }
4587 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4588 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4589 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4590 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)
;
4591 }
4592 arg2 = static_cast< ptrdiff_t >(val2);
4593 try {
4594 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4595 }
4596 catch(swig::stop_iteration &_e) {
4597 {
4598 (void)_e;
4599 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4600 SWIG_failgoto fail;
4601 }
4602 }
4603
4604 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[40], 0x1
| 0)
;
4605 return resultobj;
4606fail:
4607 return NULL__null;
4608}
4609
4610
4611SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4612 PyObject *resultobj = 0;
4613 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4614 ptrdiff_t arg2 ;
4615 void *argp1 = 0 ;
4616 int res1 = 0 ;
4617 ptrdiff_t val2 ;
4618 int ecode2 = 0 ;
4619 PyObject * obj0 = 0 ;
4620 PyObject * obj1 = 0 ;
4621 swig::SwigPyIterator *result = 0 ;
4622
4623 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0x1 | 0, 0)
;
4625 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4626 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)
;
4627 }
4628 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4629 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4630 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4631 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)
;
4632 }
4633 arg2 = static_cast< ptrdiff_t >(val2);
4634 try {
4635 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4636 }
4637 catch(swig::stop_iteration &_e) {
4638 {
4639 (void)_e;
4640 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4641 SWIG_failgoto fail;
4642 }
4643 }
4644
4645 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[40], 0x1
| 0)
;
4646 return resultobj;
4647fail:
4648 return NULL__null;
4649}
4650
4651
4652SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4653 PyObject *resultobj = 0;
4654 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4655 ptrdiff_t arg2 ;
4656 void *argp1 = 0 ;
4657 int res1 = 0 ;
4658 ptrdiff_t val2 ;
4659 int ecode2 = 0 ;
4660 PyObject * obj0 = 0 ;
4661 PyObject * obj1 = 0 ;
4662 swig::SwigPyIterator *result = 0 ;
4663
4664 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4666 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4667 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)
;
4668 }
4669 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4670 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4671 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4672 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)
;
4673 }
4674 arg2 = static_cast< ptrdiff_t >(val2);
4675 try {
4676 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4677 }
4678 catch(swig::stop_iteration &_e) {
4679 {
4680 (void)_e;
4681 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4682 SWIG_failgoto fail;
4683 }
4684 }
4685
4686 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[40], 0x1
| 0)
;
4687 return resultobj;
4688fail:
4689 return NULL__null;
4690}
4691
4692
4693SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4694 PyObject *resultobj = 0;
4695 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4696 ptrdiff_t arg2 ;
4697 void *argp1 = 0 ;
4698 int res1 = 0 ;
4699 ptrdiff_t val2 ;
4700 int ecode2 = 0 ;
4701 PyObject * obj0 = 0 ;
4702 PyObject * obj1 = 0 ;
4703 swig::SwigPyIterator *result = 0 ;
4704
4705 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4707 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4708 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)
;
4709 }
4710 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4711 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4712 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4713 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)
;
4714 }
4715 arg2 = static_cast< ptrdiff_t >(val2);
4716 try {
4717 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4718 }
4719 catch(swig::stop_iteration &_e) {
4720 {
4721 (void)_e;
4722 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4723 SWIG_failgoto fail;
4724 }
4725 }
4726
4727 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[40], 0x1
| 0)
;
4728 return resultobj;
4729fail:
4730 return NULL__null;
4731}
4732
4733
4734SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4735 PyObject *resultobj = 0;
4736 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4737 swig::SwigPyIterator *arg2 = 0 ;
4738 void *argp1 = 0 ;
4739 int res1 = 0 ;
4740 void *argp2 = 0 ;
4741 int res2 = 0 ;
4742 PyObject * obj0 = 0 ;
4743 PyObject * obj1 = 0 ;
4744 ptrdiff_t result;
4745
4746 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[40]
, 0 | 0, 0)
;
4748 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4749 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)
;
4750 }
4751 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[40]
, 0 | 0, 0)
;
4753 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4754 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)
;
4755 }
4756 if (!argp2) {
4757 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
)
;
4758 }
4759 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4760 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4761 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4762 return resultobj;
4763fail:
4764 return NULL__null;
4765}
4766
4767
4768SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4769 int argc;
4770 PyObject *argv[3];
4771 int ii;
4772
4773 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4774 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4775 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4776 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4777 }
4778 if (argc == 2) {
4779 int _v;
4780 void *vptr = 0;
4781 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[40
], 0, 0)
;
4782 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4783 if (_v) {
4784 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[40], 0, 0
)
;
4785 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4786 if (_v) {
4787 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4788 }
4789 }
4790 }
4791 if (argc == 2) {
4792 int _v;
4793 void *vptr = 0;
4794 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[40
], 0, 0)
;
4795 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4796 if (_v) {
4797 {
4798 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4799 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4800 }
4801 if (_v) {
4802 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4803 }
4804 }
4805 }
4806
4807fail:
4808 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4809 return Py_NotImplemented(&_Py_NotImplementedStruct);
4810}
4811
4812
4813SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4814 PyObject *obj;
4815 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4816 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[40], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4817 return SWIG_Py_Void();
4818}
4819
4820SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4821 PyObject *resultobj = 0;
4822 GEnergy *result = 0 ;
4823
4824 if (!PyArg_ParseTuple(args,(char *)":new_GEnergy")) SWIG_failgoto fail;
4825 {
4826 try {
4827 result = (GEnergy *)new GEnergy();
4828 }
4829 catch (const GException::out_of_range& e) {
4830 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4831 }
4832 catch (const GExceptionHandler& e) {
4833 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4834 }
4835 catch (const std::exception& e) {
4836 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4837 }
4838 }
4839 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4840 return resultobj;
4841fail:
4842 return NULL__null;
4843}
4844
4845
4846SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4847 PyObject *resultobj = 0;
4848 GEnergy *arg1 = 0 ;
4849 void *argp1 = 0 ;
4850 int res1 = 0 ;
4851 PyObject * obj0 = 0 ;
4852 GEnergy *result = 0 ;
4853
4854 if (!PyArg_ParseTuple(args,(char *)"O:new_GEnergy",&obj0)) SWIG_failgoto fail;
4855 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
4856 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GEnergy" "', argument " "1"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GEnergy" "', argument "
"1"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
4858 }
4859 if (!argp1) {
4860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEnergy" "', argument " "1"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEnergy" "', argument " "1"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
4861 }
4862 arg1 = reinterpret_cast< GEnergy * >(argp1);
4863 {
4864 try {
4865 result = (GEnergy *)new GEnergy((GEnergy const &)*arg1);
4866 }
4867 catch (const GException::out_of_range& e) {
4868 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4869 }
4870 catch (const GExceptionHandler& e) {
4871 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4872 }
4873 catch (const std::exception& e) {
4874 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4875 }
4876 }
4877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4878 return resultobj;
4879fail:
4880 return NULL__null;
4881}
4882
4883
4884SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergy__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4885 PyObject *resultobj = 0;
4886 double *arg1 = 0 ;
4887 std::string *arg2 = 0 ;
4888 double temp1 ;
4889 double val1 ;
4890 int ecode1 = 0 ;
4891 int res2 = SWIG_OLDOBJ((0)) ;
4892 PyObject * obj0 = 0 ;
4893 PyObject * obj1 = 0 ;
4894 GEnergy *result = 0 ;
4895
4896 if (!PyArg_ParseTuple(args,(char *)"OO:new_GEnergy",&obj0,&obj1)) SWIG_failgoto fail;
4897 ecode1 = SWIG_AsVal_double(obj0, &val1);
4898 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
4899 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GEnergy" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GEnergy" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
4900 }
4901 temp1 = static_cast< double >(val1);
4902 arg1 = &temp1;
4903 {
4904 std::string *ptr = (std::string *)0;
4905 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
4906 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GEnergy" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GEnergy" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4908 }
4909 if (!ptr) {
4910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEnergy" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEnergy" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
4911 }
4912 arg2 = ptr;
4913 }
4914 {
4915 try {
4916 result = (GEnergy *)new GEnergy((double const &)*arg1,(std::string const &)*arg2);
4917 }
4918 catch (const GException::out_of_range& e) {
4919 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4920 }
4921 catch (const GExceptionHandler& e) {
4922 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4923 }
4924 catch (const std::exception& e) {
4925 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4926 }
4927 }
4928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
4929 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
4930 return resultobj;
4931fail:
4932 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
4933 return NULL__null;
4934}
4935
4936
4937SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergy(PyObject *self, PyObject *args) {
4938 int argc;
4939 PyObject *argv[3];
4940 int ii;
4941
4942 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4943 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4944 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4945 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4946 }
4947 if (argc == 0) {
4948 return _wrap_new_GEnergy__SWIG_0(self, args);
4949 }
4950 if (argc == 1) {
4951 int _v;
4952 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[5], 0, 0);
4953 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4954 if (_v) {
4955 return _wrap_new_GEnergy__SWIG_1(self, args);
4956 }
4957 }
4958 if (argc == 2) {
4959 int _v;
4960 {
4961 int res = SWIG_AsVal_double(argv[0], NULL__null);
4962 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4963 }
4964 if (_v) {
4965 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
4966 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4967 if (_v) {
4968 return _wrap_new_GEnergy__SWIG_2(self, args);
4969 }
4970 }
4971 }
4972
4973fail:
4974 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GEnergy'.\n"
4975 " Possible C/C++ prototypes are:\n"
4976 " GEnergy::GEnergy()\n"
4977 " GEnergy::GEnergy(GEnergy const &)\n"
4978 " GEnergy::GEnergy(double const &,std::string const &)\n");
4979 return 0;
4980}
4981
4982
4983SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEnergy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4984 PyObject *resultobj = 0;
4985 GEnergy *arg1 = (GEnergy *) 0 ;
4986 void *argp1 = 0 ;
4987 int res1 = 0 ;
4988 PyObject * obj0 = 0 ;
4989
4990 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEnergy",&obj0)) SWIG_failgoto fail;
4991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
4992 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEnergy" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEnergy" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
4994 }
4995 arg1 = reinterpret_cast< GEnergy * >(argp1);
4996 {
4997 try {
4998 delete arg1;
4999 }
5000 catch (const GException::out_of_range& e) {
5001 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5002 }
5003 catch (const GExceptionHandler& e) {
5004 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5005 }
5006 catch (const std::exception& e) {
5007 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5008 }
5009 }
5010 resultobj = SWIG_Py_Void();
5011 return resultobj;
5012fail:
5013 return NULL__null;
5014}
5015
5016
5017SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5018 PyObject *resultobj = 0;
5019 GEnergy *arg1 = (GEnergy *) 0 ;
5020 GEnergy *arg2 = 0 ;
5021 void *argp1 = 0 ;
5022 int res1 = 0 ;
5023 void *argp2 = 0 ;
5024 int res2 = 0 ;
5025 PyObject * obj0 = 0 ;
5026 PyObject * obj1 = 0 ;
5027 GEnergy *result = 0 ;
5028
5029 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
5030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5031 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___iadd__" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___iadd__" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5033 }
5034 arg1 = reinterpret_cast< GEnergy * >(argp1);
5035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5036 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___iadd__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___iadd__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
5038 }
5039 if (!argp2) {
5040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___iadd__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___iadd__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
5041 }
5042 arg2 = reinterpret_cast< GEnergy * >(argp2);
5043 {
5044 try {
5045 result = (GEnergy *) &(arg1)->operator +=((GEnergy const &)*arg2);
5046 }
5047 catch (const GException::out_of_range& e) {
5048 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5049 }
5050 catch (const GExceptionHandler& e) {
5051 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5052 }
5053 catch (const std::exception& e) {
5054 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5055 }
5056 }
5057 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5058 return resultobj;
5059fail:
5060 return NULL__null;
5061}
5062
5063
5064SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5065 PyObject *resultobj = 0;
5066 GEnergy *arg1 = (GEnergy *) 0 ;
5067 GEnergy *arg2 = 0 ;
5068 void *argp1 = 0 ;
5069 int res1 = 0 ;
5070 void *argp2 = 0 ;
5071 int res2 = 0 ;
5072 PyObject * obj0 = 0 ;
5073 PyObject * obj1 = 0 ;
5074 GEnergy *result = 0 ;
5075
5076 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___isub__",&obj0,&obj1)) SWIG_failgoto fail;
5077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
5078 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___isub__" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___isub__" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5080 }
5081 arg1 = reinterpret_cast< GEnergy * >(argp1);
5082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
5083 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___isub__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___isub__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
5085 }
5086 if (!argp2) {
5087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___isub__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___isub__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
5088 }
5089 arg2 = reinterpret_cast< GEnergy * >(argp2);
5090 {
5091 try {
5092 result = (GEnergy *) &(arg1)->operator -=((GEnergy const &)*arg2);
5093 }
5094 catch (const GException::out_of_range& e) {
5095 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5096 }
5097 catch (const GExceptionHandler& e) {
5098 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5099 }
5100 catch (const std::exception& e) {
5101 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5102 }
5103 }
5104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0x1
| 0)
;
5105 return resultobj;
5106fail:
5107 return NULL__null;
5108}
5109
5110
5111SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5112 PyObject *resultobj = 0;
5113 GEnergy *arg1 = (GEnergy *) 0 ;
5114 void *argp1 = 0 ;
5115 int res1 = 0 ;
5116 PyObject * obj0 = 0 ;
5117
5118 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_clear",&obj0)) SWIG_failgoto fail;
5119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5120 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_clear" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_clear" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5122 }
5123 arg1 = reinterpret_cast< GEnergy * >(argp1);
5124 {
5125 try {
5126 (arg1)->clear();
5127 }
5128 catch (const GException::out_of_range& e) {
5129 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5130 }
5131 catch (const GExceptionHandler& e) {
5132 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5133 }
5134 catch (const std::exception& e) {
5135 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5136 }
5137 }
5138 resultobj = SWIG_Py_Void();
5139 return resultobj;
5140fail:
5141 return NULL__null;
5142}
5143
5144
5145SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5146 PyObject *resultobj = 0;
5147 GEnergy *arg1 = (GEnergy *) 0 ;
5148 void *argp1 = 0 ;
5149 int res1 = 0 ;
5150 PyObject * obj0 = 0 ;
5151 GEnergy *result = 0 ;
5152
5153 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_clone",&obj0)) SWIG_failgoto fail;
5154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5155 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_clone" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_clone" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5157 }
5158 arg1 = reinterpret_cast< GEnergy * >(argp1);
5159 {
5160 try {
5161 result = (GEnergy *)((GEnergy const *)arg1)->clone();
5162 }
5163 catch (const GException::out_of_range& e) {
5164 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5165 }
5166 catch (const GExceptionHandler& e) {
5167 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5168 }
5169 catch (const std::exception& e) {
5170 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5171 }
5172 }
5173 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[5], 0 |
0)
;
5174 return resultobj;
5175fail:
5176 return NULL__null;
5177}
5178
5179
5180SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_erg__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5181 PyObject *resultobj = 0;
5182 GEnergy *arg1 = (GEnergy *) 0 ;
5183 void *argp1 = 0 ;
5184 int res1 = 0 ;
5185 PyObject * obj0 = 0 ;
5186 double result;
5187
5188 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_erg",&obj0)) SWIG_failgoto fail;
5189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5190 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_erg" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_erg" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5192 }
5193 arg1 = reinterpret_cast< GEnergy * >(argp1);
5194 {
5195 try {
5196 result = (double)((GEnergy const *)arg1)->erg();
5197 }
5198 catch (const GException::out_of_range& e) {
5199 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5200 }
5201 catch (const GExceptionHandler& e) {
5202 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5203 }
5204 catch (const std::exception& e) {
5205 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5206 }
5207 }
5208 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5209 return resultobj;
5210fail:
5211 return NULL__null;
5212}
5213
5214
5215SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_keV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5216 PyObject *resultobj = 0;
5217 GEnergy *arg1 = (GEnergy *) 0 ;
5218 void *argp1 = 0 ;
5219 int res1 = 0 ;
5220 PyObject * obj0 = 0 ;
5221 double result;
5222
5223 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_keV",&obj0)) SWIG_failgoto fail;
5224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5225 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_keV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_keV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5227 }
5228 arg1 = reinterpret_cast< GEnergy * >(argp1);
5229 {
5230 try {
5231 result = (double)((GEnergy const *)arg1)->keV();
5232 }
5233 catch (const GException::out_of_range& e) {
5234 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5235 }
5236 catch (const GExceptionHandler& e) {
5237 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5238 }
5239 catch (const std::exception& e) {
5240 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5241 }
5242 }
5243 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5244 return resultobj;
5245fail:
5246 return NULL__null;
5247}
5248
5249
5250SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_MeV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5251 PyObject *resultobj = 0;
5252 GEnergy *arg1 = (GEnergy *) 0 ;
5253 void *argp1 = 0 ;
5254 int res1 = 0 ;
5255 PyObject * obj0 = 0 ;
5256 double result;
5257
5258 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_MeV",&obj0)) SWIG_failgoto fail;
5259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5260 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_MeV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_MeV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5262 }
5263 arg1 = reinterpret_cast< GEnergy * >(argp1);
5264 {
5265 try {
5266 result = (double)((GEnergy const *)arg1)->MeV();
5267 }
5268 catch (const GException::out_of_range& e) {
5269 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5270 }
5271 catch (const GExceptionHandler& e) {
5272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5273 }
5274 catch (const std::exception& e) {
5275 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5276 }
5277 }
5278 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5279 return resultobj;
5280fail:
5281 return NULL__null;
5282}
5283
5284
5285SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_GeV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5286 PyObject *resultobj = 0;
5287 GEnergy *arg1 = (GEnergy *) 0 ;
5288 void *argp1 = 0 ;
5289 int res1 = 0 ;
5290 PyObject * obj0 = 0 ;
5291 double result;
5292
5293 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_GeV",&obj0)) SWIG_failgoto fail;
5294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5295 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_GeV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_GeV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5297 }
5298 arg1 = reinterpret_cast< GEnergy * >(argp1);
5299 {
5300 try {
5301 result = (double)((GEnergy const *)arg1)->GeV();
5302 }
5303 catch (const GException::out_of_range& e) {
5304 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5305 }
5306 catch (const GExceptionHandler& e) {
5307 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5308 }
5309 catch (const std::exception& e) {
5310 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5311 }
5312 }
5313 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5314 return resultobj;
5315fail:
5316 return NULL__null;
5317}
5318
5319
5320SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_TeV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5321 PyObject *resultobj = 0;
5322 GEnergy *arg1 = (GEnergy *) 0 ;
5323 void *argp1 = 0 ;
5324 int res1 = 0 ;
5325 PyObject * obj0 = 0 ;
5326 double result;
5327
5328 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_TeV",&obj0)) SWIG_failgoto fail;
5329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5330 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_TeV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_TeV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5332 }
5333 arg1 = reinterpret_cast< GEnergy * >(argp1);
5334 {
5335 try {
5336 result = (double)((GEnergy const *)arg1)->TeV();
5337 }
5338 catch (const GException::out_of_range& e) {
5339 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5340 }
5341 catch (const GExceptionHandler& e) {
5342 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5343 }
5344 catch (const std::exception& e) {
5345 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5346 }
5347 }
5348 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5349 return resultobj;
5350fail:
5351 return NULL__null;
5352}
5353
5354
5355SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10keV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5356 PyObject *resultobj = 0;
5357 GEnergy *arg1 = (GEnergy *) 0 ;
5358 void *argp1 = 0 ;
5359 int res1 = 0 ;
5360 PyObject * obj0 = 0 ;
5361 double result;
5362
5363 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_log10keV",&obj0)) SWIG_failgoto fail;
5364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5365 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10keV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10keV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5367 }
5368 arg1 = reinterpret_cast< GEnergy * >(argp1);
5369 {
5370 try {
5371 result = (double)((GEnergy const *)arg1)->log10keV();
5372 }
5373 catch (const GException::out_of_range& e) {
5374 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5375 }
5376 catch (const GExceptionHandler& e) {
5377 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5378 }
5379 catch (const std::exception& e) {
5380 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5381 }
5382 }
5383 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5384 return resultobj;
5385fail:
5386 return NULL__null;
5387}
5388
5389
5390SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10MeV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5391 PyObject *resultobj = 0;
5392 GEnergy *arg1 = (GEnergy *) 0 ;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 PyObject * obj0 = 0 ;
5396 double result;
5397
5398 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_log10MeV",&obj0)) SWIG_failgoto fail;
5399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5400 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10MeV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10MeV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5402 }
5403 arg1 = reinterpret_cast< GEnergy * >(argp1);
5404 {
5405 try {
5406 result = (double)((GEnergy const *)arg1)->log10MeV();
5407 }
5408 catch (const GException::out_of_range& e) {
5409 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5410 }
5411 catch (const GExceptionHandler& e) {
5412 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5413 }
5414 catch (const std::exception& e) {
5415 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5416 }
5417 }
5418 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5419 return resultobj;
5420fail:
5421 return NULL__null;
5422}
5423
5424
5425SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10GeV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5426 PyObject *resultobj = 0;
5427 GEnergy *arg1 = (GEnergy *) 0 ;
5428 void *argp1 = 0 ;
5429 int res1 = 0 ;
5430 PyObject * obj0 = 0 ;
5431 double result;
5432
5433 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_log10GeV",&obj0)) SWIG_failgoto fail;
5434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5435 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10GeV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10GeV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5437 }
5438 arg1 = reinterpret_cast< GEnergy * >(argp1);
5439 {
5440 try {
5441 result = (double)((GEnergy const *)arg1)->log10GeV();
5442 }
5443 catch (const GException::out_of_range& e) {
5444 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5445 }
5446 catch (const GExceptionHandler& e) {
5447 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5448 }
5449 catch (const std::exception& e) {
5450 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5451 }
5452 }
5453 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5454 return resultobj;
5455fail:
5456 return NULL__null;
5457}
5458
5459
5460SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10TeV__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5461 PyObject *resultobj = 0;
5462 GEnergy *arg1 = (GEnergy *) 0 ;
5463 void *argp1 = 0 ;
5464 int res1 = 0 ;
5465 PyObject * obj0 = 0 ;
5466 double result;
5467
5468 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_log10TeV",&obj0)) SWIG_failgoto fail;
5469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5470 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10TeV" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10TeV" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
5472 }
5473 arg1 = reinterpret_cast< GEnergy * >(argp1);
5474 {
5475 try {
5476 result = (double)((GEnergy const *)arg1)->log10TeV();
5477 }
5478 catch (const GException::out_of_range& e) {
5479 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5480 }
5481 catch (const GExceptionHandler& e) {
5482 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5483 }
5484 catch (const std::exception& e) {
5485 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5486 }
5487 }
5488 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
5489 return resultobj;
5490fail:
5491 return NULL__null;
5492}
5493
5494
5495SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_erg__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5496 PyObject *resultobj = 0;
5497 GEnergy *arg1 = (GEnergy *) 0 ;
5498 double *arg2 = 0 ;
5499 void *argp1 = 0 ;
5500 int res1 = 0 ;
5501 double temp2 ;
5502 double val2 ;
5503 int ecode2 = 0 ;
5504 PyObject * obj0 = 0 ;
5505 PyObject * obj1 = 0 ;
5506
5507 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_erg",&obj0,&obj1)) SWIG_failgoto fail;
5508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5509 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_erg" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_erg" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5511 }
5512 arg1 = reinterpret_cast< GEnergy * >(argp1);
5513 ecode2 = SWIG_AsVal_double(obj1, &val2);
5514 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_erg" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_erg" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5516 }
5517 temp2 = static_cast< double >(val2);
5518 arg2 = &temp2;
5519 {
5520 try {
5521 (arg1)->erg((double const &)*arg2);
5522 }
5523 catch (const GException::out_of_range& e) {
5524 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5525 }
5526 catch (const GExceptionHandler& e) {
5527 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5528 }
5529 catch (const std::exception& e) {
5530 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5531 }
5532 }
5533 resultobj = SWIG_Py_Void();
5534 return resultobj;
5535fail:
5536 return NULL__null;
5537}
5538
5539
5540SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_erg(PyObject *self, PyObject *args) {
5541 int argc;
5542 PyObject *argv[3];
5543 int ii;
5544
5545 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5546 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5547 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5548 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5549 }
5550 if (argc == 1) {
5551 int _v;
5552 void *vptr = 0;
5553 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5554 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5555 if (_v) {
5556 return _wrap_GEnergy_erg__SWIG_0(self, args);
5557 }
5558 }
5559 if (argc == 2) {
5560 int _v;
5561 void *vptr = 0;
5562 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5563 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5564 if (_v) {
5565 {
5566 int res = SWIG_AsVal_double(argv[1], NULL__null);
5567 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5568 }
5569 if (_v) {
5570 return _wrap_GEnergy_erg__SWIG_1(self, args);
5571 }
5572 }
5573 }
5574
5575fail:
5576 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_erg'.\n"
5577 " Possible C/C++ prototypes are:\n"
5578 " GEnergy::erg() const\n"
5579 " GEnergy::erg(double const &)\n");
5580 return 0;
5581}
5582
5583
5584SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_keV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5585 PyObject *resultobj = 0;
5586 GEnergy *arg1 = (GEnergy *) 0 ;
5587 double *arg2 = 0 ;
5588 void *argp1 = 0 ;
5589 int res1 = 0 ;
5590 double temp2 ;
5591 double val2 ;
5592 int ecode2 = 0 ;
5593 PyObject * obj0 = 0 ;
5594 PyObject * obj1 = 0 ;
5595
5596 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_keV",&obj0,&obj1)) SWIG_failgoto fail;
5597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5598 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_keV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_keV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5600 }
5601 arg1 = reinterpret_cast< GEnergy * >(argp1);
5602 ecode2 = SWIG_AsVal_double(obj1, &val2);
5603 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5604 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_keV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_keV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5605 }
5606 temp2 = static_cast< double >(val2);
5607 arg2 = &temp2;
5608 {
5609 try {
5610 (arg1)->keV((double const &)*arg2);
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_Py_Void();
5623 return resultobj;
5624fail:
5625 return NULL__null;
5626}
5627
5628
5629SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_keV(PyObject *self, PyObject *args) {
5630 int argc;
5631 PyObject *argv[3];
5632 int ii;
5633
5634 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5635 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5636 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5637 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5638 }
5639 if (argc == 1) {
5640 int _v;
5641 void *vptr = 0;
5642 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5643 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5644 if (_v) {
5645 return _wrap_GEnergy_keV__SWIG_0(self, args);
5646 }
5647 }
5648 if (argc == 2) {
5649 int _v;
5650 void *vptr = 0;
5651 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5652 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5653 if (_v) {
5654 {
5655 int res = SWIG_AsVal_double(argv[1], NULL__null);
5656 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5657 }
5658 if (_v) {
5659 return _wrap_GEnergy_keV__SWIG_1(self, args);
5660 }
5661 }
5662 }
5663
5664fail:
5665 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_keV'.\n"
5666 " Possible C/C++ prototypes are:\n"
5667 " GEnergy::keV() const\n"
5668 " GEnergy::keV(double const &)\n");
5669 return 0;
5670}
5671
5672
5673SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_MeV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5674 PyObject *resultobj = 0;
5675 GEnergy *arg1 = (GEnergy *) 0 ;
5676 double *arg2 = 0 ;
5677 void *argp1 = 0 ;
5678 int res1 = 0 ;
5679 double temp2 ;
5680 double val2 ;
5681 int ecode2 = 0 ;
5682 PyObject * obj0 = 0 ;
5683 PyObject * obj1 = 0 ;
5684
5685 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_MeV",&obj0,&obj1)) SWIG_failgoto fail;
5686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5687 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_MeV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_MeV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5689 }
5690 arg1 = reinterpret_cast< GEnergy * >(argp1);
5691 ecode2 = SWIG_AsVal_double(obj1, &val2);
5692 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_MeV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_MeV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5694 }
5695 temp2 = static_cast< double >(val2);
5696 arg2 = &temp2;
5697 {
5698 try {
5699 (arg1)->MeV((double const &)*arg2);
5700 }
5701 catch (const GException::out_of_range& e) {
5702 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5703 }
5704 catch (const GExceptionHandler& e) {
5705 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5706 }
5707 catch (const std::exception& e) {
5708 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5709 }
5710 }
5711 resultobj = SWIG_Py_Void();
5712 return resultobj;
5713fail:
5714 return NULL__null;
5715}
5716
5717
5718SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_MeV(PyObject *self, PyObject *args) {
5719 int argc;
5720 PyObject *argv[3];
5721 int ii;
5722
5723 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5724 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5725 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5726 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5727 }
5728 if (argc == 1) {
5729 int _v;
5730 void *vptr = 0;
5731 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5732 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5733 if (_v) {
5734 return _wrap_GEnergy_MeV__SWIG_0(self, args);
5735 }
5736 }
5737 if (argc == 2) {
5738 int _v;
5739 void *vptr = 0;
5740 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5741 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5742 if (_v) {
5743 {
5744 int res = SWIG_AsVal_double(argv[1], NULL__null);
5745 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5746 }
5747 if (_v) {
5748 return _wrap_GEnergy_MeV__SWIG_1(self, args);
5749 }
5750 }
5751 }
5752
5753fail:
5754 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_MeV'.\n"
5755 " Possible C/C++ prototypes are:\n"
5756 " GEnergy::MeV() const\n"
5757 " GEnergy::MeV(double const &)\n");
5758 return 0;
5759}
5760
5761
5762SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_GeV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5763 PyObject *resultobj = 0;
5764 GEnergy *arg1 = (GEnergy *) 0 ;
5765 double *arg2 = 0 ;
5766 void *argp1 = 0 ;
5767 int res1 = 0 ;
5768 double temp2 ;
5769 double val2 ;
5770 int ecode2 = 0 ;
5771 PyObject * obj0 = 0 ;
5772 PyObject * obj1 = 0 ;
5773
5774 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_GeV",&obj0,&obj1)) SWIG_failgoto fail;
5775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5776 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_GeV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_GeV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5778 }
5779 arg1 = reinterpret_cast< GEnergy * >(argp1);
5780 ecode2 = SWIG_AsVal_double(obj1, &val2);
5781 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_GeV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_GeV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5783 }
5784 temp2 = static_cast< double >(val2);
5785 arg2 = &temp2;
5786 {
5787 try {
5788 (arg1)->GeV((double const &)*arg2);
5789 }
5790 catch (const GException::out_of_range& e) {
5791 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5792 }
5793 catch (const GExceptionHandler& e) {
5794 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5795 }
5796 catch (const std::exception& e) {
5797 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5798 }
5799 }
5800 resultobj = SWIG_Py_Void();
5801 return resultobj;
5802fail:
5803 return NULL__null;
5804}
5805
5806
5807SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_GeV(PyObject *self, PyObject *args) {
5808 int argc;
5809 PyObject *argv[3];
5810 int ii;
5811
5812 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5813 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5814 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5815 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5816 }
5817 if (argc == 1) {
5818 int _v;
5819 void *vptr = 0;
5820 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5821 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5822 if (_v) {
5823 return _wrap_GEnergy_GeV__SWIG_0(self, args);
5824 }
5825 }
5826 if (argc == 2) {
5827 int _v;
5828 void *vptr = 0;
5829 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5830 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5831 if (_v) {
5832 {
5833 int res = SWIG_AsVal_double(argv[1], NULL__null);
5834 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5835 }
5836 if (_v) {
5837 return _wrap_GEnergy_GeV__SWIG_1(self, args);
5838 }
5839 }
5840 }
5841
5842fail:
5843 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_GeV'.\n"
5844 " Possible C/C++ prototypes are:\n"
5845 " GEnergy::GeV() const\n"
5846 " GEnergy::GeV(double const &)\n");
5847 return 0;
5848}
5849
5850
5851SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_TeV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5852 PyObject *resultobj = 0;
5853 GEnergy *arg1 = (GEnergy *) 0 ;
5854 double *arg2 = 0 ;
5855 void *argp1 = 0 ;
5856 int res1 = 0 ;
5857 double temp2 ;
5858 double val2 ;
5859 int ecode2 = 0 ;
5860 PyObject * obj0 = 0 ;
5861 PyObject * obj1 = 0 ;
5862
5863 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_TeV",&obj0,&obj1)) SWIG_failgoto fail;
5864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5865 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_TeV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_TeV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5867 }
5868 arg1 = reinterpret_cast< GEnergy * >(argp1);
5869 ecode2 = SWIG_AsVal_double(obj1, &val2);
5870 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_TeV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_TeV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5872 }
5873 temp2 = static_cast< double >(val2);
5874 arg2 = &temp2;
5875 {
5876 try {
5877 (arg1)->TeV((double const &)*arg2);
5878 }
5879 catch (const GException::out_of_range& e) {
5880 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5881 }
5882 catch (const GExceptionHandler& e) {
5883 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5884 }
5885 catch (const std::exception& e) {
5886 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5887 }
5888 }
5889 resultobj = SWIG_Py_Void();
5890 return resultobj;
5891fail:
5892 return NULL__null;
5893}
5894
5895
5896SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_TeV(PyObject *self, PyObject *args) {
5897 int argc;
5898 PyObject *argv[3];
5899 int ii;
5900
5901 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5902 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5903 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5904 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5905 }
5906 if (argc == 1) {
5907 int _v;
5908 void *vptr = 0;
5909 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5910 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5911 if (_v) {
5912 return _wrap_GEnergy_TeV__SWIG_0(self, args);
5913 }
5914 }
5915 if (argc == 2) {
5916 int _v;
5917 void *vptr = 0;
5918 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5919 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5920 if (_v) {
5921 {
5922 int res = SWIG_AsVal_double(argv[1], NULL__null);
5923 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5924 }
5925 if (_v) {
5926 return _wrap_GEnergy_TeV__SWIG_1(self, args);
5927 }
5928 }
5929 }
5930
5931fail:
5932 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_TeV'.\n"
5933 " Possible C/C++ prototypes are:\n"
5934 " GEnergy::TeV() const\n"
5935 " GEnergy::TeV(double const &)\n");
5936 return 0;
5937}
5938
5939
5940SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10keV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5941 PyObject *resultobj = 0;
5942 GEnergy *arg1 = (GEnergy *) 0 ;
5943 double *arg2 = 0 ;
5944 void *argp1 = 0 ;
5945 int res1 = 0 ;
5946 double temp2 ;
5947 double val2 ;
5948 int ecode2 = 0 ;
5949 PyObject * obj0 = 0 ;
5950 PyObject * obj1 = 0 ;
5951
5952 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_log10keV",&obj0,&obj1)) SWIG_failgoto fail;
5953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
5954 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10keV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10keV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
5956 }
5957 arg1 = reinterpret_cast< GEnergy * >(argp1);
5958 ecode2 = SWIG_AsVal_double(obj1, &val2);
5959 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_log10keV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_log10keV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
5961 }
5962 temp2 = static_cast< double >(val2);
5963 arg2 = &temp2;
5964 {
5965 try {
5966 (arg1)->log10keV((double const &)*arg2);
5967 }
5968 catch (const GException::out_of_range& e) {
5969 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5970 }
5971 catch (const GExceptionHandler& e) {
5972 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5973 }
5974 catch (const std::exception& e) {
5975 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5976 }
5977 }
5978 resultobj = SWIG_Py_Void();
5979 return resultobj;
5980fail:
5981 return NULL__null;
5982}
5983
5984
5985SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10keV(PyObject *self, PyObject *args) {
5986 int argc;
5987 PyObject *argv[3];
5988 int ii;
5989
5990 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5991 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5992 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5993 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5994 }
5995 if (argc == 1) {
5996 int _v;
5997 void *vptr = 0;
5998 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
5999 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6000 if (_v) {
6001 return _wrap_GEnergy_log10keV__SWIG_0(self, args);
6002 }
6003 }
6004 if (argc == 2) {
6005 int _v;
6006 void *vptr = 0;
6007 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6008 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6009 if (_v) {
6010 {
6011 int res = SWIG_AsVal_double(argv[1], NULL__null);
6012 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6013 }
6014 if (_v) {
6015 return _wrap_GEnergy_log10keV__SWIG_1(self, args);
6016 }
6017 }
6018 }
6019
6020fail:
6021 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_log10keV'.\n"
6022 " Possible C/C++ prototypes are:\n"
6023 " GEnergy::log10keV() const\n"
6024 " GEnergy::log10keV(double const &)\n");
6025 return 0;
6026}
6027
6028
6029SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10MeV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6030 PyObject *resultobj = 0;
6031 GEnergy *arg1 = (GEnergy *) 0 ;
6032 double *arg2 = 0 ;
6033 void *argp1 = 0 ;
6034 int res1 = 0 ;
6035 double temp2 ;
6036 double val2 ;
6037 int ecode2 = 0 ;
6038 PyObject * obj0 = 0 ;
6039 PyObject * obj1 = 0 ;
6040
6041 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_log10MeV",&obj0,&obj1)) SWIG_failgoto fail;
6042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6043 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10MeV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10MeV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
6045 }
6046 arg1 = reinterpret_cast< GEnergy * >(argp1);
6047 ecode2 = SWIG_AsVal_double(obj1, &val2);
6048 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_log10MeV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_log10MeV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6050 }
6051 temp2 = static_cast< double >(val2);
6052 arg2 = &temp2;
6053 {
6054 try {
6055 (arg1)->log10MeV((double const &)*arg2);
6056 }
6057 catch (const GException::out_of_range& e) {
6058 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6059 }
6060 catch (const GExceptionHandler& e) {
6061 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6062 }
6063 catch (const std::exception& e) {
6064 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6065 }
6066 }
6067 resultobj = SWIG_Py_Void();
6068 return resultobj;
6069fail:
6070 return NULL__null;
6071}
6072
6073
6074SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10MeV(PyObject *self, PyObject *args) {
6075 int argc;
6076 PyObject *argv[3];
6077 int ii;
6078
6079 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6080 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6081 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6082 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6083 }
6084 if (argc == 1) {
6085 int _v;
6086 void *vptr = 0;
6087 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6088 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6089 if (_v) {
6090 return _wrap_GEnergy_log10MeV__SWIG_0(self, args);
6091 }
6092 }
6093 if (argc == 2) {
6094 int _v;
6095 void *vptr = 0;
6096 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6097 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6098 if (_v) {
6099 {
6100 int res = SWIG_AsVal_double(argv[1], NULL__null);
6101 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6102 }
6103 if (_v) {
6104 return _wrap_GEnergy_log10MeV__SWIG_1(self, args);
6105 }
6106 }
6107 }
6108
6109fail:
6110 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_log10MeV'.\n"
6111 " Possible C/C++ prototypes are:\n"
6112 " GEnergy::log10MeV() const\n"
6113 " GEnergy::log10MeV(double const &)\n");
6114 return 0;
6115}
6116
6117
6118SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10GeV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6119 PyObject *resultobj = 0;
6120 GEnergy *arg1 = (GEnergy *) 0 ;
6121 double *arg2 = 0 ;
6122 void *argp1 = 0 ;
6123 int res1 = 0 ;
6124 double temp2 ;
6125 double val2 ;
6126 int ecode2 = 0 ;
6127 PyObject * obj0 = 0 ;
6128 PyObject * obj1 = 0 ;
6129
6130 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_log10GeV",&obj0,&obj1)) SWIG_failgoto fail;
6131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6132 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10GeV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10GeV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
6134 }
6135 arg1 = reinterpret_cast< GEnergy * >(argp1);
6136 ecode2 = SWIG_AsVal_double(obj1, &val2);
6137 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_log10GeV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_log10GeV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6139 }
6140 temp2 = static_cast< double >(val2);
6141 arg2 = &temp2;
6142 {
6143 try {
6144 (arg1)->log10GeV((double const &)*arg2);
6145 }
6146 catch (const GException::out_of_range& e) {
6147 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6148 }
6149 catch (const GExceptionHandler& e) {
6150 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6151 }
6152 catch (const std::exception& e) {
6153 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6154 }
6155 }
6156 resultobj = SWIG_Py_Void();
6157 return resultobj;
6158fail:
6159 return NULL__null;
6160}
6161
6162
6163SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10GeV(PyObject *self, PyObject *args) {
6164 int argc;
6165 PyObject *argv[3];
6166 int ii;
6167
6168 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6169 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6170 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6171 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6172 }
6173 if (argc == 1) {
6174 int _v;
6175 void *vptr = 0;
6176 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6177 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6178 if (_v) {
6179 return _wrap_GEnergy_log10GeV__SWIG_0(self, args);
6180 }
6181 }
6182 if (argc == 2) {
6183 int _v;
6184 void *vptr = 0;
6185 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6186 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6187 if (_v) {
6188 {
6189 int res = SWIG_AsVal_double(argv[1], NULL__null);
6190 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6191 }
6192 if (_v) {
6193 return _wrap_GEnergy_log10GeV__SWIG_1(self, args);
6194 }
6195 }
6196 }
6197
6198fail:
6199 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_log10GeV'.\n"
6200 " Possible C/C++ prototypes are:\n"
6201 " GEnergy::log10GeV() const\n"
6202 " GEnergy::log10GeV(double const &)\n");
6203 return 0;
6204}
6205
6206
6207SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10TeV__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6208 PyObject *resultobj = 0;
6209 GEnergy *arg1 = (GEnergy *) 0 ;
6210 double *arg2 = 0 ;
6211 void *argp1 = 0 ;
6212 int res1 = 0 ;
6213 double temp2 ;
6214 double val2 ;
6215 int ecode2 = 0 ;
6216 PyObject * obj0 = 0 ;
6217 PyObject * obj1 = 0 ;
6218
6219 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy_log10TeV",&obj0,&obj1)) SWIG_failgoto fail;
6220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6221 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_log10TeV" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_log10TeV" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
6223 }
6224 arg1 = reinterpret_cast< GEnergy * >(argp1);
6225 ecode2 = SWIG_AsVal_double(obj1, &val2);
6226 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy_log10TeV" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy_log10TeV" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6228 }
6229 temp2 = static_cast< double >(val2);
6230 arg2 = &temp2;
6231 {
6232 try {
6233 (arg1)->log10TeV((double const &)*arg2);
6234 }
6235 catch (const GException::out_of_range& e) {
6236 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6237 }
6238 catch (const GExceptionHandler& e) {
6239 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6240 }
6241 catch (const std::exception& e) {
6242 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6243 }
6244 }
6245 resultobj = SWIG_Py_Void();
6246 return resultobj;
6247fail:
6248 return NULL__null;
6249}
6250
6251
6252SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_log10TeV(PyObject *self, PyObject *args) {
6253 int argc;
6254 PyObject *argv[3];
6255 int ii;
6256
6257 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6258 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6259 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6260 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6261 }
6262 if (argc == 1) {
6263 int _v;
6264 void *vptr = 0;
6265 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6266 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6267 if (_v) {
6268 return _wrap_GEnergy_log10TeV__SWIG_0(self, args);
6269 }
6270 }
6271 if (argc == 2) {
6272 int _v;
6273 void *vptr = 0;
6274 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
6275 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6276 if (_v) {
6277 {
6278 int res = SWIG_AsVal_double(argv[1], NULL__null);
6279 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6280 }
6281 if (_v) {
6282 return _wrap_GEnergy_log10TeV__SWIG_1(self, args);
6283 }
6284 }
6285 }
6286
6287fail:
6288 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergy_log10TeV'.\n"
6289 " Possible C/C++ prototypes are:\n"
6290 " GEnergy::log10TeV() const\n"
6291 " GEnergy::log10TeV(double const &)\n");
6292 return 0;
6293}
6294
6295
6296SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6297 PyObject *resultobj = 0;
6298 GEnergy *arg1 = (GEnergy *) 0 ;
6299 GEnergy *arg2 = 0 ;
6300 void *argp1 = 0 ;
6301 int res1 = 0 ;
6302 void *argp2 = 0 ;
6303 int res2 = 0 ;
6304 PyObject * obj0 = 0 ;
6305 PyObject * obj1 = 0 ;
6306 GEnergy result;
6307
6308 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___add__",&obj0,&obj1)) SWIG_failgoto fail;
6309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6310 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___add__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___add__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6312 }
6313 arg1 = reinterpret_cast< GEnergy * >(argp1);
6314 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6315 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___add__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___add__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6317 }
6318 if (!argp2) {
6319 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___add__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___add__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6320 }
6321 arg2 = reinterpret_cast< GEnergy * >(argp2);
6322 {
6323 try {
6324 result = GEnergy___add__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6325 }
6326 catch (const GException::out_of_range& e) {
6327 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6328 }
6329 catch (const GExceptionHandler& e) {
6330 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6331 }
6332 catch (const std::exception& e) {
6333 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6334 }
6335 }
6336 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
6337 return resultobj;
6338fail:
6339 return NULL__null;
6340}
6341
6342
6343SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6344 PyObject *resultobj = 0;
6345 GEnergy *arg1 = (GEnergy *) 0 ;
6346 GEnergy *arg2 = 0 ;
6347 void *argp1 = 0 ;
6348 int res1 = 0 ;
6349 void *argp2 = 0 ;
6350 int res2 = 0 ;
6351 PyObject * obj0 = 0 ;
6352 PyObject * obj1 = 0 ;
6353 GEnergy result;
6354
6355 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___sub__",&obj0,&obj1)) SWIG_failgoto fail;
6356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6357 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___sub__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___sub__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6359 }
6360 arg1 = reinterpret_cast< GEnergy * >(argp1);
6361 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6362 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6363 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___sub__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___sub__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6364 }
6365 if (!argp2) {
6366 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___sub__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___sub__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6367 }
6368 arg2 = reinterpret_cast< GEnergy * >(argp2);
6369 {
6370 try {
6371 result = GEnergy___sub__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6372 }
6373 catch (const GException::out_of_range& e) {
6374 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6375 }
6376 catch (const GExceptionHandler& e) {
6377 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6378 }
6379 catch (const std::exception& e) {
6380 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6381 }
6382 }
6383 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
6384 return resultobj;
6385fail:
6386 return NULL__null;
6387}
6388
6389
6390SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6391 PyObject *resultobj = 0;
6392 GEnergy *arg1 = (GEnergy *) 0 ;
6393 double *arg2 = 0 ;
6394 void *argp1 = 0 ;
6395 int res1 = 0 ;
6396 double temp2 ;
6397 double val2 ;
6398 int ecode2 = 0 ;
6399 PyObject * obj0 = 0 ;
6400 PyObject * obj1 = 0 ;
6401 GEnergy result;
6402
6403 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___mul__",&obj0,&obj1)) SWIG_failgoto fail;
6404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6405 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___mul__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___mul__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6407 }
6408 arg1 = reinterpret_cast< GEnergy * >(argp1);
6409 ecode2 = SWIG_AsVal_double(obj1, &val2);
6410 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6411 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy___mul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy___mul__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6412 }
6413 temp2 = static_cast< double >(val2);
6414 arg2 = &temp2;
6415 {
6416 try {
6417 result = GEnergy___mul__((GEnergy const *)arg1,(double const &)*arg2);
6418 }
6419 catch (const GException::out_of_range& e) {
6420 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6421 }
6422 catch (const GExceptionHandler& e) {
6423 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6424 }
6425 catch (const std::exception& e) {
6426 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6427 }
6428 }
6429 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
6430 return resultobj;
6431fail:
6432 return NULL__null;
6433}
6434
6435
6436SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6437 PyObject *resultobj = 0;
6438 GEnergy *arg1 = (GEnergy *) 0 ;
6439 double *arg2 = 0 ;
6440 void *argp1 = 0 ;
6441 int res1 = 0 ;
6442 double temp2 ;
6443 double val2 ;
6444 int ecode2 = 0 ;
6445 PyObject * obj0 = 0 ;
6446 PyObject * obj1 = 0 ;
6447 GEnergy result;
6448
6449 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___div__",&obj0,&obj1)) SWIG_failgoto fail;
6450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6451 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___div__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___div__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6453 }
6454 arg1 = reinterpret_cast< GEnergy * >(argp1);
6455 ecode2 = SWIG_AsVal_double(obj1, &val2);
6456 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergy___div__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergy___div__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
6458 }
6459 temp2 = static_cast< double >(val2);
6460 arg2 = &temp2;
6461 {
6462 try {
6463 result = GEnergy___div__((GEnergy const *)arg1,(double const &)*arg2);
6464 }
6465 catch (const GException::out_of_range& e) {
6466 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6467 }
6468 catch (const GExceptionHandler& e) {
6469 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6470 }
6471 catch (const std::exception& e) {
6472 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6473 }
6474 }
6475 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
6476 return resultobj;
6477fail:
6478 return NULL__null;
6479}
6480
6481
6482SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6483 PyObject *resultobj = 0;
6484 GEnergy *arg1 = (GEnergy *) 0 ;
6485 GEnergy *arg2 = 0 ;
6486 void *argp1 = 0 ;
6487 int res1 = 0 ;
6488 void *argp2 = 0 ;
6489 int res2 = 0 ;
6490 PyObject * obj0 = 0 ;
6491 PyObject * obj1 = 0 ;
6492 bool result;
6493
6494 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___eq__",&obj0,&obj1)) SWIG_failgoto fail;
6495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6496 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___eq__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___eq__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6498 }
6499 arg1 = reinterpret_cast< GEnergy * >(argp1);
6500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6501 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___eq__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___eq__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6503 }
6504 if (!argp2) {
6505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___eq__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___eq__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6506 }
6507 arg2 = reinterpret_cast< GEnergy * >(argp2);
6508 {
6509 try {
6510 result = (bool)GEnergy___eq__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6511 }
6512 catch (const GException::out_of_range& e) {
6513 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6514 }
6515 catch (const GExceptionHandler& e) {
6516 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6517 }
6518 catch (const std::exception& e) {
6519 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6520 }
6521 }
6522 resultobj = SWIG_From_bool(static_cast< bool >(result));
6523 return resultobj;
6524fail:
6525 return NULL__null;
6526}
6527
6528
6529SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6530 PyObject *resultobj = 0;
6531 GEnergy *arg1 = (GEnergy *) 0 ;
6532 GEnergy *arg2 = 0 ;
6533 void *argp1 = 0 ;
6534 int res1 = 0 ;
6535 void *argp2 = 0 ;
6536 int res2 = 0 ;
6537 PyObject * obj0 = 0 ;
6538 PyObject * obj1 = 0 ;
6539 bool result;
6540
6541 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___ne__",&obj0,&obj1)) SWIG_failgoto fail;
6542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6543 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___ne__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___ne__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6545 }
6546 arg1 = reinterpret_cast< GEnergy * >(argp1);
6547 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6548 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___ne__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___ne__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6550 }
6551 if (!argp2) {
6552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___ne__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___ne__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6553 }
6554 arg2 = reinterpret_cast< GEnergy * >(argp2);
6555 {
6556 try {
6557 result = (bool)GEnergy___ne__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6558 }
6559 catch (const GException::out_of_range& e) {
6560 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6561 }
6562 catch (const GExceptionHandler& e) {
6563 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6564 }
6565 catch (const std::exception& e) {
6566 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6567 }
6568 }
6569 resultobj = SWIG_From_bool(static_cast< bool >(result));
6570 return resultobj;
6571fail:
6572 return NULL__null;
6573}
6574
6575
6576SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6577 PyObject *resultobj = 0;
6578 GEnergy *arg1 = (GEnergy *) 0 ;
6579 GEnergy *arg2 = 0 ;
6580 void *argp1 = 0 ;
6581 int res1 = 0 ;
6582 void *argp2 = 0 ;
6583 int res2 = 0 ;
6584 PyObject * obj0 = 0 ;
6585 PyObject * obj1 = 0 ;
6586 bool result;
6587
6588 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___lt__",&obj0,&obj1)) SWIG_failgoto fail;
6589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6590 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___lt__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___lt__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6592 }
6593 arg1 = reinterpret_cast< GEnergy * >(argp1);
6594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6595 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___lt__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___lt__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6597 }
6598 if (!argp2) {
6599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___lt__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___lt__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6600 }
6601 arg2 = reinterpret_cast< GEnergy * >(argp2);
6602 {
6603 try {
6604 result = (bool)GEnergy___lt__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6605 }
6606 catch (const GException::out_of_range& e) {
6607 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6608 }
6609 catch (const GExceptionHandler& e) {
6610 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6611 }
6612 catch (const std::exception& e) {
6613 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6614 }
6615 }
6616 resultobj = SWIG_From_bool(static_cast< bool >(result));
6617 return resultobj;
6618fail:
6619 return NULL__null;
6620}
6621
6622
6623SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6624 PyObject *resultobj = 0;
6625 GEnergy *arg1 = (GEnergy *) 0 ;
6626 GEnergy *arg2 = 0 ;
6627 void *argp1 = 0 ;
6628 int res1 = 0 ;
6629 void *argp2 = 0 ;
6630 int res2 = 0 ;
6631 PyObject * obj0 = 0 ;
6632 PyObject * obj1 = 0 ;
6633 bool result;
6634
6635 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___gt__",&obj0,&obj1)) SWIG_failgoto fail;
6636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6637 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___gt__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___gt__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6639 }
6640 arg1 = reinterpret_cast< GEnergy * >(argp1);
6641 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6642 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6643 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___gt__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___gt__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6644 }
6645 if (!argp2) {
6646 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___gt__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___gt__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6647 }
6648 arg2 = reinterpret_cast< GEnergy * >(argp2);
6649 {
6650 try {
6651 result = (bool)GEnergy___gt__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6652 }
6653 catch (const GException::out_of_range& e) {
6654 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6655 }
6656 catch (const GExceptionHandler& e) {
6657 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6658 }
6659 catch (const std::exception& e) {
6660 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6661 }
6662 }
6663 resultobj = SWIG_From_bool(static_cast< bool >(result));
6664 return resultobj;
6665fail:
6666 return NULL__null;
6667}
6668
6669
6670SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___lte__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6671 PyObject *resultobj = 0;
6672 GEnergy *arg1 = (GEnergy *) 0 ;
6673 GEnergy *arg2 = 0 ;
6674 void *argp1 = 0 ;
6675 int res1 = 0 ;
6676 void *argp2 = 0 ;
6677 int res2 = 0 ;
6678 PyObject * obj0 = 0 ;
6679 PyObject * obj1 = 0 ;
6680 bool result;
6681
6682 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___lte__",&obj0,&obj1)) SWIG_failgoto fail;
6683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6684 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___lte__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___lte__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6686 }
6687 arg1 = reinterpret_cast< GEnergy * >(argp1);
6688 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6689 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___lte__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___lte__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6691 }
6692 if (!argp2) {
6693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___lte__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___lte__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6694 }
6695 arg2 = reinterpret_cast< GEnergy * >(argp2);
6696 {
6697 try {
6698 result = (bool)GEnergy___lte__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6699 }
6700 catch (const GException::out_of_range& e) {
6701 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6702 }
6703 catch (const GExceptionHandler& e) {
6704 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6705 }
6706 catch (const std::exception& e) {
6707 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6708 }
6709 }
6710 resultobj = SWIG_From_bool(static_cast< bool >(result));
6711 return resultobj;
6712fail:
6713 return NULL__null;
6714}
6715
6716
6717SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy___gte__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6718 PyObject *resultobj = 0;
6719 GEnergy *arg1 = (GEnergy *) 0 ;
6720 GEnergy *arg2 = 0 ;
6721 void *argp1 = 0 ;
6722 int res1 = 0 ;
6723 void *argp2 = 0 ;
6724 int res2 = 0 ;
6725 PyObject * obj0 = 0 ;
6726 PyObject * obj1 = 0 ;
6727 bool result;
6728
6729 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergy___gte__",&obj0,&obj1)) SWIG_failgoto fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6731 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy___gte__" "', argument " "1"" of type '" "GEnergy const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy___gte__" "', argument "
"1"" of type '" "GEnergy const *""'"); goto fail; } while(0)
;
6733 }
6734 arg1 = reinterpret_cast< GEnergy * >(argp1);
6735 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
6736 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6737 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergy___gte__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergy___gte__" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
6738 }
6739 if (!argp2) {
6740 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergy___gte__" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergy___gte__" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
6741 }
6742 arg2 = reinterpret_cast< GEnergy * >(argp2);
6743 {
6744 try {
6745 result = (bool)GEnergy___gte__((GEnergy const *)arg1,(GEnergy const &)*arg2);
6746 }
6747 catch (const GException::out_of_range& e) {
6748 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6749 }
6750 catch (const GExceptionHandler& e) {
6751 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6752 }
6753 catch (const std::exception& e) {
6754 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6755 }
6756 }
6757 resultobj = SWIG_From_bool(static_cast< bool >(result));
6758 return resultobj;
6759fail:
6760 return NULL__null;
6761}
6762
6763
6764SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergy_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6765 PyObject *resultobj = 0;
6766 GEnergy *arg1 = (GEnergy *) 0 ;
6767 void *argp1 = 0 ;
6768 int res1 = 0 ;
6769 PyObject * obj0 = 0 ;
6770 GEnergy result;
6771
6772 if (!PyArg_ParseTuple(args,(char *)"O:GEnergy_copy",&obj0)) SWIG_failgoto fail;
6773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergy, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
6774 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergy_copy" "', argument " "1"" of type '" "GEnergy *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergy_copy" "', argument "
"1"" of type '" "GEnergy *""'"); goto fail; } while(0)
;
6776 }
6777 arg1 = reinterpret_cast< GEnergy * >(argp1);
6778 {
6779 try {
6780 result = GEnergy_copy(arg1);
6781 }
6782 catch (const GException::out_of_range& e) {
6783 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6784 }
6785 catch (const GExceptionHandler& e) {
6786 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6787 }
6788 catch (const std::exception& e) {
6789 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6790 }
6791 }
6792 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
6793 return resultobj;
6794fail:
6795 return NULL__null;
6796}
6797
6798
6799SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEnergy_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6800 PyObject *obj;
6801 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
6802 SWIG_TypeNewClientData(SWIGTYPE_p_GEnergyswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
6803 return SWIG_Py_Void();
6804}
6805
6806SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergies__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6807 PyObject *resultobj = 0;
6808 GEnergies *result = 0 ;
6809
6810 if (!PyArg_ParseTuple(args,(char *)":new_GEnergies")) SWIG_failgoto fail;
6811 {
6812 try {
6813 result = (GEnergies *)new GEnergies();
6814 }
6815 catch (const GException::out_of_range& e) {
6816 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6817 }
6818 catch (const GExceptionHandler& e) {
6819 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6820 }
6821 catch (const std::exception& e) {
6822 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6823 }
6824 }
6825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergies, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
6826 return resultobj;
6827fail:
6828 return NULL__null;
6829}
6830
6831
6832SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergies__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6833 PyObject *resultobj = 0;
6834 std::string *arg1 = 0 ;
6835 std::string *arg2 = 0 ;
6836 int res1 = SWIG_OLDOBJ((0)) ;
6837 int res2 = SWIG_OLDOBJ((0)) ;
6838 PyObject * obj0 = 0 ;
6839 PyObject * obj1 = 0 ;
6840 GEnergies *result = 0 ;
6841
6842 if (!PyArg_ParseTuple(args,(char *)"OO:new_GEnergies",&obj0,&obj1)) SWIG_failgoto fail;
6843 {
6844 std::string *ptr = (std::string *)0;
6845 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
6846 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GEnergies" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GEnergies" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6848 }
6849 if (!ptr) {
6850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEnergies" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEnergies" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6851 }
6852 arg1 = ptr;
6853 }
6854 {
6855 std::string *ptr = (std::string *)0;
6856 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6857 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GEnergies" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GEnergies" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6859 }
6860 if (!ptr) {
6861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEnergies" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEnergies" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6862 }
6863 arg2 = ptr;
6864 }
6865 {
6866 try {
6867 result = (GEnergies *)new GEnergies((std::string const &)*arg1,(std::string const &)*arg2);
6868 }
6869 catch (const GException::out_of_range& e) {
6870 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6871 }
6872 catch (const GExceptionHandler& e) {
6873 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6874 }
6875 catch (const std::exception& e) {
6876 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6877 }
6878 }
6879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergies, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
6880 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6881 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6882 return resultobj;
6883fail:
6884 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6885 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6886 return NULL__null;
6887}
6888
6889
6890SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergies__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6891 PyObject *resultobj = 0;
6892 std::string *arg1 = 0 ;
6893 int res1 = SWIG_OLDOBJ((0)) ;
6894 PyObject * obj0 = 0 ;
6895 GEnergies *result = 0 ;
6896
6897 if (!PyArg_ParseTuple(args,(char *)"O:new_GEnergies",&obj0)) SWIG_failgoto fail;
6898 {
6899 std::string *ptr = (std::string *)0;
6900 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
6901 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GEnergies" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GEnergies" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6903 }
6904 if (!ptr) {
6905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEnergies" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEnergies" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6906 }
6907 arg1 = ptr;
6908 }
6909 {
6910 try {
6911 result = (GEnergies *)new GEnergies((std::string const &)*arg1);
6912 }
6913 catch (const GException::out_of_range& e) {
6914 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6915 }
6916 catch (const GExceptionHandler& e) {
6917 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6918 }
6919 catch (const std::exception& e) {
6920 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6921 }
6922 }
6923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergies, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
6924 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6925 return resultobj;
6926fail:
6927 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
6928 return NULL__null;
6929}
6930
6931
6932SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergies__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6933 PyObject *resultobj = 0;
6934 GEnergies *arg1 = 0 ;
6935 void *argp1 = 0 ;
6936 int res1 = 0 ;
6937 PyObject * obj0 = 0 ;
6938 GEnergies *result = 0 ;
6939
6940 if (!PyArg_ParseTuple(args,(char *)"O:new_GEnergies",&obj0)) SWIG_failgoto fail;
6941 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GEnergies, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
6942 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GEnergies" "', argument " "1"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GEnergies" "', argument "
"1"" of type '" "GEnergies const &""'"); goto fail; } while
(0)
;
6944 }
6945 if (!argp1) {
6946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEnergies" "', argument " "1"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEnergies" "', argument " "1"" of type '"
"GEnergies const &""'"); goto fail; } while(0)
;
6947 }
6948 arg1 = reinterpret_cast< GEnergies * >(argp1);
6949 {
6950 try {
6951 result = (GEnergies *)new GEnergies((GEnergies const &)*arg1);
6952 }
6953 catch (const GException::out_of_range& e) {
6954 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6955 }
6956 catch (const GExceptionHandler& e) {
6957 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6958 }
6959 catch (const std::exception& e) {
6960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6961 }
6962 }
6963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergies, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
6964 return resultobj;
6965fail:
6966 return NULL__null;
6967}
6968
6969
6970SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEnergies(PyObject *self, PyObject *args) {
6971 int argc;
6972 PyObject *argv[3];
6973 int ii;
6974
6975 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6976 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6977 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6978 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6979 }
6980 if (argc == 0) {
6981 return _wrap_new_GEnergies__SWIG_0(self, args);
6982 }
6983 if (argc == 1) {
6984 int _v;
6985 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0);
6986 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6987 if (_v) {
6988 return _wrap_new_GEnergies__SWIG_3(self, args);
6989 }
6990 }
6991 if (argc == 1) {
6992 int _v;
6993 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
6994 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6995 if (_v) {
6996 return _wrap_new_GEnergies__SWIG_2(self, args);
6997 }
6998 }
6999 if (argc == 2) {
7000 int _v;
7001 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
7002 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7003 if (_v) {
7004 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7005 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7006 if (_v) {
7007 return _wrap_new_GEnergies__SWIG_1(self, args);
7008 }
7009 }
7010 }
7011
7012fail:
7013 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GEnergies'.\n"
7014 " Possible C/C++ prototypes are:\n"
7015 " GEnergies::GEnergies()\n"
7016 " GEnergies::GEnergies(std::string const &,std::string const &)\n"
7017 " GEnergies::GEnergies(std::string const &)\n"
7018 " GEnergies::GEnergies(GEnergies const &)\n");
7019 return 0;
7020}
7021
7022
7023SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEnergies(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7024 PyObject *resultobj = 0;
7025 GEnergies *arg1 = (GEnergies *) 0 ;
7026 void *argp1 = 0 ;
7027 int res1 = 0 ;
7028 PyObject * obj0 = 0 ;
7029
7030 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEnergies",&obj0)) SWIG_failgoto fail;
7031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
7032 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEnergies" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEnergies" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7034 }
7035 arg1 = reinterpret_cast< GEnergies * >(argp1);
7036 {
7037 try {
7038 delete arg1;
7039 }
7040 catch (const GException::out_of_range& e) {
7041 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7042 }
7043 catch (const GExceptionHandler& e) {
7044 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7045 }
7046 catch (const std::exception& e) {
7047 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7048 }
7049 }
7050 resultobj = SWIG_Py_Void();
7051 return resultobj;
7052fail:
7053 return NULL__null;
7054}
7055
7056
7057SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7058 PyObject *resultobj = 0;
7059 GEnergies *arg1 = (GEnergies *) 0 ;
7060 void *argp1 = 0 ;
7061 int res1 = 0 ;
7062 PyObject * obj0 = 0 ;
7063
7064 if (!PyArg_ParseTuple(args,(char *)"O:GEnergies_clear",&obj0)) SWIG_failgoto fail;
7065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7066 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_clear" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_clear" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7068 }
7069 arg1 = reinterpret_cast< GEnergies * >(argp1);
7070 {
7071 try {
7072 (arg1)->clear();
7073 }
7074 catch (const GException::out_of_range& e) {
7075 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7076 }
7077 catch (const GExceptionHandler& e) {
7078 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7079 }
7080 catch (const std::exception& e) {
7081 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7082 }
7083 }
7084 resultobj = SWIG_Py_Void();
7085 return resultobj;
7086fail:
7087 return NULL__null;
7088}
7089
7090
7091SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7092 PyObject *resultobj = 0;
7093 GEnergies *arg1 = (GEnergies *) 0 ;
7094 void *argp1 = 0 ;
7095 int res1 = 0 ;
7096 PyObject * obj0 = 0 ;
7097 GEnergies *result = 0 ;
7098
7099 if (!PyArg_ParseTuple(args,(char *)"O:GEnergies_clone",&obj0)) SWIG_failgoto fail;
7100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7101 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_clone" "', argument " "1"" of type '" "GEnergies const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_clone" "', argument "
"1"" of type '" "GEnergies const *""'"); goto fail; } while(
0)
;
7103 }
7104 arg1 = reinterpret_cast< GEnergies * >(argp1);
7105 {
7106 try {
7107 result = (GEnergies *)((GEnergies const *)arg1)->clone();
7108 }
7109 catch (const GException::out_of_range& e) {
7110 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7111 }
7112 catch (const GExceptionHandler& e) {
7113 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7114 }
7115 catch (const std::exception& e) {
7116 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7117 }
7118 }
7119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], 0 |
0)
;
7120 return resultobj;
7121fail:
7122 return NULL__null;
7123}
7124
7125
7126SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_at(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7127 PyObject *resultobj = 0;
7128 GEnergies *arg1 = (GEnergies *) 0 ;
7129 int *arg2 = 0 ;
7130 void *argp1 = 0 ;
7131 int res1 = 0 ;
7132 int temp2 ;
7133 int val2 ;
7134 int ecode2 = 0 ;
7135 PyObject * obj0 = 0 ;
7136 PyObject * obj1 = 0 ;
7137 GEnergy *result = 0 ;
7138
7139 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_at",&obj0,&obj1)) SWIG_failgoto fail;
7140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7141 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_at" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_at" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7143 }
7144 arg1 = reinterpret_cast< GEnergies * >(argp1);
7145 ecode2 = SWIG_AsVal_int(obj1, &val2);
7146 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergies_at" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergies_at" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7148 }
7149 temp2 = static_cast< int >(val2);
7150 arg2 = &temp2;
7151 {
7152 try {
7153 result = (GEnergy *) &(arg1)->at((int const &)*arg2);
7154 }
7155 catch (const GException::out_of_range& e) {
7156 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7157 }
7158 catch (const GExceptionHandler& e) {
7159 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7160 }
7161 catch (const std::exception& e) {
7162 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7163 }
7164 }
7165 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[5], 0 |
0)
;
7166 return resultobj;
7167fail:
7168 return NULL__null;
7169}
7170
7171
7172SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7173 PyObject *resultobj = 0;
7174 GEnergies *arg1 = (GEnergies *) 0 ;
7175 void *argp1 = 0 ;
7176 int res1 = 0 ;
7177 PyObject * obj0 = 0 ;
7178 int result;
7179
7180 if (!PyArg_ParseTuple(args,(char *)"O:GEnergies_size",&obj0)) SWIG_failgoto fail;
7181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7182 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_size" "', argument " "1"" of type '" "GEnergies const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_size" "', argument "
"1"" of type '" "GEnergies const *""'"); goto fail; } while(
0)
;
7184 }
7185 arg1 = reinterpret_cast< GEnergies * >(argp1);
7186 {
7187 try {
7188 result = (int)((GEnergies const *)arg1)->size();
7189 }
7190 catch (const GException::out_of_range& e) {
7191 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7192 }
7193 catch (const GExceptionHandler& e) {
7194 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7195 }
7196 catch (const std::exception& e) {
7197 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7198 }
7199 }
7200 resultobj = SWIG_From_int(static_cast< int >(result));
7201 return resultobj;
7202fail:
7203 return NULL__null;
7204}
7205
7206
7207SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7208 PyObject *resultobj = 0;
7209 GEnergies *arg1 = (GEnergies *) 0 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 PyObject * obj0 = 0 ;
7213 bool result;
7214
7215 if (!PyArg_ParseTuple(args,(char *)"O:GEnergies_isempty",&obj0)) SWIG_failgoto fail;
7216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7217 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_isempty" "', argument " "1"" of type '" "GEnergies const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_isempty" "', argument "
"1"" of type '" "GEnergies const *""'"); goto fail; } while(
0)
;
7219 }
7220 arg1 = reinterpret_cast< GEnergies * >(argp1);
7221 {
7222 try {
7223 result = (bool)((GEnergies const *)arg1)->isempty();
7224 }
7225 catch (const GException::out_of_range& e) {
7226 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7227 }
7228 catch (const GExceptionHandler& e) {
7229 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7230 }
7231 catch (const std::exception& e) {
7232 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7233 }
7234 }
7235 resultobj = SWIG_From_bool(static_cast< bool >(result));
7236 return resultobj;
7237fail:
7238 return NULL__null;
7239}
7240
7241
7242SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7243 PyObject *resultobj = 0;
7244 GEnergies *arg1 = (GEnergies *) 0 ;
7245 GEnergy *arg2 = 0 ;
7246 void *argp1 = 0 ;
7247 int res1 = 0 ;
7248 void *argp2 = 0 ;
7249 int res2 = 0 ;
7250 PyObject * obj0 = 0 ;
7251 PyObject * obj1 = 0 ;
7252 GEnergy *result = 0 ;
7253
7254 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_append",&obj0,&obj1)) SWIG_failgoto fail;
7255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7256 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_append" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_append" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7258 }
7259 arg1 = reinterpret_cast< GEnergies * >(argp1);
7260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
7261 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_append" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_append" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
7263 }
7264 if (!argp2) {
7265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_append" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_append" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
7266 }
7267 arg2 = reinterpret_cast< GEnergy * >(argp2);
7268 {
7269 try {
7270 result = (GEnergy *) &(arg1)->append((GEnergy const &)*arg2);
7271 }
7272 catch (const GException::out_of_range& e) {
7273 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7274 }
7275 catch (const GExceptionHandler& e) {
7276 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7277 }
7278 catch (const std::exception& e) {
7279 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7280 }
7281 }
7282 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[5], 0 |
0)
;
7283 return resultobj;
7284fail:
7285 return NULL__null;
7286}
7287
7288
7289SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7290 PyObject *resultobj = 0;
7291 GEnergies *arg1 = (GEnergies *) 0 ;
7292 int *arg2 = 0 ;
7293 GEnergy *arg3 = 0 ;
7294 void *argp1 = 0 ;
7295 int res1 = 0 ;
7296 int temp2 ;
7297 int val2 ;
7298 int ecode2 = 0 ;
7299 void *argp3 = 0 ;
7300 int res3 = 0 ;
7301 PyObject * obj0 = 0 ;
7302 PyObject * obj1 = 0 ;
7303 PyObject * obj2 = 0 ;
7304 GEnergy *result = 0 ;
7305
7306 if (!PyArg_ParseTuple(args,(char *)"OOO:GEnergies_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7308 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_insert" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_insert" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7310 }
7311 arg1 = reinterpret_cast< GEnergies * >(argp1);
7312 ecode2 = SWIG_AsVal_int(obj1, &val2);
7313 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergies_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergies_insert" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7315 }
7316 temp2 = static_cast< int >(val2);
7317 arg2 = &temp2;
7318 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
7319 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7320 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEnergies_insert" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEnergies_insert" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
7321 }
7322 if (!argp3) {
7323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_insert" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_insert" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
7324 }
7325 arg3 = reinterpret_cast< GEnergy * >(argp3);
7326 {
7327 try {
7328 result = (GEnergy *) &(arg1)->insert((int const &)*arg2,(GEnergy const &)*arg3);
7329 }
7330 catch (const GException::out_of_range& e) {
7331 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7332 }
7333 catch (const GExceptionHandler& e) {
7334 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7335 }
7336 catch (const std::exception& e) {
7337 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7338 }
7339 }
7340 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[5], 0 |
0)
;
7341 return resultobj;
7342fail:
7343 return NULL__null;
7344}
7345
7346
7347SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7348 PyObject *resultobj = 0;
7349 GEnergies *arg1 = (GEnergies *) 0 ;
7350 int *arg2 = 0 ;
7351 void *argp1 = 0 ;
7352 int res1 = 0 ;
7353 int temp2 ;
7354 int val2 ;
7355 int ecode2 = 0 ;
7356 PyObject * obj0 = 0 ;
7357 PyObject * obj1 = 0 ;
7358
7359 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_remove",&obj0,&obj1)) SWIG_failgoto fail;
7360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7361 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_remove" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_remove" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7363 }
7364 arg1 = reinterpret_cast< GEnergies * >(argp1);
7365 ecode2 = SWIG_AsVal_int(obj1, &val2);
7366 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergies_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergies_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7368 }
7369 temp2 = static_cast< int >(val2);
7370 arg2 = &temp2;
7371 {
7372 try {
7373 (arg1)->remove((int const &)*arg2);
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_Py_Void();
7386 return resultobj;
7387fail:
7388 return NULL__null;
7389}
7390
7391
7392SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7393 PyObject *resultobj = 0;
7394 GEnergies *arg1 = (GEnergies *) 0 ;
7395 int *arg2 = 0 ;
7396 void *argp1 = 0 ;
7397 int res1 = 0 ;
7398 int temp2 ;
7399 int val2 ;
7400 int ecode2 = 0 ;
7401 PyObject * obj0 = 0 ;
7402 PyObject * obj1 = 0 ;
7403
7404 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_reserve",&obj0,&obj1)) SWIG_failgoto fail;
7405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7406 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_reserve" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_reserve" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7408 }
7409 arg1 = reinterpret_cast< GEnergies * >(argp1);
7410 ecode2 = SWIG_AsVal_int(obj1, &val2);
7411 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergies_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergies_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7413 }
7414 temp2 = static_cast< int >(val2);
7415 arg2 = &temp2;
7416 {
7417 try {
7418 (arg1)->reserve((int const &)*arg2);
7419 }
7420 catch (const GException::out_of_range& e) {
7421 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7422 }
7423 catch (const GExceptionHandler& e) {
7424 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7425 }
7426 catch (const std::exception& e) {
7427 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7428 }
7429 }
7430 resultobj = SWIG_Py_Void();
7431 return resultobj;
7432fail:
7433 return NULL__null;
7434}
7435
7436
7437SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7438 PyObject *resultobj = 0;
7439 GEnergies *arg1 = (GEnergies *) 0 ;
7440 GEnergies *arg2 = 0 ;
7441 void *argp1 = 0 ;
7442 int res1 = 0 ;
7443 void *argp2 = 0 ;
7444 int res2 = 0 ;
7445 PyObject * obj0 = 0 ;
7446 PyObject * obj1 = 0 ;
7447
7448 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_extend",&obj0,&obj1)) SWIG_failgoto fail;
7449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7450 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_extend" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_extend" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7452 }
7453 arg1 = reinterpret_cast< GEnergies * >(argp1);
7454 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergies, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[4],
0 | 0, 0)
;
7455 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_extend" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_extend" "', argument "
"2"" of type '" "GEnergies const &""'"); goto fail; } while
(0)
;
7457 }
7458 if (!argp2) {
7459 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_extend" "', argument " "2"" of type '" "GEnergies const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_extend" "', argument " "2"" of type '"
"GEnergies const &""'"); goto fail; } while(0)
;
7460 }
7461 arg2 = reinterpret_cast< GEnergies * >(argp2);
7462 {
7463 try {
7464 (arg1)->extend((GEnergies const &)*arg2);
7465 }
7466 catch (const GException::out_of_range& e) {
7467 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7468 }
7469 catch (const GExceptionHandler& e) {
7470 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7471 }
7472 catch (const std::exception& e) {
7473 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7474 }
7475 }
7476 resultobj = SWIG_Py_Void();
7477 return resultobj;
7478fail:
7479 return NULL__null;
7480}
7481
7482
7483SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7484 PyObject *resultobj = 0;
7485 GEnergies *arg1 = (GEnergies *) 0 ;
7486 std::string *arg2 = 0 ;
7487 std::string *arg3 = 0 ;
7488 void *argp1 = 0 ;
7489 int res1 = 0 ;
7490 int res2 = SWIG_OLDOBJ((0)) ;
7491 int res3 = SWIG_OLDOBJ((0)) ;
7492 PyObject * obj0 = 0 ;
7493 PyObject * obj1 = 0 ;
7494 PyObject * obj2 = 0 ;
7495
7496 if (!PyArg_ParseTuple(args,(char *)"OOO:GEnergies_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7498 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_load" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_load" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7500 }
7501 arg1 = reinterpret_cast< GEnergies * >(argp1);
7502 {
7503 std::string *ptr = (std::string *)0;
7504 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7505 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7507 }
7508 if (!ptr) {
7509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7510 }
7511 arg2 = ptr;
7512 }
7513 {
7514 std::string *ptr = (std::string *)0;
7515 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
7516 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7517 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEnergies_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEnergies_load" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7518 }
7519 if (!ptr) {
7520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_load" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7521 }
7522 arg3 = ptr;
7523 }
7524 {
7525 try {
7526 (arg1)->load((std::string const &)*arg2,(std::string const &)*arg3);
7527 }
7528 catch (const GException::out_of_range& e) {
7529 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7530 }
7531 catch (const GExceptionHandler& e) {
7532 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7533 }
7534 catch (const std::exception& e) {
7535 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7536 }
7537 }
7538 resultobj = SWIG_Py_Void();
7539 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7540 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
7541 return resultobj;
7542fail:
7543 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7544 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
7545 return NULL__null;
7546}
7547
7548
7549SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7550 PyObject *resultobj = 0;
7551 GEnergies *arg1 = (GEnergies *) 0 ;
7552 std::string *arg2 = 0 ;
7553 void *argp1 = 0 ;
7554 int res1 = 0 ;
7555 int res2 = SWIG_OLDOBJ((0)) ;
7556 PyObject * obj0 = 0 ;
7557 PyObject * obj1 = 0 ;
7558
7559 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_load",&obj0,&obj1)) SWIG_failgoto fail;
7560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7561 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_load" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_load" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7563 }
7564 arg1 = reinterpret_cast< GEnergies * >(argp1);
7565 {
7566 std::string *ptr = (std::string *)0;
7567 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7568 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7569 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7570 }
7571 if (!ptr) {
7572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7573 }
7574 arg2 = ptr;
7575 }
7576 {
7577 try {
7578 (arg1)->load((std::string const &)*arg2);
7579 }
7580 catch (const GException::out_of_range& e) {
7581 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7582 }
7583 catch (const GExceptionHandler& e) {
7584 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7585 }
7586 catch (const std::exception& e) {
7587 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7588 }
7589 }
7590 resultobj = SWIG_Py_Void();
7591 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7592 return resultobj;
7593fail:
7594 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7595 return NULL__null;
7596}
7597
7598
7599SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_load(PyObject *self, PyObject *args) {
7600 int argc;
7601 PyObject *argv[4];
7602 int ii;
7603
7604 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7605 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7606 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7607 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7608 }
7609 if (argc == 2) {
7610 int _v;
7611 void *vptr = 0;
7612 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
7613 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7614 if (_v) {
7615 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7616 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7617 if (_v) {
7618 return _wrap_GEnergies_load__SWIG_1(self, args);
7619 }
7620 }
7621 }
7622 if (argc == 3) {
7623 int _v;
7624 void *vptr = 0;
7625 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
7626 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7627 if (_v) {
7628 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7629 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7630 if (_v) {
7631 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
7632 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7633 if (_v) {
7634 return _wrap_GEnergies_load__SWIG_0(self, args);
7635 }
7636 }
7637 }
7638 }
7639
7640fail:
7641 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergies_load'.\n"
7642 " Possible C/C++ prototypes are:\n"
7643 " GEnergies::load(std::string const &,std::string const &)\n"
7644 " GEnergies::load(std::string const &)\n");
7645 return 0;
7646}
7647
7648
7649SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7650 PyObject *resultobj = 0;
7651 GEnergies *arg1 = (GEnergies *) 0 ;
7652 std::string *arg2 = 0 ;
7653 bool *arg3 = 0 ;
7654 std::string *arg4 = 0 ;
7655 void *argp1 = 0 ;
7656 int res1 = 0 ;
7657 int res2 = SWIG_OLDOBJ((0)) ;
7658 bool temp3 ;
7659 bool val3 ;
7660 int ecode3 = 0 ;
7661 int res4 = SWIG_OLDOBJ((0)) ;
7662 PyObject * obj0 = 0 ;
7663 PyObject * obj1 = 0 ;
7664 PyObject * obj2 = 0 ;
7665 PyObject * obj3 = 0 ;
7666
7667 if (!PyArg_ParseTuple(args,(char *)"OOOO:GEnergies_save",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
7668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7669 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_save" "', argument " "1"" of type '" "GEnergies const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_save" "', argument "
"1"" of type '" "GEnergies const *""'"); goto fail; } while(
0)
;
7671 }
7672 arg1 = reinterpret_cast< GEnergies * >(argp1);
7673 {
7674 std::string *ptr = (std::string *)0;
7675 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7676 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7678 }
7679 if (!ptr) {
7680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7681 }
7682 arg2 = ptr;
7683 }
7684 ecode3 = SWIG_AsVal_bool(obj2, &val3);
7685 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GEnergies_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GEnergies_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
7687 }
7688 temp3 = static_cast< bool >(val3);
7689 arg3 = &temp3;
7690 {
7691 std::string *ptr = (std::string *)0;
7692 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
7693 if (!SWIG_IsOK(res4)(res4 >= 0)) {
7694 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GEnergies_save" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GEnergies_save" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7695 }
7696 if (!ptr) {
7697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_save" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_save" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7698 }
7699 arg4 = ptr;
7700 }
7701 {
7702 try {
7703 ((GEnergies const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3,(std::string const &)*arg4);
7704 }
7705 catch (const GException::out_of_range& e) {
7706 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7707 }
7708 catch (const GExceptionHandler& e) {
7709 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7710 }
7711 catch (const std::exception& e) {
7712 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7713 }
7714 }
7715 resultobj = SWIG_Py_Void();
7716 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7717 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
7718 return resultobj;
7719fail:
7720 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7721 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
7722 return NULL__null;
7723}
7724
7725
7726SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7727 PyObject *resultobj = 0;
7728 GEnergies *arg1 = (GEnergies *) 0 ;
7729 std::string *arg2 = 0 ;
7730 bool *arg3 = 0 ;
7731 void *argp1 = 0 ;
7732 int res1 = 0 ;
7733 int res2 = SWIG_OLDOBJ((0)) ;
7734 bool temp3 ;
7735 bool val3 ;
7736 int ecode3 = 0 ;
7737 PyObject * obj0 = 0 ;
7738 PyObject * obj1 = 0 ;
7739 PyObject * obj2 = 0 ;
7740
7741 if (!PyArg_ParseTuple(args,(char *)"OOO:GEnergies_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7743 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_save" "', argument " "1"" of type '" "GEnergies const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_save" "', argument "
"1"" of type '" "GEnergies const *""'"); goto fail; } while(
0)
;
7745 }
7746 arg1 = reinterpret_cast< GEnergies * >(argp1);
7747 {
7748 std::string *ptr = (std::string *)0;
7749 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7750 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7752 }
7753 if (!ptr) {
7754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7755 }
7756 arg2 = ptr;
7757 }
7758 ecode3 = SWIG_AsVal_bool(obj2, &val3);
7759 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7760 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GEnergies_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GEnergies_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
7761 }
7762 temp3 = static_cast< bool >(val3);
7763 arg3 = &temp3;
7764 {
7765 try {
7766 ((GEnergies const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
7767 }
7768 catch (const GException::out_of_range& e) {
7769 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7770 }
7771 catch (const GExceptionHandler& e) {
7772 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7773 }
7774 catch (const std::exception& e) {
7775 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7776 }
7777 }
7778 resultobj = SWIG_Py_Void();
7779 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7780 return resultobj;
7781fail:
7782 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7783 return NULL__null;
7784}
7785
7786
7787SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_save(PyObject *self, PyObject *args) {
7788 int argc;
7789 PyObject *argv[5];
7790 int ii;
7791
7792 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7793 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7794 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
7795 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7796 }
7797 if (argc == 3) {
7798 int _v;
7799 void *vptr = 0;
7800 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
7801 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7802 if (_v) {
7803 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7804 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7805 if (_v) {
7806 {
7807 int res = SWIG_AsVal_bool(argv[2], NULL__null);
7808 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7809 }
7810 if (_v) {
7811 return _wrap_GEnergies_save__SWIG_1(self, args);
7812 }
7813 }
7814 }
7815 }
7816 if (argc == 4) {
7817 int _v;
7818 void *vptr = 0;
7819 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
7820 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7821 if (_v) {
7822 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7823 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7824 if (_v) {
7825 {
7826 int res = SWIG_AsVal_bool(argv[2], NULL__null);
7827 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7828 }
7829 if (_v) {
7830 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
7831 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7832 if (_v) {
7833 return _wrap_GEnergies_save__SWIG_0(self, args);
7834 }
7835 }
7836 }
7837 }
7838 }
7839
7840fail:
7841 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergies_save'.\n"
7842 " Possible C/C++ prototypes are:\n"
7843 " GEnergies::save(std::string const &,bool const &,std::string const &) const\n"
7844 " GEnergies::save(std::string const &,bool const &) const\n");
7845 return 0;
7846}
7847
7848
7849SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7850 PyObject *resultobj = 0;
7851 GEnergies *arg1 = (GEnergies *) 0 ;
7852 GFitsTable *arg2 = 0 ;
7853 void *argp1 = 0 ;
7854 int res1 = 0 ;
7855 void *argp2 = 0 ;
7856 int res2 = 0 ;
7857 PyObject * obj0 = 0 ;
7858 PyObject * obj1 = 0 ;
7859
7860 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_read",&obj0,&obj1)) SWIG_failgoto fail;
7861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7862 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_read" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_read" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
7864 }
7865 arg1 = reinterpret_cast< GEnergies * >(argp1);
7866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsTable, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[14]
, 0 | 0, 0)
;
7867 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_read" "', argument "
"2"" of type '" "GFitsTable const &""'"); goto fail; } while
(0)
;
7869 }
7870 if (!argp2) {
7871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_read" "', argument " "2"" of type '"
"GFitsTable const &""'"); goto fail; } while(0)
;
7872 }
7873 arg2 = reinterpret_cast< GFitsTable * >(argp2);
7874 {
7875 try {
7876 (arg1)->read((GFitsTable const &)*arg2);
7877 }
7878 catch (const GException::out_of_range& e) {
7879 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7880 }
7881 catch (const GExceptionHandler& e) {
7882 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7883 }
7884 catch (const std::exception& e) {
7885 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7886 }
7887 }
7888 resultobj = SWIG_Py_Void();
7889 return resultobj;
7890fail:
7891 return NULL__null;
7892}
7893
7894
7895SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7896 PyObject *resultobj = 0;
7897 GEnergies *arg1 = (GEnergies *) 0 ;
7898 GFits *arg2 = 0 ;
7899 std::string *arg3 = 0 ;
7900 void *argp1 = 0 ;
7901 int res1 = 0 ;
7902 void *argp2 = 0 ;
7903 int res2 = 0 ;
7904 int res3 = SWIG_OLDOBJ((0)) ;
7905 PyObject * obj0 = 0 ;
7906 PyObject * obj1 = 0 ;
7907 PyObject * obj2 = 0 ;
7908
7909 if (!PyArg_ParseTuple(args,(char *)"OOO:GEnergies_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7911 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_write" "', argument " "1"" of type '" "GEnergies const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_write" "', argument "
"1"" of type '" "GEnergies const *""'"); goto fail; } while(
0)
;
7913 }
7914 arg1 = reinterpret_cast< GEnergies * >(argp1);
7915 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
7916 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
7918 }
7919 if (!argp2) {
7920 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
7921 }
7922 arg2 = reinterpret_cast< GFits * >(argp2);
7923 {
7924 std::string *ptr = (std::string *)0;
7925 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
7926 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7927 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEnergies_write" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEnergies_write" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7928 }
7929 if (!ptr) {
7930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_write" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_write" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7931 }
7932 arg3 = ptr;
7933 }
7934 {
7935 try {
7936 ((GEnergies const *)arg1)->write(*arg2,(std::string const &)*arg3);
7937 }
7938 catch (const GException::out_of_range& e) {
7939 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7940 }
7941 catch (const GExceptionHandler& e) {
7942 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7943 }
7944 catch (const std::exception& e) {
7945 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7946 }
7947 }
7948 resultobj = SWIG_Py_Void();
7949 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
7950 return resultobj;
7951fail:
7952 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
7953 return NULL__null;
7954}
7955
7956
7957SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7958 PyObject *resultobj = 0;
7959 GEnergies *arg1 = (GEnergies *) 0 ;
7960 GFits *arg2 = 0 ;
7961 void *argp1 = 0 ;
7962 int res1 = 0 ;
7963 void *argp2 = 0 ;
7964 int res2 = 0 ;
7965 PyObject * obj0 = 0 ;
7966 PyObject * obj1 = 0 ;
7967
7968 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies_write",&obj0,&obj1)) SWIG_failgoto fail;
7969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
7970 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_write" "', argument " "1"" of type '" "GEnergies const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_write" "', argument "
"1"" of type '" "GEnergies const *""'"); goto fail; } while(
0)
;
7972 }
7973 arg1 = reinterpret_cast< GEnergies * >(argp1);
7974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
7975 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEnergies_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEnergies_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
7977 }
7978 if (!argp2) {
7979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
7980 }
7981 arg2 = reinterpret_cast< GFits * >(argp2);
7982 {
7983 try {
7984 ((GEnergies const *)arg1)->write(*arg2);
7985 }
7986 catch (const GException::out_of_range& e) {
7987 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7988 }
7989 catch (const GExceptionHandler& e) {
7990 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7991 }
7992 catch (const std::exception& e) {
7993 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7994 }
7995 }
7996 resultobj = SWIG_Py_Void();
7997 return resultobj;
7998fail:
7999 return NULL__null;
8000}
8001
8002
8003SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_write(PyObject *self, PyObject *args) {
8004 int argc;
8005 PyObject *argv[4];
8006 int ii;
8007
8008 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8009 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8010 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
8011 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8012 }
8013 if (argc == 2) {
8014 int _v;
8015 void *vptr = 0;
8016 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
8017 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8018 if (_v) {
8019 void *vptr = 0;
8020 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[12
], 0, 0)
;
8021 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8022 if (_v) {
8023 return _wrap_GEnergies_write__SWIG_1(self, args);
8024 }
8025 }
8026 }
8027 if (argc == 3) {
8028 int _v;
8029 void *vptr = 0;
8030 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEnergies, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
8031 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8032 if (_v) {
8033 void *vptr = 0;
8034 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[12
], 0, 0)
;
8035 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8036 if (_v) {
8037 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
8038 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8039 if (_v) {
8040 return _wrap_GEnergies_write__SWIG_0(self, args);
8041 }
8042 }
8043 }
8044 }
8045
8046fail:
8047 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEnergies_write'.\n"
8048 " Possible C/C++ prototypes are:\n"
8049 " GEnergies::write(GFits &,std::string const &) const\n"
8050 " GEnergies::write(GFits &) const\n");
8051 return 0;
8052}
8053
8054
8055SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8056 PyObject *resultobj = 0;
8057 GEnergies *arg1 = (GEnergies *) 0 ;
8058 int *arg2 = 0 ;
8059 void *argp1 = 0 ;
8060 int res1 = 0 ;
8061 int temp2 ;
8062 int val2 ;
8063 int ecode2 = 0 ;
8064 PyObject * obj0 = 0 ;
8065 PyObject * obj1 = 0 ;
8066 GEnergy *result = 0 ;
8067
8068 if (!PyArg_ParseTuple(args,(char *)"OO:GEnergies___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
8069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
8070 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies___getitem__" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies___getitem__" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
8072 }
8073 arg1 = reinterpret_cast< GEnergies * >(argp1);
8074 ecode2 = SWIG_AsVal_int(obj1, &val2);
8075 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergies___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergies___getitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
8077 }
8078 temp2 = static_cast< int >(val2);
8079 arg2 = &temp2;
8080 {
8081 try {
8082 result = (GEnergy *) &GEnergies___getitem__(arg1,(int const &)*arg2);
8083 }
8084 catch (const GException::out_of_range& e) {
8085 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8086 }
8087 catch (const GExceptionHandler& e) {
8088 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8089 }
8090 catch (const std::exception& e) {
8091 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8092 }
8093 }
8094 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[5], 0 |
0)
;
8095 return resultobj;
8096fail:
8097 return NULL__null;
8098}
8099
8100
8101SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8102 PyObject *resultobj = 0;
8103 GEnergies *arg1 = (GEnergies *) 0 ;
8104 int *arg2 = 0 ;
8105 GEnergy *arg3 = 0 ;
8106 void *argp1 = 0 ;
8107 int res1 = 0 ;
8108 int temp2 ;
8109 int val2 ;
8110 int ecode2 = 0 ;
8111 void *argp3 = 0 ;
8112 int res3 = 0 ;
8113 PyObject * obj0 = 0 ;
8114 PyObject * obj1 = 0 ;
8115 PyObject * obj2 = 0 ;
8116
8117 if (!PyArg_ParseTuple(args,(char *)"OOO:GEnergies___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
8118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
8119 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies___setitem__" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies___setitem__" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
8121 }
8122 arg1 = reinterpret_cast< GEnergies * >(argp1);
8123 ecode2 = SWIG_AsVal_int(obj1, &val2);
8124 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEnergies___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEnergies___setitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
8126 }
8127 temp2 = static_cast< int >(val2);
8128 arg2 = &temp2;
8129 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
8130 if (!SWIG_IsOK(res3)(res3 >= 0)) {
8131 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEnergies___setitem__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEnergies___setitem__" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
8132 }
8133 if (!argp3) {
8134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEnergies___setitem__" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEnergies___setitem__" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
8135 }
8136 arg3 = reinterpret_cast< GEnergy * >(argp3);
8137 {
8138 try {
8139 GEnergies___setitem__(arg1,(int const &)*arg2,(GEnergy const &)*arg3);
8140 }
8141 catch (const GException::out_of_range& e) {
8142 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8143 }
8144 catch (const GExceptionHandler& e) {
8145 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8146 }
8147 catch (const std::exception& e) {
8148 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8149 }
8150 }
8151 resultobj = SWIG_Py_Void();
8152 return resultobj;
8153fail:
8154 return NULL__null;
8155}
8156
8157
8158SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEnergies_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8159 PyObject *resultobj = 0;
8160 GEnergies *arg1 = (GEnergies *) 0 ;
8161 void *argp1 = 0 ;
8162 int res1 = 0 ;
8163 PyObject * obj0 = 0 ;
8164 GEnergies result;
8165
8166 if (!PyArg_ParseTuple(args,(char *)"O:GEnergies_copy",&obj0)) SWIG_failgoto fail;
8167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEnergies, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
8168 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEnergies_copy" "', argument " "1"" of type '" "GEnergies *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEnergies_copy" "', argument "
"1"" of type '" "GEnergies *""'"); goto fail; } while(0)
;
8170 }
8171 arg1 = reinterpret_cast< GEnergies * >(argp1);
8172 {
8173 try {
8174 result = GEnergies_copy(arg1);
8175 }
8176 catch (const GException::out_of_range& e) {
8177 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8178 }
8179 catch (const GExceptionHandler& e) {
8180 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8181 }
8182 catch (const std::exception& e) {
8183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8184 }
8185 }
8186 resultobj = SWIG_NewPointerObj((new GEnergies(static_cast< const GEnergies& >(result))), SWIGTYPE_p_GEnergies, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergies(static_cast<
const GEnergies& >(result))), swig_types[4], 0x1 | 0)
;
8187 return resultobj;
8188fail:
8189 return NULL__null;
8190}
8191
8192
8193SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEnergies_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8194 PyObject *obj;
8195 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
8196 SWIG_TypeNewClientData(SWIGTYPE_p_GEnergiesswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
8197 return SWIG_Py_Void();
8198}
8199
8200SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTime__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8201 PyObject *resultobj = 0;
8202 GTime *result = 0 ;
8203
8204 if (!PyArg_ParseTuple(args,(char *)":new_GTime")) SWIG_failgoto fail;
8205 {
8206 try {
8207 result = (GTime *)new GTime();
8208 }
8209 catch (const GException::out_of_range& e) {
8210 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8211 }
8212 catch (const GExceptionHandler& e) {
8213 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8214 }
8215 catch (const std::exception& e) {
8216 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8217 }
8218 }
8219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTime, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
8220 return resultobj;
8221fail:
8222 return NULL__null;
8223}
8224
8225
8226SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTime__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8227 PyObject *resultobj = 0;
8228 GTime *arg1 = 0 ;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 PyObject * obj0 = 0 ;
8232 GTime *result = 0 ;
8233
8234 if (!PyArg_ParseTuple(args,(char *)"O:new_GTime",&obj0)) SWIG_failgoto fail;
8235 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8236 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GTime" "', argument " "1"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GTime" "', argument " "1"
" of type '" "GTime const &""'"); goto fail; } while(0)
;
8238 }
8239 if (!argp1) {
8240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTime" "', argument " "1"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTime" "', argument " "1"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
8241 }
8242 arg1 = reinterpret_cast< GTime * >(argp1);
8243 {
8244 try {
8245 result = (GTime *)new GTime((GTime const &)*arg1);
8246 }
8247 catch (const GException::out_of_range& e) {
8248 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8249 }
8250 catch (const GExceptionHandler& e) {
8251 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8252 }
8253 catch (const std::exception& e) {
8254 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8255 }
8256 }
8257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTime, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
8258 return resultobj;
8259fail:
8260 return NULL__null;
8261}
8262
8263
8264SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTime__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8265 PyObject *resultobj = 0;
8266 double *arg1 = 0 ;
8267 std::string *arg2 = 0 ;
8268 double temp1 ;
8269 double val1 ;
8270 int ecode1 = 0 ;
8271 int res2 = SWIG_OLDOBJ((0)) ;
8272 PyObject * obj0 = 0 ;
8273 PyObject * obj1 = 0 ;
8274 GTime *result = 0 ;
8275
8276 if (!PyArg_ParseTuple(args,(char *)"OO:new_GTime",&obj0,&obj1)) SWIG_failgoto fail;
8277 ecode1 = SWIG_AsVal_double(obj0, &val1);
8278 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
8279 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTime" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTime" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
8280 }
8281 temp1 = static_cast< double >(val1);
8282 arg1 = &temp1;
8283 {
8284 std::string *ptr = (std::string *)0;
8285 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8286 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GTime" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GTime" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8288 }
8289 if (!ptr) {
8290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTime" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTime" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
8291 }
8292 arg2 = ptr;
8293 }
8294 {
8295 try {
8296 result = (GTime *)new GTime((double const &)*arg1,(std::string const &)*arg2);
8297 }
8298 catch (const GException::out_of_range& e) {
8299 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8300 }
8301 catch (const GExceptionHandler& e) {
8302 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8303 }
8304 catch (const std::exception& e) {
8305 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8306 }
8307 }
8308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTime, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
8309 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8310 return resultobj;
8311fail:
8312 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8313 return NULL__null;
8314}
8315
8316
8317SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTime__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8318 PyObject *resultobj = 0;
8319 double *arg1 = 0 ;
8320 double temp1 ;
8321 double val1 ;
8322 int ecode1 = 0 ;
8323 PyObject * obj0 = 0 ;
8324 GTime *result = 0 ;
8325
8326 if (!PyArg_ParseTuple(args,(char *)"O:new_GTime",&obj0)) SWIG_failgoto fail;
8327 ecode1 = SWIG_AsVal_double(obj0, &val1);
8328 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
8329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTime" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTime" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
8330 }
8331 temp1 = static_cast< double >(val1);
8332 arg1 = &temp1;
8333 {
8334 try {
8335 result = (GTime *)new GTime((double const &)*arg1);
8336 }
8337 catch (const GException::out_of_range& e) {
8338 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8339 }
8340 catch (const GExceptionHandler& e) {
8341 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8342 }
8343 catch (const std::exception& e) {
8344 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8345 }
8346 }
8347 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTime, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
8348 return resultobj;
8349fail:
8350 return NULL__null;
8351}
8352
8353
8354SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTime__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8355 PyObject *resultobj = 0;
8356 double *arg1 = 0 ;
8357 GTimeReference *arg2 = 0 ;
8358 double temp1 ;
8359 double val1 ;
8360 int ecode1 = 0 ;
8361 void *argp2 = 0 ;
8362 int res2 = 0 ;
8363 PyObject * obj0 = 0 ;
8364 PyObject * obj1 = 0 ;
8365 GTime *result = 0 ;
8366
8367 if (!PyArg_ParseTuple(args,(char *)"OO:new_GTime",&obj0,&obj1)) SWIG_failgoto fail;
8368 ecode1 = SWIG_AsVal_double(obj0, &val1);
8369 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
8370 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTime" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTime" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
8371 }
8372 temp1 = static_cast< double >(val1);
8373 arg1 = &temp1;
8374 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTimeReference, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[33]
, 0 | 0, 0)
;
8375 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GTime" "', argument " "2"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GTime" "', argument " "2"
" of type '" "GTimeReference const &""'"); goto fail; } while
(0)
;
8377 }
8378 if (!argp2) {
8379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTime" "', argument " "2"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTime" "', argument " "2"" of type '" "GTimeReference const &"
"'"); goto fail; } while(0)
;
8380 }
8381 arg2 = reinterpret_cast< GTimeReference * >(argp2);
8382 {
8383 try {
8384 result = (GTime *)new GTime((double const &)*arg1,(GTimeReference const &)*arg2);
8385 }
8386 catch (const GException::out_of_range& e) {
8387 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8388 }
8389 catch (const GExceptionHandler& e) {
8390 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8391 }
8392 catch (const std::exception& e) {
8393 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8394 }
8395 }
8396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTime, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[32], (
(0x1 << 1) | 0x1) | 0)
;
8397 return resultobj;
8398fail:
8399 return NULL__null;
8400}
8401
8402
8403SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTime(PyObject *self, PyObject *args) {
8404 int argc;
8405 PyObject *argv[3];
8406 int ii;
8407
8408 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8409 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8410 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8411 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8412 }
8413 if (argc == 0) {
8414 return _wrap_new_GTime__SWIG_0(self, args);
8415 }
8416 if (argc == 1) {
8417 int _v;
8418 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[32], 0, 0
)
;
8419 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8420 if (_v) {
8421 return _wrap_new_GTime__SWIG_1(self, args);
8422 }
8423 }
8424 if (argc == 1) {
8425 int _v;
8426 {
8427 int res = SWIG_AsVal_double(argv[0], NULL__null);
8428 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8429 }
8430 if (_v) {
8431 return _wrap_new_GTime__SWIG_3(self, args);
8432 }
8433 }
8434 if (argc == 2) {
8435 int _v;
8436 {
8437 int res = SWIG_AsVal_double(argv[0], NULL__null);
8438 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8439 }
8440 if (_v) {
8441 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[33], 0, 0
)
;
8442 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8443 if (_v) {
8444 return _wrap_new_GTime__SWIG_4(self, args);
8445 }
8446 }
8447 }
8448 if (argc == 2) {
8449 int _v;
8450 {
8451 int res = SWIG_AsVal_double(argv[0], NULL__null);
8452 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8453 }
8454 if (_v) {
8455 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8456 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8457 if (_v) {
8458 return _wrap_new_GTime__SWIG_2(self, args);
8459 }
8460 }
8461 }
8462
8463fail:
8464 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GTime'.\n"
8465 " Possible C/C++ prototypes are:\n"
8466 " GTime::GTime()\n"
8467 " GTime::GTime(GTime const &)\n"
8468 " GTime::GTime(double const &,std::string const &)\n"
8469 " GTime::GTime(double const &)\n"
8470 " GTime::GTime(double const &,GTimeReference const &)\n");
8471 return 0;
8472}
8473
8474
8475SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8476 PyObject *resultobj = 0;
8477 GTime *arg1 = (GTime *) 0 ;
8478 void *argp1 = 0 ;
8479 int res1 = 0 ;
8480 PyObject * obj0 = 0 ;
8481
8482 if (!PyArg_ParseTuple(args,(char *)"O:delete_GTime",&obj0)) SWIG_failgoto fail;
8483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0x1 | 0, 0)
;
8484 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GTime" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GTime" "', argument "
"1"" of type '" "GTime *""'"); goto fail; } while(0)
;
8486 }
8487 arg1 = reinterpret_cast< GTime * >(argp1);
8488 {
8489 try {
8490 delete arg1;
8491 }
8492 catch (const GException::out_of_range& e) {
8493 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8494 }
8495 catch (const GExceptionHandler& e) {
8496 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8497 }
8498 catch (const std::exception& e) {
8499 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8500 }
8501 }
8502 resultobj = SWIG_Py_Void();
8503 return resultobj;
8504fail:
8505 return NULL__null;
8506}
8507
8508
8509SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8510 PyObject *resultobj = 0;
8511 GTime *arg1 = (GTime *) 0 ;
8512 void *argp1 = 0 ;
8513 int res1 = 0 ;
8514 PyObject * obj0 = 0 ;
8515
8516 if (!PyArg_ParseTuple(args,(char *)"O:GTime_clear",&obj0)) SWIG_failgoto fail;
8517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8518 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_clear" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_clear" "', argument "
"1"" of type '" "GTime *""'"); goto fail; } while(0)
;
8520 }
8521 arg1 = reinterpret_cast< GTime * >(argp1);
8522 {
8523 try {
8524 (arg1)->clear();
8525 }
8526 catch (const GException::out_of_range& e) {
8527 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8528 }
8529 catch (const GExceptionHandler& e) {
8530 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8531 }
8532 catch (const std::exception& e) {
8533 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8534 }
8535 }
8536 resultobj = SWIG_Py_Void();
8537 return resultobj;
8538fail:
8539 return NULL__null;
8540}
8541
8542
8543SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8544 PyObject *resultobj = 0;
8545 GTime *arg1 = (GTime *) 0 ;
8546 void *argp1 = 0 ;
8547 int res1 = 0 ;
8548 PyObject * obj0 = 0 ;
8549 GTime *result = 0 ;
8550
8551 if (!PyArg_ParseTuple(args,(char *)"O:GTime_clone",&obj0)) SWIG_failgoto fail;
8552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8553 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_clone" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_clone" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
8555 }
8556 arg1 = reinterpret_cast< GTime * >(argp1);
8557 {
8558 try {
8559 result = (GTime *)((GTime const *)arg1)->clone();
8560 }
8561 catch (const GException::out_of_range& e) {
8562 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8563 }
8564 catch (const GExceptionHandler& e) {
8565 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8566 }
8567 catch (const std::exception& e) {
8568 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8569 }
8570 }
8571 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[32], 0
| 0)
;
8572 return resultobj;
8573fail:
8574 return NULL__null;
8575}
8576
8577
8578SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_jd__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8579 PyObject *resultobj = 0;
8580 GTime *arg1 = (GTime *) 0 ;
8581 void *argp1 = 0 ;
8582 int res1 = 0 ;
8583 PyObject * obj0 = 0 ;
8584 double result;
8585
8586 if (!PyArg_ParseTuple(args,(char *)"O:GTime_jd",&obj0)) SWIG_failgoto fail;
8587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8588 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_jd" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_jd" "', argument " "1"
" of type '" "GTime const *""'"); goto fail; } while(0)
;
8590 }
8591 arg1 = reinterpret_cast< GTime * >(argp1);
8592 {
8593 try {
8594 result = (double)((GTime const *)arg1)->jd();
8595 }
8596 catch (const GException::out_of_range& e) {
8597 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8598 }
8599 catch (const GExceptionHandler& e) {
8600 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8601 }
8602 catch (const std::exception& e) {
8603 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8604 }
8605 }
8606 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
8607 return resultobj;
8608fail:
8609 return NULL__null;
8610}
8611
8612
8613SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_mjd__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8614 PyObject *resultobj = 0;
8615 GTime *arg1 = (GTime *) 0 ;
8616 void *argp1 = 0 ;
8617 int res1 = 0 ;
8618 PyObject * obj0 = 0 ;
8619 double result;
8620
8621 if (!PyArg_ParseTuple(args,(char *)"O:GTime_mjd",&obj0)) SWIG_failgoto fail;
8622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8623 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_mjd" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_mjd" "', argument " "1"
" of type '" "GTime const *""'"); goto fail; } while(0)
;
8625 }
8626 arg1 = reinterpret_cast< GTime * >(argp1);
8627 {
8628 try {
8629 result = (double)((GTime const *)arg1)->mjd();
8630 }
8631 catch (const GException::out_of_range& e) {
8632 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8633 }
8634 catch (const GExceptionHandler& e) {
8635 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8636 }
8637 catch (const std::exception& e) {
8638 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8639 }
8640 }
8641 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
8642 return resultobj;
8643fail:
8644 return NULL__null;
8645}
8646
8647
8648SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_secs__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8649 PyObject *resultobj = 0;
8650 GTime *arg1 = (GTime *) 0 ;
8651 void *argp1 = 0 ;
8652 int res1 = 0 ;
8653 PyObject * obj0 = 0 ;
8654 double *result = 0 ;
8655
8656 if (!PyArg_ParseTuple(args,(char *)"O:GTime_secs",&obj0)) SWIG_failgoto fail;
8657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8658 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_secs" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_secs" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
8660 }
8661 arg1 = reinterpret_cast< GTime * >(argp1);
8662 {
8663 try {
8664 result = (double *) &((GTime const *)arg1)->secs();
8665 }
8666 catch (const GException::out_of_range& e) {
8667 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8668 }
8669 catch (const GExceptionHandler& e) {
8670 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8671 }
8672 catch (const std::exception& e) {
8673 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8674 }
8675 }
8676 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
8677 return resultobj;
8678fail:
8679 return NULL__null;
8680}
8681
8682
8683SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_days__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8684 PyObject *resultobj = 0;
8685 GTime *arg1 = (GTime *) 0 ;
8686 void *argp1 = 0 ;
8687 int res1 = 0 ;
8688 PyObject * obj0 = 0 ;
8689 double result;
8690
8691 if (!PyArg_ParseTuple(args,(char *)"O:GTime_days",&obj0)) SWIG_failgoto fail;
8692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8693 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_days" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_days" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
8695 }
8696 arg1 = reinterpret_cast< GTime * >(argp1);
8697 {
8698 try {
8699 result = (double)((GTime const *)arg1)->days();
8700 }
8701 catch (const GException::out_of_range& e) {
8702 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8703 }
8704 catch (const GExceptionHandler& e) {
8705 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8706 }
8707 catch (const std::exception& e) {
8708 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8709 }
8710 }
8711 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
8712 return resultobj;
8713fail:
8714 return NULL__null;
8715}
8716
8717
8718SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8719 PyObject *resultobj = 0;
8720 GTime *arg1 = (GTime *) 0 ;
8721 GTimeReference *arg2 = 0 ;
8722 void *argp1 = 0 ;
8723 int res1 = 0 ;
8724 void *argp2 = 0 ;
8725 int res2 = 0 ;
8726 PyObject * obj0 = 0 ;
8727 PyObject * obj1 = 0 ;
8728 double result;
8729
8730 if (!PyArg_ParseTuple(args,(char *)"OO:GTime_convert",&obj0,&obj1)) SWIG_failgoto fail;
8731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8732 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_convert" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_convert" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
8734 }
8735 arg1 = reinterpret_cast< GTime * >(argp1);
8736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTimeReference, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[33]
, 0 | 0, 0)
;
8737 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime_convert" "', argument " "2"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime_convert" "', argument "
"2"" of type '" "GTimeReference const &""'"); goto fail;
} while(0)
;
8739 }
8740 if (!argp2) {
8741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime_convert" "', argument " "2"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime_convert" "', argument " "2"" of type '"
"GTimeReference const &""'"); goto fail; } while(0)
;
8742 }
8743 arg2 = reinterpret_cast< GTimeReference * >(argp2);
8744 {
8745 try {
8746 result = (double)((GTime const *)arg1)->convert((GTimeReference const &)*arg2);
8747 }
8748 catch (const GException::out_of_range& e) {
8749 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8750 }
8751 catch (const GExceptionHandler& e) {
8752 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8753 }
8754 catch (const std::exception& e) {
8755 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8756 }
8757 }
8758 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
8759 return resultobj;
8760fail:
8761 return NULL__null;
8762}
8763
8764
8765SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_jd__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8766 PyObject *resultobj = 0;
8767 GTime *arg1 = (GTime *) 0 ;
8768 double *arg2 = 0 ;
8769 void *argp1 = 0 ;
8770 int res1 = 0 ;
8771 double temp2 ;
8772 double val2 ;
8773 int ecode2 = 0 ;
8774 PyObject * obj0 = 0 ;
8775 PyObject * obj1 = 0 ;
8776
8777 if (!PyArg_ParseTuple(args,(char *)"OO:GTime_jd",&obj0,&obj1)) SWIG_failgoto fail;
8778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8779 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_jd" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_jd" "', argument " "1"
" of type '" "GTime *""'"); goto fail; } while(0)
;
8781 }
8782 arg1 = reinterpret_cast< GTime * >(argp1);
8783 ecode2 = SWIG_AsVal_double(obj1, &val2);
8784 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTime_jd" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTime_jd" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
8786 }
8787 temp2 = static_cast< double >(val2);
8788 arg2 = &temp2;
8789 {
8790 try {
8791 (arg1)->jd((double const &)*arg2);
8792 }
8793 catch (const GException::out_of_range& e) {
8794 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8795 }
8796 catch (const GExceptionHandler& e) {
8797 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8798 }
8799 catch (const std::exception& e) {
8800 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8801 }
8802 }
8803 resultobj = SWIG_Py_Void();
8804 return resultobj;
8805fail:
8806 return NULL__null;
8807}
8808
8809
8810SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_jd(PyObject *self, PyObject *args) {
8811 int argc;
8812 PyObject *argv[3];
8813 int ii;
8814
8815 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8816 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8817 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8818 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8819 }
8820 if (argc == 1) {
8821 int _v;
8822 void *vptr = 0;
8823 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
8824 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8825 if (_v) {
8826 return _wrap_GTime_jd__SWIG_0(self, args);
8827 }
8828 }
8829 if (argc == 2) {
8830 int _v;
8831 void *vptr = 0;
8832 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
8833 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8834 if (_v) {
8835 {
8836 int res = SWIG_AsVal_double(argv[1], NULL__null);
8837 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8838 }
8839 if (_v) {
8840 return _wrap_GTime_jd__SWIG_1(self, args);
8841 }
8842 }
8843 }
8844
8845fail:
8846 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTime_jd'.\n"
8847 " Possible C/C++ prototypes are:\n"
8848 " GTime::jd() const\n"
8849 " GTime::jd(double const &)\n");
8850 return 0;
8851}
8852
8853
8854SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_mjd__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8855 PyObject *resultobj = 0;
8856 GTime *arg1 = (GTime *) 0 ;
8857 double *arg2 = 0 ;
8858 void *argp1 = 0 ;
8859 int res1 = 0 ;
8860 double temp2 ;
8861 double val2 ;
8862 int ecode2 = 0 ;
8863 PyObject * obj0 = 0 ;
8864 PyObject * obj1 = 0 ;
8865
8866 if (!PyArg_ParseTuple(args,(char *)"OO:GTime_mjd",&obj0,&obj1)) SWIG_failgoto fail;
8867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8868 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_mjd" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_mjd" "', argument " "1"
" of type '" "GTime *""'"); goto fail; } while(0)
;
8870 }
8871 arg1 = reinterpret_cast< GTime * >(argp1);
8872 ecode2 = SWIG_AsVal_double(obj1, &val2);
8873 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8874 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTime_mjd" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTime_mjd" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
8875 }
8876 temp2 = static_cast< double >(val2);
8877 arg2 = &temp2;
8878 {
8879 try {
8880 (arg1)->mjd((double const &)*arg2);
8881 }
8882 catch (const GException::out_of_range& e) {
8883 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8884 }
8885 catch (const GExceptionHandler& e) {
8886 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8887 }
8888 catch (const std::exception& e) {
8889 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8890 }
8891 }
8892 resultobj = SWIG_Py_Void();
8893 return resultobj;
8894fail:
8895 return NULL__null;
8896}
8897
8898
8899SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_mjd(PyObject *self, PyObject *args) {
8900 int argc;
8901 PyObject *argv[3];
8902 int ii;
8903
8904 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8905 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8906 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8907 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8908 }
8909 if (argc == 1) {
8910 int _v;
8911 void *vptr = 0;
8912 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
8913 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8914 if (_v) {
8915 return _wrap_GTime_mjd__SWIG_0(self, args);
8916 }
8917 }
8918 if (argc == 2) {
8919 int _v;
8920 void *vptr = 0;
8921 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
8922 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8923 if (_v) {
8924 {
8925 int res = SWIG_AsVal_double(argv[1], NULL__null);
8926 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8927 }
8928 if (_v) {
8929 return _wrap_GTime_mjd__SWIG_1(self, args);
8930 }
8931 }
8932 }
8933
8934fail:
8935 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTime_mjd'.\n"
8936 " Possible C/C++ prototypes are:\n"
8937 " GTime::mjd() const\n"
8938 " GTime::mjd(double const &)\n");
8939 return 0;
8940}
8941
8942
8943SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_secs__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8944 PyObject *resultobj = 0;
8945 GTime *arg1 = (GTime *) 0 ;
8946 double *arg2 = 0 ;
8947 void *argp1 = 0 ;
8948 int res1 = 0 ;
8949 double temp2 ;
8950 double val2 ;
8951 int ecode2 = 0 ;
8952 PyObject * obj0 = 0 ;
8953 PyObject * obj1 = 0 ;
8954
8955 if (!PyArg_ParseTuple(args,(char *)"OO:GTime_secs",&obj0,&obj1)) SWIG_failgoto fail;
8956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
8957 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_secs" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_secs" "', argument "
"1"" of type '" "GTime *""'"); goto fail; } while(0)
;
8959 }
8960 arg1 = reinterpret_cast< GTime * >(argp1);
8961 ecode2 = SWIG_AsVal_double(obj1, &val2);
8962 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
8963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTime_secs" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTime_secs" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
8964 }
8965 temp2 = static_cast< double >(val2);
8966 arg2 = &temp2;
8967 {
8968 try {
8969 (arg1)->secs((double const &)*arg2);
8970 }
8971 catch (const GException::out_of_range& e) {
8972 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8973 }
8974 catch (const GExceptionHandler& e) {
8975 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8976 }
8977 catch (const std::exception& e) {
8978 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8979 }
8980 }
8981 resultobj = SWIG_Py_Void();
8982 return resultobj;
8983fail:
8984 return NULL__null;
8985}
8986
8987
8988SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_secs(PyObject *self, PyObject *args) {
8989 int argc;
8990 PyObject *argv[3];
8991 int ii;
8992
8993 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8994 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8995 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8996 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8997 }
8998 if (argc == 1) {
8999 int _v;
9000 void *vptr = 0;
9001 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
9002 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9003 if (_v) {
9004 return _wrap_GTime_secs__SWIG_0(self, args);
9005 }
9006 }
9007 if (argc == 2) {
9008 int _v;
9009 void *vptr = 0;
9010 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
9011 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9012 if (_v) {
9013 {
9014 int res = SWIG_AsVal_double(argv[1], NULL__null);
9015 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9016 }
9017 if (_v) {
9018 return _wrap_GTime_secs__SWIG_1(self, args);
9019 }
9020 }
9021 }
9022
9023fail:
9024 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTime_secs'.\n"
9025 " Possible C/C++ prototypes are:\n"
9026 " GTime::secs() const\n"
9027 " GTime::secs(double const &)\n");
9028 return 0;
9029}
9030
9031
9032SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_days__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9033 PyObject *resultobj = 0;
9034 GTime *arg1 = (GTime *) 0 ;
9035 double *arg2 = 0 ;
9036 void *argp1 = 0 ;
9037 int res1 = 0 ;
9038 double temp2 ;
9039 double val2 ;
9040 int ecode2 = 0 ;
9041 PyObject * obj0 = 0 ;
9042 PyObject * obj1 = 0 ;
9043
9044 if (!PyArg_ParseTuple(args,(char *)"OO:GTime_days",&obj0,&obj1)) SWIG_failgoto fail;
9045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9046 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_days" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_days" "', argument "
"1"" of type '" "GTime *""'"); goto fail; } while(0)
;
9048 }
9049 arg1 = reinterpret_cast< GTime * >(argp1);
9050 ecode2 = SWIG_AsVal_double(obj1, &val2);
9051 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTime_days" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTime_days" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9053 }
9054 temp2 = static_cast< double >(val2);
9055 arg2 = &temp2;
9056 {
9057 try {
9058 (arg1)->days((double const &)*arg2);
9059 }
9060 catch (const GException::out_of_range& e) {
9061 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9062 }
9063 catch (const GExceptionHandler& e) {
9064 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9065 }
9066 catch (const std::exception& e) {
9067 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9068 }
9069 }
9070 resultobj = SWIG_Py_Void();
9071 return resultobj;
9072fail:
9073 return NULL__null;
9074}
9075
9076
9077SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_days(PyObject *self, PyObject *args) {
9078 int argc;
9079 PyObject *argv[3];
9080 int ii;
9081
9082 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9083 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9084 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9085 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9086 }
9087 if (argc == 1) {
9088 int _v;
9089 void *vptr = 0;
9090 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
9091 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9092 if (_v) {
9093 return _wrap_GTime_days__SWIG_0(self, args);
9094 }
9095 }
9096 if (argc == 2) {
9097 int _v;
9098 void *vptr = 0;
9099 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[32
], 0, 0)
;
9100 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9101 if (_v) {
9102 {
9103 int res = SWIG_AsVal_double(argv[1], NULL__null);
9104 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9105 }
9106 if (_v) {
9107 return _wrap_GTime_days__SWIG_1(self, args);
9108 }
9109 }
9110 }
9111
9112fail:
9113 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTime_days'.\n"
9114 " Possible C/C++ prototypes are:\n"
9115 " GTime::days() const\n"
9116 " GTime::days(double const &)\n");
9117 return 0;
9118}
9119
9120
9121SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9122 PyObject *resultobj = 0;
9123 GTime *arg1 = (GTime *) 0 ;
9124 double *arg2 = 0 ;
9125 GTimeReference *arg3 = 0 ;
9126 void *argp1 = 0 ;
9127 int res1 = 0 ;
9128 double temp2 ;
9129 double val2 ;
9130 int ecode2 = 0 ;
9131 void *argp3 = 0 ;
9132 int res3 = 0 ;
9133 PyObject * obj0 = 0 ;
9134 PyObject * obj1 = 0 ;
9135 PyObject * obj2 = 0 ;
9136
9137 if (!PyArg_ParseTuple(args,(char *)"OOO:GTime_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9139 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_set" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_set" "', argument " "1"
" of type '" "GTime *""'"); goto fail; } while(0)
;
9141 }
9142 arg1 = reinterpret_cast< GTime * >(argp1);
9143 ecode2 = SWIG_AsVal_double(obj1, &val2);
9144 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTime_set" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTime_set" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9146 }
9147 temp2 = static_cast< double >(val2);
9148 arg2 = &temp2;
9149 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTimeReference, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[33]
, 0 | 0, 0)
;
9150 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9151 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTime_set" "', argument " "3"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GTime_set" "', argument " "3"
" of type '" "GTimeReference const &""'"); goto fail; } while
(0)
;
9152 }
9153 if (!argp3) {
9154 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime_set" "', argument " "3"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime_set" "', argument " "3"" of type '" "GTimeReference const &"
"'"); goto fail; } while(0)
;
9155 }
9156 arg3 = reinterpret_cast< GTimeReference * >(argp3);
9157 {
9158 try {
9159 (arg1)->set((double const &)*arg2,(GTimeReference const &)*arg3);
9160 }
9161 catch (const GException::out_of_range& e) {
9162 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9163 }
9164 catch (const GExceptionHandler& e) {
9165 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9166 }
9167 catch (const std::exception& e) {
9168 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9169 }
9170 }
9171 resultobj = SWIG_Py_Void();
9172 return resultobj;
9173fail:
9174 return NULL__null;
9175}
9176
9177
9178SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_reference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9179 PyObject *resultobj = 0;
9180 GTime *arg1 = (GTime *) 0 ;
9181 void *argp1 = 0 ;
9182 int res1 = 0 ;
9183 PyObject * obj0 = 0 ;
9184 GTimeReference result;
9185
9186 if (!PyArg_ParseTuple(args,(char *)"O:GTime_reference",&obj0)) SWIG_failgoto fail;
9187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9188 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_reference" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_reference" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9190 }
9191 arg1 = reinterpret_cast< GTime * >(argp1);
9192 {
9193 try {
9194 result = ((GTime const *)arg1)->reference();
9195 }
9196 catch (const GException::out_of_range& e) {
9197 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9198 }
9199 catch (const GExceptionHandler& e) {
9200 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9201 }
9202 catch (const std::exception& e) {
9203 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9204 }
9205 }
9206 resultobj = SWIG_NewPointerObj((new GTimeReference(static_cast< const GTimeReference& >(result))), SWIGTYPE_p_GTimeReference, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTimeReference(static_cast
< const GTimeReference& >(result))), swig_types[33]
, 0x1 | 0)
;
9207 return resultobj;
9208fail:
9209 return NULL__null;
9210}
9211
9212
9213SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9214 PyObject *resultobj = 0;
9215 GTime *arg1 = (GTime *) 0 ;
9216 GTime *arg2 = 0 ;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 void *argp2 = 0 ;
9220 int res2 = 0 ;
9221 PyObject * obj0 = 0 ;
9222 PyObject * obj1 = 0 ;
9223 GTime result;
9224
9225 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___add__",&obj0,&obj1)) SWIG_failgoto fail;
9226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9227 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___add__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___add__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9229 }
9230 arg1 = reinterpret_cast< GTime * >(argp1);
9231 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9232 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___add__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___add__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9234 }
9235 if (!argp2) {
9236 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___add__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___add__" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
9237 }
9238 arg2 = reinterpret_cast< GTime * >(argp2);
9239 {
9240 try {
9241 result = GTime___add__((GTime const *)arg1,(GTime const &)*arg2);
9242 }
9243 catch (const GException::out_of_range& e) {
9244 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9245 }
9246 catch (const GExceptionHandler& e) {
9247 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9248 }
9249 catch (const std::exception& e) {
9250 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9251 }
9252 }
9253 resultobj = SWIG_NewPointerObj((new GTime(static_cast< const GTime& >(result))), SWIGTYPE_p_GTime, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTime(static_cast< const
GTime& >(result))), swig_types[32], 0x1 | 0)
;
9254 return resultobj;
9255fail:
9256 return NULL__null;
9257}
9258
9259
9260SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9261 PyObject *resultobj = 0;
9262 GTime *arg1 = (GTime *) 0 ;
9263 GTime *arg2 = 0 ;
9264 void *argp1 = 0 ;
9265 int res1 = 0 ;
9266 void *argp2 = 0 ;
9267 int res2 = 0 ;
9268 PyObject * obj0 = 0 ;
9269 PyObject * obj1 = 0 ;
9270 GTime result;
9271
9272 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___sub__",&obj0,&obj1)) SWIG_failgoto fail;
9273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9274 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___sub__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___sub__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9276 }
9277 arg1 = reinterpret_cast< GTime * >(argp1);
9278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9279 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___sub__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___sub__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9281 }
9282 if (!argp2) {
9283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___sub__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___sub__" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
9284 }
9285 arg2 = reinterpret_cast< GTime * >(argp2);
9286 {
9287 try {
9288 result = GTime___sub__((GTime const *)arg1,(GTime const &)*arg2);
9289 }
9290 catch (const GException::out_of_range& e) {
9291 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9292 }
9293 catch (const GExceptionHandler& e) {
9294 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9295 }
9296 catch (const std::exception& e) {
9297 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9298 }
9299 }
9300 resultobj = SWIG_NewPointerObj((new GTime(static_cast< const GTime& >(result))), SWIGTYPE_p_GTime, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTime(static_cast< const
GTime& >(result))), swig_types[32], 0x1 | 0)
;
9301 return resultobj;
9302fail:
9303 return NULL__null;
9304}
9305
9306
9307SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___mul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9308 PyObject *resultobj = 0;
9309 GTime *arg1 = (GTime *) 0 ;
9310 double *arg2 = 0 ;
9311 void *argp1 = 0 ;
9312 int res1 = 0 ;
9313 double temp2 ;
9314 double val2 ;
9315 int ecode2 = 0 ;
9316 PyObject * obj0 = 0 ;
9317 PyObject * obj1 = 0 ;
9318 GTime result;
9319
9320 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___mul__",&obj0,&obj1)) SWIG_failgoto fail;
9321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9322 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___mul__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___mul__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9324 }
9325 arg1 = reinterpret_cast< GTime * >(argp1);
9326 ecode2 = SWIG_AsVal_double(obj1, &val2);
9327 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTime___mul__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTime___mul__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9329 }
9330 temp2 = static_cast< double >(val2);
9331 arg2 = &temp2;
9332 {
9333 try {
9334 result = GTime___mul__((GTime const *)arg1,(double const &)*arg2);
9335 }
9336 catch (const GException::out_of_range& e) {
9337 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9338 }
9339 catch (const GExceptionHandler& e) {
9340 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9341 }
9342 catch (const std::exception& e) {
9343 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9344 }
9345 }
9346 resultobj = SWIG_NewPointerObj((new GTime(static_cast< const GTime& >(result))), SWIGTYPE_p_GTime, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTime(static_cast< const
GTime& >(result))), swig_types[32], 0x1 | 0)
;
9347 return resultobj;
9348fail:
9349 return NULL__null;
9350}
9351
9352
9353SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___div__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9354 PyObject *resultobj = 0;
9355 GTime *arg1 = (GTime *) 0 ;
9356 double *arg2 = 0 ;
9357 void *argp1 = 0 ;
9358 int res1 = 0 ;
9359 double temp2 ;
9360 double val2 ;
9361 int ecode2 = 0 ;
9362 PyObject * obj0 = 0 ;
9363 PyObject * obj1 = 0 ;
9364 GTime result;
9365
9366 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___div__",&obj0,&obj1)) SWIG_failgoto fail;
9367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9368 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___div__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___div__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9370 }
9371 arg1 = reinterpret_cast< GTime * >(argp1);
9372 ecode2 = SWIG_AsVal_double(obj1, &val2);
9373 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
9374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTime___div__" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTime___div__" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
9375 }
9376 temp2 = static_cast< double >(val2);
9377 arg2 = &temp2;
9378 {
9379 try {
9380 result = GTime___div__((GTime const *)arg1,(double const &)*arg2);
9381 }
9382 catch (const GException::out_of_range& e) {
9383 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9384 }
9385 catch (const GExceptionHandler& e) {
9386 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9387 }
9388 catch (const std::exception& e) {
9389 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9390 }
9391 }
9392 resultobj = SWIG_NewPointerObj((new GTime(static_cast< const GTime& >(result))), SWIGTYPE_p_GTime, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTime(static_cast< const
GTime& >(result))), swig_types[32], 0x1 | 0)
;
9393 return resultobj;
9394fail:
9395 return NULL__null;
9396}
9397
9398
9399SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9400 PyObject *resultobj = 0;
9401 GTime *arg1 = (GTime *) 0 ;
9402 GTime *arg2 = 0 ;
9403 void *argp1 = 0 ;
9404 int res1 = 0 ;
9405 void *argp2 = 0 ;
9406 int res2 = 0 ;
9407 PyObject * obj0 = 0 ;
9408 PyObject * obj1 = 0 ;
9409 bool result;
9410
9411 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___eq__",&obj0,&obj1)) SWIG_failgoto fail;
9412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9413 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___eq__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___eq__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9415 }
9416 arg1 = reinterpret_cast< GTime * >(argp1);
9417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9418 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___eq__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___eq__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9420 }
9421 if (!argp2) {
9422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___eq__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___eq__" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
9423 }
9424 arg2 = reinterpret_cast< GTime * >(argp2);
9425 {
9426 try {
9427 result = (bool)GTime___eq__((GTime const *)arg1,(GTime const &)*arg2);
9428 }
9429 catch (const GException::out_of_range& e) {
9430 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9431 }
9432 catch (const GExceptionHandler& e) {
9433 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9434 }
9435 catch (const std::exception& e) {
9436 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9437 }
9438 }
9439 resultobj = SWIG_From_bool(static_cast< bool >(result));
9440 return resultobj;
9441fail:
9442 return NULL__null;
9443}
9444
9445
9446SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9447 PyObject *resultobj = 0;
9448 GTime *arg1 = (GTime *) 0 ;
9449 GTime *arg2 = 0 ;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 void *argp2 = 0 ;
9453 int res2 = 0 ;
9454 PyObject * obj0 = 0 ;
9455 PyObject * obj1 = 0 ;
9456 bool result;
9457
9458 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___ne__",&obj0,&obj1)) SWIG_failgoto fail;
9459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9460 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___ne__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___ne__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9462 }
9463 arg1 = reinterpret_cast< GTime * >(argp1);
9464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9465 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___ne__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___ne__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9467 }
9468 if (!argp2) {
9469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___ne__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___ne__" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
9470 }
9471 arg2 = reinterpret_cast< GTime * >(argp2);
9472 {
9473 try {
9474 result = (bool)GTime___ne__((GTime const *)arg1,(GTime const &)*arg2);
9475 }
9476 catch (const GException::out_of_range& e) {
9477 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9478 }
9479 catch (const GExceptionHandler& e) {
9480 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9481 }
9482 catch (const std::exception& e) {
9483 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9484 }
9485 }
9486 resultobj = SWIG_From_bool(static_cast< bool >(result));
9487 return resultobj;
9488fail:
9489 return NULL__null;
9490}
9491
9492
9493SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___lt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9494 PyObject *resultobj = 0;
9495 GTime *arg1 = (GTime *) 0 ;
9496 GTime *arg2 = 0 ;
9497 void *argp1 = 0 ;
9498 int res1 = 0 ;
9499 void *argp2 = 0 ;
9500 int res2 = 0 ;
9501 PyObject * obj0 = 0 ;
9502 PyObject * obj1 = 0 ;
9503 bool result;
9504
9505 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___lt__",&obj0,&obj1)) SWIG_failgoto fail;
9506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9507 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___lt__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___lt__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9509 }
9510 arg1 = reinterpret_cast< GTime * >(argp1);
9511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9512 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___lt__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___lt__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9514 }
9515 if (!argp2) {
9516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___lt__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___lt__" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
9517 }
9518 arg2 = reinterpret_cast< GTime * >(argp2);
9519 {
9520 try {
9521 result = (bool)GTime___lt__((GTime const *)arg1,(GTime const &)*arg2);
9522 }
9523 catch (const GException::out_of_range& e) {
9524 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9525 }
9526 catch (const GExceptionHandler& e) {
9527 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9528 }
9529 catch (const std::exception& e) {
9530 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9531 }
9532 }
9533 resultobj = SWIG_From_bool(static_cast< bool >(result));
9534 return resultobj;
9535fail:
9536 return NULL__null;
9537}
9538
9539
9540SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___gt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9541 PyObject *resultobj = 0;
9542 GTime *arg1 = (GTime *) 0 ;
9543 GTime *arg2 = 0 ;
9544 void *argp1 = 0 ;
9545 int res1 = 0 ;
9546 void *argp2 = 0 ;
9547 int res2 = 0 ;
9548 PyObject * obj0 = 0 ;
9549 PyObject * obj1 = 0 ;
9550 bool result;
9551
9552 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___gt__",&obj0,&obj1)) SWIG_failgoto fail;
9553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9554 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___gt__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___gt__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9556 }
9557 arg1 = reinterpret_cast< GTime * >(argp1);
9558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9559 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___gt__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___gt__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9561 }
9562 if (!argp2) {
9563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___gt__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___gt__" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
9564 }
9565 arg2 = reinterpret_cast< GTime * >(argp2);
9566 {
9567 try {
9568 result = (bool)GTime___gt__((GTime const *)arg1,(GTime const &)*arg2);
9569 }
9570 catch (const GException::out_of_range& e) {
9571 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9572 }
9573 catch (const GExceptionHandler& e) {
9574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9575 }
9576 catch (const std::exception& e) {
9577 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9578 }
9579 }
9580 resultobj = SWIG_From_bool(static_cast< bool >(result));
9581 return resultobj;
9582fail:
9583 return NULL__null;
9584}
9585
9586
9587SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___lte__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9588 PyObject *resultobj = 0;
9589 GTime *arg1 = (GTime *) 0 ;
9590 GTime *arg2 = 0 ;
9591 void *argp1 = 0 ;
9592 int res1 = 0 ;
9593 void *argp2 = 0 ;
9594 int res2 = 0 ;
9595 PyObject * obj0 = 0 ;
9596 PyObject * obj1 = 0 ;
9597 bool result;
9598
9599 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___lte__",&obj0,&obj1)) SWIG_failgoto fail;
9600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9601 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___lte__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___lte__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9603 }
9604 arg1 = reinterpret_cast< GTime * >(argp1);
9605 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9606 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9607 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___lte__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___lte__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9608 }
9609 if (!argp2) {
9610 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___lte__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___lte__" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
9611 }
9612 arg2 = reinterpret_cast< GTime * >(argp2);
9613 {
9614 try {
9615 result = (bool)GTime___lte__((GTime const *)arg1,(GTime const &)*arg2);
9616 }
9617 catch (const GException::out_of_range& e) {
9618 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9619 }
9620 catch (const GExceptionHandler& e) {
9621 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9622 }
9623 catch (const std::exception& e) {
9624 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9625 }
9626 }
9627 resultobj = SWIG_From_bool(static_cast< bool >(result));
9628 return resultobj;
9629fail:
9630 return NULL__null;
9631}
9632
9633
9634SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime___gte__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9635 PyObject *resultobj = 0;
9636 GTime *arg1 = (GTime *) 0 ;
9637 GTime *arg2 = 0 ;
9638 void *argp1 = 0 ;
9639 int res1 = 0 ;
9640 void *argp2 = 0 ;
9641 int res2 = 0 ;
9642 PyObject * obj0 = 0 ;
9643 PyObject * obj1 = 0 ;
9644 bool result;
9645
9646 if (!PyArg_ParseTuple(args,(char *)"OO:GTime___gte__",&obj0,&obj1)) SWIG_failgoto fail;
9647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9648 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime___gte__" "', argument " "1"" of type '" "GTime const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime___gte__" "', argument "
"1"" of type '" "GTime const *""'"); goto fail; } while(0)
;
9650 }
9651 arg1 = reinterpret_cast< GTime * >(argp1);
9652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
9653 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTime___gte__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTime___gte__" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
9655 }
9656 if (!argp2) {
9657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTime___gte__" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTime___gte__" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
9658 }
9659 arg2 = reinterpret_cast< GTime * >(argp2);
9660 {
9661 try {
9662 result = (bool)GTime___gte__((GTime const *)arg1,(GTime const &)*arg2);
9663 }
9664 catch (const GException::out_of_range& e) {
9665 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9666 }
9667 catch (const GExceptionHandler& e) {
9668 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9669 }
9670 catch (const std::exception& e) {
9671 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9672 }
9673 }
9674 resultobj = SWIG_From_bool(static_cast< bool >(result));
9675 return resultobj;
9676fail:
9677 return NULL__null;
9678}
9679
9680
9681SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTime_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9682 PyObject *resultobj = 0;
9683 GTime *arg1 = (GTime *) 0 ;
9684 void *argp1 = 0 ;
9685 int res1 = 0 ;
9686 PyObject * obj0 = 0 ;
9687 GTime result;
9688
9689 if (!PyArg_ParseTuple(args,(char *)"O:GTime_copy",&obj0)) SWIG_failgoto fail;
9690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTime, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[32]
, 0 | 0, 0)
;
9691 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTime_copy" "', argument " "1"" of type '" "GTime *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTime_copy" "', argument "
"1"" of type '" "GTime *""'"); goto fail; } while(0)
;
9693 }
9694 arg1 = reinterpret_cast< GTime * >(argp1);
9695 {
9696 try {
9697 result = GTime_copy(arg1);
9698 }
9699 catch (const GException::out_of_range& e) {
9700 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9701 }
9702 catch (const GExceptionHandler& e) {
9703 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9704 }
9705 catch (const std::exception& e) {
9706 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9707 }
9708 }
9709 resultobj = SWIG_NewPointerObj((new GTime(static_cast< const GTime& >(result))), SWIGTYPE_p_GTime, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTime(static_cast< const
GTime& >(result))), swig_types[32], 0x1 | 0)
;
9710 return resultobj;
9711fail:
9712 return NULL__null;
9713}
9714
9715
9716SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GTime_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9717 PyObject *obj;
9718 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
9719 SWIG_TypeNewClientData(SWIGTYPE_p_GTimeswig_types[32], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
9720 return SWIG_Py_Void();
9721}
9722
9723SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimes__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9724 PyObject *resultobj = 0;
9725 GTimes *result = 0 ;
9726
9727 if (!PyArg_ParseTuple(args,(char *)":new_GTimes")) SWIG_failgoto fail;
9728 {
9729 try {
9730 result = (GTimes *)new GTimes();
9731 }
9732 catch (const GException::out_of_range& e) {
9733 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9734 }
9735 catch (const GExceptionHandler& e) {
9736 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9737 }
9738 catch (const std::exception& e) {
9739 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9740 }
9741 }
9742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimes, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], (
(0x1 << 1) | 0x1) | 0)
;
9743 return resultobj;
9744fail:
9745 return NULL__null;
9746}
9747
9748
9749SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimes__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9750 PyObject *resultobj = 0;
9751 GTimes *arg1 = 0 ;
9752 void *argp1 = 0 ;
9753 int res1 = 0 ;
9754 PyObject * obj0 = 0 ;
9755 GTimes *result = 0 ;
9756
9757 if (!PyArg_ParseTuple(args,(char *)"O:new_GTimes",&obj0)) SWIG_failgoto fail;
9758 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GTimes, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
9759 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GTimes" "', argument " "1"" of type '" "GTimes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GTimes" "', argument "
"1"" of type '" "GTimes const &""'"); goto fail; } while
(0)
;
9761 }
9762 if (!argp1) {
9763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimes" "', argument " "1"" of type '" "GTimes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimes" "', argument " "1"" of type '" "GTimes const &"
"'"); goto fail; } while(0)
;
9764 }
9765 arg1 = reinterpret_cast< GTimes * >(argp1);
9766 {
9767 try {
9768 result = (GTimes *)new GTimes((GTimes const &)*arg1);
9769 }
9770 catch (const GException::out_of_range& e) {
9771 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9772 }
9773 catch (const GExceptionHandler& e) {
9774 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9775 }
9776 catch (const std::exception& e) {
9777 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9778 }
9779 }
9780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimes, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], (
(0x1 << 1) | 0x1) | 0)
;
9781 return resultobj;
9782fail:
9783 return NULL__null;
9784}
9785
9786
9787SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimes(PyObject *self, PyObject *args) {
9788 int argc;
9789 PyObject *argv[2];
9790 int ii;
9791
9792 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9793 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9794 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
9795 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9796 }
9797 if (argc == 0) {
9798 return _wrap_new_GTimes__SWIG_0(self, args);
9799 }
9800 if (argc == 1) {
9801 int _v;
9802 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GTimes, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[34], 0, 0
)
;
9803 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9804 if (_v) {
9805 return _wrap_new_GTimes__SWIG_1(self, args);
9806 }
9807 }
9808
9809fail:
9810 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GTimes'.\n"
9811 " Possible C/C++ prototypes are:\n"
9812 " GTimes::GTimes()\n"
9813 " GTimes::GTimes(GTimes const &)\n");
9814 return 0;
9815}
9816
9817
9818SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GTimes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9819 PyObject *resultobj = 0;
9820 GTimes *arg1 = (GTimes *) 0 ;
9821 void *argp1 = 0 ;
9822 int res1 = 0 ;
9823 PyObject * obj0 = 0 ;
9824
9825 if (!PyArg_ParseTuple(args,(char *)"O:delete_GTimes",&obj0)) SWIG_failgoto fail;
9826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0x1 | 0, 0)
;
9827 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GTimes" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GTimes" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
9829 }
9830 arg1 = reinterpret_cast< GTimes * >(argp1);
9831 {
9832 try {
9833 delete arg1;
9834 }
9835 catch (const GException::out_of_range& e) {
9836 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9837 }
9838 catch (const GExceptionHandler& e) {
9839 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9840 }
9841 catch (const std::exception& e) {
9842 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9843 }
9844 }
9845 resultobj = SWIG_Py_Void();
9846 return resultobj;
9847fail:
9848 return NULL__null;
9849}
9850
9851
9852SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9853 PyObject *resultobj = 0;
9854 GTimes *arg1 = (GTimes *) 0 ;
9855 void *argp1 = 0 ;
9856 int res1 = 0 ;
9857 PyObject * obj0 = 0 ;
9858
9859 if (!PyArg_ParseTuple(args,(char *)"O:GTimes_clear",&obj0)) SWIG_failgoto fail;
9860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
9861 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_clear" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_clear" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
9863 }
9864 arg1 = reinterpret_cast< GTimes * >(argp1);
9865 {
9866 try {
9867 (arg1)->clear();
9868 }
9869 catch (const GException::out_of_range& e) {
9870 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9871 }
9872 catch (const GExceptionHandler& e) {
9873 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9874 }
9875 catch (const std::exception& e) {
9876 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9877 }
9878 }
9879 resultobj = SWIG_Py_Void();
9880 return resultobj;
9881fail:
9882 return NULL__null;
9883}
9884
9885
9886SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9887 PyObject *resultobj = 0;
9888 GTimes *arg1 = (GTimes *) 0 ;
9889 void *argp1 = 0 ;
9890 int res1 = 0 ;
9891 PyObject * obj0 = 0 ;
9892 GTimes *result = 0 ;
9893
9894 if (!PyArg_ParseTuple(args,(char *)"O:GTimes_clone",&obj0)) SWIG_failgoto fail;
9895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
9896 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_clone" "', argument " "1"" of type '" "GTimes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_clone" "', argument "
"1"" of type '" "GTimes const *""'"); goto fail; } while(0)
;
9898 }
9899 arg1 = reinterpret_cast< GTimes * >(argp1);
9900 {
9901 try {
9902 result = (GTimes *)((GTimes const *)arg1)->clone();
9903 }
9904 catch (const GException::out_of_range& e) {
9905 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9906 }
9907 catch (const GExceptionHandler& e) {
9908 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9909 }
9910 catch (const std::exception& e) {
9911 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9912 }
9913 }
9914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[34], 0
| 0)
;
9915 return resultobj;
9916fail:
9917 return NULL__null;
9918}
9919
9920
9921SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9922 PyObject *resultobj = 0;
9923 GTimes *arg1 = (GTimes *) 0 ;
9924 void *argp1 = 0 ;
9925 int res1 = 0 ;
9926 PyObject * obj0 = 0 ;
9927 int result;
9928
9929 if (!PyArg_ParseTuple(args,(char *)"O:GTimes_size",&obj0)) SWIG_failgoto fail;
9930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
9931 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_size" "', argument " "1"" of type '" "GTimes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_size" "', argument "
"1"" of type '" "GTimes const *""'"); goto fail; } while(0)
;
9933 }
9934 arg1 = reinterpret_cast< GTimes * >(argp1);
9935 {
9936 try {
9937 result = (int)((GTimes const *)arg1)->size();
9938 }
9939 catch (const GException::out_of_range& e) {
9940 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9941 }
9942 catch (const GExceptionHandler& e) {
9943 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9944 }
9945 catch (const std::exception& e) {
9946 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9947 }
9948 }
9949 resultobj = SWIG_From_int(static_cast< int >(result));
9950 return resultobj;
9951fail:
9952 return NULL__null;
9953}
9954
9955
9956SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9957 PyObject *resultobj = 0;
9958 GTimes *arg1 = (GTimes *) 0 ;
9959 void *argp1 = 0 ;
9960 int res1 = 0 ;
9961 PyObject * obj0 = 0 ;
9962 bool result;
9963
9964 if (!PyArg_ParseTuple(args,(char *)"O:GTimes_isempty",&obj0)) SWIG_failgoto fail;
9965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
9966 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_isempty" "', argument " "1"" of type '" "GTimes const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_isempty" "', argument "
"1"" of type '" "GTimes const *""'"); goto fail; } while(0)
;
9968 }
9969 arg1 = reinterpret_cast< GTimes * >(argp1);
9970 {
9971 try {
9972 result = (bool)((GTimes const *)arg1)->isempty();
9973 }
9974 catch (const GException::out_of_range& e) {
9975 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9976 }
9977 catch (const GExceptionHandler& e) {
9978 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9979 }
9980 catch (const std::exception& e) {
9981 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9982 }
9983 }
9984 resultobj = SWIG_From_bool(static_cast< bool >(result));
9985 return resultobj;
9986fail:
9987 return NULL__null;
9988}
9989
9990
9991SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9992 PyObject *resultobj = 0;
9993 GTimes *arg1 = (GTimes *) 0 ;
9994 GTime *arg2 = 0 ;
9995 void *argp1 = 0 ;
9996 int res1 = 0 ;
9997 void *argp2 = 0 ;
9998 int res2 = 0 ;
9999 PyObject * obj0 = 0 ;
10000 PyObject * obj1 = 0 ;
10001
10002 if (!PyArg_ParseTuple(args,(char *)"OO:GTimes_append",&obj0,&obj1)) SWIG_failgoto fail;
10003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10004 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_append" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_append" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10006 }
10007 arg1 = reinterpret_cast< GTimes * >(argp1);
10008 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
10009 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTimes_append" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTimes_append" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
10011 }
10012 if (!argp2) {
10013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimes_append" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimes_append" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
10014 }
10015 arg2 = reinterpret_cast< GTime * >(argp2);
10016 {
10017 try {
10018 (arg1)->append((GTime const &)*arg2);
10019 }
10020 catch (const GException::out_of_range& e) {
10021 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10022 }
10023 catch (const GExceptionHandler& e) {
10024 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10025 }
10026 catch (const std::exception& e) {
10027 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10028 }
10029 }
10030 resultobj = SWIG_Py_Void();
10031 return resultobj;
10032fail:
10033 return NULL__null;
10034}
10035
10036
10037SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10038 PyObject *resultobj = 0;
10039 GTimes *arg1 = (GTimes *) 0 ;
10040 int *arg2 = 0 ;
10041 GTime *arg3 = 0 ;
10042 void *argp1 = 0 ;
10043 int res1 = 0 ;
10044 int temp2 ;
10045 int val2 ;
10046 int ecode2 = 0 ;
10047 void *argp3 = 0 ;
10048 int res3 = 0 ;
10049 PyObject * obj0 = 0 ;
10050 PyObject * obj1 = 0 ;
10051 PyObject * obj2 = 0 ;
10052
10053 if (!PyArg_ParseTuple(args,(char *)"OOO:GTimes_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10055 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_insert" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_insert" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10057 }
10058 arg1 = reinterpret_cast< GTimes * >(argp1);
10059 ecode2 = SWIG_AsVal_int(obj1, &val2);
10060 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimes_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimes_insert" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
10062 }
10063 temp2 = static_cast< int >(val2);
10064 arg2 = &temp2;
10065 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
10066 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10067 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTimes_insert" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GTimes_insert" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
10068 }
10069 if (!argp3) {
10070 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimes_insert" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimes_insert" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
10071 }
10072 arg3 = reinterpret_cast< GTime * >(argp3);
10073 {
10074 try {
10075 (arg1)->insert((int const &)*arg2,(GTime const &)*arg3);
10076 }
10077 catch (const GException::out_of_range& e) {
10078 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10079 }
10080 catch (const GExceptionHandler& e) {
10081 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10082 }
10083 catch (const std::exception& e) {
10084 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10085 }
10086 }
10087 resultobj = SWIG_Py_Void();
10088 return resultobj;
10089fail:
10090 return NULL__null;
10091}
10092
10093
10094SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10095 PyObject *resultobj = 0;
10096 GTimes *arg1 = (GTimes *) 0 ;
10097 int *arg2 = 0 ;
10098 void *argp1 = 0 ;
10099 int res1 = 0 ;
10100 int temp2 ;
10101 int val2 ;
10102 int ecode2 = 0 ;
10103 PyObject * obj0 = 0 ;
10104 PyObject * obj1 = 0 ;
10105
10106 if (!PyArg_ParseTuple(args,(char *)"OO:GTimes_remove",&obj0,&obj1)) SWIG_failgoto fail;
10107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10108 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_remove" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_remove" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10110 }
10111 arg1 = reinterpret_cast< GTimes * >(argp1);
10112 ecode2 = SWIG_AsVal_int(obj1, &val2);
10113 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimes_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimes_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
10115 }
10116 temp2 = static_cast< int >(val2);
10117 arg2 = &temp2;
10118 {
10119 try {
10120 (arg1)->remove((int const &)*arg2);
10121 }
10122 catch (const GException::out_of_range& e) {
10123 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10124 }
10125 catch (const GExceptionHandler& e) {
10126 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10127 }
10128 catch (const std::exception& e) {
10129 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10130 }
10131 }
10132 resultobj = SWIG_Py_Void();
10133 return resultobj;
10134fail:
10135 return NULL__null;
10136}
10137
10138
10139SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10140 PyObject *resultobj = 0;
10141 GTimes *arg1 = (GTimes *) 0 ;
10142 int *arg2 = 0 ;
10143 void *argp1 = 0 ;
10144 int res1 = 0 ;
10145 int temp2 ;
10146 int val2 ;
10147 int ecode2 = 0 ;
10148 PyObject * obj0 = 0 ;
10149 PyObject * obj1 = 0 ;
10150
10151 if (!PyArg_ParseTuple(args,(char *)"OO:GTimes_reserve",&obj0,&obj1)) SWIG_failgoto fail;
10152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10153 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_reserve" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_reserve" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10155 }
10156 arg1 = reinterpret_cast< GTimes * >(argp1);
10157 ecode2 = SWIG_AsVal_int(obj1, &val2);
10158 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimes_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimes_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
10160 }
10161 temp2 = static_cast< int >(val2);
10162 arg2 = &temp2;
10163 {
10164 try {
10165 (arg1)->reserve((int const &)*arg2);
10166 }
10167 catch (const GException::out_of_range& e) {
10168 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10169 }
10170 catch (const GExceptionHandler& e) {
10171 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10172 }
10173 catch (const std::exception& e) {
10174 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10175 }
10176 }
10177 resultobj = SWIG_Py_Void();
10178 return resultobj;
10179fail:
10180 return NULL__null;
10181}
10182
10183
10184SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10185 PyObject *resultobj = 0;
10186 GTimes *arg1 = (GTimes *) 0 ;
10187 GTimes *arg2 = 0 ;
10188 void *argp1 = 0 ;
10189 int res1 = 0 ;
10190 void *argp2 = 0 ;
10191 int res2 = 0 ;
10192 PyObject * obj0 = 0 ;
10193 PyObject * obj1 = 0 ;
10194
10195 if (!PyArg_ParseTuple(args,(char *)"OO:GTimes_extend",&obj0,&obj1)) SWIG_failgoto fail;
10196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10197 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_extend" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_extend" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10199 }
10200 arg1 = reinterpret_cast< GTimes * >(argp1);
10201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTimes, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[34]
, 0 | 0, 0)
;
10202 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTimes_extend" "', argument " "2"" of type '" "GTimes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTimes_extend" "', argument "
"2"" of type '" "GTimes const &""'"); goto fail; } while
(0)
;
10204 }
10205 if (!argp2) {
10206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimes_extend" "', argument " "2"" of type '" "GTimes const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimes_extend" "', argument " "2"" of type '"
"GTimes const &""'"); goto fail; } while(0)
;
10207 }
10208 arg2 = reinterpret_cast< GTimes * >(argp2);
10209 {
10210 try {
10211 (arg1)->extend((GTimes const &)*arg2);
10212 }
10213 catch (const GException::out_of_range& e) {
10214 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10215 }
10216 catch (const GExceptionHandler& e) {
10217 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10218 }
10219 catch (const std::exception& e) {
10220 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10221 }
10222 }
10223 resultobj = SWIG_Py_Void();
10224 return resultobj;
10225fail:
10226 return NULL__null;
10227}
10228
10229
10230SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10231 PyObject *resultobj = 0;
10232 GTimes *arg1 = (GTimes *) 0 ;
10233 int *arg2 = 0 ;
10234 void *argp1 = 0 ;
10235 int res1 = 0 ;
10236 int temp2 ;
10237 int val2 ;
10238 int ecode2 = 0 ;
10239 PyObject * obj0 = 0 ;
10240 PyObject * obj1 = 0 ;
10241 GTime *result = 0 ;
10242
10243 if (!PyArg_ParseTuple(args,(char *)"OO:GTimes___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
10244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10245 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes___getitem__" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes___getitem__" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10247 }
10248 arg1 = reinterpret_cast< GTimes * >(argp1);
10249 ecode2 = SWIG_AsVal_int(obj1, &val2);
10250 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimes___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimes___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
10252 }
10253 temp2 = static_cast< int >(val2);
10254 arg2 = &temp2;
10255 {
10256 try {
10257 result = (GTime *) &GTimes___getitem__(arg1,(int const &)*arg2);
10258 }
10259 catch (const GException::out_of_range& e) {
10260 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10261 }
10262 catch (const GExceptionHandler& e) {
10263 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10264 }
10265 catch (const std::exception& e) {
10266 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10267 }
10268 }
10269 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[32], 0
| 0)
;
10270 return resultobj;
10271fail:
10272 return NULL__null;
10273}
10274
10275
10276SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10277 PyObject *resultobj = 0;
10278 GTimes *arg1 = (GTimes *) 0 ;
10279 int *arg2 = 0 ;
10280 GTime *arg3 = 0 ;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 int temp2 ;
10284 int val2 ;
10285 int ecode2 = 0 ;
10286 void *argp3 = 0 ;
10287 int res3 = 0 ;
10288 PyObject * obj0 = 0 ;
10289 PyObject * obj1 = 0 ;
10290 PyObject * obj2 = 0 ;
10291
10292 if (!PyArg_ParseTuple(args,(char *)"OOO:GTimes___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10294 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes___setitem__" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes___setitem__" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10296 }
10297 arg1 = reinterpret_cast< GTimes * >(argp1);
10298 ecode2 = SWIG_AsVal_int(obj1, &val2);
10299 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimes___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimes___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
10301 }
10302 temp2 = static_cast< int >(val2);
10303 arg2 = &temp2;
10304 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
10305 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10306 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTimes___setitem__" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GTimes___setitem__" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
10307 }
10308 if (!argp3) {
10309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimes___setitem__" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimes___setitem__" "', argument " "3"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
10310 }
10311 arg3 = reinterpret_cast< GTime * >(argp3);
10312 {
10313 try {
10314 GTimes___setitem__(arg1,(int const &)*arg2,(GTime const &)*arg3);
10315 }
10316 catch (const GException::out_of_range& e) {
10317 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10318 }
10319 catch (const GExceptionHandler& e) {
10320 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10321 }
10322 catch (const std::exception& e) {
10323 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10324 }
10325 }
10326 resultobj = SWIG_Py_Void();
10327 return resultobj;
10328fail:
10329 return NULL__null;
10330}
10331
10332
10333SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimes_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10334 PyObject *resultobj = 0;
10335 GTimes *arg1 = (GTimes *) 0 ;
10336 void *argp1 = 0 ;
10337 int res1 = 0 ;
10338 PyObject * obj0 = 0 ;
10339 GTimes result;
10340
10341 if (!PyArg_ParseTuple(args,(char *)"O:GTimes_copy",&obj0)) SWIG_failgoto fail;
10342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimes, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[34]
, 0 | 0, 0)
;
10343 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimes_copy" "', argument " "1"" of type '" "GTimes *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimes_copy" "', argument "
"1"" of type '" "GTimes *""'"); goto fail; } while(0)
;
10345 }
10346 arg1 = reinterpret_cast< GTimes * >(argp1);
10347 {
10348 try {
10349 result = GTimes_copy(arg1);
10350 }
10351 catch (const GException::out_of_range& e) {
10352 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10353 }
10354 catch (const GExceptionHandler& e) {
10355 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10356 }
10357 catch (const std::exception& e) {
10358 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10359 }
10360 }
10361 resultobj = SWIG_NewPointerObj((new GTimes(static_cast< const GTimes& >(result))), SWIGTYPE_p_GTimes, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTimes(static_cast<
const GTimes& >(result))), swig_types[34], 0x1 | 0)
;
10362 return resultobj;
10363fail:
10364 return NULL__null;
10365}
10366
10367
10368SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GTimes_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10369 PyObject *obj;
10370 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
10371 SWIG_TypeNewClientData(SWIGTYPE_p_GTimesswig_types[34], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
10372 return SWIG_Py_Void();
10373}
10374
10375SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10376 PyObject *resultobj = 0;
10377 GTimeReference *result = 0 ;
10378
10379 if (!PyArg_ParseTuple(args,(char *)":new_GTimeReference")) SWIG_failgoto fail;
10380 {
10381 try {
10382 result = (GTimeReference *)new GTimeReference();
10383 }
10384 catch (const GException::out_of_range& e) {
10385 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10386 }
10387 catch (const GExceptionHandler& e) {
10388 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10389 }
10390 catch (const std::exception& e) {
10391 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10392 }
10393 }
10394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10395 return resultobj;
10396fail:
10397 return NULL__null;
10398}
10399
10400
10401SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10402 PyObject *resultobj = 0;
10403 GTimeReference *arg1 = 0 ;
10404 void *argp1 = 0 ;
10405 int res1 = 0 ;
10406 PyObject * obj0 = 0 ;
10407 GTimeReference *result = 0 ;
10408
10409 if (!PyArg_ParseTuple(args,(char *)"O:new_GTimeReference",&obj0)) SWIG_failgoto fail;
10410 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GTimeReference, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
10411 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "GTimeReference const &""'"); goto fail;
} while(0)
;
10413 }
10414 if (!argp1) {
10415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "1"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "1"" of type '"
"GTimeReference const &""'"); goto fail; } while(0)
;
10416 }
10417 arg1 = reinterpret_cast< GTimeReference * >(argp1);
10418 {
10419 try {
10420 result = (GTimeReference *)new GTimeReference((GTimeReference const &)*arg1);
10421 }
10422 catch (const GException::out_of_range& e) {
10423 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10424 }
10425 catch (const GExceptionHandler& e) {
10426 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10427 }
10428 catch (const std::exception& e) {
10429 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10430 }
10431 }
10432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10433 return resultobj;
10434fail:
10435 return NULL__null;
10436}
10437
10438
10439SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10440 PyObject *resultobj = 0;
10441 double *arg1 = 0 ;
10442 std::string *arg2 = 0 ;
10443 std::string *arg3 = 0 ;
10444 std::string *arg4 = 0 ;
10445 double temp1 ;
10446 double val1 ;
10447 int ecode1 = 0 ;
10448 int res2 = SWIG_OLDOBJ((0)) ;
10449 int res3 = SWIG_OLDOBJ((0)) ;
10450 int res4 = SWIG_OLDOBJ((0)) ;
10451 PyObject * obj0 = 0 ;
10452 PyObject * obj1 = 0 ;
10453 PyObject * obj2 = 0 ;
10454 PyObject * obj3 = 0 ;
10455 GTimeReference *result = 0 ;
10456
10457 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GTimeReference",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
10458 ecode1 = SWIG_AsVal_double(obj0, &val1);
10459 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10460 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
10461 }
10462 temp1 = static_cast< double >(val1);
10463 arg1 = &temp1;
10464 {
10465 std::string *ptr = (std::string *)0;
10466 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
10467 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GTimeReference" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GTimeReference" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10469 }
10470 if (!ptr) {
10471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10472 }
10473 arg2 = ptr;
10474 }
10475 {
10476 std::string *ptr = (std::string *)0;
10477 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
10478 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10479 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GTimeReference" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10480 }
10481 if (!ptr) {
10482 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10483 }
10484 arg3 = ptr;
10485 }
10486 {
10487 std::string *ptr = (std::string *)0;
10488 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
10489 if (!SWIG_IsOK(res4)(res4 >= 0)) {
10490 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GTimeReference" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "new_GTimeReference" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10491 }
10492 if (!ptr) {
10493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10494 }
10495 arg4 = ptr;
10496 }
10497 {
10498 try {
10499 result = (GTimeReference *)new GTimeReference((double const &)*arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4);
10500 }
10501 catch (const GException::out_of_range& e) {
10502 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10503 }
10504 catch (const GExceptionHandler& e) {
10505 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10506 }
10507 catch (const std::exception& e) {
10508 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10509 }
10510 }
10511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10512 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10513 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10514 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
10515 return resultobj;
10516fail:
10517 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10518 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10519 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
10520 return NULL__null;
10521}
10522
10523
10524SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10525 PyObject *resultobj = 0;
10526 double *arg1 = 0 ;
10527 std::string *arg2 = 0 ;
10528 std::string *arg3 = 0 ;
10529 double temp1 ;
10530 double val1 ;
10531 int ecode1 = 0 ;
10532 int res2 = SWIG_OLDOBJ((0)) ;
10533 int res3 = SWIG_OLDOBJ((0)) ;
10534 PyObject * obj0 = 0 ;
10535 PyObject * obj1 = 0 ;
10536 PyObject * obj2 = 0 ;
10537 GTimeReference *result = 0 ;
10538
10539 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GTimeReference",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10540 ecode1 = SWIG_AsVal_double(obj0, &val1);
10541 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10542 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
10543 }
10544 temp1 = static_cast< double >(val1);
10545 arg1 = &temp1;
10546 {
10547 std::string *ptr = (std::string *)0;
10548 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
10549 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GTimeReference" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GTimeReference" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10551 }
10552 if (!ptr) {
10553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10554 }
10555 arg2 = ptr;
10556 }
10557 {
10558 std::string *ptr = (std::string *)0;
10559 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
10560 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10561 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GTimeReference" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10562 }
10563 if (!ptr) {
10564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10565 }
10566 arg3 = ptr;
10567 }
10568 {
10569 try {
10570 result = (GTimeReference *)new GTimeReference((double const &)*arg1,(std::string const &)*arg2,(std::string const &)*arg3);
10571 }
10572 catch (const GException::out_of_range& e) {
10573 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10574 }
10575 catch (const GExceptionHandler& e) {
10576 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10577 }
10578 catch (const std::exception& e) {
10579 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10580 }
10581 }
10582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10583 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10584 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10585 return resultobj;
10586fail:
10587 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10588 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10589 return NULL__null;
10590}
10591
10592
10593SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10594 PyObject *resultobj = 0;
10595 double *arg1 = 0 ;
10596 std::string *arg2 = 0 ;
10597 double temp1 ;
10598 double val1 ;
10599 int ecode1 = 0 ;
10600 int res2 = SWIG_OLDOBJ((0)) ;
10601 PyObject * obj0 = 0 ;
10602 PyObject * obj1 = 0 ;
10603 GTimeReference *result = 0 ;
10604
10605 if (!PyArg_ParseTuple(args,(char *)"OO:new_GTimeReference",&obj0,&obj1)) SWIG_failgoto fail;
10606 ecode1 = SWIG_AsVal_double(obj0, &val1);
10607 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10608 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "double""'"); goto fail; } while(0)
;
10609 }
10610 temp1 = static_cast< double >(val1);
10611 arg1 = &temp1;
10612 {
10613 std::string *ptr = (std::string *)0;
10614 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
10615 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GTimeReference" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GTimeReference" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10617 }
10618 if (!ptr) {
10619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10620 }
10621 arg2 = ptr;
10622 }
10623 {
10624 try {
10625 result = (GTimeReference *)new GTimeReference((double const &)*arg1,(std::string const &)*arg2);
10626 }
10627 catch (const GException::out_of_range& e) {
10628 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10629 }
10630 catch (const GExceptionHandler& e) {
10631 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10632 }
10633 catch (const std::exception& e) {
10634 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10635 }
10636 }
10637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10638 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10639 return resultobj;
10640fail:
10641 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10642 return NULL__null;
10643}
10644
10645
10646SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10647 PyObject *resultobj = 0;
10648 int *arg1 = 0 ;
10649 double *arg2 = 0 ;
10650 std::string *arg3 = 0 ;
10651 std::string *arg4 = 0 ;
10652 std::string *arg5 = 0 ;
10653 int temp1 ;
10654 int val1 ;
10655 int ecode1 = 0 ;
10656 double temp2 ;
10657 double val2 ;
10658 int ecode2 = 0 ;
10659 int res3 = SWIG_OLDOBJ((0)) ;
10660 int res4 = SWIG_OLDOBJ((0)) ;
10661 int res5 = SWIG_OLDOBJ((0)) ;
10662 PyObject * obj0 = 0 ;
10663 PyObject * obj1 = 0 ;
10664 PyObject * obj2 = 0 ;
10665 PyObject * obj3 = 0 ;
10666 PyObject * obj4 = 0 ;
10667 GTimeReference *result = 0 ;
10668
10669 if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_GTimeReference",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
10670 ecode1 = SWIG_AsVal_int(obj0, &val1);
10671 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10672 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
10673 }
10674 temp1 = static_cast< int >(val1);
10675 arg1 = &temp1;
10676 ecode2 = SWIG_AsVal_double(obj1, &val2);
10677 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GTimeReference" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GTimeReference" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
10679 }
10680 temp2 = static_cast< double >(val2);
10681 arg2 = &temp2;
10682 {
10683 std::string *ptr = (std::string *)0;
10684 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
10685 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10686 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GTimeReference" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10687 }
10688 if (!ptr) {
10689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10690 }
10691 arg3 = ptr;
10692 }
10693 {
10694 std::string *ptr = (std::string *)0;
10695 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
10696 if (!SWIG_IsOK(res4)(res4 >= 0)) {
10697 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GTimeReference" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "new_GTimeReference" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10698 }
10699 if (!ptr) {
10700 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10701 }
10702 arg4 = ptr;
10703 }
10704 {
10705 std::string *ptr = (std::string *)0;
10706 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
10707 if (!SWIG_IsOK(res5)(res5 >= 0)) {
10708 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_GTimeReference" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "new_GTimeReference" "', argument "
"5"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10709 }
10710 if (!ptr) {
10711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "5"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10712 }
10713 arg5 = ptr;
10714 }
10715 {
10716 try {
10717 result = (GTimeReference *)new GTimeReference((int const &)*arg1,(double const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
10718 }
10719 catch (const GException::out_of_range& e) {
10720 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10721 }
10722 catch (const GExceptionHandler& e) {
10723 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10724 }
10725 catch (const std::exception& e) {
10726 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10727 }
10728 }
10729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10730 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10731 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
10732 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
10733 return resultobj;
10734fail:
10735 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10736 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
10737 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
10738 return NULL__null;
10739}
10740
10741
10742SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10743 PyObject *resultobj = 0;
10744 int *arg1 = 0 ;
10745 double *arg2 = 0 ;
10746 std::string *arg3 = 0 ;
10747 std::string *arg4 = 0 ;
10748 int temp1 ;
10749 int val1 ;
10750 int ecode1 = 0 ;
10751 double temp2 ;
10752 double val2 ;
10753 int ecode2 = 0 ;
10754 int res3 = SWIG_OLDOBJ((0)) ;
10755 int res4 = SWIG_OLDOBJ((0)) ;
10756 PyObject * obj0 = 0 ;
10757 PyObject * obj1 = 0 ;
10758 PyObject * obj2 = 0 ;
10759 PyObject * obj3 = 0 ;
10760 GTimeReference *result = 0 ;
10761
10762 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GTimeReference",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
10763 ecode1 = SWIG_AsVal_int(obj0, &val1);
10764 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10765 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
10766 }
10767 temp1 = static_cast< int >(val1);
10768 arg1 = &temp1;
10769 ecode2 = SWIG_AsVal_double(obj1, &val2);
10770 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GTimeReference" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GTimeReference" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
10772 }
10773 temp2 = static_cast< double >(val2);
10774 arg2 = &temp2;
10775 {
10776 std::string *ptr = (std::string *)0;
10777 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
10778 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10779 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GTimeReference" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10780 }
10781 if (!ptr) {
10782 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10783 }
10784 arg3 = ptr;
10785 }
10786 {
10787 std::string *ptr = (std::string *)0;
10788 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
10789 if (!SWIG_IsOK(res4)(res4 >= 0)) {
10790 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GTimeReference" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "new_GTimeReference" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10791 }
10792 if (!ptr) {
10793 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10794 }
10795 arg4 = ptr;
10796 }
10797 {
10798 try {
10799 result = (GTimeReference *)new GTimeReference((int const &)*arg1,(double const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4);
10800 }
10801 catch (const GException::out_of_range& e) {
10802 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10803 }
10804 catch (const GExceptionHandler& e) {
10805 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10806 }
10807 catch (const std::exception& e) {
10808 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10809 }
10810 }
10811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10812 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10813 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
10814 return resultobj;
10815fail:
10816 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10817 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
10818 return NULL__null;
10819}
10820
10821
10822SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10823 PyObject *resultobj = 0;
10824 int *arg1 = 0 ;
10825 double *arg2 = 0 ;
10826 std::string *arg3 = 0 ;
10827 int temp1 ;
10828 int val1 ;
10829 int ecode1 = 0 ;
10830 double temp2 ;
10831 double val2 ;
10832 int ecode2 = 0 ;
10833 int res3 = SWIG_OLDOBJ((0)) ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 PyObject * obj2 = 0 ;
10837 GTimeReference *result = 0 ;
10838
10839 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GTimeReference",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10840 ecode1 = SWIG_AsVal_int(obj0, &val1);
10841 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
10842 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
10843 }
10844 temp1 = static_cast< int >(val1);
10845 arg1 = &temp1;
10846 ecode2 = SWIG_AsVal_double(obj1, &val2);
10847 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GTimeReference" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "new_GTimeReference" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
10849 }
10850 temp2 = static_cast< double >(val2);
10851 arg2 = &temp2;
10852 {
10853 std::string *ptr = (std::string *)0;
10854 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
10855 if (!SWIG_IsOK(res3)(res3 >= 0)) {
10856 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GTimeReference" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10857 }
10858 if (!ptr) {
10859 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10860 }
10861 arg3 = ptr;
10862 }
10863 {
10864 try {
10865 result = (GTimeReference *)new GTimeReference((int const &)*arg1,(double const &)*arg2,(std::string const &)*arg3);
10866 }
10867 catch (const GException::out_of_range& e) {
10868 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10869 }
10870 catch (const GExceptionHandler& e) {
10871 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10872 }
10873 catch (const std::exception& e) {
10874 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10875 }
10876 }
10877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10878 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10879 return resultobj;
10880fail:
10881 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
10882 return NULL__null;
10883}
10884
10885
10886SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10887 PyObject *resultobj = 0;
10888 GFitsHDU *arg1 = 0 ;
10889 void *argp1 = 0 ;
10890 int res1 = 0 ;
10891 PyObject * obj0 = 0 ;
10892 GTimeReference *result = 0 ;
10893
10894 if (!PyArg_ParseTuple(args,(char *)"O:new_GTimeReference",&obj0)) SWIG_failgoto fail;
10895 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GFitsHDU, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
10896 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GTimeReference" "', argument " "1"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GTimeReference" "', argument "
"1"" of type '" "GFitsHDU const &""'"); goto fail; } while
(0)
;
10898 }
10899 if (!argp1) {
10900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GTimeReference" "', argument " "1"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GTimeReference" "', argument " "1"" of type '"
"GFitsHDU const &""'"); goto fail; } while(0)
;
10901 }
10902 arg1 = reinterpret_cast< GFitsHDU * >(argp1);
10903 {
10904 try {
10905 result = (GTimeReference *)new GTimeReference((GFitsHDU const &)*arg1);
10906 }
10907 catch (const GException::out_of_range& e) {
10908 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10909 }
10910 catch (const GExceptionHandler& e) {
10911 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10912 }
10913 catch (const std::exception& e) {
10914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10915 }
10916 }
10917 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], (
(0x1 << 1) | 0x1) | 0)
;
10918 return resultobj;
10919fail:
10920 return NULL__null;
10921}
10922
10923
10924SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GTimeReference(PyObject *self, PyObject *args) {
10925 int argc;
10926 PyObject *argv[6];
10927 int ii;
10928
10929 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10930 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10931 for (ii = 0; (ii < 5) && (ii < argc); ii++) {
10932 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10933 }
10934 if (argc == 0) {
10935 return _wrap_new_GTimeReference__SWIG_0(self, args);
10936 }
10937 if (argc == 1) {
10938 int _v;
10939 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[33], 0, 0
)
;
10940 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10941 if (_v) {
10942 return _wrap_new_GTimeReference__SWIG_1(self, args);
10943 }
10944 }
10945 if (argc == 1) {
10946 int _v;
10947 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GFitsHDU, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[13], 0, 0
)
;
10948 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10949 if (_v) {
10950 return _wrap_new_GTimeReference__SWIG_8(self, args);
10951 }
10952 }
10953 if (argc == 2) {
10954 int _v;
10955 {
10956 int res = SWIG_AsVal_double(argv[0], NULL__null);
10957 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10958 }
10959 if (_v) {
10960 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
10961 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10962 if (_v) {
10963 return _wrap_new_GTimeReference__SWIG_4(self, args);
10964 }
10965 }
10966 }
10967 if (argc == 3) {
10968 int _v;
10969 {
10970 int res = SWIG_AsVal_int(argv[0], NULL__null);
10971 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10972 }
10973 if (_v) {
10974 {
10975 int res = SWIG_AsVal_double(argv[1], NULL__null);
10976 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10977 }
10978 if (_v) {
10979 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
10980 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10981 if (_v) {
10982 return _wrap_new_GTimeReference__SWIG_7(self, args);
10983 }
10984 }
10985 }
10986 }
10987 if (argc == 3) {
10988 int _v;
10989 {
10990 int res = SWIG_AsVal_double(argv[0], NULL__null);
10991 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10992 }
10993 if (_v) {
10994 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
10995 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10996 if (_v) {
10997 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
10998 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10999 if (_v) {
11000 return _wrap_new_GTimeReference__SWIG_3(self, args);
11001 }
11002 }
11003 }
11004 }
11005 if (argc == 4) {
11006 int _v;
11007 {
11008 int res = SWIG_AsVal_int(argv[0], NULL__null);
11009 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11010 }
11011 if (_v) {
11012 {
11013 int res = SWIG_AsVal_double(argv[1], NULL__null);
11014 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11015 }
11016 if (_v) {
11017 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
11018 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11019 if (_v) {
11020 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11021 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11022 if (_v) {
11023 return _wrap_new_GTimeReference__SWIG_6(self, args);
11024 }
11025 }
11026 }
11027 }
11028 }
11029 if (argc == 4) {
11030 int _v;
11031 {
11032 int res = SWIG_AsVal_double(argv[0], NULL__null);
11033 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11034 }
11035 if (_v) {
11036 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
11037 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11038 if (_v) {
11039 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
11040 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11041 if (_v) {
11042 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11043 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11044 if (_v) {
11045 return _wrap_new_GTimeReference__SWIG_2(self, args);
11046 }
11047 }
11048 }
11049 }
11050 }
11051 if (argc == 5) {
11052 int _v;
11053 {
11054 int res = SWIG_AsVal_int(argv[0], NULL__null);
11055 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11056 }
11057 if (_v) {
11058 {
11059 int res = SWIG_AsVal_double(argv[1], NULL__null);
11060 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11061 }
11062 if (_v) {
11063 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
11064 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11065 if (_v) {
11066 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11067 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11068 if (_v) {
11069 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
11070 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11071 if (_v) {
11072 return _wrap_new_GTimeReference__SWIG_5(self, args);
11073 }
11074 }
11075 }
11076 }
11077 }
11078 }
11079
11080fail:
11081 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GTimeReference'.\n"
11082 " Possible C/C++ prototypes are:\n"
11083 " GTimeReference::GTimeReference()\n"
11084 " GTimeReference::GTimeReference(GTimeReference const &)\n"
11085 " GTimeReference::GTimeReference(double const &,std::string const &,std::string const &,std::string const &)\n"
11086 " GTimeReference::GTimeReference(double const &,std::string const &,std::string const &)\n"
11087 " GTimeReference::GTimeReference(double const &,std::string const &)\n"
11088 " GTimeReference::GTimeReference(int const &,double const &,std::string const &,std::string const &,std::string const &)\n"
11089 " GTimeReference::GTimeReference(int const &,double const &,std::string const &,std::string const &)\n"
11090 " GTimeReference::GTimeReference(int const &,double const &,std::string const &)\n"
11091 " GTimeReference::GTimeReference(GFitsHDU const &)\n");
11092 return 0;
11093}
11094
11095
11096SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GTimeReference(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11097 PyObject *resultobj = 0;
11098 GTimeReference *arg1 = (GTimeReference *) 0 ;
11099 void *argp1 = 0 ;
11100 int res1 = 0 ;
11101 PyObject * obj0 = 0 ;
11102
11103 if (!PyArg_ParseTuple(args,(char *)"O:delete_GTimeReference",&obj0)) SWIG_failgoto fail;
11104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0x1 | 0, 0)
;
11105 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GTimeReference" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GTimeReference" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11107 }
11108 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11109 {
11110 try {
11111 delete arg1;
11112 }
11113 catch (const GException::out_of_range& e) {
11114 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11115 }
11116 catch (const GExceptionHandler& e) {
11117 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11118 }
11119 catch (const std::exception& e) {
11120 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11121 }
11122 }
11123 resultobj = SWIG_Py_Void();
11124 return resultobj;
11125fail:
11126 return NULL__null;
11127}
11128
11129
11130SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11131 PyObject *resultobj = 0;
11132 GTimeReference *arg1 = (GTimeReference *) 0 ;
11133 void *argp1 = 0 ;
11134 int res1 = 0 ;
11135 PyObject * obj0 = 0 ;
11136
11137 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_clear",&obj0)) SWIG_failgoto fail;
11138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11139 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_clear" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_clear" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11141 }
11142 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11143 {
11144 try {
11145 (arg1)->clear();
11146 }
11147 catch (const GException::out_of_range& e) {
11148 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11149 }
11150 catch (const GExceptionHandler& e) {
11151 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11152 }
11153 catch (const std::exception& e) {
11154 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11155 }
11156 }
11157 resultobj = SWIG_Py_Void();
11158 return resultobj;
11159fail:
11160 return NULL__null;
11161}
11162
11163
11164SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11165 PyObject *resultobj = 0;
11166 GTimeReference *arg1 = (GTimeReference *) 0 ;
11167 void *argp1 = 0 ;
11168 int res1 = 0 ;
11169 PyObject * obj0 = 0 ;
11170 GTimeReference *result = 0 ;
11171
11172 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_clone",&obj0)) SWIG_failgoto fail;
11173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11174 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_clone" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_clone" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
11176 }
11177 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11178 {
11179 try {
11180 result = (GTimeReference *)((GTimeReference const *)arg1)->clone();
11181 }
11182 catch (const GException::out_of_range& e) {
11183 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11184 }
11185 catch (const GExceptionHandler& e) {
11186 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11187 }
11188 catch (const std::exception& e) {
11189 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11190 }
11191 }
11192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], 0
| 0)
;
11193 return resultobj;
11194fail:
11195 return NULL__null;
11196}
11197
11198
11199SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11200 PyObject *resultobj = 0;
11201 GTimeReference *arg1 = (GTimeReference *) 0 ;
11202 GFitsHDU *arg2 = 0 ;
11203 void *argp1 = 0 ;
11204 int res1 = 0 ;
11205 void *argp2 = 0 ;
11206 int res2 = 0 ;
11207 PyObject * obj0 = 0 ;
11208 PyObject * obj1 = 0 ;
11209
11210 if (!PyArg_ParseTuple(args,(char *)"OO:GTimeReference_read",&obj0,&obj1)) SWIG_failgoto fail;
11211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11212 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_read" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_read" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11214 }
11215 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11216 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0 | 0, 0)
;
11217 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11218 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTimeReference_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTimeReference_read" "', argument "
"2"" of type '" "GFitsHDU const &""'"); goto fail; } while
(0)
;
11219 }
11220 if (!argp2) {
11221 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_read" "', argument " "2"" of type '" "GFitsHDU const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_read" "', argument " "2"" of type '"
"GFitsHDU const &""'"); goto fail; } while(0)
;
11222 }
11223 arg2 = reinterpret_cast< GFitsHDU * >(argp2);
11224 {
11225 try {
11226 (arg1)->read((GFitsHDU const &)*arg2);
11227 }
11228 catch (const GException::out_of_range& e) {
11229 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11230 }
11231 catch (const GExceptionHandler& e) {
11232 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11233 }
11234 catch (const std::exception& e) {
11235 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11236 }
11237 }
11238 resultobj = SWIG_Py_Void();
11239 return resultobj;
11240fail:
11241 return NULL__null;
11242}
11243
11244
11245SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11246 PyObject *resultobj = 0;
11247 GTimeReference *arg1 = (GTimeReference *) 0 ;
11248 GFitsHDU *arg2 = 0 ;
11249 void *argp1 = 0 ;
11250 int res1 = 0 ;
11251 void *argp2 = 0 ;
11252 int res2 = 0 ;
11253 PyObject * obj0 = 0 ;
11254 PyObject * obj1 = 0 ;
11255
11256 if (!PyArg_ParseTuple(args,(char *)"OO:GTimeReference_write",&obj0,&obj1)) SWIG_failgoto fail;
11257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11258 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_write" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_write" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
11260 }
11261 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11262 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsHDU, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0, 0)
;
11263 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11264 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GTimeReference_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GTimeReference_write" "', argument "
"2"" of type '" "GFitsHDU &""'"); goto fail; } while(0)
;
11265 }
11266 if (!argp2) {
11267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_write" "', argument " "2"" of type '" "GFitsHDU &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_write" "', argument " "2"" of type '"
"GFitsHDU &""'"); goto fail; } while(0)
;
11268 }
11269 arg2 = reinterpret_cast< GFitsHDU * >(argp2);
11270 {
11271 try {
11272 ((GTimeReference const *)arg1)->write(*arg2);
11273 }
11274 catch (const GException::out_of_range& e) {
11275 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11276 }
11277 catch (const GExceptionHandler& e) {
11278 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11279 }
11280 catch (const std::exception& e) {
11281 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11282 }
11283 }
11284 resultobj = SWIG_Py_Void();
11285 return resultobj;
11286fail:
11287 return NULL__null;
11288}
11289
11290
11291SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_set__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11292 PyObject *resultobj = 0;
11293 GTimeReference *arg1 = (GTimeReference *) 0 ;
11294 double *arg2 = 0 ;
11295 std::string *arg3 = 0 ;
11296 std::string *arg4 = 0 ;
11297 std::string *arg5 = 0 ;
11298 void *argp1 = 0 ;
11299 int res1 = 0 ;
11300 double temp2 ;
11301 double val2 ;
11302 int ecode2 = 0 ;
11303 int res3 = SWIG_OLDOBJ((0)) ;
11304 int res4 = SWIG_OLDOBJ((0)) ;
11305 int res5 = SWIG_OLDOBJ((0)) ;
11306 PyObject * obj0 = 0 ;
11307 PyObject * obj1 = 0 ;
11308 PyObject * obj2 = 0 ;
11309 PyObject * obj3 = 0 ;
11310 PyObject * obj4 = 0 ;
11311
11312 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GTimeReference_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
11313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11314 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_set" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_set" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11316 }
11317 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11318 ecode2 = SWIG_AsVal_double(obj1, &val2);
11319 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11320 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimeReference_set" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimeReference_set" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
11321 }
11322 temp2 = static_cast< double >(val2);
11323 arg2 = &temp2;
11324 {
11325 std::string *ptr = (std::string *)0;
11326 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
11327 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11328 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTimeReference_set" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GTimeReference_set" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11329 }
11330 if (!ptr) {
11331 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11332 }
11333 arg3 = ptr;
11334 }
11335 {
11336 std::string *ptr = (std::string *)0;
11337 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
11338 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11339 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GTimeReference_set" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11340 }
11341 if (!ptr) {
11342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11343 }
11344 arg4 = ptr;
11345 }
11346 {
11347 std::string *ptr = (std::string *)0;
11348 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
11349 if (!SWIG_IsOK(res5)(res5 >= 0)) {
11350 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GTimeReference_set" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GTimeReference_set" "', argument "
"5"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11351 }
11352 if (!ptr) {
11353 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "5"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11354 }
11355 arg5 = ptr;
11356 }
11357 {
11358 try {
11359 (arg1)->set((double const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
11360 }
11361 catch (const GException::out_of_range& e) {
11362 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11363 }
11364 catch (const GExceptionHandler& e) {
11365 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11366 }
11367 catch (const std::exception& e) {
11368 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11369 }
11370 }
11371 resultobj = SWIG_Py_Void();
11372 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
11373 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11374 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
11375 return resultobj;
11376fail:
11377 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
11378 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11379 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
11380 return NULL__null;
11381}
11382
11383
11384SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_set__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11385 PyObject *resultobj = 0;
11386 GTimeReference *arg1 = (GTimeReference *) 0 ;
11387 double *arg2 = 0 ;
11388 std::string *arg3 = 0 ;
11389 std::string *arg4 = 0 ;
11390 void *argp1 = 0 ;
11391 int res1 = 0 ;
11392 double temp2 ;
11393 double val2 ;
11394 int ecode2 = 0 ;
11395 int res3 = SWIG_OLDOBJ((0)) ;
11396 int res4 = SWIG_OLDOBJ((0)) ;
11397 PyObject * obj0 = 0 ;
11398 PyObject * obj1 = 0 ;
11399 PyObject * obj2 = 0 ;
11400 PyObject * obj3 = 0 ;
11401
11402 if (!PyArg_ParseTuple(args,(char *)"OOOO:GTimeReference_set",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
11403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11404 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_set" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_set" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11406 }
11407 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11408 ecode2 = SWIG_AsVal_double(obj1, &val2);
11409 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimeReference_set" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimeReference_set" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
11411 }
11412 temp2 = static_cast< double >(val2);
11413 arg2 = &temp2;
11414 {
11415 std::string *ptr = (std::string *)0;
11416 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
11417 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11418 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTimeReference_set" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GTimeReference_set" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11419 }
11420 if (!ptr) {
11421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11422 }
11423 arg3 = ptr;
11424 }
11425 {
11426 std::string *ptr = (std::string *)0;
11427 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
11428 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11429 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GTimeReference_set" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11430 }
11431 if (!ptr) {
11432 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11433 }
11434 arg4 = ptr;
11435 }
11436 {
11437 try {
11438 (arg1)->set((double const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4);
11439 }
11440 catch (const GException::out_of_range& e) {
11441 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11442 }
11443 catch (const GExceptionHandler& e) {
11444 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11445 }
11446 catch (const std::exception& e) {
11447 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11448 }
11449 }
11450 resultobj = SWIG_Py_Void();
11451 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
11452 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11453 return resultobj;
11454fail:
11455 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
11456 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11457 return NULL__null;
11458}
11459
11460
11461SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_set__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11462 PyObject *resultobj = 0;
11463 GTimeReference *arg1 = (GTimeReference *) 0 ;
11464 double *arg2 = 0 ;
11465 std::string *arg3 = 0 ;
11466 void *argp1 = 0 ;
11467 int res1 = 0 ;
11468 double temp2 ;
11469 double val2 ;
11470 int ecode2 = 0 ;
11471 int res3 = SWIG_OLDOBJ((0)) ;
11472 PyObject * obj0 = 0 ;
11473 PyObject * obj1 = 0 ;
11474 PyObject * obj2 = 0 ;
11475
11476 if (!PyArg_ParseTuple(args,(char *)"OOO:GTimeReference_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11478 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_set" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_set" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11480 }
11481 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11482 ecode2 = SWIG_AsVal_double(obj1, &val2);
11483 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimeReference_set" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimeReference_set" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
11485 }
11486 temp2 = static_cast< double >(val2);
11487 arg2 = &temp2;
11488 {
11489 std::string *ptr = (std::string *)0;
11490 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
11491 if (!SWIG_IsOK(res3)(res3 >= 0)) {
11492 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GTimeReference_set" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GTimeReference_set" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11493 }
11494 if (!ptr) {
11495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11496 }
11497 arg3 = ptr;
11498 }
11499 {
11500 try {
11501 (arg1)->set((double const &)*arg2,(std::string const &)*arg3);
11502 }
11503 catch (const GException::out_of_range& e) {
11504 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11505 }
11506 catch (const GExceptionHandler& e) {
11507 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11508 }
11509 catch (const std::exception& e) {
11510 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11511 }
11512 }
11513 resultobj = SWIG_Py_Void();
11514 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
11515 return resultobj;
11516fail:
11517 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
11518 return NULL__null;
11519}
11520
11521
11522SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_set__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11523 PyObject *resultobj = 0;
11524 GTimeReference *arg1 = (GTimeReference *) 0 ;
11525 int *arg2 = 0 ;
11526 double *arg3 = 0 ;
11527 std::string *arg4 = 0 ;
11528 std::string *arg5 = 0 ;
11529 std::string *arg6 = 0 ;
11530 void *argp1 = 0 ;
11531 int res1 = 0 ;
11532 int temp2 ;
11533 int val2 ;
11534 int ecode2 = 0 ;
11535 double temp3 ;
11536 double val3 ;
11537 int ecode3 = 0 ;
11538 int res4 = SWIG_OLDOBJ((0)) ;
11539 int res5 = SWIG_OLDOBJ((0)) ;
11540 int res6 = SWIG_OLDOBJ((0)) ;
11541 PyObject * obj0 = 0 ;
11542 PyObject * obj1 = 0 ;
11543 PyObject * obj2 = 0 ;
11544 PyObject * obj3 = 0 ;
11545 PyObject * obj4 = 0 ;
11546 PyObject * obj5 = 0 ;
11547
11548 if (!PyArg_ParseTuple(args,(char *)"OOOOOO:GTimeReference_set",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_failgoto fail;
11549 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11550 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_set" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_set" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11552 }
11553 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11554 ecode2 = SWIG_AsVal_int(obj1, &val2);
11555 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimeReference_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimeReference_set" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11557 }
11558 temp2 = static_cast< int >(val2);
11559 arg2 = &temp2;
11560 ecode3 = SWIG_AsVal_double(obj2, &val3);
11561 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
11562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTimeReference_set" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GTimeReference_set" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
11563 }
11564 temp3 = static_cast< double >(val3);
11565 arg3 = &temp3;
11566 {
11567 std::string *ptr = (std::string *)0;
11568 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
11569 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11570 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GTimeReference_set" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11571 }
11572 if (!ptr) {
11573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11574 }
11575 arg4 = ptr;
11576 }
11577 {
11578 std::string *ptr = (std::string *)0;
11579 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
11580 if (!SWIG_IsOK(res5)(res5 >= 0)) {
11581 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GTimeReference_set" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GTimeReference_set" "', argument "
"5"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11582 }
11583 if (!ptr) {
11584 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "5"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11585 }
11586 arg5 = ptr;
11587 }
11588 {
11589 std::string *ptr = (std::string *)0;
11590 res6 = SWIG_AsPtr_std_string(obj5, &ptr);
11591 if (!SWIG_IsOK(res6)(res6 >= 0)) {
11592 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GTimeReference_set" "', argument " "6"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res6 != (
-1)) ? res6 : -5)), "in method '" "GTimeReference_set" "', argument "
"6"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11593 }
11594 if (!ptr) {
11595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "6"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "6"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11596 }
11597 arg6 = ptr;
11598 }
11599 {
11600 try {
11601 (arg1)->set((int const &)*arg2,(double const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(std::string const &)*arg6);
11602 }
11603 catch (const GException::out_of_range& e) {
11604 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11605 }
11606 catch (const GExceptionHandler& e) {
11607 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11608 }
11609 catch (const std::exception& e) {
11610 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11611 }
11612 }
11613 resultobj = SWIG_Py_Void();
11614 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11615 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
11616 if (SWIG_IsNewObj(res6)((res6 >= 0) && (res6 & ((1 << 8) <<
1)))
) delete arg6;
11617 return resultobj;
11618fail:
11619 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11620 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
11621 if (SWIG_IsNewObj(res6)((res6 >= 0) && (res6 & ((1 << 8) <<
1)))
) delete arg6;
11622 return NULL__null;
11623}
11624
11625
11626SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_set__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11627 PyObject *resultobj = 0;
11628 GTimeReference *arg1 = (GTimeReference *) 0 ;
11629 int *arg2 = 0 ;
11630 double *arg3 = 0 ;
11631 std::string *arg4 = 0 ;
11632 std::string *arg5 = 0 ;
11633 void *argp1 = 0 ;
11634 int res1 = 0 ;
11635 int temp2 ;
11636 int val2 ;
11637 int ecode2 = 0 ;
11638 double temp3 ;
11639 double val3 ;
11640 int ecode3 = 0 ;
11641 int res4 = SWIG_OLDOBJ((0)) ;
11642 int res5 = SWIG_OLDOBJ((0)) ;
11643 PyObject * obj0 = 0 ;
11644 PyObject * obj1 = 0 ;
11645 PyObject * obj2 = 0 ;
11646 PyObject * obj3 = 0 ;
11647 PyObject * obj4 = 0 ;
11648
11649 if (!PyArg_ParseTuple(args,(char *)"OOOOO:GTimeReference_set",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_failgoto fail;
11650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11651 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_set" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_set" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11653 }
11654 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11655 ecode2 = SWIG_AsVal_int(obj1, &val2);
11656 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimeReference_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimeReference_set" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11658 }
11659 temp2 = static_cast< int >(val2);
11660 arg2 = &temp2;
11661 ecode3 = SWIG_AsVal_double(obj2, &val3);
11662 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
11663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTimeReference_set" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GTimeReference_set" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
11664 }
11665 temp3 = static_cast< double >(val3);
11666 arg3 = &temp3;
11667 {
11668 std::string *ptr = (std::string *)0;
11669 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
11670 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11671 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GTimeReference_set" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11672 }
11673 if (!ptr) {
11674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11675 }
11676 arg4 = ptr;
11677 }
11678 {
11679 std::string *ptr = (std::string *)0;
11680 res5 = SWIG_AsPtr_std_string(obj4, &ptr);
11681 if (!SWIG_IsOK(res5)(res5 >= 0)) {
11682 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GTimeReference_set" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res5 != (
-1)) ? res5 : -5)), "in method '" "GTimeReference_set" "', argument "
"5"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11683 }
11684 if (!ptr) {
11685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "5"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "5"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11686 }
11687 arg5 = ptr;
11688 }
11689 {
11690 try {
11691 (arg1)->set((int const &)*arg2,(double const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
11692 }
11693 catch (const GException::out_of_range& e) {
11694 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11695 }
11696 catch (const GExceptionHandler& e) {
11697 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11698 }
11699 catch (const std::exception& e) {
11700 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11701 }
11702 }
11703 resultobj = SWIG_Py_Void();
11704 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11705 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
11706 return resultobj;
11707fail:
11708 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11709 if (SWIG_IsNewObj(res5)((res5 >= 0) && (res5 & ((1 << 8) <<
1)))
) delete arg5;
11710 return NULL__null;
11711}
11712
11713
11714SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_set__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11715 PyObject *resultobj = 0;
11716 GTimeReference *arg1 = (GTimeReference *) 0 ;
11717 int *arg2 = 0 ;
11718 double *arg3 = 0 ;
11719 std::string *arg4 = 0 ;
11720 void *argp1 = 0 ;
11721 int res1 = 0 ;
11722 int temp2 ;
11723 int val2 ;
11724 int ecode2 = 0 ;
11725 double temp3 ;
11726 double val3 ;
11727 int ecode3 = 0 ;
11728 int res4 = SWIG_OLDOBJ((0)) ;
11729 PyObject * obj0 = 0 ;
11730 PyObject * obj1 = 0 ;
11731 PyObject * obj2 = 0 ;
11732 PyObject * obj3 = 0 ;
11733
11734 if (!PyArg_ParseTuple(args,(char *)"OOOO:GTimeReference_set",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
11735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11736 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_set" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_set" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
11738 }
11739 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11740 ecode2 = SWIG_AsVal_int(obj1, &val2);
11741 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
11742 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GTimeReference_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GTimeReference_set" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
11743 }
11744 temp2 = static_cast< int >(val2);
11745 arg2 = &temp2;
11746 ecode3 = SWIG_AsVal_double(obj2, &val3);
11747 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
11748 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GTimeReference_set" "', argument " "3"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GTimeReference_set" "', argument "
"3"" of type '" "double""'"); goto fail; } while(0)
;
11749 }
11750 temp3 = static_cast< double >(val3);
11751 arg3 = &temp3;
11752 {
11753 std::string *ptr = (std::string *)0;
11754 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
11755 if (!SWIG_IsOK(res4)(res4 >= 0)) {
11756 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GTimeReference_set" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11757 }
11758 if (!ptr) {
11759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GTimeReference_set" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GTimeReference_set" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
11760 }
11761 arg4 = ptr;
11762 }
11763 {
11764 try {
11765 (arg1)->set((int const &)*arg2,(double const &)*arg3,(std::string const &)*arg4);
11766 }
11767 catch (const GException::out_of_range& e) {
11768 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11769 }
11770 catch (const GExceptionHandler& e) {
11771 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11772 }
11773 catch (const std::exception& e) {
11774 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11775 }
11776 }
11777 resultobj = SWIG_Py_Void();
11778 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11779 return resultobj;
11780fail:
11781 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
11782 return NULL__null;
11783}
11784
11785
11786SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_set(PyObject *self, PyObject *args) {
11787 int argc;
11788 PyObject *argv[7];
11789 int ii;
11790
11791 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11792 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11793 for (ii = 0; (ii < 6) && (ii < argc); ii++) {
11794 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11795 }
11796 if (argc == 3) {
11797 int _v;
11798 void *vptr = 0;
11799 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
11800 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11801 if (_v) {
11802 {
11803 int res = SWIG_AsVal_double(argv[1], NULL__null);
11804 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11805 }
11806 if (_v) {
11807 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
11808 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11809 if (_v) {
11810 return _wrap_GTimeReference_set__SWIG_2(self, args);
11811 }
11812 }
11813 }
11814 }
11815 if (argc == 4) {
11816 int _v;
11817 void *vptr = 0;
11818 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
11819 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11820 if (_v) {
11821 {
11822 int res = SWIG_AsVal_int(argv[1], NULL__null);
11823 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11824 }
11825 if (_v) {
11826 {
11827 int res = SWIG_AsVal_double(argv[2], NULL__null);
11828 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11829 }
11830 if (_v) {
11831 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11832 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11833 if (_v) {
11834 return _wrap_GTimeReference_set__SWIG_5(self, args);
11835 }
11836 }
11837 }
11838 }
11839 }
11840 if (argc == 4) {
11841 int _v;
11842 void *vptr = 0;
11843 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
11844 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11845 if (_v) {
11846 {
11847 int res = SWIG_AsVal_double(argv[1], NULL__null);
11848 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11849 }
11850 if (_v) {
11851 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
11852 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11853 if (_v) {
11854 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11855 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11856 if (_v) {
11857 return _wrap_GTimeReference_set__SWIG_1(self, args);
11858 }
11859 }
11860 }
11861 }
11862 }
11863 if (argc == 5) {
11864 int _v;
11865 void *vptr = 0;
11866 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
11867 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11868 if (_v) {
11869 {
11870 int res = SWIG_AsVal_int(argv[1], NULL__null);
11871 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11872 }
11873 if (_v) {
11874 {
11875 int res = SWIG_AsVal_double(argv[2], NULL__null);
11876 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11877 }
11878 if (_v) {
11879 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11880 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11881 if (_v) {
11882 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
11883 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11884 if (_v) {
11885 return _wrap_GTimeReference_set__SWIG_4(self, args);
11886 }
11887 }
11888 }
11889 }
11890 }
11891 }
11892 if (argc == 5) {
11893 int _v;
11894 void *vptr = 0;
11895 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
11896 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11897 if (_v) {
11898 {
11899 int res = SWIG_AsVal_double(argv[1], NULL__null);
11900 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11901 }
11902 if (_v) {
11903 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
11904 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11905 if (_v) {
11906 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11907 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11908 if (_v) {
11909 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
11910 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11911 if (_v) {
11912 return _wrap_GTimeReference_set__SWIG_0(self, args);
11913 }
11914 }
11915 }
11916 }
11917 }
11918 }
11919 if (argc == 6) {
11920 int _v;
11921 void *vptr = 0;
11922 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[33
], 0, 0)
;
11923 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11924 if (_v) {
11925 {
11926 int res = SWIG_AsVal_int(argv[1], NULL__null);
11927 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11928 }
11929 if (_v) {
11930 {
11931 int res = SWIG_AsVal_double(argv[2], NULL__null);
11932 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11933 }
11934 if (_v) {
11935 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
11936 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11937 if (_v) {
11938 int res = SWIG_AsPtr_std_string(argv[4], (std::string**)(0));
11939 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11940 if (_v) {
11941 int res = SWIG_AsPtr_std_string(argv[5], (std::string**)(0));
11942 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11943 if (_v) {
11944 return _wrap_GTimeReference_set__SWIG_3(self, args);
11945 }
11946 }
11947 }
11948 }
11949 }
11950 }
11951 }
11952
11953fail:
11954 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GTimeReference_set'.\n"
11955 " Possible C/C++ prototypes are:\n"
11956 " GTimeReference::set(double const &,std::string const &,std::string const &,std::string const &)\n"
11957 " GTimeReference::set(double const &,std::string const &,std::string const &)\n"
11958 " GTimeReference::set(double const &,std::string const &)\n"
11959 " GTimeReference::set(int const &,double const &,std::string const &,std::string const &,std::string const &)\n"
11960 " GTimeReference::set(int const &,double const &,std::string const &,std::string const &)\n"
11961 " GTimeReference::set(int const &,double const &,std::string const &)\n");
11962 return 0;
11963}
11964
11965
11966SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_mjdref(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11967 PyObject *resultobj = 0;
11968 GTimeReference *arg1 = (GTimeReference *) 0 ;
11969 void *argp1 = 0 ;
11970 int res1 = 0 ;
11971 PyObject * obj0 = 0 ;
11972 double *result = 0 ;
11973
11974 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_mjdref",&obj0)) SWIG_failgoto fail;
11975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
11976 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_mjdref" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_mjdref" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
11978 }
11979 arg1 = reinterpret_cast< GTimeReference * >(argp1);
11980 {
11981 try {
11982 result = (double *) &((GTimeReference const *)arg1)->mjdref();
11983 }
11984 catch (const GException::out_of_range& e) {
11985 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11986 }
11987 catch (const GExceptionHandler& e) {
11988 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11989 }
11990 catch (const std::exception& e) {
11991 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11992 }
11993 }
11994 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
11995 return resultobj;
11996fail:
11997 return NULL__null;
11998}
11999
12000
12001SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_mjdrefi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12002 PyObject *resultobj = 0;
12003 GTimeReference *arg1 = (GTimeReference *) 0 ;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 PyObject * obj0 = 0 ;
12007 int result;
12008
12009 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_mjdrefi",&obj0)) SWIG_failgoto fail;
12010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
12011 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_mjdrefi" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_mjdrefi" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
12013 }
12014 arg1 = reinterpret_cast< GTimeReference * >(argp1);
12015 {
12016 try {
12017 result = (int)((GTimeReference const *)arg1)->mjdrefi();
12018 }
12019 catch (const GException::out_of_range& e) {
12020 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12021 }
12022 catch (const GExceptionHandler& e) {
12023 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12024 }
12025 catch (const std::exception& e) {
12026 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12027 }
12028 }
12029 resultobj = SWIG_From_int(static_cast< int >(result));
12030 return resultobj;
12031fail:
12032 return NULL__null;
12033}
12034
12035
12036SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_mjdreff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12037 PyObject *resultobj = 0;
12038 GTimeReference *arg1 = (GTimeReference *) 0 ;
12039 void *argp1 = 0 ;
12040 int res1 = 0 ;
12041 PyObject * obj0 = 0 ;
12042 double result;
12043
12044 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_mjdreff",&obj0)) SWIG_failgoto fail;
12045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
12046 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_mjdreff" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_mjdreff" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
12048 }
12049 arg1 = reinterpret_cast< GTimeReference * >(argp1);
12050 {
12051 try {
12052 result = (double)((GTimeReference const *)arg1)->mjdreff();
12053 }
12054 catch (const GException::out_of_range& e) {
12055 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12056 }
12057 catch (const GExceptionHandler& e) {
12058 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12059 }
12060 catch (const std::exception& e) {
12061 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12062 }
12063 }
12064 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
12065 return resultobj;
12066fail:
12067 return NULL__null;
12068}
12069
12070
12071SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_timeunit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12072 PyObject *resultobj = 0;
12073 GTimeReference *arg1 = (GTimeReference *) 0 ;
12074 void *argp1 = 0 ;
12075 int res1 = 0 ;
12076 PyObject * obj0 = 0 ;
12077 std::string *result = 0 ;
12078
12079 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_timeunit",&obj0)) SWIG_failgoto fail;
12080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
12081 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_timeunit" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_timeunit" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
12083 }
12084 arg1 = reinterpret_cast< GTimeReference * >(argp1);
12085 {
12086 try {
12087 result = (std::string *) &((GTimeReference const *)arg1)->timeunit();
12088 }
12089 catch (const GException::out_of_range& e) {
12090 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12091 }
12092 catch (const GExceptionHandler& e) {
12093 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12094 }
12095 catch (const std::exception& e) {
12096 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12097 }
12098 }
12099 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
12100 return resultobj;
12101fail:
12102 return NULL__null;
12103}
12104
12105
12106SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_timesys(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12107 PyObject *resultobj = 0;
12108 GTimeReference *arg1 = (GTimeReference *) 0 ;
12109 void *argp1 = 0 ;
12110 int res1 = 0 ;
12111 PyObject * obj0 = 0 ;
12112 std::string *result = 0 ;
12113
12114 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_timesys",&obj0)) SWIG_failgoto fail;
12115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
12116 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_timesys" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_timesys" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
12118 }
12119 arg1 = reinterpret_cast< GTimeReference * >(argp1);
12120 {
12121 try {
12122 result = (std::string *) &((GTimeReference const *)arg1)->timesys();
12123 }
12124 catch (const GException::out_of_range& e) {
12125 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12126 }
12127 catch (const GExceptionHandler& e) {
12128 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12129 }
12130 catch (const std::exception& e) {
12131 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12132 }
12133 }
12134 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
12135 return resultobj;
12136fail:
12137 return NULL__null;
12138}
12139
12140
12141SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_timeref(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12142 PyObject *resultobj = 0;
12143 GTimeReference *arg1 = (GTimeReference *) 0 ;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 PyObject * obj0 = 0 ;
12147 std::string *result = 0 ;
12148
12149 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_timeref",&obj0)) SWIG_failgoto fail;
12150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
12151 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_timeref" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_timeref" "', argument "
"1"" of type '" "GTimeReference const *""'"); goto fail; } while
(0)
;
12153 }
12154 arg1 = reinterpret_cast< GTimeReference * >(argp1);
12155 {
12156 try {
12157 result = (std::string *) &((GTimeReference const *)arg1)->timeref();
12158 }
12159 catch (const GException::out_of_range& e) {
12160 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12161 }
12162 catch (const GExceptionHandler& e) {
12163 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12164 }
12165 catch (const std::exception& e) {
12166 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12167 }
12168 }
12169 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
12170 return resultobj;
12171fail:
12172 return NULL__null;
12173}
12174
12175
12176SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_unitseconds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12177 PyObject *resultobj = 0;
12178 GTimeReference *arg1 = (GTimeReference *) 0 ;
12179 void *argp1 = 0 ;
12180 int res1 = 0 ;
12181 PyObject * obj0 = 0 ;
12182 double result;
12183
12184 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_unitseconds",&obj0)) SWIG_failgoto fail;
12185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
12186 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_unitseconds" "', argument " "1"" of type '" "GTimeReference const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_unitseconds"
"', argument " "1"" of type '" "GTimeReference const *""'");
goto fail; } while(0)
;
12188 }
12189 arg1 = reinterpret_cast< GTimeReference * >(argp1);
12190 {
12191 try {
12192 result = (double)((GTimeReference const *)arg1)->unitseconds();
12193 }
12194 catch (const GException::out_of_range& e) {
12195 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12196 }
12197 catch (const GExceptionHandler& e) {
12198 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12199 }
12200 catch (const std::exception& e) {
12201 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12202 }
12203 }
12204 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
12205 return resultobj;
12206fail:
12207 return NULL__null;
12208}
12209
12210
12211SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GTimeReference_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12212 PyObject *resultobj = 0;
12213 GTimeReference *arg1 = (GTimeReference *) 0 ;
12214 void *argp1 = 0 ;
12215 int res1 = 0 ;
12216 PyObject * obj0 = 0 ;
12217 GTimeReference result;
12218
12219 if (!PyArg_ParseTuple(args,(char *)"O:GTimeReference_copy",&obj0)) SWIG_failgoto fail;
12220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
12221 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GTimeReference_copy" "', argument " "1"" of type '" "GTimeReference *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GTimeReference_copy" "', argument "
"1"" of type '" "GTimeReference *""'"); goto fail; } while(0
)
;
12223 }
12224 arg1 = reinterpret_cast< GTimeReference * >(argp1);
12225 {
12226 try {
12227 result = GTimeReference_copy(arg1);
12228 }
12229 catch (const GException::out_of_range& e) {
12230 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12231 }
12232 catch (const GExceptionHandler& e) {
12233 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12234 }
12235 catch (const std::exception& e) {
12236 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12237 }
12238 }
12239 resultobj = SWIG_NewPointerObj((new GTimeReference(static_cast< const GTimeReference& >(result))), SWIGTYPE_p_GTimeReference, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTimeReference(static_cast
< const GTimeReference& >(result))), swig_types[33]
, 0x1 | 0)
;
12240 return resultobj;
12241fail:
12242 return NULL__null;
12243}
12244
12245
12246SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GTimeReference_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12247 PyObject *obj;
12248 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
12249 SWIG_TypeNewClientData(SWIGTYPE_p_GTimeReferenceswig_types[33], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
12250 return SWIG_Py_Void();
12251}
12252
12253SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEbounds__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 GEbounds *result = 0 ;
12256
12257 if (!PyArg_ParseTuple(args,(char *)":new_GEbounds")) SWIG_failgoto fail;
12258 {
12259 try {
12260 result = (GEbounds *)new GEbounds();
12261 }
12262 catch (const GException::out_of_range& e) {
12263 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12264 }
12265 catch (const GExceptionHandler& e) {
12266 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12267 }
12268 catch (const std::exception& e) {
12269 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12270 }
12271 }
12272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
12273 return resultobj;
12274fail:
12275 return NULL__null;
12276}
12277
12278
12279SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEbounds__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12280 PyObject *resultobj = 0;
12281 GEbounds *arg1 = 0 ;
12282 void *argp1 = 0 ;
12283 int res1 = 0 ;
12284 PyObject * obj0 = 0 ;
12285 GEbounds *result = 0 ;
12286
12287 if (!PyArg_ParseTuple(args,(char *)"O:new_GEbounds",&obj0)) SWIG_failgoto fail;
12288 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12289 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GEbounds" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GEbounds" "', argument "
"1"" of type '" "GEbounds const &""'"); goto fail; } while
(0)
;
12291 }
12292 if (!argp1) {
12293 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEbounds" "', argument " "1"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEbounds" "', argument " "1"" of type '" "GEbounds const &"
"'"); goto fail; } while(0)
;
12294 }
12295 arg1 = reinterpret_cast< GEbounds * >(argp1);
12296 {
12297 try {
12298 result = (GEbounds *)new GEbounds((GEbounds const &)*arg1);
12299 }
12300 catch (const GException::out_of_range& e) {
12301 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12302 }
12303 catch (const GExceptionHandler& e) {
12304 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12305 }
12306 catch (const std::exception& e) {
12307 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12308 }
12309 }
12310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
12311 return resultobj;
12312fail:
12313 return NULL__null;
12314}
12315
12316
12317SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEbounds__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12318 PyObject *resultobj = 0;
12319 int *arg1 = 0 ;
12320 GEnergy *arg2 = 0 ;
12321 GEnergy *arg3 = 0 ;
12322 bool *arg4 = 0 ;
12323 int temp1 ;
12324 int val1 ;
12325 int ecode1 = 0 ;
12326 void *argp2 = 0 ;
12327 int res2 = 0 ;
12328 void *argp3 = 0 ;
12329 int res3 = 0 ;
12330 bool temp4 ;
12331 bool val4 ;
12332 int ecode4 = 0 ;
12333 PyObject * obj0 = 0 ;
12334 PyObject * obj1 = 0 ;
12335 PyObject * obj2 = 0 ;
12336 PyObject * obj3 = 0 ;
12337 GEbounds *result = 0 ;
12338
12339 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GEbounds",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
12340 ecode1 = SWIG_AsVal_int(obj0, &val1);
12341 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
12342 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GEbounds" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GEbounds" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
12343 }
12344 temp1 = static_cast< int >(val1);
12345 arg1 = &temp1;
12346 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12347 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12348 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GEbounds" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GEbounds" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12349 }
12350 if (!argp2) {
12351 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEbounds" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEbounds" "', argument " "2"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
12352 }
12353 arg2 = reinterpret_cast< GEnergy * >(argp2);
12354 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
12355 if (!SWIG_IsOK(res3)(res3 >= 0)) {
12356 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GEbounds" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GEbounds" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12357 }
12358 if (!argp3) {
12359 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEbounds" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEbounds" "', argument " "3"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
12360 }
12361 arg3 = reinterpret_cast< GEnergy * >(argp3);
12362 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12363 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
12364 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GEbounds" "', argument " "4"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "new_GEbounds" "', argument "
"4"" of type '" "bool""'"); goto fail; } while(0)
;
12365 }
12366 temp4 = static_cast< bool >(val4);
12367 arg4 = &temp4;
12368 {
12369 try {
12370 result = (GEbounds *)new GEbounds((int const &)*arg1,(GEnergy const &)*arg2,(GEnergy const &)*arg3,(bool const &)*arg4);
12371 }
12372 catch (const GException::out_of_range& e) {
12373 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12374 }
12375 catch (const GExceptionHandler& e) {
12376 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12377 }
12378 catch (const std::exception& e) {
12379 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12380 }
12381 }
12382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
12383 return resultobj;
12384fail:
12385 return NULL__null;
12386}
12387
12388
12389SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEbounds__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 int *arg1 = 0 ;
12392 GEnergy *arg2 = 0 ;
12393 GEnergy *arg3 = 0 ;
12394 int temp1 ;
12395 int val1 ;
12396 int ecode1 = 0 ;
12397 void *argp2 = 0 ;
12398 int res2 = 0 ;
12399 void *argp3 = 0 ;
12400 int res3 = 0 ;
12401 PyObject * obj0 = 0 ;
12402 PyObject * obj1 = 0 ;
12403 PyObject * obj2 = 0 ;
12404 GEbounds *result = 0 ;
12405
12406 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GEbounds",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
12407 ecode1 = SWIG_AsVal_int(obj0, &val1);
12408 if (!SWIG_IsOK(ecode1)(ecode1 >= 0)) {
12409 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GEbounds" "', argument " "1"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode1 !=
(-1)) ? ecode1 : -5)), "in method '" "new_GEbounds" "', argument "
"1"" of type '" "int""'"); goto fail; } while(0)
;
12410 }
12411 temp1 = static_cast< int >(val1);
12412 arg1 = &temp1;
12413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12414 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GEbounds" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GEbounds" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12416 }
12417 if (!argp2) {
12418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEbounds" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEbounds" "', argument " "2"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
12419 }
12420 arg2 = reinterpret_cast< GEnergy * >(argp2);
12421 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
12422 if (!SWIG_IsOK(res3)(res3 >= 0)) {
12423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GEbounds" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GEbounds" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12424 }
12425 if (!argp3) {
12426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEbounds" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEbounds" "', argument " "3"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
12427 }
12428 arg3 = reinterpret_cast< GEnergy * >(argp3);
12429 {
12430 try {
12431 result = (GEbounds *)new GEbounds((int const &)*arg1,(GEnergy const &)*arg2,(GEnergy const &)*arg3);
12432 }
12433 catch (const GException::out_of_range& e) {
12434 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12435 }
12436 catch (const GExceptionHandler& e) {
12437 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12438 }
12439 catch (const std::exception& e) {
12440 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12441 }
12442 }
12443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
12444 return resultobj;
12445fail:
12446 return NULL__null;
12447}
12448
12449
12450SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEbounds__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12451 PyObject *resultobj = 0;
12452 std::string *arg1 = 0 ;
12453 std::string *arg2 = 0 ;
12454 int res1 = SWIG_OLDOBJ((0)) ;
12455 int res2 = SWIG_OLDOBJ((0)) ;
12456 PyObject * obj0 = 0 ;
12457 PyObject * obj1 = 0 ;
12458 GEbounds *result = 0 ;
12459
12460 if (!PyArg_ParseTuple(args,(char *)"OO:new_GEbounds",&obj0,&obj1)) SWIG_failgoto fail;
12461 {
12462 std::string *ptr = (std::string *)0;
12463 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
12464 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GEbounds" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GEbounds" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
12466 }
12467 if (!ptr) {
12468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEbounds" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEbounds" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
12469 }
12470 arg1 = ptr;
12471 }
12472 {
12473 std::string *ptr = (std::string *)0;
12474 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
12475 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12476 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GEbounds" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GEbounds" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
12477 }
12478 if (!ptr) {
12479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GEbounds" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GEbounds" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
12480 }
12481 arg2 = ptr;
12482 }
12483 {
12484 try {
12485 result = (GEbounds *)new GEbounds((std::string const &)*arg1,(std::string const &)*arg2);
12486 }
12487 catch (const GException::out_of_range& e) {
12488 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12489 }
12490 catch (const GExceptionHandler& e) {
12491 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12492 }
12493 catch (const std::exception& e) {
12494 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12495 }
12496 }
12497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
12498 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
12499 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
12500 return resultobj;
12501fail:
12502 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
12503 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
12504 return NULL__null;
12505}
12506
12507
12508SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GEbounds(PyObject *self, PyObject *args) {
12509 int argc;
12510 PyObject *argv[5];
12511 int ii;
12512
12513 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12514 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12515 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
12516 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12517 }
12518 if (argc == 0) {
12519 return _wrap_new_GEbounds__SWIG_0(self, args);
12520 }
12521 if (argc == 1) {
12522 int _v;
12523 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0);
12524 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12525 if (_v) {
12526 return _wrap_new_GEbounds__SWIG_1(self, args);
12527 }
12528 }
12529 if (argc == 2) {
12530 int _v;
12531 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
12532 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12533 if (_v) {
12534 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
12535 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12536 if (_v) {
12537 return _wrap_new_GEbounds__SWIG_4(self, args);
12538 }
12539 }
12540 }
12541 if (argc == 3) {
12542 int _v;
12543 {
12544 int res = SWIG_AsVal_int(argv[0], NULL__null);
12545 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12546 }
12547 if (_v) {
12548 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
12549 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12550 if (_v) {
12551 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
12552 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12553 if (_v) {
12554 return _wrap_new_GEbounds__SWIG_3(self, args);
12555 }
12556 }
12557 }
12558 }
12559 if (argc == 4) {
12560 int _v;
12561 {
12562 int res = SWIG_AsVal_int(argv[0], NULL__null);
12563 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12564 }
12565 if (_v) {
12566 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
12567 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12568 if (_v) {
12569 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
12570 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12571 if (_v) {
12572 {
12573 int res = SWIG_AsVal_bool(argv[3], NULL__null);
12574 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12575 }
12576 if (_v) {
12577 return _wrap_new_GEbounds__SWIG_2(self, args);
12578 }
12579 }
12580 }
12581 }
12582 }
12583
12584fail:
12585 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GEbounds'.\n"
12586 " Possible C/C++ prototypes are:\n"
12587 " GEbounds::GEbounds()\n"
12588 " GEbounds::GEbounds(GEbounds const &)\n"
12589 " GEbounds::GEbounds(int const &,GEnergy const &,GEnergy const &,bool const &)\n"
12590 " GEbounds::GEbounds(int const &,GEnergy const &,GEnergy const &)\n"
12591 " GEbounds::GEbounds(std::string const &,std::string const &)\n");
12592 return 0;
12593}
12594
12595
12596SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEbounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12597 PyObject *resultobj = 0;
12598 GEbounds *arg1 = (GEbounds *) 0 ;
12599 void *argp1 = 0 ;
12600 int res1 = 0 ;
12601 PyObject * obj0 = 0 ;
12602
12603 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEbounds",&obj0)) SWIG_failgoto fail;
12604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
12605 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEbounds" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEbounds" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
12607 }
12608 arg1 = reinterpret_cast< GEbounds * >(argp1);
12609 {
12610 try {
12611 delete arg1;
12612 }
12613 catch (const GException::out_of_range& e) {
12614 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12615 }
12616 catch (const GExceptionHandler& e) {
12617 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12618 }
12619 catch (const std::exception& e) {
12620 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12621 }
12622 }
12623 resultobj = SWIG_Py_Void();
12624 return resultobj;
12625fail:
12626 return NULL__null;
12627}
12628
12629
12630SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12631 PyObject *resultobj = 0;
12632 GEbounds *arg1 = (GEbounds *) 0 ;
12633 void *argp1 = 0 ;
12634 int res1 = 0 ;
12635 PyObject * obj0 = 0 ;
12636
12637 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_clear",&obj0)) SWIG_failgoto fail;
12638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12639 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_clear" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_clear" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
12641 }
12642 arg1 = reinterpret_cast< GEbounds * >(argp1);
12643 {
12644 try {
12645 (arg1)->clear();
12646 }
12647 catch (const GException::out_of_range& e) {
12648 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12649 }
12650 catch (const GExceptionHandler& e) {
12651 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12652 }
12653 catch (const std::exception& e) {
12654 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12655 }
12656 }
12657 resultobj = SWIG_Py_Void();
12658 return resultobj;
12659fail:
12660 return NULL__null;
12661}
12662
12663
12664SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12665 PyObject *resultobj = 0;
12666 GEbounds *arg1 = (GEbounds *) 0 ;
12667 void *argp1 = 0 ;
12668 int res1 = 0 ;
12669 PyObject * obj0 = 0 ;
12670 GEbounds *result = 0 ;
12671
12672 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_clone",&obj0)) SWIG_failgoto fail;
12673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12674 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_clone" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_clone" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
12676 }
12677 arg1 = reinterpret_cast< GEbounds * >(argp1);
12678 {
12679 try {
12680 result = (GEbounds *)((GEbounds const *)arg1)->clone();
12681 }
12682 catch (const GException::out_of_range& e) {
12683 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12684 }
12685 catch (const GExceptionHandler& e) {
12686 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12687 }
12688 catch (const std::exception& e) {
12689 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12690 }
12691 }
12692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0 |
0)
;
12693 return resultobj;
12694fail:
12695 return NULL__null;
12696}
12697
12698
12699SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12700 PyObject *resultobj = 0;
12701 GEbounds *arg1 = (GEbounds *) 0 ;
12702 void *argp1 = 0 ;
12703 int res1 = 0 ;
12704 PyObject * obj0 = 0 ;
12705 int result;
12706
12707 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_size",&obj0)) SWIG_failgoto fail;
12708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12709 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_size" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_size" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
12711 }
12712 arg1 = reinterpret_cast< GEbounds * >(argp1);
12713 {
12714 try {
12715 result = (int)((GEbounds const *)arg1)->size();
12716 }
12717 catch (const GException::out_of_range& e) {
12718 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12719 }
12720 catch (const GExceptionHandler& e) {
12721 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12722 }
12723 catch (const std::exception& e) {
12724 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12725 }
12726 }
12727 resultobj = SWIG_From_int(static_cast< int >(result));
12728 return resultobj;
12729fail:
12730 return NULL__null;
12731}
12732
12733
12734SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12735 PyObject *resultobj = 0;
12736 GEbounds *arg1 = (GEbounds *) 0 ;
12737 void *argp1 = 0 ;
12738 int res1 = 0 ;
12739 PyObject * obj0 = 0 ;
12740 bool result;
12741
12742 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_isempty",&obj0)) SWIG_failgoto fail;
12743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12744 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_isempty" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_isempty" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
12746 }
12747 arg1 = reinterpret_cast< GEbounds * >(argp1);
12748 {
12749 try {
12750 result = (bool)((GEbounds const *)arg1)->isempty();
12751 }
12752 catch (const GException::out_of_range& e) {
12753 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12754 }
12755 catch (const GExceptionHandler& e) {
12756 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12757 }
12758 catch (const std::exception& e) {
12759 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12760 }
12761 }
12762 resultobj = SWIG_From_bool(static_cast< bool >(result));
12763 return resultobj;
12764fail:
12765 return NULL__null;
12766}
12767
12768
12769SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12770 PyObject *resultobj = 0;
12771 GEbounds *arg1 = (GEbounds *) 0 ;
12772 GEnergy *arg2 = 0 ;
12773 GEnergy *arg3 = 0 ;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 void *argp2 = 0 ;
12777 int res2 = 0 ;
12778 void *argp3 = 0 ;
12779 int res3 = 0 ;
12780 PyObject * obj0 = 0 ;
12781 PyObject * obj1 = 0 ;
12782 PyObject * obj2 = 0 ;
12783
12784 if (!PyArg_ParseTuple(args,(char *)"OOO:GEbounds_append",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
12785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12786 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_append" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_append" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
12788 }
12789 arg1 = reinterpret_cast< GEbounds * >(argp1);
12790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12791 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_append" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_append" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12793 }
12794 if (!argp2) {
12795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_append" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_append" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
12796 }
12797 arg2 = reinterpret_cast< GEnergy * >(argp2);
12798 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
12799 if (!SWIG_IsOK(res3)(res3 >= 0)) {
12800 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEbounds_append" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEbounds_append" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12801 }
12802 if (!argp3) {
12803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_append" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_append" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
12804 }
12805 arg3 = reinterpret_cast< GEnergy * >(argp3);
12806 {
12807 try {
12808 (arg1)->append((GEnergy const &)*arg2,(GEnergy const &)*arg3);
12809 }
12810 catch (const GException::out_of_range& e) {
12811 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12812 }
12813 catch (const GExceptionHandler& e) {
12814 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12815 }
12816 catch (const std::exception& e) {
12817 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12818 }
12819 }
12820 resultobj = SWIG_Py_Void();
12821 return resultobj;
12822fail:
12823 return NULL__null;
12824}
12825
12826
12827SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12828 PyObject *resultobj = 0;
12829 GEbounds *arg1 = (GEbounds *) 0 ;
12830 GEnergy *arg2 = 0 ;
12831 GEnergy *arg3 = 0 ;
12832 void *argp1 = 0 ;
12833 int res1 = 0 ;
12834 void *argp2 = 0 ;
12835 int res2 = 0 ;
12836 void *argp3 = 0 ;
12837 int res3 = 0 ;
12838 PyObject * obj0 = 0 ;
12839 PyObject * obj1 = 0 ;
12840 PyObject * obj2 = 0 ;
12841
12842 if (!PyArg_ParseTuple(args,(char *)"OOO:GEbounds_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
12843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12844 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_insert" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_insert" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
12846 }
12847 arg1 = reinterpret_cast< GEbounds * >(argp1);
12848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12849 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_insert" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_insert" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12851 }
12852 if (!argp2) {
12853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_insert" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_insert" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
12854 }
12855 arg2 = reinterpret_cast< GEnergy * >(argp2);
12856 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
12857 if (!SWIG_IsOK(res3)(res3 >= 0)) {
12858 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEbounds_insert" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEbounds_insert" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12859 }
12860 if (!argp3) {
12861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_insert" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_insert" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
12862 }
12863 arg3 = reinterpret_cast< GEnergy * >(argp3);
12864 {
12865 try {
12866 (arg1)->insert((GEnergy const &)*arg2,(GEnergy const &)*arg3);
12867 }
12868 catch (const GException::out_of_range& e) {
12869 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12870 }
12871 catch (const GExceptionHandler& e) {
12872 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12873 }
12874 catch (const std::exception& e) {
12875 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12876 }
12877 }
12878 resultobj = SWIG_Py_Void();
12879 return resultobj;
12880fail:
12881 return NULL__null;
12882}
12883
12884
12885SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_merge__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12886 PyObject *resultobj = 0;
12887 GEbounds *arg1 = (GEbounds *) 0 ;
12888 void *argp1 = 0 ;
12889 int res1 = 0 ;
12890 PyObject * obj0 = 0 ;
12891
12892 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_merge",&obj0)) SWIG_failgoto fail;
12893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12894 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_merge" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_merge" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
12896 }
12897 arg1 = reinterpret_cast< GEbounds * >(argp1);
12898 {
12899 try {
12900 (arg1)->merge();
12901 }
12902 catch (const GException::out_of_range& e) {
12903 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12904 }
12905 catch (const GExceptionHandler& e) {
12906 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12907 }
12908 catch (const std::exception& e) {
12909 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12910 }
12911 }
12912 resultobj = SWIG_Py_Void();
12913 return resultobj;
12914fail:
12915 return NULL__null;
12916}
12917
12918
12919SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_merge__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12920 PyObject *resultobj = 0;
12921 GEbounds *arg1 = (GEbounds *) 0 ;
12922 GEnergy *arg2 = 0 ;
12923 GEnergy *arg3 = 0 ;
12924 void *argp1 = 0 ;
12925 int res1 = 0 ;
12926 void *argp2 = 0 ;
12927 int res2 = 0 ;
12928 void *argp3 = 0 ;
12929 int res3 = 0 ;
12930 PyObject * obj0 = 0 ;
12931 PyObject * obj1 = 0 ;
12932 PyObject * obj2 = 0 ;
12933
12934 if (!PyArg_ParseTuple(args,(char *)"OOO:GEbounds_merge",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
12935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
12936 if (!SWIG_IsOK(res1)(res1 >= 0)) {
12937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_merge" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_merge" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
12938 }
12939 arg1 = reinterpret_cast< GEbounds * >(argp1);
12940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
12941 if (!SWIG_IsOK(res2)(res2 >= 0)) {
12942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_merge" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_merge" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12943 }
12944 if (!argp2) {
12945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_merge" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_merge" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
12946 }
12947 arg2 = reinterpret_cast< GEnergy * >(argp2);
12948 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
12949 if (!SWIG_IsOK(res3)(res3 >= 0)) {
12950 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEbounds_merge" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEbounds_merge" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
12951 }
12952 if (!argp3) {
12953 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_merge" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_merge" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
12954 }
12955 arg3 = reinterpret_cast< GEnergy * >(argp3);
12956 {
12957 try {
12958 (arg1)->merge((GEnergy const &)*arg2,(GEnergy const &)*arg3);
12959 }
12960 catch (const GException::out_of_range& e) {
12961 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
12962 }
12963 catch (const GExceptionHandler& e) {
12964 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12965 }
12966 catch (const std::exception& e) {
12967 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
12968 }
12969 }
12970 resultobj = SWIG_Py_Void();
12971 return resultobj;
12972fail:
12973 return NULL__null;
12974}
12975
12976
12977SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_merge(PyObject *self, PyObject *args) {
12978 int argc;
12979 PyObject *argv[4];
12980 int ii;
12981
12982 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
12983 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
12984 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
12985 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
12986 }
12987 if (argc == 1) {
12988 int _v;
12989 void *vptr = 0;
12990 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
12991 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
12992 if (_v) {
12993 return _wrap_GEbounds_merge__SWIG_0(self, args);
12994 }
12995 }
12996 if (argc == 3) {
12997 int _v;
12998 void *vptr = 0;
12999 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13000 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13001 if (_v) {
13002 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
13003 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13004 if (_v) {
13005 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
13006 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13007 if (_v) {
13008 return _wrap_GEbounds_merge__SWIG_1(self, args);
13009 }
13010 }
13011 }
13012 }
13013
13014fail:
13015 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEbounds_merge'.\n"
13016 " Possible C/C++ prototypes are:\n"
13017 " GEbounds::merge()\n"
13018 " GEbounds::merge(GEnergy const &,GEnergy const &)\n");
13019 return 0;
13020}
13021
13022
13023SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13024 PyObject *resultobj = 0;
13025 GEbounds *arg1 = (GEbounds *) 0 ;
13026 int *arg2 = 0 ;
13027 void *argp1 = 0 ;
13028 int res1 = 0 ;
13029 int temp2 ;
13030 int val2 ;
13031 int ecode2 = 0 ;
13032 PyObject * obj0 = 0 ;
13033 PyObject * obj1 = 0 ;
13034
13035 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_remove",&obj0,&obj1)) SWIG_failgoto fail;
13036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13037 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_remove" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_remove" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13039 }
13040 arg1 = reinterpret_cast< GEbounds * >(argp1);
13041 ecode2 = SWIG_AsVal_int(obj1, &val2);
13042 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
13044 }
13045 temp2 = static_cast< int >(val2);
13046 arg2 = &temp2;
13047 {
13048 try {
13049 (arg1)->remove((int const &)*arg2);
13050 }
13051 catch (const GException::out_of_range& e) {
13052 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13053 }
13054 catch (const GExceptionHandler& e) {
13055 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13056 }
13057 catch (const std::exception& e) {
13058 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13059 }
13060 }
13061 resultobj = SWIG_Py_Void();
13062 return resultobj;
13063fail:
13064 return NULL__null;
13065}
13066
13067
13068SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13069 PyObject *resultobj = 0;
13070 GEbounds *arg1 = (GEbounds *) 0 ;
13071 int *arg2 = 0 ;
13072 void *argp1 = 0 ;
13073 int res1 = 0 ;
13074 int temp2 ;
13075 int val2 ;
13076 int ecode2 = 0 ;
13077 PyObject * obj0 = 0 ;
13078 PyObject * obj1 = 0 ;
13079
13080 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_reserve",&obj0,&obj1)) SWIG_failgoto fail;
13081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13082 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_reserve" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_reserve" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13084 }
13085 arg1 = reinterpret_cast< GEbounds * >(argp1);
13086 ecode2 = SWIG_AsVal_int(obj1, &val2);
13087 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
13089 }
13090 temp2 = static_cast< int >(val2);
13091 arg2 = &temp2;
13092 {
13093 try {
13094 (arg1)->reserve((int const &)*arg2);
13095 }
13096 catch (const GException::out_of_range& e) {
13097 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13098 }
13099 catch (const GExceptionHandler& e) {
13100 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13101 }
13102 catch (const std::exception& e) {
13103 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13104 }
13105 }
13106 resultobj = SWIG_Py_Void();
13107 return resultobj;
13108fail:
13109 return NULL__null;
13110}
13111
13112
13113SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13114 PyObject *resultobj = 0;
13115 GEbounds *arg1 = (GEbounds *) 0 ;
13116 GEbounds *arg2 = 0 ;
13117 void *argp1 = 0 ;
13118 int res1 = 0 ;
13119 void *argp2 = 0 ;
13120 int res2 = 0 ;
13121 PyObject * obj0 = 0 ;
13122 PyObject * obj1 = 0 ;
13123
13124 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_extend",&obj0,&obj1)) SWIG_failgoto fail;
13125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13126 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_extend" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_extend" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13128 }
13129 arg1 = reinterpret_cast< GEbounds * >(argp1);
13130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
13131 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_extend" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_extend" "', argument "
"2"" of type '" "GEbounds const &""'"); goto fail; } while
(0)
;
13133 }
13134 if (!argp2) {
13135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_extend" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_extend" "', argument " "2"" of type '"
"GEbounds const &""'"); goto fail; } while(0)
;
13136 }
13137 arg2 = reinterpret_cast< GEbounds * >(argp2);
13138 {
13139 try {
13140 (arg1)->extend((GEbounds const &)*arg2);
13141 }
13142 catch (const GException::out_of_range& e) {
13143 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13144 }
13145 catch (const GExceptionHandler& e) {
13146 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13147 }
13148 catch (const std::exception& e) {
13149 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13150 }
13151 }
13152 resultobj = SWIG_Py_Void();
13153 return resultobj;
13154fail:
13155 return NULL__null;
13156}
13157
13158
13159SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_setlin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13160 PyObject *resultobj = 0;
13161 GEbounds *arg1 = (GEbounds *) 0 ;
13162 int *arg2 = 0 ;
13163 GEnergy *arg3 = 0 ;
13164 GEnergy *arg4 = 0 ;
13165 void *argp1 = 0 ;
13166 int res1 = 0 ;
13167 int temp2 ;
13168 int val2 ;
13169 int ecode2 = 0 ;
13170 void *argp3 = 0 ;
13171 int res3 = 0 ;
13172 void *argp4 = 0 ;
13173 int res4 = 0 ;
13174 PyObject * obj0 = 0 ;
13175 PyObject * obj1 = 0 ;
13176 PyObject * obj2 = 0 ;
13177 PyObject * obj3 = 0 ;
13178
13179 if (!PyArg_ParseTuple(args,(char *)"OOOO:GEbounds_setlin",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
13180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13181 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_setlin" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_setlin" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13183 }
13184 arg1 = reinterpret_cast< GEbounds * >(argp1);
13185 ecode2 = SWIG_AsVal_int(obj1, &val2);
13186 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_setlin" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_setlin" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
13188 }
13189 temp2 = static_cast< int >(val2);
13190 arg2 = &temp2;
13191 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
13192 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13193 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEbounds_setlin" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEbounds_setlin" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13194 }
13195 if (!argp3) {
13196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_setlin" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_setlin" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
13197 }
13198 arg3 = reinterpret_cast< GEnergy * >(argp3);
13199 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[5],
0 | 0, 0)
;
13200 if (!SWIG_IsOK(res4)(res4 >= 0)) {
13201 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GEbounds_setlin" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GEbounds_setlin" "', argument "
"4"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13202 }
13203 if (!argp4) {
13204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_setlin" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_setlin" "', argument " "4"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
13205 }
13206 arg4 = reinterpret_cast< GEnergy * >(argp4);
13207 {
13208 try {
13209 (arg1)->setlin((int const &)*arg2,(GEnergy const &)*arg3,(GEnergy const &)*arg4);
13210 }
13211 catch (const GException::out_of_range& e) {
13212 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13213 }
13214 catch (const GExceptionHandler& e) {
13215 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13216 }
13217 catch (const std::exception& e) {
13218 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13219 }
13220 }
13221 resultobj = SWIG_Py_Void();
13222 return resultobj;
13223fail:
13224 return NULL__null;
13225}
13226
13227
13228SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_setlog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13229 PyObject *resultobj = 0;
13230 GEbounds *arg1 = (GEbounds *) 0 ;
13231 int *arg2 = 0 ;
13232 GEnergy *arg3 = 0 ;
13233 GEnergy *arg4 = 0 ;
13234 void *argp1 = 0 ;
13235 int res1 = 0 ;
13236 int temp2 ;
13237 int val2 ;
13238 int ecode2 = 0 ;
13239 void *argp3 = 0 ;
13240 int res3 = 0 ;
13241 void *argp4 = 0 ;
13242 int res4 = 0 ;
13243 PyObject * obj0 = 0 ;
13244 PyObject * obj1 = 0 ;
13245 PyObject * obj2 = 0 ;
13246 PyObject * obj3 = 0 ;
13247
13248 if (!PyArg_ParseTuple(args,(char *)"OOOO:GEbounds_setlog",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
13249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13250 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_setlog" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_setlog" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13252 }
13253 arg1 = reinterpret_cast< GEbounds * >(argp1);
13254 ecode2 = SWIG_AsVal_int(obj1, &val2);
13255 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
13256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_setlog" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_setlog" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
13257 }
13258 temp2 = static_cast< int >(val2);
13259 arg2 = &temp2;
13260 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
13261 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13262 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEbounds_setlog" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEbounds_setlog" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13263 }
13264 if (!argp3) {
13265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_setlog" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_setlog" "', argument " "3"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
13266 }
13267 arg3 = reinterpret_cast< GEnergy * >(argp3);
13268 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[5],
0 | 0, 0)
;
13269 if (!SWIG_IsOK(res4)(res4 >= 0)) {
13270 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GEbounds_setlog" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GEbounds_setlog" "', argument "
"4"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13271 }
13272 if (!argp4) {
13273 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_setlog" "', argument " "4"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_setlog" "', argument " "4"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
13274 }
13275 arg4 = reinterpret_cast< GEnergy * >(argp4);
13276 {
13277 try {
13278 (arg1)->setlog((int const &)*arg2,(GEnergy const &)*arg3,(GEnergy const &)*arg4);
13279 }
13280 catch (const GException::out_of_range& e) {
13281 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13282 }
13283 catch (const GExceptionHandler& e) {
13284 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13285 }
13286 catch (const std::exception& e) {
13287 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13288 }
13289 }
13290 resultobj = SWIG_Py_Void();
13291 return resultobj;
13292fail:
13293 return NULL__null;
13294}
13295
13296
13297SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13298 PyObject *resultobj = 0;
13299 GEbounds *arg1 = (GEbounds *) 0 ;
13300 std::string *arg2 = 0 ;
13301 std::string *arg3 = 0 ;
13302 void *argp1 = 0 ;
13303 int res1 = 0 ;
13304 int res2 = SWIG_OLDOBJ((0)) ;
13305 int res3 = SWIG_OLDOBJ((0)) ;
13306 PyObject * obj0 = 0 ;
13307 PyObject * obj1 = 0 ;
13308 PyObject * obj2 = 0 ;
13309
13310 if (!PyArg_ParseTuple(args,(char *)"OOO:GEbounds_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
13311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13312 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_load" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_load" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13314 }
13315 arg1 = reinterpret_cast< GEbounds * >(argp1);
13316 {
13317 std::string *ptr = (std::string *)0;
13318 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
13319 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13321 }
13322 if (!ptr) {
13323 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13324 }
13325 arg2 = ptr;
13326 }
13327 {
13328 std::string *ptr = (std::string *)0;
13329 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
13330 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13331 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEbounds_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEbounds_load" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13332 }
13333 if (!ptr) {
13334 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_load" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13335 }
13336 arg3 = ptr;
13337 }
13338 {
13339 try {
13340 (arg1)->load((std::string const &)*arg2,(std::string const &)*arg3);
13341 }
13342 catch (const GException::out_of_range& e) {
13343 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13344 }
13345 catch (const GExceptionHandler& e) {
13346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13347 }
13348 catch (const std::exception& e) {
13349 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13350 }
13351 }
13352 resultobj = SWIG_Py_Void();
13353 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13354 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
13355 return resultobj;
13356fail:
13357 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13358 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
13359 return NULL__null;
13360}
13361
13362
13363SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13364 PyObject *resultobj = 0;
13365 GEbounds *arg1 = (GEbounds *) 0 ;
13366 std::string *arg2 = 0 ;
13367 void *argp1 = 0 ;
13368 int res1 = 0 ;
13369 int res2 = SWIG_OLDOBJ((0)) ;
13370 PyObject * obj0 = 0 ;
13371 PyObject * obj1 = 0 ;
13372
13373 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_load",&obj0,&obj1)) SWIG_failgoto fail;
13374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13375 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_load" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_load" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13377 }
13378 arg1 = reinterpret_cast< GEbounds * >(argp1);
13379 {
13380 std::string *ptr = (std::string *)0;
13381 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
13382 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13383 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13384 }
13385 if (!ptr) {
13386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13387 }
13388 arg2 = ptr;
13389 }
13390 {
13391 try {
13392 (arg1)->load((std::string const &)*arg2);
13393 }
13394 catch (const GException::out_of_range& e) {
13395 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13396 }
13397 catch (const GExceptionHandler& e) {
13398 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13399 }
13400 catch (const std::exception& e) {
13401 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13402 }
13403 }
13404 resultobj = SWIG_Py_Void();
13405 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13406 return resultobj;
13407fail:
13408 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13409 return NULL__null;
13410}
13411
13412
13413SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_load(PyObject *self, PyObject *args) {
13414 int argc;
13415 PyObject *argv[4];
13416 int ii;
13417
13418 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13419 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13420 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
13421 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13422 }
13423 if (argc == 2) {
13424 int _v;
13425 void *vptr = 0;
13426 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13427 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13428 if (_v) {
13429 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
13430 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13431 if (_v) {
13432 return _wrap_GEbounds_load__SWIG_1(self, args);
13433 }
13434 }
13435 }
13436 if (argc == 3) {
13437 int _v;
13438 void *vptr = 0;
13439 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13440 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13441 if (_v) {
13442 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
13443 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13444 if (_v) {
13445 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
13446 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13447 if (_v) {
13448 return _wrap_GEbounds_load__SWIG_0(self, args);
13449 }
13450 }
13451 }
13452 }
13453
13454fail:
13455 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEbounds_load'.\n"
13456 " Possible C/C++ prototypes are:\n"
13457 " GEbounds::load(std::string const &,std::string const &)\n"
13458 " GEbounds::load(std::string const &)\n");
13459 return 0;
13460}
13461
13462
13463SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13464 PyObject *resultobj = 0;
13465 GEbounds *arg1 = (GEbounds *) 0 ;
13466 std::string *arg2 = 0 ;
13467 bool *arg3 = 0 ;
13468 std::string *arg4 = 0 ;
13469 void *argp1 = 0 ;
13470 int res1 = 0 ;
13471 int res2 = SWIG_OLDOBJ((0)) ;
13472 bool temp3 ;
13473 bool val3 ;
13474 int ecode3 = 0 ;
13475 int res4 = SWIG_OLDOBJ((0)) ;
13476 PyObject * obj0 = 0 ;
13477 PyObject * obj1 = 0 ;
13478 PyObject * obj2 = 0 ;
13479 PyObject * obj3 = 0 ;
13480
13481 if (!PyArg_ParseTuple(args,(char *)"OOOO:GEbounds_save",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
13482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13483 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_save" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_save" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
13485 }
13486 arg1 = reinterpret_cast< GEbounds * >(argp1);
13487 {
13488 std::string *ptr = (std::string *)0;
13489 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
13490 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13491 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13492 }
13493 if (!ptr) {
13494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13495 }
13496 arg2 = ptr;
13497 }
13498 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13499 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
13500 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GEbounds_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GEbounds_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
13501 }
13502 temp3 = static_cast< bool >(val3);
13503 arg3 = &temp3;
13504 {
13505 std::string *ptr = (std::string *)0;
13506 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
13507 if (!SWIG_IsOK(res4)(res4 >= 0)) {
13508 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GEbounds_save" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GEbounds_save" "', argument "
"4"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13509 }
13510 if (!ptr) {
13511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_save" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_save" "', argument " "4"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13512 }
13513 arg4 = ptr;
13514 }
13515 {
13516 try {
13517 ((GEbounds const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3,(std::string const &)*arg4);
13518 }
13519 catch (const GException::out_of_range& e) {
13520 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13521 }
13522 catch (const GExceptionHandler& e) {
13523 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13524 }
13525 catch (const std::exception& e) {
13526 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13527 }
13528 }
13529 resultobj = SWIG_Py_Void();
13530 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13531 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
13532 return resultobj;
13533fail:
13534 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13535 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
13536 return NULL__null;
13537}
13538
13539
13540SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13541 PyObject *resultobj = 0;
13542 GEbounds *arg1 = (GEbounds *) 0 ;
13543 std::string *arg2 = 0 ;
13544 bool *arg3 = 0 ;
13545 void *argp1 = 0 ;
13546 int res1 = 0 ;
13547 int res2 = SWIG_OLDOBJ((0)) ;
13548 bool temp3 ;
13549 bool val3 ;
13550 int ecode3 = 0 ;
13551 PyObject * obj0 = 0 ;
13552 PyObject * obj1 = 0 ;
13553 PyObject * obj2 = 0 ;
13554
13555 if (!PyArg_ParseTuple(args,(char *)"OOO:GEbounds_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
13556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13557 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_save" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_save" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
13559 }
13560 arg1 = reinterpret_cast< GEbounds * >(argp1);
13561 {
13562 std::string *ptr = (std::string *)0;
13563 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
13564 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13566 }
13567 if (!ptr) {
13568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13569 }
13570 arg2 = ptr;
13571 }
13572 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13573 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
13574 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GEbounds_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GEbounds_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
13575 }
13576 temp3 = static_cast< bool >(val3);
13577 arg3 = &temp3;
13578 {
13579 try {
13580 ((GEbounds const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
13581 }
13582 catch (const GException::out_of_range& e) {
13583 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13584 }
13585 catch (const GExceptionHandler& e) {
13586 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13587 }
13588 catch (const std::exception& e) {
13589 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13590 }
13591 }
13592 resultobj = SWIG_Py_Void();
13593 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13594 return resultobj;
13595fail:
13596 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13597 return NULL__null;
13598}
13599
13600
13601SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13602 PyObject *resultobj = 0;
13603 GEbounds *arg1 = (GEbounds *) 0 ;
13604 std::string *arg2 = 0 ;
13605 void *argp1 = 0 ;
13606 int res1 = 0 ;
13607 int res2 = SWIG_OLDOBJ((0)) ;
13608 PyObject * obj0 = 0 ;
13609 PyObject * obj1 = 0 ;
13610
13611 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_save",&obj0,&obj1)) SWIG_failgoto fail;
13612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13613 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_save" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_save" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
13615 }
13616 arg1 = reinterpret_cast< GEbounds * >(argp1);
13617 {
13618 std::string *ptr = (std::string *)0;
13619 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
13620 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13622 }
13623 if (!ptr) {
13624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13625 }
13626 arg2 = ptr;
13627 }
13628 {
13629 try {
13630 ((GEbounds const *)arg1)->save((std::string const &)*arg2);
13631 }
13632 catch (const GException::out_of_range& e) {
13633 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13634 }
13635 catch (const GExceptionHandler& e) {
13636 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13637 }
13638 catch (const std::exception& e) {
13639 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13640 }
13641 }
13642 resultobj = SWIG_Py_Void();
13643 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13644 return resultobj;
13645fail:
13646 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
13647 return NULL__null;
13648}
13649
13650
13651SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_save(PyObject *self, PyObject *args) {
13652 int argc;
13653 PyObject *argv[5];
13654 int ii;
13655
13656 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13657 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13658 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
13659 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13660 }
13661 if (argc == 2) {
13662 int _v;
13663 void *vptr = 0;
13664 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13665 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13666 if (_v) {
13667 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
13668 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13669 if (_v) {
13670 return _wrap_GEbounds_save__SWIG_2(self, args);
13671 }
13672 }
13673 }
13674 if (argc == 3) {
13675 int _v;
13676 void *vptr = 0;
13677 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13678 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13679 if (_v) {
13680 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
13681 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13682 if (_v) {
13683 {
13684 int res = SWIG_AsVal_bool(argv[2], NULL__null);
13685 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13686 }
13687 if (_v) {
13688 return _wrap_GEbounds_save__SWIG_1(self, args);
13689 }
13690 }
13691 }
13692 }
13693 if (argc == 4) {
13694 int _v;
13695 void *vptr = 0;
13696 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13697 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13698 if (_v) {
13699 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
13700 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13701 if (_v) {
13702 {
13703 int res = SWIG_AsVal_bool(argv[2], NULL__null);
13704 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13705 }
13706 if (_v) {
13707 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
13708 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13709 if (_v) {
13710 return _wrap_GEbounds_save__SWIG_0(self, args);
13711 }
13712 }
13713 }
13714 }
13715 }
13716
13717fail:
13718 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEbounds_save'.\n"
13719 " Possible C/C++ prototypes are:\n"
13720 " GEbounds::save(std::string const &,bool const &,std::string const &) const\n"
13721 " GEbounds::save(std::string const &,bool const &) const\n"
13722 " GEbounds::save(std::string const &) const\n");
13723 return 0;
13724}
13725
13726
13727SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13728 PyObject *resultobj = 0;
13729 GEbounds *arg1 = (GEbounds *) 0 ;
13730 GFitsTable *arg2 = 0 ;
13731 void *argp1 = 0 ;
13732 int res1 = 0 ;
13733 void *argp2 = 0 ;
13734 int res2 = 0 ;
13735 PyObject * obj0 = 0 ;
13736 PyObject * obj1 = 0 ;
13737
13738 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_read",&obj0,&obj1)) SWIG_failgoto fail;
13739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13740 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_read" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_read" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
13742 }
13743 arg1 = reinterpret_cast< GEbounds * >(argp1);
13744 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsTable, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[14]
, 0 | 0, 0)
;
13745 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13746 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_read" "', argument "
"2"" of type '" "GFitsTable const &""'"); goto fail; } while
(0)
;
13747 }
13748 if (!argp2) {
13749 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_read" "', argument " "2"" of type '"
"GFitsTable const &""'"); goto fail; } while(0)
;
13750 }
13751 arg2 = reinterpret_cast< GFitsTable * >(argp2);
13752 {
13753 try {
13754 (arg1)->read((GFitsTable const &)*arg2);
13755 }
13756 catch (const GException::out_of_range& e) {
13757 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13758 }
13759 catch (const GExceptionHandler& e) {
13760 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13761 }
13762 catch (const std::exception& e) {
13763 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13764 }
13765 }
13766 resultobj = SWIG_Py_Void();
13767 return resultobj;
13768fail:
13769 return NULL__null;
13770}
13771
13772
13773SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13774 PyObject *resultobj = 0;
13775 GEbounds *arg1 = (GEbounds *) 0 ;
13776 GFits *arg2 = 0 ;
13777 std::string *arg3 = 0 ;
13778 void *argp1 = 0 ;
13779 int res1 = 0 ;
13780 void *argp2 = 0 ;
13781 int res2 = 0 ;
13782 int res3 = SWIG_OLDOBJ((0)) ;
13783 PyObject * obj0 = 0 ;
13784 PyObject * obj1 = 0 ;
13785 PyObject * obj2 = 0 ;
13786
13787 if (!PyArg_ParseTuple(args,(char *)"OOO:GEbounds_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
13788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13789 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_write" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_write" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
13791 }
13792 arg1 = reinterpret_cast< GEbounds * >(argp1);
13793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
13794 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
13796 }
13797 if (!argp2) {
13798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
13799 }
13800 arg2 = reinterpret_cast< GFits * >(argp2);
13801 {
13802 std::string *ptr = (std::string *)0;
13803 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
13804 if (!SWIG_IsOK(res3)(res3 >= 0)) {
13805 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEbounds_write" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEbounds_write" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
13806 }
13807 if (!ptr) {
13808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_write" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_write" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
13809 }
13810 arg3 = ptr;
13811 }
13812 {
13813 try {
13814 ((GEbounds const *)arg1)->write(*arg2,(std::string const &)*arg3);
13815 }
13816 catch (const GException::out_of_range& e) {
13817 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13818 }
13819 catch (const GExceptionHandler& e) {
13820 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13821 }
13822 catch (const std::exception& e) {
13823 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13824 }
13825 }
13826 resultobj = SWIG_Py_Void();
13827 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
13828 return resultobj;
13829fail:
13830 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
13831 return NULL__null;
13832}
13833
13834
13835SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13836 PyObject *resultobj = 0;
13837 GEbounds *arg1 = (GEbounds *) 0 ;
13838 GFits *arg2 = 0 ;
13839 void *argp1 = 0 ;
13840 int res1 = 0 ;
13841 void *argp2 = 0 ;
13842 int res2 = 0 ;
13843 PyObject * obj0 = 0 ;
13844 PyObject * obj1 = 0 ;
13845
13846 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_write",&obj0,&obj1)) SWIG_failgoto fail;
13847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13848 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_write" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_write" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
13850 }
13851 arg1 = reinterpret_cast< GEbounds * >(argp1);
13852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
13853 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
13855 }
13856 if (!argp2) {
13857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
13858 }
13859 arg2 = reinterpret_cast< GFits * >(argp2);
13860 {
13861 try {
13862 ((GEbounds const *)arg1)->write(*arg2);
13863 }
13864 catch (const GException::out_of_range& e) {
13865 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13866 }
13867 catch (const GExceptionHandler& e) {
13868 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13869 }
13870 catch (const std::exception& e) {
13871 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13872 }
13873 }
13874 resultobj = SWIG_Py_Void();
13875 return resultobj;
13876fail:
13877 return NULL__null;
13878}
13879
13880
13881SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_write(PyObject *self, PyObject *args) {
13882 int argc;
13883 PyObject *argv[4];
13884 int ii;
13885
13886 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
13887 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
13888 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
13889 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
13890 }
13891 if (argc == 2) {
13892 int _v;
13893 void *vptr = 0;
13894 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13895 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13896 if (_v) {
13897 void *vptr = 0;
13898 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[12
], 0, 0)
;
13899 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13900 if (_v) {
13901 return _wrap_GEbounds_write__SWIG_1(self, args);
13902 }
13903 }
13904 }
13905 if (argc == 3) {
13906 int _v;
13907 void *vptr = 0;
13908 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
13909 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13910 if (_v) {
13911 void *vptr = 0;
13912 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[12
], 0, 0)
;
13913 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13914 if (_v) {
13915 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
13916 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
13917 if (_v) {
13918 return _wrap_GEbounds_write__SWIG_0(self, args);
13919 }
13920 }
13921 }
13922 }
13923
13924fail:
13925 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEbounds_write'.\n"
13926 " Possible C/C++ prototypes are:\n"
13927 " GEbounds::write(GFits &,std::string const &) const\n"
13928 " GEbounds::write(GFits &) const\n");
13929 return 0;
13930}
13931
13932
13933SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_index(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13934 PyObject *resultobj = 0;
13935 GEbounds *arg1 = (GEbounds *) 0 ;
13936 GEnergy *arg2 = 0 ;
13937 void *argp1 = 0 ;
13938 int res1 = 0 ;
13939 void *argp2 = 0 ;
13940 int res2 = 0 ;
13941 PyObject * obj0 = 0 ;
13942 PyObject * obj1 = 0 ;
13943 int result;
13944
13945 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_index",&obj0,&obj1)) SWIG_failgoto fail;
13946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13947 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_index" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_index" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
13949 }
13950 arg1 = reinterpret_cast< GEbounds * >(argp1);
13951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
13952 if (!SWIG_IsOK(res2)(res2 >= 0)) {
13953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_index" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_index" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
13954 }
13955 if (!argp2) {
13956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_index" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_index" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
13957 }
13958 arg2 = reinterpret_cast< GEnergy * >(argp2);
13959 {
13960 try {
13961 result = (int)((GEbounds const *)arg1)->index((GEnergy const &)*arg2);
13962 }
13963 catch (const GException::out_of_range& e) {
13964 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
13965 }
13966 catch (const GExceptionHandler& e) {
13967 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13968 }
13969 catch (const std::exception& e) {
13970 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
13971 }
13972 }
13973 resultobj = SWIG_From_int(static_cast< int >(result));
13974 return resultobj;
13975fail:
13976 return NULL__null;
13977}
13978
13979
13980SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_emin__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13981 PyObject *resultobj = 0;
13982 GEbounds *arg1 = (GEbounds *) 0 ;
13983 void *argp1 = 0 ;
13984 int res1 = 0 ;
13985 PyObject * obj0 = 0 ;
13986 GEnergy *result = 0 ;
13987
13988 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_emin",&obj0)) SWIG_failgoto fail;
13989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
13990 if (!SWIG_IsOK(res1)(res1 >= 0)) {
13991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_emin" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_emin" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
13992 }
13993 arg1 = reinterpret_cast< GEbounds * >(argp1);
13994 {
13995 try {
13996 result = (GEnergy *) &((GEbounds const *)arg1)->emin();
13997 }
13998 catch (const GException::out_of_range& e) {
13999 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14000 }
14001 catch (const GExceptionHandler& e) {
14002 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14003 }
14004 catch (const std::exception& e) {
14005 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14006 }
14007 }
14008 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[5], 0 |
0)
;
14009 return resultobj;
14010fail:
14011 return NULL__null;
14012}
14013
14014
14015SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_emax__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14016 PyObject *resultobj = 0;
14017 GEbounds *arg1 = (GEbounds *) 0 ;
14018 void *argp1 = 0 ;
14019 int res1 = 0 ;
14020 PyObject * obj0 = 0 ;
14021 GEnergy *result = 0 ;
14022
14023 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_emax",&obj0)) SWIG_failgoto fail;
14024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14025 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_emax" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_emax" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
14027 }
14028 arg1 = reinterpret_cast< GEbounds * >(argp1);
14029 {
14030 try {
14031 result = (GEnergy *) &((GEbounds const *)arg1)->emax();
14032 }
14033 catch (const GException::out_of_range& e) {
14034 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14035 }
14036 catch (const GExceptionHandler& e) {
14037 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14038 }
14039 catch (const std::exception& e) {
14040 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14041 }
14042 }
14043 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[5], 0 |
0)
;
14044 return resultobj;
14045fail:
14046 return NULL__null;
14047}
14048
14049
14050SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_emin__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14051 PyObject *resultobj = 0;
14052 GEbounds *arg1 = (GEbounds *) 0 ;
14053 int *arg2 = 0 ;
14054 void *argp1 = 0 ;
14055 int res1 = 0 ;
14056 int temp2 ;
14057 int val2 ;
14058 int ecode2 = 0 ;
14059 PyObject * obj0 = 0 ;
14060 PyObject * obj1 = 0 ;
14061 GEnergy result;
14062
14063 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_emin",&obj0,&obj1)) SWIG_failgoto fail;
14064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14065 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_emin" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_emin" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
14067 }
14068 arg1 = reinterpret_cast< GEbounds * >(argp1);
14069 ecode2 = SWIG_AsVal_int(obj1, &val2);
14070 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_emin" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_emin" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14072 }
14073 temp2 = static_cast< int >(val2);
14074 arg2 = &temp2;
14075 {
14076 try {
14077 result = ((GEbounds const *)arg1)->emin((int const &)*arg2);
14078 }
14079 catch (const GException::out_of_range& e) {
14080 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14081 }
14082 catch (const GExceptionHandler& e) {
14083 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14084 }
14085 catch (const std::exception& e) {
14086 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14087 }
14088 }
14089 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
14090 return resultobj;
14091fail:
14092 return NULL__null;
14093}
14094
14095
14096SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_emin(PyObject *self, PyObject *args) {
14097 int argc;
14098 PyObject *argv[3];
14099 int ii;
14100
14101 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14102 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14103 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
14104 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14105 }
14106 if (argc == 1) {
14107 int _v;
14108 void *vptr = 0;
14109 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
14110 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14111 if (_v) {
14112 return _wrap_GEbounds_emin__SWIG_0(self, args);
14113 }
14114 }
14115 if (argc == 2) {
14116 int _v;
14117 void *vptr = 0;
14118 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
14119 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14120 if (_v) {
14121 {
14122 int res = SWIG_AsVal_int(argv[1], NULL__null);
14123 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14124 }
14125 if (_v) {
14126 return _wrap_GEbounds_emin__SWIG_1(self, args);
14127 }
14128 }
14129 }
14130
14131fail:
14132 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEbounds_emin'.\n"
14133 " Possible C/C++ prototypes are:\n"
14134 " GEbounds::emin() const\n"
14135 " GEbounds::emin(int const &) const\n");
14136 return 0;
14137}
14138
14139
14140SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_emax__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14141 PyObject *resultobj = 0;
14142 GEbounds *arg1 = (GEbounds *) 0 ;
14143 int *arg2 = 0 ;
14144 void *argp1 = 0 ;
14145 int res1 = 0 ;
14146 int temp2 ;
14147 int val2 ;
14148 int ecode2 = 0 ;
14149 PyObject * obj0 = 0 ;
14150 PyObject * obj1 = 0 ;
14151 GEnergy result;
14152
14153 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_emax",&obj0,&obj1)) SWIG_failgoto fail;
14154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14155 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_emax" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_emax" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
14157 }
14158 arg1 = reinterpret_cast< GEbounds * >(argp1);
14159 ecode2 = SWIG_AsVal_int(obj1, &val2);
14160 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_emax" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_emax" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14162 }
14163 temp2 = static_cast< int >(val2);
14164 arg2 = &temp2;
14165 {
14166 try {
14167 result = ((GEbounds const *)arg1)->emax((int const &)*arg2);
14168 }
14169 catch (const GException::out_of_range& e) {
14170 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14171 }
14172 catch (const GExceptionHandler& e) {
14173 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14174 }
14175 catch (const std::exception& e) {
14176 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14177 }
14178 }
14179 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
14180 return resultobj;
14181fail:
14182 return NULL__null;
14183}
14184
14185
14186SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_emax(PyObject *self, PyObject *args) {
14187 int argc;
14188 PyObject *argv[3];
14189 int ii;
14190
14191 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14192 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14193 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
14194 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14195 }
14196 if (argc == 1) {
14197 int _v;
14198 void *vptr = 0;
14199 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
14200 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14201 if (_v) {
14202 return _wrap_GEbounds_emax__SWIG_0(self, args);
14203 }
14204 }
14205 if (argc == 2) {
14206 int _v;
14207 void *vptr = 0;
14208 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
14209 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14210 if (_v) {
14211 {
14212 int res = SWIG_AsVal_int(argv[1], NULL__null);
14213 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14214 }
14215 if (_v) {
14216 return _wrap_GEbounds_emax__SWIG_1(self, args);
14217 }
14218 }
14219 }
14220
14221fail:
14222 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEbounds_emax'.\n"
14223 " Possible C/C++ prototypes are:\n"
14224 " GEbounds::emax() const\n"
14225 " GEbounds::emax(int const &) const\n");
14226 return 0;
14227}
14228
14229
14230SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_emean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14231 PyObject *resultobj = 0;
14232 GEbounds *arg1 = (GEbounds *) 0 ;
14233 int *arg2 = 0 ;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 int temp2 ;
14237 int val2 ;
14238 int ecode2 = 0 ;
14239 PyObject * obj0 = 0 ;
14240 PyObject * obj1 = 0 ;
14241 GEnergy result;
14242
14243 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_emean",&obj0,&obj1)) SWIG_failgoto fail;
14244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14245 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_emean" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_emean" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
14247 }
14248 arg1 = reinterpret_cast< GEbounds * >(argp1);
14249 ecode2 = SWIG_AsVal_int(obj1, &val2);
14250 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_emean" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_emean" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14252 }
14253 temp2 = static_cast< int >(val2);
14254 arg2 = &temp2;
14255 {
14256 try {
14257 result = ((GEbounds const *)arg1)->emean((int const &)*arg2);
14258 }
14259 catch (const GException::out_of_range& e) {
14260 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14261 }
14262 catch (const GExceptionHandler& e) {
14263 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14264 }
14265 catch (const std::exception& e) {
14266 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14267 }
14268 }
14269 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
14270 return resultobj;
14271fail:
14272 return NULL__null;
14273}
14274
14275
14276SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_elogmean(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14277 PyObject *resultobj = 0;
14278 GEbounds *arg1 = (GEbounds *) 0 ;
14279 int *arg2 = 0 ;
14280 void *argp1 = 0 ;
14281 int res1 = 0 ;
14282 int temp2 ;
14283 int val2 ;
14284 int ecode2 = 0 ;
14285 PyObject * obj0 = 0 ;
14286 PyObject * obj1 = 0 ;
14287 GEnergy result;
14288
14289 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_elogmean",&obj0,&obj1)) SWIG_failgoto fail;
14290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14291 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_elogmean" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_elogmean" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
14293 }
14294 arg1 = reinterpret_cast< GEbounds * >(argp1);
14295 ecode2 = SWIG_AsVal_int(obj1, &val2);
14296 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_elogmean" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_elogmean" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14298 }
14299 temp2 = static_cast< int >(val2);
14300 arg2 = &temp2;
14301 {
14302 try {
14303 result = ((GEbounds const *)arg1)->elogmean((int const &)*arg2);
14304 }
14305 catch (const GException::out_of_range& e) {
14306 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14307 }
14308 catch (const GExceptionHandler& e) {
14309 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14310 }
14311 catch (const std::exception& e) {
14312 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14313 }
14314 }
14315 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
14316 return resultobj;
14317fail:
14318 return NULL__null;
14319}
14320
14321
14322SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_ewidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14323 PyObject *resultobj = 0;
14324 GEbounds *arg1 = (GEbounds *) 0 ;
14325 int *arg2 = 0 ;
14326 void *argp1 = 0 ;
14327 int res1 = 0 ;
14328 int temp2 ;
14329 int val2 ;
14330 int ecode2 = 0 ;
14331 PyObject * obj0 = 0 ;
14332 PyObject * obj1 = 0 ;
14333 GEnergy result;
14334
14335 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_ewidth",&obj0,&obj1)) SWIG_failgoto fail;
14336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14337 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_ewidth" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_ewidth" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
14339 }
14340 arg1 = reinterpret_cast< GEbounds * >(argp1);
14341 ecode2 = SWIG_AsVal_int(obj1, &val2);
14342 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
14343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEbounds_ewidth" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEbounds_ewidth" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
14344 }
14345 temp2 = static_cast< int >(val2);
14346 arg2 = &temp2;
14347 {
14348 try {
14349 result = ((GEbounds const *)arg1)->ewidth((int const &)*arg2);
14350 }
14351 catch (const GException::out_of_range& e) {
14352 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14353 }
14354 catch (const GExceptionHandler& e) {
14355 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14356 }
14357 catch (const std::exception& e) {
14358 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14359 }
14360 }
14361 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
14362 return resultobj;
14363fail:
14364 return NULL__null;
14365}
14366
14367
14368SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14369 PyObject *resultobj = 0;
14370 GEbounds *arg1 = (GEbounds *) 0 ;
14371 GEnergy *arg2 = 0 ;
14372 void *argp1 = 0 ;
14373 int res1 = 0 ;
14374 void *argp2 = 0 ;
14375 int res2 = 0 ;
14376 PyObject * obj0 = 0 ;
14377 PyObject * obj1 = 0 ;
14378 bool result;
14379
14380 if (!PyArg_ParseTuple(args,(char *)"OO:GEbounds_contains",&obj0,&obj1)) SWIG_failgoto fail;
14381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14382 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_contains" "', argument " "1"" of type '" "GEbounds const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_contains" "', argument "
"1"" of type '" "GEbounds const *""'"); goto fail; } while(0
)
;
14384 }
14385 arg1 = reinterpret_cast< GEbounds * >(argp1);
14386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
14387 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEbounds_contains" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEbounds_contains" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
14389 }
14390 if (!argp2) {
14391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEbounds_contains" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEbounds_contains" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
14392 }
14393 arg2 = reinterpret_cast< GEnergy * >(argp2);
14394 {
14395 try {
14396 result = (bool)((GEbounds const *)arg1)->contains((GEnergy const &)*arg2);
14397 }
14398 catch (const GException::out_of_range& e) {
14399 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14400 }
14401 catch (const GExceptionHandler& e) {
14402 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14403 }
14404 catch (const std::exception& e) {
14405 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14406 }
14407 }
14408 resultobj = SWIG_From_bool(static_cast< bool >(result));
14409 return resultobj;
14410fail:
14411 return NULL__null;
14412}
14413
14414
14415SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEbounds_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14416 PyObject *resultobj = 0;
14417 GEbounds *arg1 = (GEbounds *) 0 ;
14418 void *argp1 = 0 ;
14419 int res1 = 0 ;
14420 PyObject * obj0 = 0 ;
14421 GEbounds result;
14422
14423 if (!PyArg_ParseTuple(args,(char *)"O:GEbounds_copy",&obj0)) SWIG_failgoto fail;
14424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
14425 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEbounds_copy" "', argument " "1"" of type '" "GEbounds *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEbounds_copy" "', argument "
"1"" of type '" "GEbounds *""'"); goto fail; } while(0)
;
14427 }
14428 arg1 = reinterpret_cast< GEbounds * >(argp1);
14429 {
14430 try {
14431 result = GEbounds_copy(arg1);
14432 }
14433 catch (const GException::out_of_range& e) {
14434 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14435 }
14436 catch (const GExceptionHandler& e) {
14437 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14438 }
14439 catch (const std::exception& e) {
14440 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14441 }
14442 }
14443 resultobj = SWIG_NewPointerObj((new GEbounds(static_cast< const GEbounds& >(result))), SWIGTYPE_p_GEbounds, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEbounds(static_cast<
const GEbounds& >(result))), swig_types[3], 0x1 | 0)
;
14444 return resultobj;
14445fail:
14446 return NULL__null;
14447}
14448
14449
14450SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEbounds_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14451 PyObject *obj;
14452 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
14453 SWIG_TypeNewClientData(SWIGTYPE_p_GEboundsswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
14454 return SWIG_Py_Void();
14455}
14456
14457SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GGti__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14458 PyObject *resultobj = 0;
14459 GGti *result = 0 ;
14460
14461 if (!PyArg_ParseTuple(args,(char *)":new_GGti")) SWIG_failgoto fail;
14462 {
14463 try {
14464 result = (GGti *)new GGti();
14465 }
14466 catch (const GException::out_of_range& e) {
14467 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14468 }
14469 catch (const GExceptionHandler& e) {
14470 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14471 }
14472 catch (const std::exception& e) {
14473 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14474 }
14475 }
14476 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GGti, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
14477 return resultobj;
14478fail:
14479 return NULL__null;
14480}
14481
14482
14483SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GGti__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14484 PyObject *resultobj = 0;
14485 GGti *arg1 = 0 ;
14486 void *argp1 = 0 ;
14487 int res1 = 0 ;
14488 PyObject * obj0 = 0 ;
14489 GGti *result = 0 ;
14490
14491 if (!PyArg_ParseTuple(args,(char *)"O:new_GGti",&obj0)) SWIG_failgoto fail;
14492 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GGti, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14493 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GGti" "', argument " "1"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GGti" "', argument " "1"
" of type '" "GGti const &""'"); goto fail; } while(0)
;
14495 }
14496 if (!argp1) {
14497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GGti" "', argument " "1"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GGti" "', argument " "1"" of type '" "GGti const &"
"'"); goto fail; } while(0)
;
14498 }
14499 arg1 = reinterpret_cast< GGti * >(argp1);
14500 {
14501 try {
14502 result = (GGti *)new GGti((GGti const &)*arg1);
14503 }
14504 catch (const GException::out_of_range& e) {
14505 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14506 }
14507 catch (const GExceptionHandler& e) {
14508 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14509 }
14510 catch (const std::exception& e) {
14511 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14512 }
14513 }
14514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GGti, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
14515 return resultobj;
14516fail:
14517 return NULL__null;
14518}
14519
14520
14521SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GGti__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14522 PyObject *resultobj = 0;
14523 GTimeReference *arg1 = 0 ;
14524 void *argp1 = 0 ;
14525 int res1 = 0 ;
14526 PyObject * obj0 = 0 ;
14527 GGti *result = 0 ;
14528
14529 if (!PyArg_ParseTuple(args,(char *)"O:new_GGti",&obj0)) SWIG_failgoto fail;
14530 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GTimeReference, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[33]
, 0 | 0, 0)
;
14531 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GGti" "', argument " "1"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GGti" "', argument " "1"
" of type '" "GTimeReference const &""'"); goto fail; } while
(0)
;
14533 }
14534 if (!argp1) {
14535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GGti" "', argument " "1"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GGti" "', argument " "1"" of type '" "GTimeReference const &"
"'"); goto fail; } while(0)
;
14536 }
14537 arg1 = reinterpret_cast< GTimeReference * >(argp1);
14538 {
14539 try {
14540 result = (GGti *)new GGti((GTimeReference const &)*arg1);
14541 }
14542 catch (const GException::out_of_range& e) {
14543 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14544 }
14545 catch (const GExceptionHandler& e) {
14546 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14547 }
14548 catch (const std::exception& e) {
14549 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14550 }
14551 }
14552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GGti, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], (
(0x1 << 1) | 0x1) | 0)
;
14553 return resultobj;
14554fail:
14555 return NULL__null;
14556}
14557
14558
14559SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GGti(PyObject *self, PyObject *args) {
14560 int argc;
14561 PyObject *argv[2];
14562 int ii;
14563
14564 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14565 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14566 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
14567 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14568 }
14569 if (argc == 0) {
14570 return _wrap_new_GGti__SWIG_0(self, args);
14571 }
14572 if (argc == 1) {
14573 int _v;
14574 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[15], 0, 0
)
;
14575 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14576 if (_v) {
14577 return _wrap_new_GGti__SWIG_1(self, args);
14578 }
14579 }
14580 if (argc == 1) {
14581 int _v;
14582 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[33], 0, 0
)
;
14583 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14584 if (_v) {
14585 return _wrap_new_GGti__SWIG_2(self, args);
14586 }
14587 }
14588
14589fail:
14590 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GGti'.\n"
14591 " Possible C/C++ prototypes are:\n"
14592 " GGti::GGti()\n"
14593 " GGti::GGti(GGti const &)\n"
14594 " GGti::GGti(GTimeReference const &)\n");
14595 return 0;
14596}
14597
14598
14599SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GGti(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14600 PyObject *resultobj = 0;
14601 GGti *arg1 = (GGti *) 0 ;
14602 void *argp1 = 0 ;
14603 int res1 = 0 ;
14604 PyObject * obj0 = 0 ;
14605
14606 if (!PyArg_ParseTuple(args,(char *)"O:delete_GGti",&obj0)) SWIG_failgoto fail;
14607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0x1 | 0, 0)
;
14608 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GGti" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GGti" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
14610 }
14611 arg1 = reinterpret_cast< GGti * >(argp1);
14612 {
14613 try {
14614 delete arg1;
14615 }
14616 catch (const GException::out_of_range& e) {
14617 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14618 }
14619 catch (const GExceptionHandler& e) {
14620 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14621 }
14622 catch (const std::exception& e) {
14623 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14624 }
14625 }
14626 resultobj = SWIG_Py_Void();
14627 return resultobj;
14628fail:
14629 return NULL__null;
14630}
14631
14632
14633SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14634 PyObject *resultobj = 0;
14635 GGti *arg1 = (GGti *) 0 ;
14636 void *argp1 = 0 ;
14637 int res1 = 0 ;
14638 PyObject * obj0 = 0 ;
14639
14640 if (!PyArg_ParseTuple(args,(char *)"O:GGti_clear",&obj0)) SWIG_failgoto fail;
14641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14642 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_clear" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_clear" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
14644 }
14645 arg1 = reinterpret_cast< GGti * >(argp1);
14646 {
14647 try {
14648 (arg1)->clear();
14649 }
14650 catch (const GException::out_of_range& e) {
14651 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14652 }
14653 catch (const GExceptionHandler& e) {
14654 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14655 }
14656 catch (const std::exception& e) {
14657 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14658 }
14659 }
14660 resultobj = SWIG_Py_Void();
14661 return resultobj;
14662fail:
14663 return NULL__null;
14664}
14665
14666
14667SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14668 PyObject *resultobj = 0;
14669 GGti *arg1 = (GGti *) 0 ;
14670 void *argp1 = 0 ;
14671 int res1 = 0 ;
14672 PyObject * obj0 = 0 ;
14673 GGti *result = 0 ;
14674
14675 if (!PyArg_ParseTuple(args,(char *)"O:GGti_clone",&obj0)) SWIG_failgoto fail;
14676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14677 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_clone" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_clone" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
14679 }
14680 arg1 = reinterpret_cast< GGti * >(argp1);
14681 {
14682 try {
14683 result = (GGti *)((GGti const *)arg1)->clone();
14684 }
14685 catch (const GException::out_of_range& e) {
14686 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14687 }
14688 catch (const GExceptionHandler& e) {
14689 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14690 }
14691 catch (const std::exception& e) {
14692 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14693 }
14694 }
14695 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], 0
| 0)
;
14696 return resultobj;
14697fail:
14698 return NULL__null;
14699}
14700
14701
14702SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14703 PyObject *resultobj = 0;
14704 GGti *arg1 = (GGti *) 0 ;
14705 void *argp1 = 0 ;
14706 int res1 = 0 ;
14707 PyObject * obj0 = 0 ;
14708 int result;
14709
14710 if (!PyArg_ParseTuple(args,(char *)"O:GGti_size",&obj0)) SWIG_failgoto fail;
14711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14712 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_size" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_size" "', argument " "1"
" of type '" "GGti const *""'"); goto fail; } while(0)
;
14714 }
14715 arg1 = reinterpret_cast< GGti * >(argp1);
14716 {
14717 try {
14718 result = (int)((GGti const *)arg1)->size();
14719 }
14720 catch (const GException::out_of_range& e) {
14721 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14722 }
14723 catch (const GExceptionHandler& e) {
14724 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14725 }
14726 catch (const std::exception& e) {
14727 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14728 }
14729 }
14730 resultobj = SWIG_From_int(static_cast< int >(result));
14731 return resultobj;
14732fail:
14733 return NULL__null;
14734}
14735
14736
14737SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14738 PyObject *resultobj = 0;
14739 GGti *arg1 = (GGti *) 0 ;
14740 void *argp1 = 0 ;
14741 int res1 = 0 ;
14742 PyObject * obj0 = 0 ;
14743 bool result;
14744
14745 if (!PyArg_ParseTuple(args,(char *)"O:GGti_isempty",&obj0)) SWIG_failgoto fail;
14746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14747 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_isempty" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_isempty" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
14749 }
14750 arg1 = reinterpret_cast< GGti * >(argp1);
14751 {
14752 try {
14753 result = (bool)((GGti const *)arg1)->isempty();
14754 }
14755 catch (const GException::out_of_range& e) {
14756 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14757 }
14758 catch (const GExceptionHandler& e) {
14759 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14760 }
14761 catch (const std::exception& e) {
14762 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14763 }
14764 }
14765 resultobj = SWIG_From_bool(static_cast< bool >(result));
14766 return resultobj;
14767fail:
14768 return NULL__null;
14769}
14770
14771
14772SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14773 PyObject *resultobj = 0;
14774 GGti *arg1 = (GGti *) 0 ;
14775 GTime *arg2 = 0 ;
14776 GTime *arg3 = 0 ;
14777 void *argp1 = 0 ;
14778 int res1 = 0 ;
14779 void *argp2 = 0 ;
14780 int res2 = 0 ;
14781 void *argp3 = 0 ;
14782 int res3 = 0 ;
14783 PyObject * obj0 = 0 ;
14784 PyObject * obj1 = 0 ;
14785 PyObject * obj2 = 0 ;
14786
14787 if (!PyArg_ParseTuple(args,(char *)"OOO:GGti_append",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14789 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_append" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_append" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
14791 }
14792 arg1 = reinterpret_cast< GGti * >(argp1);
14793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
14794 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_append" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_append" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
14796 }
14797 if (!argp2) {
14798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_append" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_append" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
14799 }
14800 arg2 = reinterpret_cast< GTime * >(argp2);
14801 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
14802 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14803 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GGti_append" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GGti_append" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
14804 }
14805 if (!argp3) {
14806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_append" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_append" "', argument " "3"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
14807 }
14808 arg3 = reinterpret_cast< GTime * >(argp3);
14809 {
14810 try {
14811 (arg1)->append((GTime const &)*arg2,(GTime const &)*arg3);
14812 }
14813 catch (const GException::out_of_range& e) {
14814 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14815 }
14816 catch (const GExceptionHandler& e) {
14817 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14818 }
14819 catch (const std::exception& e) {
14820 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14821 }
14822 }
14823 resultobj = SWIG_Py_Void();
14824 return resultobj;
14825fail:
14826 return NULL__null;
14827}
14828
14829
14830SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14831 PyObject *resultobj = 0;
14832 GGti *arg1 = (GGti *) 0 ;
14833 GTime *arg2 = 0 ;
14834 GTime *arg3 = 0 ;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 void *argp2 = 0 ;
14838 int res2 = 0 ;
14839 void *argp3 = 0 ;
14840 int res3 = 0 ;
14841 PyObject * obj0 = 0 ;
14842 PyObject * obj1 = 0 ;
14843 PyObject * obj2 = 0 ;
14844
14845 if (!PyArg_ParseTuple(args,(char *)"OOO:GGti_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14847 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_insert" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_insert" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
14849 }
14850 arg1 = reinterpret_cast< GGti * >(argp1);
14851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
14852 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_insert" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_insert" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
14854 }
14855 if (!argp2) {
14856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_insert" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_insert" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
14857 }
14858 arg2 = reinterpret_cast< GTime * >(argp2);
14859 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
14860 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14861 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GGti_insert" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GGti_insert" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
14862 }
14863 if (!argp3) {
14864 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_insert" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_insert" "', argument " "3"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
14865 }
14866 arg3 = reinterpret_cast< GTime * >(argp3);
14867 {
14868 try {
14869 (arg1)->insert((GTime const &)*arg2,(GTime const &)*arg3);
14870 }
14871 catch (const GException::out_of_range& e) {
14872 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14873 }
14874 catch (const GExceptionHandler& e) {
14875 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14876 }
14877 catch (const std::exception& e) {
14878 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14879 }
14880 }
14881 resultobj = SWIG_Py_Void();
14882 return resultobj;
14883fail:
14884 return NULL__null;
14885}
14886
14887
14888SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_merge__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14889 PyObject *resultobj = 0;
14890 GGti *arg1 = (GGti *) 0 ;
14891 void *argp1 = 0 ;
14892 int res1 = 0 ;
14893 PyObject * obj0 = 0 ;
14894
14895 if (!PyArg_ParseTuple(args,(char *)"O:GGti_merge",&obj0)) SWIG_failgoto fail;
14896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14897 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_merge" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_merge" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
14899 }
14900 arg1 = reinterpret_cast< GGti * >(argp1);
14901 {
14902 try {
14903 (arg1)->merge();
14904 }
14905 catch (const GException::out_of_range& e) {
14906 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14907 }
14908 catch (const GExceptionHandler& e) {
14909 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14910 }
14911 catch (const std::exception& e) {
14912 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14913 }
14914 }
14915 resultobj = SWIG_Py_Void();
14916 return resultobj;
14917fail:
14918 return NULL__null;
14919}
14920
14921
14922SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_merge__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14923 PyObject *resultobj = 0;
14924 GGti *arg1 = (GGti *) 0 ;
14925 GTime *arg2 = 0 ;
14926 GTime *arg3 = 0 ;
14927 void *argp1 = 0 ;
14928 int res1 = 0 ;
14929 void *argp2 = 0 ;
14930 int res2 = 0 ;
14931 void *argp3 = 0 ;
14932 int res3 = 0 ;
14933 PyObject * obj0 = 0 ;
14934 PyObject * obj1 = 0 ;
14935 PyObject * obj2 = 0 ;
14936
14937 if (!PyArg_ParseTuple(args,(char *)"OOO:GGti_merge",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
14938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
14939 if (!SWIG_IsOK(res1)(res1 >= 0)) {
14940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_merge" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_merge" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
14941 }
14942 arg1 = reinterpret_cast< GGti * >(argp1);
14943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
14944 if (!SWIG_IsOK(res2)(res2 >= 0)) {
14945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_merge" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_merge" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
14946 }
14947 if (!argp2) {
14948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_merge" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_merge" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
14949 }
14950 arg2 = reinterpret_cast< GTime * >(argp2);
14951 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
14952 if (!SWIG_IsOK(res3)(res3 >= 0)) {
14953 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GGti_merge" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GGti_merge" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
14954 }
14955 if (!argp3) {
14956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_merge" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_merge" "', argument " "3"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
14957 }
14958 arg3 = reinterpret_cast< GTime * >(argp3);
14959 {
14960 try {
14961 (arg1)->merge((GTime const &)*arg2,(GTime const &)*arg3);
14962 }
14963 catch (const GException::out_of_range& e) {
14964 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
14965 }
14966 catch (const GExceptionHandler& e) {
14967 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14968 }
14969 catch (const std::exception& e) {
14970 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
14971 }
14972 }
14973 resultobj = SWIG_Py_Void();
14974 return resultobj;
14975fail:
14976 return NULL__null;
14977}
14978
14979
14980SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_merge(PyObject *self, PyObject *args) {
14981 int argc;
14982 PyObject *argv[4];
14983 int ii;
14984
14985 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
14986 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
14987 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
14988 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
14989 }
14990 if (argc == 1) {
14991 int _v;
14992 void *vptr = 0;
14993 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
14994 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
14995 if (_v) {
14996 return _wrap_GGti_merge__SWIG_0(self, args);
14997 }
14998 }
14999 if (argc == 3) {
15000 int _v;
15001 void *vptr = 0;
15002 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15003 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15004 if (_v) {
15005 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[32], 0, 0
)
;
15006 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15007 if (_v) {
15008 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[32], 0, 0
)
;
15009 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15010 if (_v) {
15011 return _wrap_GGti_merge__SWIG_1(self, args);
15012 }
15013 }
15014 }
15015 }
15016
15017fail:
15018 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GGti_merge'.\n"
15019 " Possible C/C++ prototypes are:\n"
15020 " GGti::merge()\n"
15021 " GGti::merge(GTime const &,GTime const &)\n");
15022 return 0;
15023}
15024
15025
15026SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_reduce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15027 PyObject *resultobj = 0;
15028 GGti *arg1 = (GGti *) 0 ;
15029 GTime *arg2 = 0 ;
15030 GTime *arg3 = 0 ;
15031 void *argp1 = 0 ;
15032 int res1 = 0 ;
15033 void *argp2 = 0 ;
15034 int res2 = 0 ;
15035 void *argp3 = 0 ;
15036 int res3 = 0 ;
15037 PyObject * obj0 = 0 ;
15038 PyObject * obj1 = 0 ;
15039 PyObject * obj2 = 0 ;
15040
15041 if (!PyArg_ParseTuple(args,(char *)"OOO:GGti_reduce",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
15042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15043 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_reduce" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_reduce" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
15045 }
15046 arg1 = reinterpret_cast< GGti * >(argp1);
15047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
15048 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_reduce" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_reduce" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
15050 }
15051 if (!argp2) {
15052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_reduce" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_reduce" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
15053 }
15054 arg2 = reinterpret_cast< GTime * >(argp2);
15055 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
15056 if (!SWIG_IsOK(res3)(res3 >= 0)) {
15057 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GGti_reduce" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GGti_reduce" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
15058 }
15059 if (!argp3) {
15060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_reduce" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_reduce" "', argument " "3"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
15061 }
15062 arg3 = reinterpret_cast< GTime * >(argp3);
15063 {
15064 try {
15065 (arg1)->reduce((GTime const &)*arg2,(GTime const &)*arg3);
15066 }
15067 catch (const GException::out_of_range& e) {
15068 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15069 }
15070 catch (const GExceptionHandler& e) {
15071 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15072 }
15073 catch (const std::exception& e) {
15074 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15075 }
15076 }
15077 resultobj = SWIG_Py_Void();
15078 return resultobj;
15079fail:
15080 return NULL__null;
15081}
15082
15083
15084SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15085 PyObject *resultobj = 0;
15086 GGti *arg1 = (GGti *) 0 ;
15087 int *arg2 = 0 ;
15088 void *argp1 = 0 ;
15089 int res1 = 0 ;
15090 int temp2 ;
15091 int val2 ;
15092 int ecode2 = 0 ;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095
15096 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_remove",&obj0,&obj1)) SWIG_failgoto fail;
15097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15098 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_remove" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_remove" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
15100 }
15101 arg1 = reinterpret_cast< GGti * >(argp1);
15102 ecode2 = SWIG_AsVal_int(obj1, &val2);
15103 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15104 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GGti_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GGti_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
15105 }
15106 temp2 = static_cast< int >(val2);
15107 arg2 = &temp2;
15108 {
15109 try {
15110 (arg1)->remove((int const &)*arg2);
15111 }
15112 catch (const GException::out_of_range& e) {
15113 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15114 }
15115 catch (const GExceptionHandler& e) {
15116 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15117 }
15118 catch (const std::exception& e) {
15119 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15120 }
15121 }
15122 resultobj = SWIG_Py_Void();
15123 return resultobj;
15124fail:
15125 return NULL__null;
15126}
15127
15128
15129SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15130 PyObject *resultobj = 0;
15131 GGti *arg1 = (GGti *) 0 ;
15132 int *arg2 = 0 ;
15133 void *argp1 = 0 ;
15134 int res1 = 0 ;
15135 int temp2 ;
15136 int val2 ;
15137 int ecode2 = 0 ;
15138 PyObject * obj0 = 0 ;
15139 PyObject * obj1 = 0 ;
15140
15141 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_reserve",&obj0,&obj1)) SWIG_failgoto fail;
15142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15143 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_reserve" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_reserve" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
15145 }
15146 arg1 = reinterpret_cast< GGti * >(argp1);
15147 ecode2 = SWIG_AsVal_int(obj1, &val2);
15148 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GGti_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GGti_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
15150 }
15151 temp2 = static_cast< int >(val2);
15152 arg2 = &temp2;
15153 {
15154 try {
15155 (arg1)->reserve((int const &)*arg2);
15156 }
15157 catch (const GException::out_of_range& e) {
15158 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15159 }
15160 catch (const GExceptionHandler& e) {
15161 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15162 }
15163 catch (const std::exception& e) {
15164 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15165 }
15166 }
15167 resultobj = SWIG_Py_Void();
15168 return resultobj;
15169fail:
15170 return NULL__null;
15171}
15172
15173
15174SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15175 PyObject *resultobj = 0;
15176 GGti *arg1 = (GGti *) 0 ;
15177 GGti *arg2 = 0 ;
15178 void *argp1 = 0 ;
15179 int res1 = 0 ;
15180 void *argp2 = 0 ;
15181 int res2 = 0 ;
15182 PyObject * obj0 = 0 ;
15183 PyObject * obj1 = 0 ;
15184
15185 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_extend",&obj0,&obj1)) SWIG_failgoto fail;
15186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15187 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_extend" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_extend" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
15189 }
15190 arg1 = reinterpret_cast< GGti * >(argp1);
15191 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GGti, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15]
, 0 | 0, 0)
;
15192 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15193 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_extend" "', argument " "2"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_extend" "', argument "
"2"" of type '" "GGti const &""'"); goto fail; } while(0
)
;
15194 }
15195 if (!argp2) {
15196 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_extend" "', argument " "2"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_extend" "', argument " "2"" of type '" "GGti const &"
"'"); goto fail; } while(0)
;
15197 }
15198 arg2 = reinterpret_cast< GGti * >(argp2);
15199 {
15200 try {
15201 (arg1)->extend((GGti const &)*arg2);
15202 }
15203 catch (const GException::out_of_range& e) {
15204 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15205 }
15206 catch (const GExceptionHandler& e) {
15207 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15208 }
15209 catch (const std::exception& e) {
15210 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15211 }
15212 }
15213 resultobj = SWIG_Py_Void();
15214 return resultobj;
15215fail:
15216 return NULL__null;
15217}
15218
15219
15220SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15221 PyObject *resultobj = 0;
15222 GGti *arg1 = (GGti *) 0 ;
15223 std::string *arg2 = 0 ;
15224 std::string *arg3 = 0 ;
15225 void *argp1 = 0 ;
15226 int res1 = 0 ;
15227 int res2 = SWIG_OLDOBJ((0)) ;
15228 int res3 = SWIG_OLDOBJ((0)) ;
15229 PyObject * obj0 = 0 ;
15230 PyObject * obj1 = 0 ;
15231 PyObject * obj2 = 0 ;
15232
15233 if (!PyArg_ParseTuple(args,(char *)"OOO:GGti_load",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
15234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15235 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_load" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_load" "', argument " "1"
" of type '" "GGti *""'"); goto fail; } while(0)
;
15237 }
15238 arg1 = reinterpret_cast< GGti * >(argp1);
15239 {
15240 std::string *ptr = (std::string *)0;
15241 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
15242 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15243 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_load" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15244 }
15245 if (!ptr) {
15246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15247 }
15248 arg2 = ptr;
15249 }
15250 {
15251 std::string *ptr = (std::string *)0;
15252 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
15253 if (!SWIG_IsOK(res3)(res3 >= 0)) {
15254 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GGti_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GGti_load" "', argument " "3"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15255 }
15256 if (!ptr) {
15257 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_load" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_load" "', argument " "3"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15258 }
15259 arg3 = ptr;
15260 }
15261 {
15262 try {
15263 (arg1)->load((std::string const &)*arg2,(std::string const &)*arg3);
15264 }
15265 catch (const GException::out_of_range& e) {
15266 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15267 }
15268 catch (const GExceptionHandler& e) {
15269 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15270 }
15271 catch (const std::exception& e) {
15272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15273 }
15274 }
15275 resultobj = SWIG_Py_Void();
15276 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15277 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
15278 return resultobj;
15279fail:
15280 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15281 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
15282 return NULL__null;
15283}
15284
15285
15286SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15287 PyObject *resultobj = 0;
15288 GGti *arg1 = (GGti *) 0 ;
15289 std::string *arg2 = 0 ;
15290 void *argp1 = 0 ;
15291 int res1 = 0 ;
15292 int res2 = SWIG_OLDOBJ((0)) ;
15293 PyObject * obj0 = 0 ;
15294 PyObject * obj1 = 0 ;
15295
15296 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_load",&obj0,&obj1)) SWIG_failgoto fail;
15297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15298 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_load" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_load" "', argument " "1"
" of type '" "GGti *""'"); goto fail; } while(0)
;
15300 }
15301 arg1 = reinterpret_cast< GGti * >(argp1);
15302 {
15303 std::string *ptr = (std::string *)0;
15304 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
15305 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_load" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15307 }
15308 if (!ptr) {
15309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15310 }
15311 arg2 = ptr;
15312 }
15313 {
15314 try {
15315 (arg1)->load((std::string const &)*arg2);
15316 }
15317 catch (const GException::out_of_range& e) {
15318 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15319 }
15320 catch (const GExceptionHandler& e) {
15321 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15322 }
15323 catch (const std::exception& e) {
15324 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15325 }
15326 }
15327 resultobj = SWIG_Py_Void();
15328 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15329 return resultobj;
15330fail:
15331 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15332 return NULL__null;
15333}
15334
15335
15336SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_load(PyObject *self, PyObject *args) {
15337 int argc;
15338 PyObject *argv[4];
15339 int ii;
15340
15341 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15342 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15343 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
15344 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15345 }
15346 if (argc == 2) {
15347 int _v;
15348 void *vptr = 0;
15349 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15350 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15351 if (_v) {
15352 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
15353 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15354 if (_v) {
15355 return _wrap_GGti_load__SWIG_1(self, args);
15356 }
15357 }
15358 }
15359 if (argc == 3) {
15360 int _v;
15361 void *vptr = 0;
15362 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15363 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15364 if (_v) {
15365 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
15366 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15367 if (_v) {
15368 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
15369 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15370 if (_v) {
15371 return _wrap_GGti_load__SWIG_0(self, args);
15372 }
15373 }
15374 }
15375 }
15376
15377fail:
15378 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GGti_load'.\n"
15379 " Possible C/C++ prototypes are:\n"
15380 " GGti::load(std::string const &,std::string const &)\n"
15381 " GGti::load(std::string const &)\n");
15382 return 0;
15383}
15384
15385
15386SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15387 PyObject *resultobj = 0;
15388 GGti *arg1 = (GGti *) 0 ;
15389 std::string *arg2 = 0 ;
15390 bool *arg3 = 0 ;
15391 std::string *arg4 = 0 ;
15392 void *argp1 = 0 ;
15393 int res1 = 0 ;
15394 int res2 = SWIG_OLDOBJ((0)) ;
15395 bool temp3 ;
15396 bool val3 ;
15397 int ecode3 = 0 ;
15398 int res4 = SWIG_OLDOBJ((0)) ;
15399 PyObject * obj0 = 0 ;
15400 PyObject * obj1 = 0 ;
15401 PyObject * obj2 = 0 ;
15402 PyObject * obj3 = 0 ;
15403
15404 if (!PyArg_ParseTuple(args,(char *)"OOOO:GGti_save",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
15405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15406 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_save" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_save" "', argument " "1"
" of type '" "GGti const *""'"); goto fail; } while(0)
;
15408 }
15409 arg1 = reinterpret_cast< GGti * >(argp1);
15410 {
15411 std::string *ptr = (std::string *)0;
15412 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
15413 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15415 }
15416 if (!ptr) {
15417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15418 }
15419 arg2 = ptr;
15420 }
15421 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15422 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
15423 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GGti_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GGti_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
15424 }
15425 temp3 = static_cast< bool >(val3);
15426 arg3 = &temp3;
15427 {
15428 std::string *ptr = (std::string *)0;
15429 res4 = SWIG_AsPtr_std_string(obj3, &ptr);
15430 if (!SWIG_IsOK(res4)(res4 >= 0)) {
15431 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GGti_save" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GGti_save" "', argument " "4"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15432 }
15433 if (!ptr) {
15434 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_save" "', argument " "4"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_save" "', argument " "4"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15435 }
15436 arg4 = ptr;
15437 }
15438 {
15439 try {
15440 ((GGti const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3,(std::string const &)*arg4);
15441 }
15442 catch (const GException::out_of_range& e) {
15443 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15444 }
15445 catch (const GExceptionHandler& e) {
15446 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15447 }
15448 catch (const std::exception& e) {
15449 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15450 }
15451 }
15452 resultobj = SWIG_Py_Void();
15453 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15454 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
15455 return resultobj;
15456fail:
15457 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15458 if (SWIG_IsNewObj(res4)((res4 >= 0) && (res4 & ((1 << 8) <<
1)))
) delete arg4;
15459 return NULL__null;
15460}
15461
15462
15463SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15464 PyObject *resultobj = 0;
15465 GGti *arg1 = (GGti *) 0 ;
15466 std::string *arg2 = 0 ;
15467 bool *arg3 = 0 ;
15468 void *argp1 = 0 ;
15469 int res1 = 0 ;
15470 int res2 = SWIG_OLDOBJ((0)) ;
15471 bool temp3 ;
15472 bool val3 ;
15473 int ecode3 = 0 ;
15474 PyObject * obj0 = 0 ;
15475 PyObject * obj1 = 0 ;
15476 PyObject * obj2 = 0 ;
15477
15478 if (!PyArg_ParseTuple(args,(char *)"OOO:GGti_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
15479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15480 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_save" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_save" "', argument " "1"
" of type '" "GGti const *""'"); goto fail; } while(0)
;
15482 }
15483 arg1 = reinterpret_cast< GGti * >(argp1);
15484 {
15485 std::string *ptr = (std::string *)0;
15486 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
15487 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15488 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15489 }
15490 if (!ptr) {
15491 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15492 }
15493 arg2 = ptr;
15494 }
15495 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15496 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
15497 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GGti_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GGti_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
15498 }
15499 temp3 = static_cast< bool >(val3);
15500 arg3 = &temp3;
15501 {
15502 try {
15503 ((GGti const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
15504 }
15505 catch (const GException::out_of_range& e) {
15506 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15507 }
15508 catch (const GExceptionHandler& e) {
15509 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15510 }
15511 catch (const std::exception& e) {
15512 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15513 }
15514 }
15515 resultobj = SWIG_Py_Void();
15516 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15517 return resultobj;
15518fail:
15519 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15520 return NULL__null;
15521}
15522
15523
15524SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_save__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15525 PyObject *resultobj = 0;
15526 GGti *arg1 = (GGti *) 0 ;
15527 std::string *arg2 = 0 ;
15528 void *argp1 = 0 ;
15529 int res1 = 0 ;
15530 int res2 = SWIG_OLDOBJ((0)) ;
15531 PyObject * obj0 = 0 ;
15532 PyObject * obj1 = 0 ;
15533
15534 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_save",&obj0,&obj1)) SWIG_failgoto fail;
15535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15536 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_save" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_save" "', argument " "1"
" of type '" "GGti const *""'"); goto fail; } while(0)
;
15538 }
15539 arg1 = reinterpret_cast< GGti * >(argp1);
15540 {
15541 std::string *ptr = (std::string *)0;
15542 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
15543 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15544 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15545 }
15546 if (!ptr) {
15547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15548 }
15549 arg2 = ptr;
15550 }
15551 {
15552 try {
15553 ((GGti const *)arg1)->save((std::string const &)*arg2);
15554 }
15555 catch (const GException::out_of_range& e) {
15556 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15557 }
15558 catch (const GExceptionHandler& e) {
15559 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15560 }
15561 catch (const std::exception& e) {
15562 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15563 }
15564 }
15565 resultobj = SWIG_Py_Void();
15566 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15567 return resultobj;
15568fail:
15569 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
15570 return NULL__null;
15571}
15572
15573
15574SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_save(PyObject *self, PyObject *args) {
15575 int argc;
15576 PyObject *argv[5];
15577 int ii;
15578
15579 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15580 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15581 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
15582 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15583 }
15584 if (argc == 2) {
15585 int _v;
15586 void *vptr = 0;
15587 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15588 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15589 if (_v) {
15590 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
15591 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15592 if (_v) {
15593 return _wrap_GGti_save__SWIG_2(self, args);
15594 }
15595 }
15596 }
15597 if (argc == 3) {
15598 int _v;
15599 void *vptr = 0;
15600 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15601 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15602 if (_v) {
15603 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
15604 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15605 if (_v) {
15606 {
15607 int res = SWIG_AsVal_bool(argv[2], NULL__null);
15608 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15609 }
15610 if (_v) {
15611 return _wrap_GGti_save__SWIG_1(self, args);
15612 }
15613 }
15614 }
15615 }
15616 if (argc == 4) {
15617 int _v;
15618 void *vptr = 0;
15619 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15620 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15621 if (_v) {
15622 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
15623 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15624 if (_v) {
15625 {
15626 int res = SWIG_AsVal_bool(argv[2], NULL__null);
15627 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15628 }
15629 if (_v) {
15630 int res = SWIG_AsPtr_std_string(argv[3], (std::string**)(0));
15631 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15632 if (_v) {
15633 return _wrap_GGti_save__SWIG_0(self, args);
15634 }
15635 }
15636 }
15637 }
15638 }
15639
15640fail:
15641 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GGti_save'.\n"
15642 " Possible C/C++ prototypes are:\n"
15643 " GGti::save(std::string const &,bool const &,std::string const &) const\n"
15644 " GGti::save(std::string const &,bool const &) const\n"
15645 " GGti::save(std::string const &) const\n");
15646 return 0;
15647}
15648
15649
15650SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15651 PyObject *resultobj = 0;
15652 GGti *arg1 = (GGti *) 0 ;
15653 GFitsTable *arg2 = 0 ;
15654 void *argp1 = 0 ;
15655 int res1 = 0 ;
15656 void *argp2 = 0 ;
15657 int res2 = 0 ;
15658 PyObject * obj0 = 0 ;
15659 PyObject * obj1 = 0 ;
15660
15661 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_read",&obj0,&obj1)) SWIG_failgoto fail;
15662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15663 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_read" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_read" "', argument " "1"
" of type '" "GGti *""'"); goto fail; } while(0)
;
15665 }
15666 arg1 = reinterpret_cast< GGti * >(argp1);
15667 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFitsTable, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[14]
, 0 | 0, 0)
;
15668 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15669 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_read" "', argument " "2"
" of type '" "GFitsTable const &""'"); goto fail; } while
(0)
;
15670 }
15671 if (!argp2) {
15672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_read" "', argument " "2"" of type '" "GFitsTable const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_read" "', argument " "2"" of type '" "GFitsTable const &"
"'"); goto fail; } while(0)
;
15673 }
15674 arg2 = reinterpret_cast< GFitsTable * >(argp2);
15675 {
15676 try {
15677 (arg1)->read((GFitsTable const &)*arg2);
15678 }
15679 catch (const GException::out_of_range& e) {
15680 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15681 }
15682 catch (const GExceptionHandler& e) {
15683 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15684 }
15685 catch (const std::exception& e) {
15686 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15687 }
15688 }
15689 resultobj = SWIG_Py_Void();
15690 return resultobj;
15691fail:
15692 return NULL__null;
15693}
15694
15695
15696SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15697 PyObject *resultobj = 0;
15698 GGti *arg1 = (GGti *) 0 ;
15699 GFits *arg2 = 0 ;
15700 std::string *arg3 = 0 ;
15701 void *argp1 = 0 ;
15702 int res1 = 0 ;
15703 void *argp2 = 0 ;
15704 int res2 = 0 ;
15705 int res3 = SWIG_OLDOBJ((0)) ;
15706 PyObject * obj0 = 0 ;
15707 PyObject * obj1 = 0 ;
15708 PyObject * obj2 = 0 ;
15709
15710 if (!PyArg_ParseTuple(args,(char *)"OOO:GGti_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
15711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15712 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_write" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_write" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
15714 }
15715 arg1 = reinterpret_cast< GGti * >(argp1);
15716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
15717 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
15719 }
15720 if (!argp2) {
15721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_write" "', argument " "2"" of type '" "GFits &"
"'"); goto fail; } while(0)
;
15722 }
15723 arg2 = reinterpret_cast< GFits * >(argp2);
15724 {
15725 std::string *ptr = (std::string *)0;
15726 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
15727 if (!SWIG_IsOK(res3)(res3 >= 0)) {
15728 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GGti_write" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GGti_write" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
15729 }
15730 if (!ptr) {
15731 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_write" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_write" "', argument " "3"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
15732 }
15733 arg3 = ptr;
15734 }
15735 {
15736 try {
15737 ((GGti const *)arg1)->write(*arg2,(std::string const &)*arg3);
15738 }
15739 catch (const GException::out_of_range& e) {
15740 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15741 }
15742 catch (const GExceptionHandler& e) {
15743 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15744 }
15745 catch (const std::exception& e) {
15746 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15747 }
15748 }
15749 resultobj = SWIG_Py_Void();
15750 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
15751 return resultobj;
15752fail:
15753 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
15754 return NULL__null;
15755}
15756
15757
15758SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15759 PyObject *resultobj = 0;
15760 GGti *arg1 = (GGti *) 0 ;
15761 GFits *arg2 = 0 ;
15762 void *argp1 = 0 ;
15763 int res1 = 0 ;
15764 void *argp2 = 0 ;
15765 int res2 = 0 ;
15766 PyObject * obj0 = 0 ;
15767 PyObject * obj1 = 0 ;
15768
15769 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_write",&obj0,&obj1)) SWIG_failgoto fail;
15770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15771 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_write" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_write" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
15773 }
15774 arg1 = reinterpret_cast< GGti * >(argp1);
15775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
15776 if (!SWIG_IsOK(res2)(res2 >= 0)) {
15777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
15778 }
15779 if (!argp2) {
15780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_write" "', argument " "2"" of type '" "GFits &"
"'"); goto fail; } while(0)
;
15781 }
15782 arg2 = reinterpret_cast< GFits * >(argp2);
15783 {
15784 try {
15785 ((GGti const *)arg1)->write(*arg2);
15786 }
15787 catch (const GException::out_of_range& e) {
15788 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15789 }
15790 catch (const GExceptionHandler& e) {
15791 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15792 }
15793 catch (const std::exception& e) {
15794 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15795 }
15796 }
15797 resultobj = SWIG_Py_Void();
15798 return resultobj;
15799fail:
15800 return NULL__null;
15801}
15802
15803
15804SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_write(PyObject *self, PyObject *args) {
15805 int argc;
15806 PyObject *argv[4];
15807 int ii;
15808
15809 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15810 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15811 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
15812 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15813 }
15814 if (argc == 2) {
15815 int _v;
15816 void *vptr = 0;
15817 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15818 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15819 if (_v) {
15820 void *vptr = 0;
15821 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[12
], 0, 0)
;
15822 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15823 if (_v) {
15824 return _wrap_GGti_write__SWIG_1(self, args);
15825 }
15826 }
15827 }
15828 if (argc == 3) {
15829 int _v;
15830 void *vptr = 0;
15831 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15832 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15833 if (_v) {
15834 void *vptr = 0;
15835 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GFits, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[12
], 0, 0)
;
15836 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15837 if (_v) {
15838 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
15839 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15840 if (_v) {
15841 return _wrap_GGti_write__SWIG_0(self, args);
15842 }
15843 }
15844 }
15845 }
15846
15847fail:
15848 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GGti_write'.\n"
15849 " Possible C/C++ prototypes are:\n"
15850 " GGti::write(GFits &,std::string const &) const\n"
15851 " GGti::write(GFits &) const\n");
15852 return 0;
15853}
15854
15855
15856SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_tstart__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15857 PyObject *resultobj = 0;
15858 GGti *arg1 = (GGti *) 0 ;
15859 void *argp1 = 0 ;
15860 int res1 = 0 ;
15861 PyObject * obj0 = 0 ;
15862 GTime *result = 0 ;
15863
15864 if (!PyArg_ParseTuple(args,(char *)"O:GGti_tstart",&obj0)) SWIG_failgoto fail;
15865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15866 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_tstart" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_tstart" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
15868 }
15869 arg1 = reinterpret_cast< GGti * >(argp1);
15870 {
15871 try {
15872 result = (GTime *) &((GGti const *)arg1)->tstart();
15873 }
15874 catch (const GException::out_of_range& e) {
15875 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15876 }
15877 catch (const GExceptionHandler& e) {
15878 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15879 }
15880 catch (const std::exception& e) {
15881 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15882 }
15883 }
15884 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[32], 0
| 0)
;
15885 return resultobj;
15886fail:
15887 return NULL__null;
15888}
15889
15890
15891SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_tstop__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15892 PyObject *resultobj = 0;
15893 GGti *arg1 = (GGti *) 0 ;
15894 void *argp1 = 0 ;
15895 int res1 = 0 ;
15896 PyObject * obj0 = 0 ;
15897 GTime *result = 0 ;
15898
15899 if (!PyArg_ParseTuple(args,(char *)"O:GGti_tstop",&obj0)) SWIG_failgoto fail;
15900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15901 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_tstop" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_tstop" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
15903 }
15904 arg1 = reinterpret_cast< GGti * >(argp1);
15905 {
15906 try {
15907 result = (GTime *) &((GGti const *)arg1)->tstop();
15908 }
15909 catch (const GException::out_of_range& e) {
15910 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15911 }
15912 catch (const GExceptionHandler& e) {
15913 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15914 }
15915 catch (const std::exception& e) {
15916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15917 }
15918 }
15919 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[32], 0
| 0)
;
15920 return resultobj;
15921fail:
15922 return NULL__null;
15923}
15924
15925
15926SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_tstart__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15927 PyObject *resultobj = 0;
15928 GGti *arg1 = (GGti *) 0 ;
15929 int *arg2 = 0 ;
15930 void *argp1 = 0 ;
15931 int res1 = 0 ;
15932 int temp2 ;
15933 int val2 ;
15934 int ecode2 = 0 ;
15935 PyObject * obj0 = 0 ;
15936 PyObject * obj1 = 0 ;
15937 GTime *result = 0 ;
15938
15939 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_tstart",&obj0,&obj1)) SWIG_failgoto fail;
15940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
15941 if (!SWIG_IsOK(res1)(res1 >= 0)) {
15942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_tstart" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_tstart" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
15943 }
15944 arg1 = reinterpret_cast< GGti * >(argp1);
15945 ecode2 = SWIG_AsVal_int(obj1, &val2);
15946 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
15947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GGti_tstart" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GGti_tstart" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
15948 }
15949 temp2 = static_cast< int >(val2);
15950 arg2 = &temp2;
15951 {
15952 try {
15953 result = (GTime *) &((GGti const *)arg1)->tstart((int const &)*arg2);
15954 }
15955 catch (const GException::out_of_range& e) {
15956 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
15957 }
15958 catch (const GExceptionHandler& e) {
15959 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15960 }
15961 catch (const std::exception& e) {
15962 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
15963 }
15964 }
15965 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[32], 0
| 0)
;
15966 return resultobj;
15967fail:
15968 return NULL__null;
15969}
15970
15971
15972SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_tstart(PyObject *self, PyObject *args) {
15973 int argc;
15974 PyObject *argv[3];
15975 int ii;
15976
15977 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
15978 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
15979 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
15980 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
15981 }
15982 if (argc == 1) {
15983 int _v;
15984 void *vptr = 0;
15985 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15986 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15987 if (_v) {
15988 return _wrap_GGti_tstart__SWIG_0(self, args);
15989 }
15990 }
15991 if (argc == 2) {
15992 int _v;
15993 void *vptr = 0;
15994 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
15995 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
15996 if (_v) {
15997 {
15998 int res = SWIG_AsVal_int(argv[1], NULL__null);
15999 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16000 }
16001 if (_v) {
16002 return _wrap_GGti_tstart__SWIG_1(self, args);
16003 }
16004 }
16005 }
16006
16007fail:
16008 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GGti_tstart'.\n"
16009 " Possible C/C++ prototypes are:\n"
16010 " GGti::tstart() const\n"
16011 " GGti::tstart(int const &) const\n");
16012 return 0;
16013}
16014
16015
16016SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_tstop__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16017 PyObject *resultobj = 0;
16018 GGti *arg1 = (GGti *) 0 ;
16019 int *arg2 = 0 ;
16020 void *argp1 = 0 ;
16021 int res1 = 0 ;
16022 int temp2 ;
16023 int val2 ;
16024 int ecode2 = 0 ;
16025 PyObject * obj0 = 0 ;
16026 PyObject * obj1 = 0 ;
16027 GTime *result = 0 ;
16028
16029 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_tstop",&obj0,&obj1)) SWIG_failgoto fail;
16030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16031 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_tstop" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_tstop" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
16033 }
16034 arg1 = reinterpret_cast< GGti * >(argp1);
16035 ecode2 = SWIG_AsVal_int(obj1, &val2);
16036 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
16037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GGti_tstop" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GGti_tstop" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
16038 }
16039 temp2 = static_cast< int >(val2);
16040 arg2 = &temp2;
16041 {
16042 try {
16043 result = (GTime *) &((GGti const *)arg1)->tstop((int const &)*arg2);
16044 }
16045 catch (const GException::out_of_range& e) {
16046 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16047 }
16048 catch (const GExceptionHandler& e) {
16049 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16050 }
16051 catch (const std::exception& e) {
16052 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16053 }
16054 }
16055 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[32], 0
| 0)
;
16056 return resultobj;
16057fail:
16058 return NULL__null;
16059}
16060
16061
16062SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_tstop(PyObject *self, PyObject *args) {
16063 int argc;
16064 PyObject *argv[3];
16065 int ii;
16066
16067 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16068 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16069 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
16070 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16071 }
16072 if (argc == 1) {
16073 int _v;
16074 void *vptr = 0;
16075 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
16076 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16077 if (_v) {
16078 return _wrap_GGti_tstop__SWIG_0(self, args);
16079 }
16080 }
16081 if (argc == 2) {
16082 int _v;
16083 void *vptr = 0;
16084 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
16085 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16086 if (_v) {
16087 {
16088 int res = SWIG_AsVal_int(argv[1], NULL__null);
16089 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16090 }
16091 if (_v) {
16092 return _wrap_GGti_tstop__SWIG_1(self, args);
16093 }
16094 }
16095 }
16096
16097fail:
16098 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GGti_tstop'.\n"
16099 " Possible C/C++ prototypes are:\n"
16100 " GGti::tstop() const\n"
16101 " GGti::tstop(int const &) const\n");
16102 return 0;
16103}
16104
16105
16106SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_telapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16107 PyObject *resultobj = 0;
16108 GGti *arg1 = (GGti *) 0 ;
16109 void *argp1 = 0 ;
16110 int res1 = 0 ;
16111 PyObject * obj0 = 0 ;
16112 double *result = 0 ;
16113
16114 if (!PyArg_ParseTuple(args,(char *)"O:GGti_telapse",&obj0)) SWIG_failgoto fail;
16115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16116 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_telapse" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_telapse" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
16118 }
16119 arg1 = reinterpret_cast< GGti * >(argp1);
16120 {
16121 try {
16122 result = (double *) &((GGti const *)arg1)->telapse();
16123 }
16124 catch (const GException::out_of_range& e) {
16125 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16126 }
16127 catch (const GExceptionHandler& e) {
16128 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16129 }
16130 catch (const std::exception& e) {
16131 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16132 }
16133 }
16134 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
16135 return resultobj;
16136fail:
16137 return NULL__null;
16138}
16139
16140
16141SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_ontime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16142 PyObject *resultobj = 0;
16143 GGti *arg1 = (GGti *) 0 ;
16144 void *argp1 = 0 ;
16145 int res1 = 0 ;
16146 PyObject * obj0 = 0 ;
16147 double *result = 0 ;
16148
16149 if (!PyArg_ParseTuple(args,(char *)"O:GGti_ontime",&obj0)) SWIG_failgoto fail;
16150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16151 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_ontime" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_ontime" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
16153 }
16154 arg1 = reinterpret_cast< GGti * >(argp1);
16155 {
16156 try {
16157 result = (double *) &((GGti const *)arg1)->ontime();
16158 }
16159 catch (const GException::out_of_range& e) {
16160 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16161 }
16162 catch (const GExceptionHandler& e) {
16163 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16164 }
16165 catch (const std::exception& e) {
16166 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16167 }
16168 }
16169 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(*result));
16170 return resultobj;
16171fail:
16172 return NULL__null;
16173}
16174
16175
16176SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_reference__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16177 PyObject *resultobj = 0;
16178 GGti *arg1 = (GGti *) 0 ;
16179 GTimeReference *arg2 = 0 ;
16180 void *argp1 = 0 ;
16181 int res1 = 0 ;
16182 void *argp2 = 0 ;
16183 int res2 = 0 ;
16184 PyObject * obj0 = 0 ;
16185 PyObject * obj1 = 0 ;
16186
16187 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_reference",&obj0,&obj1)) SWIG_failgoto fail;
16188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16189 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_reference" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_reference" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
16191 }
16192 arg1 = reinterpret_cast< GGti * >(argp1);
16193 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTimeReference, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[33]
, 0 | 0, 0)
;
16194 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_reference" "', argument " "2"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_reference" "', argument "
"2"" of type '" "GTimeReference const &""'"); goto fail;
} while(0)
;
16196 }
16197 if (!argp2) {
16198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_reference" "', argument " "2"" of type '" "GTimeReference const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_reference" "', argument " "2"" of type '"
"GTimeReference const &""'"); goto fail; } while(0)
;
16199 }
16200 arg2 = reinterpret_cast< GTimeReference * >(argp2);
16201 {
16202 try {
16203 (arg1)->reference((GTimeReference const &)*arg2);
16204 }
16205 catch (const GException::out_of_range& e) {
16206 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16207 }
16208 catch (const GExceptionHandler& e) {
16209 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16210 }
16211 catch (const std::exception& e) {
16212 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16213 }
16214 }
16215 resultobj = SWIG_Py_Void();
16216 return resultobj;
16217fail:
16218 return NULL__null;
16219}
16220
16221
16222SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_reference__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16223 PyObject *resultobj = 0;
16224 GGti *arg1 = (GGti *) 0 ;
16225 void *argp1 = 0 ;
16226 int res1 = 0 ;
16227 PyObject * obj0 = 0 ;
16228 GTimeReference *result = 0 ;
16229
16230 if (!PyArg_ParseTuple(args,(char *)"O:GGti_reference",&obj0)) SWIG_failgoto fail;
16231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16232 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_reference" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_reference" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
16234 }
16235 arg1 = reinterpret_cast< GGti * >(argp1);
16236 {
16237 try {
16238 result = (GTimeReference *) &((GGti const *)arg1)->reference();
16239 }
16240 catch (const GException::out_of_range& e) {
16241 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16242 }
16243 catch (const GExceptionHandler& e) {
16244 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16245 }
16246 catch (const std::exception& e) {
16247 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16248 }
16249 }
16250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GTimeReference, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[33], 0
| 0)
;
16251 return resultobj;
16252fail:
16253 return NULL__null;
16254}
16255
16256
16257SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_reference(PyObject *self, PyObject *args) {
16258 int argc;
16259 PyObject *argv[3];
16260 int ii;
16261
16262 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16263 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16264 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
16265 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16266 }
16267 if (argc == 1) {
16268 int _v;
16269 void *vptr = 0;
16270 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
16271 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16272 if (_v) {
16273 return _wrap_GGti_reference__SWIG_1(self, args);
16274 }
16275 }
16276 if (argc == 2) {
16277 int _v;
16278 void *vptr = 0;
16279 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[15
], 0, 0)
;
16280 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16281 if (_v) {
16282 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GTimeReference, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[33], 0, 0
)
;
16283 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16284 if (_v) {
16285 return _wrap_GGti_reference__SWIG_0(self, args);
16286 }
16287 }
16288 }
16289
16290fail:
16291 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GGti_reference'.\n"
16292 " Possible C/C++ prototypes are:\n"
16293 " GGti::reference(GTimeReference const &)\n"
16294 " GGti::reference() const\n");
16295 return 0;
16296}
16297
16298
16299SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16300 PyObject *resultobj = 0;
16301 GGti *arg1 = (GGti *) 0 ;
16302 GTime *arg2 = 0 ;
16303 void *argp1 = 0 ;
16304 int res1 = 0 ;
16305 void *argp2 = 0 ;
16306 int res2 = 0 ;
16307 PyObject * obj0 = 0 ;
16308 PyObject * obj1 = 0 ;
16309 bool result;
16310
16311 if (!PyArg_ParseTuple(args,(char *)"OO:GGti_contains",&obj0,&obj1)) SWIG_failgoto fail;
16312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16313 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_contains" "', argument " "1"" of type '" "GGti const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_contains" "', argument "
"1"" of type '" "GGti const *""'"); goto fail; } while(0)
;
16315 }
16316 arg1 = reinterpret_cast< GGti * >(argp1);
16317 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
16318 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GGti_contains" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GGti_contains" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
16320 }
16321 if (!argp2) {
16322 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GGti_contains" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GGti_contains" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
16323 }
16324 arg2 = reinterpret_cast< GTime * >(argp2);
16325 {
16326 try {
16327 result = (bool)((GGti const *)arg1)->contains((GTime const &)*arg2);
16328 }
16329 catch (const GException::out_of_range& e) {
16330 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16331 }
16332 catch (const GExceptionHandler& e) {
16333 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16334 }
16335 catch (const std::exception& e) {
16336 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16337 }
16338 }
16339 resultobj = SWIG_From_bool(static_cast< bool >(result));
16340 return resultobj;
16341fail:
16342 return NULL__null;
16343}
16344
16345
16346SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16347 PyObject *resultobj = 0;
16348 GGti *arg1 = (GGti *) 0 ;
16349 void *argp1 = 0 ;
16350 int res1 = 0 ;
16351 PyObject * obj0 = 0 ;
16352 int result;
16353
16354 if (!PyArg_ParseTuple(args,(char *)"O:GGti___len__",&obj0)) SWIG_failgoto fail;
16355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16356 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti___len__" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti___len__" "', argument "
"1"" of type '" "GGti *""'"); goto fail; } while(0)
;
16358 }
16359 arg1 = reinterpret_cast< GGti * >(argp1);
16360 {
16361 try {
16362 result = (int)GGti___len__(arg1);
16363 }
16364 catch (const GException::out_of_range& e) {
16365 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16366 }
16367 catch (const GExceptionHandler& e) {
16368 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16369 }
16370 catch (const std::exception& e) {
16371 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16372 }
16373 }
16374 resultobj = SWIG_From_int(static_cast< int >(result));
16375 return resultobj;
16376fail:
16377 return NULL__null;
16378}
16379
16380
16381SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GGti_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16382 PyObject *resultobj = 0;
16383 GGti *arg1 = (GGti *) 0 ;
16384 void *argp1 = 0 ;
16385 int res1 = 0 ;
16386 PyObject * obj0 = 0 ;
16387 GGti result;
16388
16389 if (!PyArg_ParseTuple(args,(char *)"O:GGti_copy",&obj0)) SWIG_failgoto fail;
16390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[15]
, 0 | 0, 0)
;
16391 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GGti_copy" "', argument " "1"" of type '" "GGti *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GGti_copy" "', argument " "1"
" of type '" "GGti *""'"); goto fail; } while(0)
;
16393 }
16394 arg1 = reinterpret_cast< GGti * >(argp1);
16395 {
16396 try {
16397 result = GGti_copy(arg1);
16398 }
16399 catch (const GException::out_of_range& e) {
16400 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16401 }
16402 catch (const GExceptionHandler& e) {
16403 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16404 }
16405 catch (const std::exception& e) {
16406 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16407 }
16408 }
16409 resultobj = SWIG_NewPointerObj((new GGti(static_cast< const GGti& >(result))), SWIGTYPE_p_GGti, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GGti(static_cast< const
GGti& >(result))), swig_types[15], 0x1 | 0)
;
16410 return resultobj;
16411fail:
16412 return NULL__null;
16413}
16414
16415
16416SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GGti_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16417 PyObject *obj;
16418 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
16419 SWIG_TypeNewClientData(SWIGTYPE_p_GGtiswig_types[15], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
16420 return SWIG_Py_Void();
16421}
16422
16423SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCaldb__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16424 PyObject *resultobj = 0;
16425 GCaldb *result = 0 ;
16426
16427 if (!PyArg_ParseTuple(args,(char *)":new_GCaldb")) SWIG_failgoto fail;
16428 {
16429 try {
16430 result = (GCaldb *)new GCaldb();
16431 }
16432 catch (const GException::out_of_range& e) {
16433 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16434 }
16435 catch (const GExceptionHandler& e) {
16436 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16437 }
16438 catch (const std::exception& e) {
16439 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16440 }
16441 }
16442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCaldb, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
16443 return resultobj;
16444fail:
16445 return NULL__null;
16446}
16447
16448
16449SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCaldb__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16450 PyObject *resultobj = 0;
16451 GCaldb *arg1 = 0 ;
16452 void *argp1 = 0 ;
16453 int res1 = 0 ;
16454 PyObject * obj0 = 0 ;
16455 GCaldb *result = 0 ;
16456
16457 if (!PyArg_ParseTuple(args,(char *)"O:new_GCaldb",&obj0)) SWIG_failgoto fail;
16458 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GCaldb, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16459 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCaldb" "', argument " "1"" of type '" "GCaldb const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GCaldb" "', argument "
"1"" of type '" "GCaldb const &""'"); goto fail; } while
(0)
;
16461 }
16462 if (!argp1) {
16463 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCaldb" "', argument " "1"" of type '" "GCaldb const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GCaldb" "', argument " "1"" of type '" "GCaldb const &"
"'"); goto fail; } while(0)
;
16464 }
16465 arg1 = reinterpret_cast< GCaldb * >(argp1);
16466 {
16467 try {
16468 result = (GCaldb *)new GCaldb((GCaldb const &)*arg1);
16469 }
16470 catch (const GException::out_of_range& e) {
16471 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16472 }
16473 catch (const GExceptionHandler& e) {
16474 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16475 }
16476 catch (const std::exception& e) {
16477 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16478 }
16479 }
16480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCaldb, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
16481 return resultobj;
16482fail:
16483 return NULL__null;
16484}
16485
16486
16487SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCaldb__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16488 PyObject *resultobj = 0;
16489 std::string *arg1 = 0 ;
16490 int res1 = SWIG_OLDOBJ((0)) ;
16491 PyObject * obj0 = 0 ;
16492 GCaldb *result = 0 ;
16493
16494 if (!PyArg_ParseTuple(args,(char *)"O:new_GCaldb",&obj0)) SWIG_failgoto fail;
16495 {
16496 std::string *ptr = (std::string *)0;
16497 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
16498 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCaldb" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GCaldb" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
16500 }
16501 if (!ptr) {
16502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCaldb" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GCaldb" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
16503 }
16504 arg1 = ptr;
16505 }
16506 {
16507 try {
16508 result = (GCaldb *)new GCaldb((std::string const &)*arg1);
16509 }
16510 catch (const GException::out_of_range& e) {
16511 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16512 }
16513 catch (const GExceptionHandler& e) {
16514 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16515 }
16516 catch (const std::exception& e) {
16517 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16518 }
16519 }
16520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCaldb, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], ((
0x1 << 1) | 0x1) | 0)
;
16521 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
16522 return resultobj;
16523fail:
16524 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
16525 return NULL__null;
16526}
16527
16528
16529SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GCaldb(PyObject *self, PyObject *args) {
16530 int argc;
16531 PyObject *argv[2];
16532 int ii;
16533
16534 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16535 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16536 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
16537 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16538 }
16539 if (argc == 0) {
16540 return _wrap_new_GCaldb__SWIG_0(self, args);
16541 }
16542 if (argc == 1) {
16543 int _v;
16544 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GCaldb, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[1], 0, 0);
16545 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16546 if (_v) {
16547 return _wrap_new_GCaldb__SWIG_1(self, args);
16548 }
16549 }
16550 if (argc == 1) {
16551 int _v;
16552 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
16553 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16554 if (_v) {
16555 return _wrap_new_GCaldb__SWIG_2(self, args);
16556 }
16557 }
16558
16559fail:
16560 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GCaldb'.\n"
16561 " Possible C/C++ prototypes are:\n"
16562 " GCaldb::GCaldb()\n"
16563 " GCaldb::GCaldb(GCaldb const &)\n"
16564 " GCaldb::GCaldb(std::string const &)\n");
16565 return 0;
16566}
16567
16568
16569SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GCaldb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16570 PyObject *resultobj = 0;
16571 GCaldb *arg1 = (GCaldb *) 0 ;
16572 void *argp1 = 0 ;
16573 int res1 = 0 ;
16574 PyObject * obj0 = 0 ;
16575
16576 if (!PyArg_ParseTuple(args,(char *)"O:delete_GCaldb",&obj0)) SWIG_failgoto fail;
16577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0x1 | 0, 0)
;
16578 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCaldb" "', argument " "1"" of type '" "GCaldb *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GCaldb" "', argument "
"1"" of type '" "GCaldb *""'"); goto fail; } while(0)
;
16580 }
16581 arg1 = reinterpret_cast< GCaldb * >(argp1);
16582 {
16583 try {
16584 delete arg1;
16585 }
16586 catch (const GException::out_of_range& e) {
16587 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16588 }
16589 catch (const GExceptionHandler& e) {
16590 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16591 }
16592 catch (const std::exception& e) {
16593 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16594 }
16595 }
16596 resultobj = SWIG_Py_Void();
16597 return resultobj;
16598fail:
16599 return NULL__null;
16600}
16601
16602
16603SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16604 PyObject *resultobj = 0;
16605 GCaldb *arg1 = (GCaldb *) 0 ;
16606 void *argp1 = 0 ;
16607 int res1 = 0 ;
16608 PyObject * obj0 = 0 ;
16609
16610 if (!PyArg_ParseTuple(args,(char *)"O:GCaldb_clear",&obj0)) SWIG_failgoto fail;
16611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16612 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_clear" "', argument " "1"" of type '" "GCaldb *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_clear" "', argument "
"1"" of type '" "GCaldb *""'"); goto fail; } while(0)
;
16614 }
16615 arg1 = reinterpret_cast< GCaldb * >(argp1);
16616 {
16617 try {
16618 (arg1)->clear();
16619 }
16620 catch (const GException::out_of_range& e) {
16621 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16622 }
16623 catch (const GExceptionHandler& e) {
16624 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16625 }
16626 catch (const std::exception& e) {
16627 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16628 }
16629 }
16630 resultobj = SWIG_Py_Void();
16631 return resultobj;
16632fail:
16633 return NULL__null;
16634}
16635
16636
16637SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16638 PyObject *resultobj = 0;
16639 GCaldb *arg1 = (GCaldb *) 0 ;
16640 void *argp1 = 0 ;
16641 int res1 = 0 ;
16642 PyObject * obj0 = 0 ;
16643 GCaldb *result = 0 ;
16644
16645 if (!PyArg_ParseTuple(args,(char *)"O:GCaldb_clone",&obj0)) SWIG_failgoto fail;
16646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16647 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_clone" "', argument " "1"" of type '" "GCaldb const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_clone" "', argument "
"1"" of type '" "GCaldb const *""'"); goto fail; } while(0)
;
16649 }
16650 arg1 = reinterpret_cast< GCaldb * >(argp1);
16651 {
16652 try {
16653 result = (GCaldb *)((GCaldb const *)arg1)->clone();
16654 }
16655 catch (const GException::out_of_range& e) {
16656 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16657 }
16658 catch (const GExceptionHandler& e) {
16659 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16660 }
16661 catch (const std::exception& e) {
16662 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16663 }
16664 }
16665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[1], 0 |
0)
;
16666 return resultobj;
16667fail:
16668 return NULL__null;
16669}
16670
16671
16672SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16673 PyObject *resultobj = 0;
16674 GCaldb *arg1 = (GCaldb *) 0 ;
16675 void *argp1 = 0 ;
16676 int res1 = 0 ;
16677 PyObject * obj0 = 0 ;
16678 int result;
16679
16680 if (!PyArg_ParseTuple(args,(char *)"O:GCaldb_size",&obj0)) SWIG_failgoto fail;
16681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16682 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_size" "', argument " "1"" of type '" "GCaldb const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_size" "', argument "
"1"" of type '" "GCaldb const *""'"); goto fail; } while(0)
;
16684 }
16685 arg1 = reinterpret_cast< GCaldb * >(argp1);
16686 {
16687 try {
16688 result = (int)((GCaldb const *)arg1)->size();
16689 }
16690 catch (const GException::out_of_range& e) {
16691 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16692 }
16693 catch (const GExceptionHandler& e) {
16694 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16695 }
16696 catch (const std::exception& e) {
16697 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16698 }
16699 }
16700 resultobj = SWIG_From_int(static_cast< int >(result));
16701 return resultobj;
16702fail:
16703 return NULL__null;
16704}
16705
16706
16707SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_dir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16708 PyObject *resultobj = 0;
16709 GCaldb *arg1 = (GCaldb *) 0 ;
16710 void *argp1 = 0 ;
16711 int res1 = 0 ;
16712 PyObject * obj0 = 0 ;
16713 std::string *result = 0 ;
16714
16715 if (!PyArg_ParseTuple(args,(char *)"O:GCaldb_dir",&obj0)) SWIG_failgoto fail;
16716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16717 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_dir" "', argument " "1"" of type '" "GCaldb const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_dir" "', argument "
"1"" of type '" "GCaldb const *""'"); goto fail; } while(0)
;
16719 }
16720 arg1 = reinterpret_cast< GCaldb * >(argp1);
16721 {
16722 try {
16723 result = (std::string *) &((GCaldb const *)arg1)->dir();
16724 }
16725 catch (const GException::out_of_range& e) {
16726 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16727 }
16728 catch (const GExceptionHandler& e) {
16729 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16730 }
16731 catch (const std::exception& e) {
16732 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16733 }
16734 }
16735 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
16736 return resultobj;
16737fail:
16738 return NULL__null;
16739}
16740
16741
16742SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_dir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16743 PyObject *resultobj = 0;
16744 GCaldb *arg1 = (GCaldb *) 0 ;
16745 std::string *arg2 = 0 ;
16746 void *argp1 = 0 ;
16747 int res1 = 0 ;
16748 int res2 = SWIG_OLDOBJ((0)) ;
16749 PyObject * obj0 = 0 ;
16750 PyObject * obj1 = 0 ;
16751
16752 if (!PyArg_ParseTuple(args,(char *)"OO:GCaldb_dir",&obj0,&obj1)) SWIG_failgoto fail;
16753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16754 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_dir" "', argument " "1"" of type '" "GCaldb *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_dir" "', argument "
"1"" of type '" "GCaldb *""'"); goto fail; } while(0)
;
16756 }
16757 arg1 = reinterpret_cast< GCaldb * >(argp1);
16758 {
16759 std::string *ptr = (std::string *)0;
16760 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
16761 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCaldb_dir" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GCaldb_dir" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
16763 }
16764 if (!ptr) {
16765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCaldb_dir" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GCaldb_dir" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
16766 }
16767 arg2 = ptr;
16768 }
16769 {
16770 try {
16771 (arg1)->dir((std::string const &)*arg2);
16772 }
16773 catch (const GException::out_of_range& e) {
16774 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16775 }
16776 catch (const GExceptionHandler& e) {
16777 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16778 }
16779 catch (const std::exception& e) {
16780 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16781 }
16782 }
16783 resultobj = SWIG_Py_Void();
16784 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
16785 return resultobj;
16786fail:
16787 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
16788 return NULL__null;
16789}
16790
16791
16792SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_dir(PyObject *self, PyObject *args) {
16793 int argc;
16794 PyObject *argv[3];
16795 int ii;
16796
16797 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16798 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16799 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
16800 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16801 }
16802 if (argc == 1) {
16803 int _v;
16804 void *vptr = 0;
16805 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCaldb, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
16806 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16807 if (_v) {
16808 return _wrap_GCaldb_dir__SWIG_0(self, args);
16809 }
16810 }
16811 if (argc == 2) {
16812 int _v;
16813 void *vptr = 0;
16814 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCaldb, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
16815 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16816 if (_v) {
16817 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
16818 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16819 if (_v) {
16820 return _wrap_GCaldb_dir__SWIG_1(self, args);
16821 }
16822 }
16823 }
16824
16825fail:
16826 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCaldb_dir'.\n"
16827 " Possible C/C++ prototypes are:\n"
16828 " GCaldb::dir() const\n"
16829 " GCaldb::dir(std::string const &)\n");
16830 return 0;
16831}
16832
16833
16834SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_open__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16835 PyObject *resultobj = 0;
16836 GCaldb *arg1 = (GCaldb *) 0 ;
16837 std::string *arg2 = 0 ;
16838 std::string *arg3 = 0 ;
16839 void *argp1 = 0 ;
16840 int res1 = 0 ;
16841 int res2 = SWIG_OLDOBJ((0)) ;
16842 int res3 = SWIG_OLDOBJ((0)) ;
16843 PyObject * obj0 = 0 ;
16844 PyObject * obj1 = 0 ;
16845 PyObject * obj2 = 0 ;
16846
16847 if (!PyArg_ParseTuple(args,(char *)"OOO:GCaldb_open",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
16848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16849 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_open" "', argument " "1"" of type '" "GCaldb *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_open" "', argument "
"1"" of type '" "GCaldb *""'"); goto fail; } while(0)
;
16851 }
16852 arg1 = reinterpret_cast< GCaldb * >(argp1);
16853 {
16854 std::string *ptr = (std::string *)0;
16855 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
16856 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCaldb_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GCaldb_open" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
16858 }
16859 if (!ptr) {
16860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCaldb_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GCaldb_open" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
16861 }
16862 arg2 = ptr;
16863 }
16864 {
16865 std::string *ptr = (std::string *)0;
16866 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
16867 if (!SWIG_IsOK(res3)(res3 >= 0)) {
16868 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GCaldb_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GCaldb_open" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
16869 }
16870 if (!ptr) {
16871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCaldb_open" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GCaldb_open" "', argument " "3"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
16872 }
16873 arg3 = ptr;
16874 }
16875 {
16876 try {
16877 (arg1)->open((std::string const &)*arg2,(std::string const &)*arg3);
16878 }
16879 catch (const GException::out_of_range& e) {
16880 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16881 }
16882 catch (const GExceptionHandler& e) {
16883 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16884 }
16885 catch (const std::exception& e) {
16886 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16887 }
16888 }
16889 resultobj = SWIG_Py_Void();
16890 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
16891 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
16892 return resultobj;
16893fail:
16894 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
16895 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
16896 return NULL__null;
16897}
16898
16899
16900SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_open__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16901 PyObject *resultobj = 0;
16902 GCaldb *arg1 = (GCaldb *) 0 ;
16903 std::string *arg2 = 0 ;
16904 void *argp1 = 0 ;
16905 int res1 = 0 ;
16906 int res2 = SWIG_OLDOBJ((0)) ;
16907 PyObject * obj0 = 0 ;
16908 PyObject * obj1 = 0 ;
16909
16910 if (!PyArg_ParseTuple(args,(char *)"OO:GCaldb_open",&obj0,&obj1)) SWIG_failgoto fail;
16911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
16912 if (!SWIG_IsOK(res1)(res1 >= 0)) {
16913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_open" "', argument " "1"" of type '" "GCaldb *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_open" "', argument "
"1"" of type '" "GCaldb *""'"); goto fail; } while(0)
;
16914 }
16915 arg1 = reinterpret_cast< GCaldb * >(argp1);
16916 {
16917 std::string *ptr = (std::string *)0;
16918 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
16919 if (!SWIG_IsOK(res2)(res2 >= 0)) {
16920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCaldb_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GCaldb_open" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
16921 }
16922 if (!ptr) {
16923 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GCaldb_open" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GCaldb_open" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
16924 }
16925 arg2 = ptr;
16926 }
16927 {
16928 try {
16929 (arg1)->open((std::string const &)*arg2);
16930 }
16931 catch (const GException::out_of_range& e) {
16932 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
16933 }
16934 catch (const GExceptionHandler& e) {
16935 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16936 }
16937 catch (const std::exception& e) {
16938 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
16939 }
16940 }
16941 resultobj = SWIG_Py_Void();
16942 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
16943 return resultobj;
16944fail:
16945 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
16946 return NULL__null;
16947}
16948
16949
16950SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_open(PyObject *self, PyObject *args) {
16951 int argc;
16952 PyObject *argv[4];
16953 int ii;
16954
16955 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
16956 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
16957 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
16958 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
16959 }
16960 if (argc == 2) {
16961 int _v;
16962 void *vptr = 0;
16963 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCaldb, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
16964 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16965 if (_v) {
16966 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
16967 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16968 if (_v) {
16969 return _wrap_GCaldb_open__SWIG_1(self, args);
16970 }
16971 }
16972 }
16973 if (argc == 3) {
16974 int _v;
16975 void *vptr = 0;
16976 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GCaldb, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[1
], 0, 0)
;
16977 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16978 if (_v) {
16979 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
16980 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16981 if (_v) {
16982 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
16983 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
16984 if (_v) {
16985 return _wrap_GCaldb_open__SWIG_0(self, args);
16986 }
16987 }
16988 }
16989 }
16990
16991fail:
16992 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GCaldb_open'.\n"
16993 " Possible C/C++ prototypes are:\n"
16994 " GCaldb::open(std::string const &,std::string const &)\n"
16995 " GCaldb::open(std::string const &)\n");
16996 return 0;
16997}
16998
16999
17000SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17001 PyObject *resultobj = 0;
17002 GCaldb *arg1 = (GCaldb *) 0 ;
17003 void *argp1 = 0 ;
17004 int res1 = 0 ;
17005 PyObject * obj0 = 0 ;
17006
17007 if (!PyArg_ParseTuple(args,(char *)"O:GCaldb_close",&obj0)) SWIG_failgoto fail;
17008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
17009 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_close" "', argument " "1"" of type '" "GCaldb *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_close" "', argument "
"1"" of type '" "GCaldb *""'"); goto fail; } while(0)
;
17011 }
17012 arg1 = reinterpret_cast< GCaldb * >(argp1);
17013 {
17014 try {
17015 (arg1)->close();
17016 }
17017 catch (const GException::out_of_range& e) {
17018 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17019 }
17020 catch (const GExceptionHandler& e) {
17021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17022 }
17023 catch (const std::exception& e) {
17024 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17025 }
17026 }
17027 resultobj = SWIG_Py_Void();
17028 return resultobj;
17029fail:
17030 return NULL__null;
17031}
17032
17033
17034SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GCaldb_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17035 PyObject *resultobj = 0;
17036 GCaldb *arg1 = (GCaldb *) 0 ;
17037 void *argp1 = 0 ;
17038 int res1 = 0 ;
17039 PyObject * obj0 = 0 ;
17040 GCaldb result;
17041
17042 if (!PyArg_ParseTuple(args,(char *)"O:GCaldb_copy",&obj0)) SWIG_failgoto fail;
17043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GCaldb, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[1],
0 | 0, 0)
;
17044 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCaldb_copy" "', argument " "1"" of type '" "GCaldb *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GCaldb_copy" "', argument "
"1"" of type '" "GCaldb *""'"); goto fail; } while(0)
;
17046 }
17047 arg1 = reinterpret_cast< GCaldb * >(argp1);
17048 {
17049 try {
17050 result = GCaldb_copy(arg1);
17051 }
17052 catch (const GException::out_of_range& e) {
17053 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17054 }
17055 catch (const GExceptionHandler& e) {
17056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17057 }
17058 catch (const std::exception& e) {
17059 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17060 }
17061 }
17062 resultobj = SWIG_NewPointerObj((new GCaldb(static_cast< const GCaldb& >(result))), SWIGTYPE_p_GCaldb, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GCaldb(static_cast<
const GCaldb& >(result))), swig_types[1], 0x1 | 0)
;
17063 return resultobj;
17064fail:
17065 return NULL__null;
17066}
17067
17068
17069SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GCaldb_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17070 PyObject *obj;
17071 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
17072 SWIG_TypeNewClientData(SWIGTYPE_p_GCaldbswig_types[1], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
17073 return SWIG_Py_Void();
17074}
17075
17076SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservations__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17077 PyObject *resultobj = 0;
17078 GObservations *result = 0 ;
17079
17080 if (!PyArg_ParseTuple(args,(char *)":new_GObservations")) SWIG_failgoto fail;
17081 {
17082 try {
17083 result = (GObservations *)new GObservations();
17084 }
17085 catch (const GException::out_of_range& e) {
17086 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17087 }
17088 catch (const GExceptionHandler& e) {
17089 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17090 }
17091 catch (const std::exception& e) {
17092 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17093 }
17094 }
17095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservations, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
17096 return resultobj;
17097fail:
17098 return NULL__null;
17099}
17100
17101
17102SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservations__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17103 PyObject *resultobj = 0;
17104 GObservations *arg1 = 0 ;
17105 void *argp1 = 0 ;
17106 int res1 = 0 ;
17107 PyObject * obj0 = 0 ;
17108 GObservations *result = 0 ;
17109
17110 if (!PyArg_ParseTuple(args,(char *)"O:new_GObservations",&obj0)) SWIG_failgoto fail;
17111 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GObservations, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17112 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GObservations" "', argument " "1"" of type '" "GObservations const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GObservations" "', argument "
"1"" of type '" "GObservations const &""'"); goto fail; }
while(0)
;
17114 }
17115 if (!argp1) {
17116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GObservations" "', argument " "1"" of type '" "GObservations const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GObservations" "', argument " "1"" of type '"
"GObservations const &""'"); goto fail; } while(0)
;
17117 }
17118 arg1 = reinterpret_cast< GObservations * >(argp1);
17119 {
17120 try {
17121 result = (GObservations *)new GObservations((GObservations const &)*arg1);
17122 }
17123 catch (const GException::out_of_range& e) {
17124 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17125 }
17126 catch (const GExceptionHandler& e) {
17127 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17128 }
17129 catch (const std::exception& e) {
17130 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17131 }
17132 }
17133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservations, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
17134 return resultobj;
17135fail:
17136 return NULL__null;
17137}
17138
17139
17140SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservations__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17141 PyObject *resultobj = 0;
17142 std::string *arg1 = 0 ;
17143 int res1 = SWIG_OLDOBJ((0)) ;
17144 PyObject * obj0 = 0 ;
17145 GObservations *result = 0 ;
17146
17147 if (!PyArg_ParseTuple(args,(char *)"O:new_GObservations",&obj0)) SWIG_failgoto fail;
17148 {
17149 std::string *ptr = (std::string *)0;
17150 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
17151 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GObservations" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GObservations" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
17153 }
17154 if (!ptr) {
17155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GObservations" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GObservations" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
17156 }
17157 arg1 = ptr;
17158 }
17159 {
17160 try {
17161 result = (GObservations *)new GObservations((std::string const &)*arg1);
17162 }
17163 catch (const GException::out_of_range& e) {
17164 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17165 }
17166 catch (const GExceptionHandler& e) {
17167 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17168 }
17169 catch (const std::exception& e) {
17170 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17171 }
17172 }
17173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservations, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], (
(0x1 << 1) | 0x1) | 0)
;
17174 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
17175 return resultobj;
17176fail:
17177 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
17178 return NULL__null;
17179}
17180
17181
17182SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservations(PyObject *self, PyObject *args) {
17183 int argc;
17184 PyObject *argv[2];
17185 int ii;
17186
17187 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
17188 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
17189 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
17190 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
17191 }
17192 if (argc == 0) {
17193 return _wrap_new_GObservations__SWIG_0(self, args);
17194 }
17195 if (argc == 1) {
17196 int _v;
17197 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GObservations, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[22], 0, 0
)
;
17198 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17199 if (_v) {
17200 return _wrap_new_GObservations__SWIG_1(self, args);
17201 }
17202 }
17203 if (argc == 1) {
17204 int _v;
17205 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
17206 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
17207 if (_v) {
17208 return _wrap_new_GObservations__SWIG_2(self, args);
17209 }
17210 }
17211
17212fail:
17213 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GObservations'.\n"
17214 " Possible C/C++ prototypes are:\n"
17215 " GObservations::GObservations()\n"
17216 " GObservations::GObservations(GObservations const &)\n"
17217 " GObservations::GObservations(std::string const &)\n");
17218 return 0;
17219}
17220
17221
17222SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GObservations(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17223 PyObject *resultobj = 0;
17224 GObservations *arg1 = (GObservations *) 0 ;
17225 void *argp1 = 0 ;
17226 int res1 = 0 ;
17227 PyObject * obj0 = 0 ;
17228
17229 if (!PyArg_ParseTuple(args,(char *)"O:delete_GObservations",&obj0)) SWIG_failgoto fail;
17230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0x1 | 0, 0)
;
17231 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GObservations" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GObservations" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17233 }
17234 arg1 = reinterpret_cast< GObservations * >(argp1);
17235 {
17236 try {
17237 delete arg1;
17238 }
17239 catch (const GException::out_of_range& e) {
17240 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17241 }
17242 catch (const GExceptionHandler& e) {
17243 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17244 }
17245 catch (const std::exception& e) {
17246 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17247 }
17248 }
17249 resultobj = SWIG_Py_Void();
17250 return resultobj;
17251fail:
17252 return NULL__null;
17253}
17254
17255
17256SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17257 PyObject *resultobj = 0;
17258 GObservations *arg1 = (GObservations *) 0 ;
17259 void *argp1 = 0 ;
17260 int res1 = 0 ;
17261 PyObject * obj0 = 0 ;
17262
17263 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_clear",&obj0)) SWIG_failgoto fail;
17264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17265 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_clear" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_clear" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17267 }
17268 arg1 = reinterpret_cast< GObservations * >(argp1);
17269 {
17270 try {
17271 (arg1)->clear();
17272 }
17273 catch (const GException::out_of_range& e) {
17274 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17275 }
17276 catch (const GExceptionHandler& e) {
17277 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17278 }
17279 catch (const std::exception& e) {
17280 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17281 }
17282 }
17283 resultobj = SWIG_Py_Void();
17284 return resultobj;
17285fail:
17286 return NULL__null;
17287}
17288
17289
17290SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17291 PyObject *resultobj = 0;
17292 GObservations *arg1 = (GObservations *) 0 ;
17293 void *argp1 = 0 ;
17294 int res1 = 0 ;
17295 PyObject * obj0 = 0 ;
17296 GObservations *result = 0 ;
17297
17298 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_clone",&obj0)) SWIG_failgoto fail;
17299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17300 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_clone" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_clone" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
17302 }
17303 arg1 = reinterpret_cast< GObservations * >(argp1);
17304 {
17305 try {
17306 result = (GObservations *)((GObservations const *)arg1)->clone();
17307 }
17308 catch (const GException::out_of_range& e) {
17309 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17310 }
17311 catch (const GExceptionHandler& e) {
17312 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17313 }
17314 catch (const std::exception& e) {
17315 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17316 }
17317 }
17318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[22], 0
| 0)
;
17319 return resultobj;
17320fail:
17321 return NULL__null;
17322}
17323
17324
17325SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17326 PyObject *resultobj = 0;
17327 GObservations *arg1 = (GObservations *) 0 ;
17328 void *argp1 = 0 ;
17329 int res1 = 0 ;
17330 PyObject * obj0 = 0 ;
17331 int result;
17332
17333 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_size",&obj0)) SWIG_failgoto fail;
17334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17335 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_size" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_size" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
17337 }
17338 arg1 = reinterpret_cast< GObservations * >(argp1);
17339 {
17340 try {
17341 result = (int)((GObservations const *)arg1)->size();
17342 }
17343 catch (const GException::out_of_range& e) {
17344 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17345 }
17346 catch (const GExceptionHandler& e) {
17347 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17348 }
17349 catch (const std::exception& e) {
17350 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17351 }
17352 }
17353 resultobj = SWIG_From_int(static_cast< int >(result));
17354 return resultobj;
17355fail:
17356 return NULL__null;
17357}
17358
17359
17360SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17361 PyObject *resultobj = 0;
17362 GObservations *arg1 = (GObservations *) 0 ;
17363 void *argp1 = 0 ;
17364 int res1 = 0 ;
17365 PyObject * obj0 = 0 ;
17366 bool result;
17367
17368 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_isempty",&obj0)) SWIG_failgoto fail;
17369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17370 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_isempty" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_isempty" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
17372 }
17373 arg1 = reinterpret_cast< GObservations * >(argp1);
17374 {
17375 try {
17376 result = (bool)((GObservations const *)arg1)->isempty();
17377 }
17378 catch (const GException::out_of_range& e) {
17379 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17380 }
17381 catch (const GExceptionHandler& e) {
17382 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17383 }
17384 catch (const std::exception& e) {
17385 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17386 }
17387 }
17388 resultobj = SWIG_From_bool(static_cast< bool >(result));
17389 return resultobj;
17390fail:
17391 return NULL__null;
17392}
17393
17394
17395SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17396 PyObject *resultobj = 0;
17397 GObservations *arg1 = (GObservations *) 0 ;
17398 int *arg2 = 0 ;
17399 GObservation *arg3 = 0 ;
17400 void *argp1 = 0 ;
17401 int res1 = 0 ;
17402 int temp2 ;
17403 int val2 ;
17404 int ecode2 = 0 ;
17405 void *argp3 = 0 ;
17406 int res3 = 0 ;
17407 PyObject * obj0 = 0 ;
17408 PyObject * obj1 = 0 ;
17409 PyObject * obj2 = 0 ;
17410 GObservation *result = 0 ;
17411
17412 if (!PyArg_ParseTuple(args,(char *)"OOO:GObservations_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
17413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17414 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_set" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_set" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17416 }
17417 arg1 = reinterpret_cast< GObservations * >(argp1);
17418 ecode2 = SWIG_AsVal_int(obj1, &val2);
17419 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GObservations_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GObservations_set" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
17421 }
17422 temp2 = static_cast< int >(val2);
17423 arg2 = &temp2;
17424 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
17425 if (!SWIG_IsOK(res3)(res3 >= 0)) {
17426 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservations_set" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservations_set" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
17427 }
17428 if (!argp3) {
17429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_set" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_set" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
17430 }
17431 arg3 = reinterpret_cast< GObservation * >(argp3);
17432 {
17433 try {
17434 result = (GObservation *)(arg1)->set((int const &)*arg2,(GObservation const &)*arg3);
17435 }
17436 catch (const GException::out_of_range& e) {
17437 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17438 }
17439 catch (const GExceptionHandler& e) {
17440 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17441 }
17442 catch (const std::exception& e) {
17443 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17444 }
17445 }
17446 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
17447 return resultobj;
17448fail:
17449 return NULL__null;
17450}
17451
17452
17453SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17454 PyObject *resultobj = 0;
17455 GObservations *arg1 = (GObservations *) 0 ;
17456 GObservation *arg2 = 0 ;
17457 void *argp1 = 0 ;
17458 int res1 = 0 ;
17459 void *argp2 = 0 ;
17460 int res2 = 0 ;
17461 PyObject * obj0 = 0 ;
17462 PyObject * obj1 = 0 ;
17463 GObservation *result = 0 ;
17464
17465 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_append",&obj0,&obj1)) SWIG_failgoto fail;
17466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17467 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_append" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_append" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17469 }
17470 arg1 = reinterpret_cast< GObservations * >(argp1);
17471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[20]
, 0 | 0, 0)
;
17472 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_append" "', argument " "2"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_append" "', argument "
"2"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
17474 }
17475 if (!argp2) {
17476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_append" "', argument " "2"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_append" "', argument " "2"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
17477 }
17478 arg2 = reinterpret_cast< GObservation * >(argp2);
17479 {
17480 try {
17481 result = (GObservation *)(arg1)->append((GObservation const &)*arg2);
17482 }
17483 catch (const GException::out_of_range& e) {
17484 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17485 }
17486 catch (const GExceptionHandler& e) {
17487 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17488 }
17489 catch (const std::exception& e) {
17490 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17491 }
17492 }
17493 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
17494 return resultobj;
17495fail:
17496 return NULL__null;
17497}
17498
17499
17500SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17501 PyObject *resultobj = 0;
17502 GObservations *arg1 = (GObservations *) 0 ;
17503 int *arg2 = 0 ;
17504 GObservation *arg3 = 0 ;
17505 void *argp1 = 0 ;
17506 int res1 = 0 ;
17507 int temp2 ;
17508 int val2 ;
17509 int ecode2 = 0 ;
17510 void *argp3 = 0 ;
17511 int res3 = 0 ;
17512 PyObject * obj0 = 0 ;
17513 PyObject * obj1 = 0 ;
17514 PyObject * obj2 = 0 ;
17515 GObservation *result = 0 ;
17516
17517 if (!PyArg_ParseTuple(args,(char *)"OOO:GObservations_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
17518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17519 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_insert" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_insert" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17521 }
17522 arg1 = reinterpret_cast< GObservations * >(argp1);
17523 ecode2 = SWIG_AsVal_int(obj1, &val2);
17524 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GObservations_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GObservations_insert" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
17526 }
17527 temp2 = static_cast< int >(val2);
17528 arg2 = &temp2;
17529 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
17530 if (!SWIG_IsOK(res3)(res3 >= 0)) {
17531 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservations_insert" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservations_insert" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
17532 }
17533 if (!argp3) {
17534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_insert" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_insert" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
17535 }
17536 arg3 = reinterpret_cast< GObservation * >(argp3);
17537 {
17538 try {
17539 result = (GObservation *)(arg1)->insert((int const &)*arg2,(GObservation const &)*arg3);
17540 }
17541 catch (const GException::out_of_range& e) {
17542 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17543 }
17544 catch (const GExceptionHandler& e) {
17545 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17546 }
17547 catch (const std::exception& e) {
17548 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17549 }
17550 }
17551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
17552 return resultobj;
17553fail:
17554 return NULL__null;
17555}
17556
17557
17558SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17559 PyObject *resultobj = 0;
17560 GObservations *arg1 = (GObservations *) 0 ;
17561 int *arg2 = 0 ;
17562 void *argp1 = 0 ;
17563 int res1 = 0 ;
17564 int temp2 ;
17565 int val2 ;
17566 int ecode2 = 0 ;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569
17570 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_remove",&obj0,&obj1)) SWIG_failgoto fail;
17571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17572 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_remove" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_remove" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17574 }
17575 arg1 = reinterpret_cast< GObservations * >(argp1);
17576 ecode2 = SWIG_AsVal_int(obj1, &val2);
17577 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GObservations_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GObservations_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
17579 }
17580 temp2 = static_cast< int >(val2);
17581 arg2 = &temp2;
17582 {
17583 try {
17584 (arg1)->remove((int const &)*arg2);
17585 }
17586 catch (const GException::out_of_range& e) {
17587 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17588 }
17589 catch (const GExceptionHandler& e) {
17590 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17591 }
17592 catch (const std::exception& e) {
17593 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17594 }
17595 }
17596 resultobj = SWIG_Py_Void();
17597 return resultobj;
17598fail:
17599 return NULL__null;
17600}
17601
17602
17603SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17604 PyObject *resultobj = 0;
17605 GObservations *arg1 = (GObservations *) 0 ;
17606 int *arg2 = 0 ;
17607 void *argp1 = 0 ;
17608 int res1 = 0 ;
17609 int temp2 ;
17610 int val2 ;
17611 int ecode2 = 0 ;
17612 PyObject * obj0 = 0 ;
17613 PyObject * obj1 = 0 ;
17614
17615 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_reserve",&obj0,&obj1)) SWIG_failgoto fail;
17616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17617 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_reserve" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_reserve" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17619 }
17620 arg1 = reinterpret_cast< GObservations * >(argp1);
17621 ecode2 = SWIG_AsVal_int(obj1, &val2);
17622 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
17623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GObservations_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GObservations_reserve"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
17624 }
17625 temp2 = static_cast< int >(val2);
17626 arg2 = &temp2;
17627 {
17628 try {
17629 (arg1)->reserve((int const &)*arg2);
17630 }
17631 catch (const GException::out_of_range& e) {
17632 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17633 }
17634 catch (const GExceptionHandler& e) {
17635 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17636 }
17637 catch (const std::exception& e) {
17638 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17639 }
17640 }
17641 resultobj = SWIG_Py_Void();
17642 return resultobj;
17643fail:
17644 return NULL__null;
17645}
17646
17647
17648SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17649 PyObject *resultobj = 0;
17650 GObservations *arg1 = (GObservations *) 0 ;
17651 GObservations *arg2 = 0 ;
17652 void *argp1 = 0 ;
17653 int res1 = 0 ;
17654 void *argp2 = 0 ;
17655 int res2 = 0 ;
17656 PyObject * obj0 = 0 ;
17657 PyObject * obj1 = 0 ;
17658
17659 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_extend",&obj0,&obj1)) SWIG_failgoto fail;
17660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17661 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_extend" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_extend" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17663 }
17664 arg1 = reinterpret_cast< GObservations * >(argp1);
17665 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GObservations, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[22]
, 0 | 0, 0)
;
17666 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17667 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_extend" "', argument " "2"" of type '" "GObservations const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_extend" "', argument "
"2"" of type '" "GObservations const &""'"); goto fail; }
while(0)
;
17668 }
17669 if (!argp2) {
17670 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_extend" "', argument " "2"" of type '" "GObservations const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_extend" "', argument " "2"" of type '"
"GObservations const &""'"); goto fail; } while(0)
;
17671 }
17672 arg2 = reinterpret_cast< GObservations * >(argp2);
17673 {
17674 try {
17675 (arg1)->extend((GObservations const &)*arg2);
17676 }
17677 catch (const GException::out_of_range& e) {
17678 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17679 }
17680 catch (const GExceptionHandler& e) {
17681 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17682 }
17683 catch (const std::exception& e) {
17684 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17685 }
17686 }
17687 resultobj = SWIG_Py_Void();
17688 return resultobj;
17689fail:
17690 return NULL__null;
17691}
17692
17693
17694SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17695 PyObject *resultobj = 0;
17696 GObservations *arg1 = (GObservations *) 0 ;
17697 std::string *arg2 = 0 ;
17698 std::string *arg3 = 0 ;
17699 void *argp1 = 0 ;
17700 int res1 = 0 ;
17701 int res2 = SWIG_OLDOBJ((0)) ;
17702 int res3 = SWIG_OLDOBJ((0)) ;
17703 PyObject * obj0 = 0 ;
17704 PyObject * obj1 = 0 ;
17705 PyObject * obj2 = 0 ;
17706 bool result;
17707
17708 if (!PyArg_ParseTuple(args,(char *)"OOO:GObservations_contains",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
17709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17710 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_contains" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_contains" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
17712 }
17713 arg1 = reinterpret_cast< GObservations * >(argp1);
17714 {
17715 std::string *ptr = (std::string *)0;
17716 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
17717 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_contains" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
17719 }
17720 if (!ptr) {
17721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_contains" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_contains" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
17722 }
17723 arg2 = ptr;
17724 }
17725 {
17726 std::string *ptr = (std::string *)0;
17727 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
17728 if (!SWIG_IsOK(res3)(res3 >= 0)) {
17729 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservations_contains" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservations_contains" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
17730 }
17731 if (!ptr) {
17732 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_contains" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_contains" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
17733 }
17734 arg3 = ptr;
17735 }
17736 {
17737 try {
17738 result = (bool)((GObservations const *)arg1)->contains((std::string const &)*arg2,(std::string const &)*arg3);
17739 }
17740 catch (const GException::out_of_range& e) {
17741 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17742 }
17743 catch (const GExceptionHandler& e) {
17744 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17745 }
17746 catch (const std::exception& e) {
17747 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17748 }
17749 }
17750 resultobj = SWIG_From_bool(static_cast< bool >(result));
17751 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
17752 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
17753 return resultobj;
17754fail:
17755 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
17756 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
17757 return NULL__null;
17758}
17759
17760
17761SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17762 PyObject *resultobj = 0;
17763 GObservations *arg1 = (GObservations *) 0 ;
17764 std::string *arg2 = 0 ;
17765 void *argp1 = 0 ;
17766 int res1 = 0 ;
17767 int res2 = SWIG_OLDOBJ((0)) ;
17768 PyObject * obj0 = 0 ;
17769 PyObject * obj1 = 0 ;
17770
17771 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_load",&obj0,&obj1)) SWIG_failgoto fail;
17772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17773 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_load" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_load" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17775 }
17776 arg1 = reinterpret_cast< GObservations * >(argp1);
17777 {
17778 std::string *ptr = (std::string *)0;
17779 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
17780 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
17782 }
17783 if (!ptr) {
17784 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
17785 }
17786 arg2 = ptr;
17787 }
17788 {
17789 try {
17790 (arg1)->load((std::string const &)*arg2);
17791 }
17792 catch (const GException::out_of_range& e) {
17793 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17794 }
17795 catch (const GExceptionHandler& e) {
17796 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17797 }
17798 catch (const std::exception& e) {
17799 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17800 }
17801 }
17802 resultobj = SWIG_Py_Void();
17803 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
17804 return resultobj;
17805fail:
17806 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
17807 return NULL__null;
17808}
17809
17810
17811SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17812 PyObject *resultobj = 0;
17813 GObservations *arg1 = (GObservations *) 0 ;
17814 std::string *arg2 = 0 ;
17815 void *argp1 = 0 ;
17816 int res1 = 0 ;
17817 int res2 = SWIG_OLDOBJ((0)) ;
17818 PyObject * obj0 = 0 ;
17819 PyObject * obj1 = 0 ;
17820
17821 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_save",&obj0,&obj1)) SWIG_failgoto fail;
17822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17823 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_save" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_save" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
17825 }
17826 arg1 = reinterpret_cast< GObservations * >(argp1);
17827 {
17828 std::string *ptr = (std::string *)0;
17829 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
17830 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17831 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
17832 }
17833 if (!ptr) {
17834 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
17835 }
17836 arg2 = ptr;
17837 }
17838 {
17839 try {
17840 ((GObservations const *)arg1)->save((std::string const &)*arg2);
17841 }
17842 catch (const GException::out_of_range& e) {
17843 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17844 }
17845 catch (const GExceptionHandler& e) {
17846 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17847 }
17848 catch (const std::exception& e) {
17849 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17850 }
17851 }
17852 resultobj = SWIG_Py_Void();
17853 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
17854 return resultobj;
17855fail:
17856 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
17857 return NULL__null;
17858}
17859
17860
17861SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17862 PyObject *resultobj = 0;
17863 GObservations *arg1 = (GObservations *) 0 ;
17864 GXml *arg2 = 0 ;
17865 void *argp1 = 0 ;
17866 int res1 = 0 ;
17867 void *argp2 = 0 ;
17868 int res2 = 0 ;
17869 PyObject * obj0 = 0 ;
17870 PyObject * obj1 = 0 ;
17871
17872 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_read",&obj0,&obj1)) SWIG_failgoto fail;
17873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17874 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_read" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_read" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17876 }
17877 arg1 = reinterpret_cast< GObservations * >(argp1);
17878 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXml, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[36]
, 0 | 0, 0)
;
17879 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17880 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_read" "', argument " "2"" of type '" "GXml const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_read" "', argument "
"2"" of type '" "GXml const &""'"); goto fail; } while(0
)
;
17881 }
17882 if (!argp2) {
17883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_read" "', argument " "2"" of type '" "GXml const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_read" "', argument " "2"" of type '"
"GXml const &""'"); goto fail; } while(0)
;
17884 }
17885 arg2 = reinterpret_cast< GXml * >(argp2);
17886 {
17887 try {
17888 (arg1)->read((GXml const &)*arg2);
17889 }
17890 catch (const GException::out_of_range& e) {
17891 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17892 }
17893 catch (const GExceptionHandler& e) {
17894 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17895 }
17896 catch (const std::exception& e) {
17897 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17898 }
17899 }
17900 resultobj = SWIG_Py_Void();
17901 return resultobj;
17902fail:
17903 return NULL__null;
17904}
17905
17906
17907SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17908 PyObject *resultobj = 0;
17909 GObservations *arg1 = (GObservations *) 0 ;
17910 GXml *arg2 = 0 ;
17911 void *argp1 = 0 ;
17912 int res1 = 0 ;
17913 void *argp2 = 0 ;
17914 int res2 = 0 ;
17915 PyObject * obj0 = 0 ;
17916 PyObject * obj1 = 0 ;
17917
17918 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_write",&obj0,&obj1)) SWIG_failgoto fail;
17919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17920 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_write" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_write" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
17922 }
17923 arg1 = reinterpret_cast< GObservations * >(argp1);
17924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXml, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[36]
, 0, 0)
;
17925 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_write" "', argument " "2"" of type '" "GXml &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_write" "', argument "
"2"" of type '" "GXml &""'"); goto fail; } while(0)
;
17927 }
17928 if (!argp2) {
17929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_write" "', argument " "2"" of type '" "GXml &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_write" "', argument " "2"" of type '"
"GXml &""'"); goto fail; } while(0)
;
17930 }
17931 arg2 = reinterpret_cast< GXml * >(argp2);
17932 {
17933 try {
17934 ((GObservations const *)arg1)->write(*arg2);
17935 }
17936 catch (const GException::out_of_range& e) {
17937 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17938 }
17939 catch (const GExceptionHandler& e) {
17940 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17941 }
17942 catch (const std::exception& e) {
17943 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17944 }
17945 }
17946 resultobj = SWIG_Py_Void();
17947 return resultobj;
17948fail:
17949 return NULL__null;
17950}
17951
17952
17953SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_models__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17954 PyObject *resultobj = 0;
17955 GObservations *arg1 = (GObservations *) 0 ;
17956 GModels *arg2 = 0 ;
17957 void *argp1 = 0 ;
17958 int res1 = 0 ;
17959 void *argp2 = 0 ;
17960 int res2 = 0 ;
17961 PyObject * obj0 = 0 ;
17962 PyObject * obj1 = 0 ;
17963
17964 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_models",&obj0,&obj1)) SWIG_failgoto fail;
17965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
17966 if (!SWIG_IsOK(res1)(res1 >= 0)) {
17967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_models" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_models" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
17968 }
17969 arg1 = reinterpret_cast< GObservations * >(argp1);
17970 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModels, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[19]
, 0 | 0, 0)
;
17971 if (!SWIG_IsOK(res2)(res2 >= 0)) {
17972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_models" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_models" "', argument "
"2"" of type '" "GModels const &""'"); goto fail; } while
(0)
;
17973 }
17974 if (!argp2) {
17975 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_models" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_models" "', argument " "2"" of type '"
"GModels const &""'"); goto fail; } while(0)
;
17976 }
17977 arg2 = reinterpret_cast< GModels * >(argp2);
17978 {
17979 try {
17980 (arg1)->models((GModels const &)*arg2);
17981 }
17982 catch (const GException::out_of_range& e) {
17983 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
17984 }
17985 catch (const GExceptionHandler& e) {
17986 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17987 }
17988 catch (const std::exception& e) {
17989 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
17990 }
17991 }
17992 resultobj = SWIG_Py_Void();
17993 return resultobj;
17994fail:
17995 return NULL__null;
17996}
17997
17998
17999SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_models__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18000 PyObject *resultobj = 0;
18001 GObservations *arg1 = (GObservations *) 0 ;
18002 std::string *arg2 = 0 ;
18003 void *argp1 = 0 ;
18004 int res1 = 0 ;
18005 int res2 = SWIG_OLDOBJ((0)) ;
18006 PyObject * obj0 = 0 ;
18007 PyObject * obj1 = 0 ;
18008
18009 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_models",&obj0,&obj1)) SWIG_failgoto fail;
18010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18011 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_models" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_models" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
18013 }
18014 arg1 = reinterpret_cast< GObservations * >(argp1);
18015 {
18016 std::string *ptr = (std::string *)0;
18017 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
18018 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18019 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_models" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_models" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
18020 }
18021 if (!ptr) {
18022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_models" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_models" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
18023 }
18024 arg2 = ptr;
18025 }
18026 {
18027 try {
18028 (arg1)->models((std::string const &)*arg2);
18029 }
18030 catch (const GException::out_of_range& e) {
18031 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18032 }
18033 catch (const GExceptionHandler& e) {
18034 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18035 }
18036 catch (const std::exception& e) {
18037 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18038 }
18039 }
18040 resultobj = SWIG_Py_Void();
18041 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
18042 return resultobj;
18043fail:
18044 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
18045 return NULL__null;
18046}
18047
18048
18049SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_models__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18050 PyObject *resultobj = 0;
18051 GObservations *arg1 = (GObservations *) 0 ;
18052 void *argp1 = 0 ;
18053 int res1 = 0 ;
18054 PyObject * obj0 = 0 ;
18055 GModels *result = 0 ;
18056
18057 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_models",&obj0)) SWIG_failgoto fail;
18058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18059 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_models" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_models" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
18061 }
18062 arg1 = reinterpret_cast< GObservations * >(argp1);
18063 {
18064 try {
18065 result = (GModels *) &(arg1)->models();
18066 }
18067 catch (const GException::out_of_range& e) {
18068 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18069 }
18070 catch (const GExceptionHandler& e) {
18071 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18072 }
18073 catch (const std::exception& e) {
18074 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18075 }
18076 }
18077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModels, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[19], 0
| 0)
;
18078 return resultobj;
18079fail:
18080 return NULL__null;
18081}
18082
18083
18084SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_models(PyObject *self, PyObject *args) {
18085 int argc;
18086 PyObject *argv[3];
18087 int ii;
18088
18089 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18090 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18091 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
18092 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18093 }
18094 if (argc == 1) {
18095 int _v;
18096 void *vptr = 0;
18097 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservations, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
18098 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18099 if (_v) {
18100 return _wrap_GObservations_models__SWIG_2(self, args);
18101 }
18102 }
18103 if (argc == 2) {
18104 int _v;
18105 void *vptr = 0;
18106 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservations, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
18107 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18108 if (_v) {
18109 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[19], 0, 0
)
;
18110 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18111 if (_v) {
18112 return _wrap_GObservations_models__SWIG_0(self, args);
18113 }
18114 }
18115 }
18116 if (argc == 2) {
18117 int _v;
18118 void *vptr = 0;
18119 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservations, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[22
], 0, 0)
;
18120 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18121 if (_v) {
18122 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
18123 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18124 if (_v) {
18125 return _wrap_GObservations_models__SWIG_1(self, args);
18126 }
18127 }
18128 }
18129
18130fail:
18131 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservations_models'.\n"
18132 " Possible C/C++ prototypes are:\n"
18133 " GObservations::models(GModels const &)\n"
18134 " GObservations::models(std::string const &)\n"
18135 " GObservations::models()\n");
18136 return 0;
18137}
18138
18139
18140SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_optimize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18141 PyObject *resultobj = 0;
18142 GObservations *arg1 = (GObservations *) 0 ;
18143 GOptimizer *arg2 = 0 ;
18144 void *argp1 = 0 ;
18145 int res1 = 0 ;
18146 void *argp2 = 0 ;
18147 int res2 = 0 ;
18148 PyObject * obj0 = 0 ;
18149 PyObject * obj1 = 0 ;
18150
18151 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations_optimize",&obj0,&obj1)) SWIG_failgoto fail;
18152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18153 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_optimize" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_optimize" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
18155 }
18156 arg1 = reinterpret_cast< GObservations * >(argp1);
18157 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GOptimizer, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[24]
, 0, 0)
;
18158 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18159 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservations_optimize" "', argument " "2"" of type '" "GOptimizer &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservations_optimize" "', argument "
"2"" of type '" "GOptimizer &""'"); goto fail; } while(0
)
;
18160 }
18161 if (!argp2) {
18162 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations_optimize" "', argument " "2"" of type '" "GOptimizer &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations_optimize" "', argument " "2"" of type '"
"GOptimizer &""'"); goto fail; } while(0)
;
18163 }
18164 arg2 = reinterpret_cast< GOptimizer * >(argp2);
18165 {
18166 try {
18167 (arg1)->optimize(*arg2);
18168 }
18169 catch (const GException::out_of_range& e) {
18170 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18171 }
18172 catch (const GExceptionHandler& e) {
18173 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18174 }
18175 catch (const std::exception& e) {
18176 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18177 }
18178 }
18179 resultobj = SWIG_Py_Void();
18180 return resultobj;
18181fail:
18182 return NULL__null;
18183}
18184
18185
18186SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_npred(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18187 PyObject *resultobj = 0;
18188 GObservations *arg1 = (GObservations *) 0 ;
18189 void *argp1 = 0 ;
18190 int res1 = 0 ;
18191 PyObject * obj0 = 0 ;
18192 double result;
18193
18194 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_npred",&obj0)) SWIG_failgoto fail;
18195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18196 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_npred" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_npred" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
18198 }
18199 arg1 = reinterpret_cast< GObservations * >(argp1);
18200 {
18201 try {
18202 result = (double)((GObservations const *)arg1)->npred();
18203 }
18204 catch (const GException::out_of_range& e) {
18205 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18206 }
18207 catch (const GExceptionHandler& e) {
18208 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18209 }
18210 catch (const std::exception& e) {
18211 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18212 }
18213 }
18214 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18215 return resultobj;
18216fail:
18217 return NULL__null;
18218}
18219
18220
18221SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_function(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18222 PyObject *resultobj = 0;
18223 GObservations *arg1 = (GObservations *) 0 ;
18224 void *argp1 = 0 ;
18225 int res1 = 0 ;
18226 PyObject * obj0 = 0 ;
18227 GObservations::likelihood *result = 0 ;
18228
18229 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_function",&obj0)) SWIG_failgoto fail;
18230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18231 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_function" "', argument " "1"" of type '" "GObservations const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_function" "', argument "
"1"" of type '" "GObservations const *""'"); goto fail; } while
(0)
;
18233 }
18234 arg1 = reinterpret_cast< GObservations * >(argp1);
18235 {
18236 try {
18237 result = (GObservations::likelihood *) &((GObservations const *)arg1)->function();
18238 }
18239 catch (const GException::out_of_range& e) {
18240 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18241 }
18242 catch (const GExceptionHandler& e) {
18243 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18244 }
18245 catch (const std::exception& e) {
18246 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18247 }
18248 }
18249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservations__likelihood, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[23], 0
| 0)
;
18250 return resultobj;
18251fail:
18252 return NULL__null;
18253}
18254
18255
18256SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18257 PyObject *resultobj = 0;
18258 GObservations *arg1 = (GObservations *) 0 ;
18259 int *arg2 = 0 ;
18260 void *argp1 = 0 ;
18261 int res1 = 0 ;
18262 int temp2 ;
18263 int val2 ;
18264 int ecode2 = 0 ;
18265 PyObject * obj0 = 0 ;
18266 PyObject * obj1 = 0 ;
18267 GObservation *result = 0 ;
18268
18269 if (!PyArg_ParseTuple(args,(char *)"OO:GObservations___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
18270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18271 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations___getitem__" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations___getitem__"
"', argument " "1"" of type '" "GObservations *""'"); goto fail
; } while(0)
;
18273 }
18274 arg1 = reinterpret_cast< GObservations * >(argp1);
18275 ecode2 = SWIG_AsVal_int(obj1, &val2);
18276 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
18277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GObservations___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GObservations___getitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
18278 }
18279 temp2 = static_cast< int >(val2);
18280 arg2 = &temp2;
18281 {
18282 try {
18283 result = (GObservation *)GObservations___getitem__(arg1,(int const &)*arg2);
18284 }
18285 catch (const GException::out_of_range& e) {
18286 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18287 }
18288 catch (const GExceptionHandler& e) {
18289 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18290 }
18291 catch (const std::exception& e) {
18292 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18293 }
18294 }
18295 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
18296 return resultobj;
18297fail:
18298 return NULL__null;
18299}
18300
18301
18302SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18303 PyObject *resultobj = 0;
18304 GObservations *arg1 = (GObservations *) 0 ;
18305 int *arg2 = 0 ;
18306 GObservation *arg3 = 0 ;
18307 void *argp1 = 0 ;
18308 int res1 = 0 ;
18309 int temp2 ;
18310 int val2 ;
18311 int ecode2 = 0 ;
18312 void *argp3 = 0 ;
18313 int res3 = 0 ;
18314 PyObject * obj0 = 0 ;
18315 PyObject * obj1 = 0 ;
18316 PyObject * obj2 = 0 ;
18317
18318 if (!PyArg_ParseTuple(args,(char *)"OOO:GObservations___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
18319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18320 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations___setitem__" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations___setitem__"
"', argument " "1"" of type '" "GObservations *""'"); goto fail
; } while(0)
;
18322 }
18323 arg1 = reinterpret_cast< GObservations * >(argp1);
18324 ecode2 = SWIG_AsVal_int(obj1, &val2);
18325 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
18326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GObservations___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GObservations___setitem__"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
18327 }
18328 temp2 = static_cast< int >(val2);
18329 arg2 = &temp2;
18330 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
18331 if (!SWIG_IsOK(res3)(res3 >= 0)) {
18332 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservations___setitem__" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservations___setitem__"
"', argument " "3"" of type '" "GObservation const &""'"
); goto fail; } while(0)
;
18333 }
18334 if (!argp3) {
18335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservations___setitem__" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservations___setitem__" "', argument " "3"
" of type '" "GObservation const &""'"); goto fail; } while
(0)
;
18336 }
18337 arg3 = reinterpret_cast< GObservation * >(argp3);
18338 {
18339 try {
18340 GObservations___setitem__(arg1,(int const &)*arg2,(GObservation const &)*arg3);
18341 }
18342 catch (const GException::out_of_range& e) {
18343 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18344 }
18345 catch (const GExceptionHandler& e) {
18346 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18347 }
18348 catch (const std::exception& e) {
18349 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18350 }
18351 }
18352 resultobj = SWIG_Py_Void();
18353 return resultobj;
18354fail:
18355 return NULL__null;
18356}
18357
18358
18359SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservations_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18360 PyObject *resultobj = 0;
18361 GObservations *arg1 = (GObservations *) 0 ;
18362 void *argp1 = 0 ;
18363 int res1 = 0 ;
18364 PyObject * obj0 = 0 ;
18365 GObservations result;
18366
18367 if (!PyArg_ParseTuple(args,(char *)"O:GObservations_copy",&obj0)) SWIG_failgoto fail;
18368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservations, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[22]
, 0 | 0, 0)
;
18369 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservations_copy" "', argument " "1"" of type '" "GObservations *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservations_copy" "', argument "
"1"" of type '" "GObservations *""'"); goto fail; } while(0)
;
18371 }
18372 arg1 = reinterpret_cast< GObservations * >(argp1);
18373 {
18374 try {
18375 result = GObservations_copy(arg1);
18376 }
18377 catch (const GException::out_of_range& e) {
18378 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18379 }
18380 catch (const GExceptionHandler& e) {
18381 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18382 }
18383 catch (const std::exception& e) {
18384 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18385 }
18386 }
18387 resultobj = SWIG_NewPointerObj((new GObservations(static_cast< const GObservations& >(result))), SWIGTYPE_p_GObservations, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GObservations(static_cast
< const GObservations& >(result))), swig_types[22],
0x1 | 0)
;
18388 return resultobj;
18389fail:
18390 return NULL__null;
18391}
18392
18393
18394SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GObservations_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18395 PyObject *obj;
18396 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
18397 SWIG_TypeNewClientData(SWIGTYPE_p_GObservationsswig_types[22], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
18398 return SWIG_Py_Void();
18399}
18400
18401SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GObservation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18402 PyObject *resultobj = 0;
18403 GObservation *arg1 = (GObservation *) 0 ;
18404 void *argp1 = 0 ;
18405 int res1 = 0 ;
18406 PyObject * obj0 = 0 ;
18407
18408 if (!PyArg_ParseTuple(args,(char *)"O:delete_GObservation",&obj0)) SWIG_failgoto fail;
18409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0x1 | 0, 0)
;
18410 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GObservation" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GObservation" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
18412 }
18413 arg1 = reinterpret_cast< GObservation * >(argp1);
18414 {
18415 try {
18416 delete arg1;
18417 }
18418 catch (const GException::out_of_range& e) {
18419 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18420 }
18421 catch (const GExceptionHandler& e) {
18422 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18423 }
18424 catch (const std::exception& e) {
18425 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18426 }
18427 }
18428 resultobj = SWIG_Py_Void();
18429 return resultobj;
18430fail:
18431 return NULL__null;
18432}
18433
18434
18435SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18436 PyObject *resultobj = 0;
18437 GObservation *arg1 = (GObservation *) 0 ;
18438 void *argp1 = 0 ;
18439 int res1 = 0 ;
18440 PyObject * obj0 = 0 ;
18441
18442 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_clear",&obj0)) SWIG_failgoto fail;
18443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18444 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_clear" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_clear" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
18446 }
18447 arg1 = reinterpret_cast< GObservation * >(argp1);
18448 {
18449 try {
18450 (arg1)->clear();
18451 }
18452 catch (const GException::out_of_range& e) {
18453 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18454 }
18455 catch (const GExceptionHandler& e) {
18456 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18457 }
18458 catch (const std::exception& e) {
18459 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18460 }
18461 }
18462 resultobj = SWIG_Py_Void();
18463 return resultobj;
18464fail:
18465 return NULL__null;
18466}
18467
18468
18469SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18470 PyObject *resultobj = 0;
18471 GObservation *arg1 = (GObservation *) 0 ;
18472 void *argp1 = 0 ;
18473 int res1 = 0 ;
18474 PyObject * obj0 = 0 ;
18475 GObservation *result = 0 ;
18476
18477 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_clone",&obj0)) SWIG_failgoto fail;
18478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18479 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_clone" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_clone" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
18481 }
18482 arg1 = reinterpret_cast< GObservation * >(argp1);
18483 {
18484 try {
18485 result = (GObservation *)((GObservation const *)arg1)->clone();
18486 }
18487 catch (const GException::out_of_range& e) {
18488 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18489 }
18490 catch (const GExceptionHandler& e) {
18491 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18492 }
18493 catch (const std::exception& e) {
18494 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18495 }
18496 }
18497 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
18498 return resultobj;
18499fail:
18500 return NULL__null;
18501}
18502
18503
18504SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_response__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18505 PyObject *resultobj = 0;
18506 GObservation *arg1 = (GObservation *) 0 ;
18507 GResponse *arg2 = 0 ;
18508 void *argp1 = 0 ;
18509 int res1 = 0 ;
18510 void *argp2 = 0 ;
18511 int res2 = 0 ;
18512 PyObject * obj0 = 0 ;
18513 PyObject * obj1 = 0 ;
18514
18515 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_response",&obj0,&obj1)) SWIG_failgoto fail;
18516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18517 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_response" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_response" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
18519 }
18520 arg1 = reinterpret_cast< GObservation * >(argp1);
18521 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GResponse, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[28]
, 0 | 0, 0)
;
18522 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18523 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_response" "', argument "
"2"" of type '" "GResponse const &""'"); goto fail; } while
(0)
;
18524 }
18525 if (!argp2) {
18526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_response" "', argument " "2"" of type '" "GResponse const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_response" "', argument " "2"" of type '"
"GResponse const &""'"); goto fail; } while(0)
;
18527 }
18528 arg2 = reinterpret_cast< GResponse * >(argp2);
18529 {
18530 try {
18531 (arg1)->response((GResponse const &)*arg2);
18532 }
18533 catch (const GException::out_of_range& e) {
18534 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18535 }
18536 catch (const GExceptionHandler& e) {
18537 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18538 }
18539 catch (const std::exception& e) {
18540 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18541 }
18542 }
18543 resultobj = SWIG_Py_Void();
18544 return resultobj;
18545fail:
18546 return NULL__null;
18547}
18548
18549
18550SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_response__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18551 PyObject *resultobj = 0;
18552 GObservation *arg1 = (GObservation *) 0 ;
18553 void *argp1 = 0 ;
18554 int res1 = 0 ;
18555 PyObject * obj0 = 0 ;
18556 GResponse *result = 0 ;
18557
18558 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_response",&obj0)) SWIG_failgoto fail;
18559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18560 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_response" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_response" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
18562 }
18563 arg1 = reinterpret_cast< GObservation * >(argp1);
18564 {
18565 try {
18566 result = (GResponse *) &((GObservation const *)arg1)->response();
18567 }
18568 catch (const GException::out_of_range& e) {
18569 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18570 }
18571 catch (const GExceptionHandler& e) {
18572 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18573 }
18574 catch (const std::exception& e) {
18575 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18576 }
18577 }
18578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], 0
| 0)
;
18579 return resultobj;
18580fail:
18581 return NULL__null;
18582}
18583
18584
18585SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_response(PyObject *self, PyObject *args) {
18586 int argc;
18587 PyObject *argv[3];
18588 int ii;
18589
18590 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
18591 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
18592 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
18593 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
18594 }
18595 if (argc == 1) {
18596 int _v;
18597 void *vptr = 0;
18598 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
18599 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18600 if (_v) {
18601 return _wrap_GObservation_response__SWIG_1(self, args);
18602 }
18603 }
18604 if (argc == 2) {
18605 int _v;
18606 void *vptr = 0;
18607 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
18608 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18609 if (_v) {
18610 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[28], 0, 0
)
;
18611 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
18612 if (_v) {
18613 return _wrap_GObservation_response__SWIG_0(self, args);
18614 }
18615 }
18616 }
18617
18618fail:
18619 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservation_response'.\n"
18620 " Possible C/C++ prototypes are:\n"
18621 " GObservation::response(GResponse const &)\n"
18622 " GObservation::response() const\n");
18623 return 0;
18624}
18625
18626
18627SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_instrument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18628 PyObject *resultobj = 0;
18629 GObservation *arg1 = (GObservation *) 0 ;
18630 void *argp1 = 0 ;
18631 int res1 = 0 ;
18632 PyObject * obj0 = 0 ;
18633 std::string result;
18634
18635 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_instrument",&obj0)) SWIG_failgoto fail;
18636 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18637 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_instrument" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_instrument" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
18639 }
18640 arg1 = reinterpret_cast< GObservation * >(argp1);
18641 {
18642 try {
18643 result = ((GObservation const *)arg1)->instrument();
18644 }
18645 catch (const GException::out_of_range& e) {
18646 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18647 }
18648 catch (const GExceptionHandler& e) {
18649 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18650 }
18651 catch (const std::exception& e) {
18652 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18653 }
18654 }
18655 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
18656 return resultobj;
18657fail:
18658 return NULL__null;
18659}
18660
18661
18662SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_ontime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18663 PyObject *resultobj = 0;
18664 GObservation *arg1 = (GObservation *) 0 ;
18665 void *argp1 = 0 ;
18666 int res1 = 0 ;
18667 PyObject * obj0 = 0 ;
18668 double result;
18669
18670 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_ontime",&obj0)) SWIG_failgoto fail;
18671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18672 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_ontime" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_ontime" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
18674 }
18675 arg1 = reinterpret_cast< GObservation * >(argp1);
18676 {
18677 try {
18678 result = (double)((GObservation const *)arg1)->ontime();
18679 }
18680 catch (const GException::out_of_range& e) {
18681 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18682 }
18683 catch (const GExceptionHandler& e) {
18684 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18685 }
18686 catch (const std::exception& e) {
18687 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18688 }
18689 }
18690 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18691 return resultobj;
18692fail:
18693 return NULL__null;
18694}
18695
18696
18697SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_livetime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18698 PyObject *resultobj = 0;
18699 GObservation *arg1 = (GObservation *) 0 ;
18700 void *argp1 = 0 ;
18701 int res1 = 0 ;
18702 PyObject * obj0 = 0 ;
18703 double result;
18704
18705 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_livetime",&obj0)) SWIG_failgoto fail;
18706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18707 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_livetime" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_livetime" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
18709 }
18710 arg1 = reinterpret_cast< GObservation * >(argp1);
18711 {
18712 try {
18713 result = (double)((GObservation const *)arg1)->livetime();
18714 }
18715 catch (const GException::out_of_range& e) {
18716 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18717 }
18718 catch (const GExceptionHandler& e) {
18719 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18720 }
18721 catch (const std::exception& e) {
18722 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18723 }
18724 }
18725 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18726 return resultobj;
18727fail:
18728 return NULL__null;
18729}
18730
18731
18732SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_deadc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18733 PyObject *resultobj = 0;
18734 GObservation *arg1 = (GObservation *) 0 ;
18735 GTime *arg2 = 0 ;
18736 void *argp1 = 0 ;
18737 int res1 = 0 ;
18738 void *argp2 = 0 ;
18739 int res2 = 0 ;
18740 PyObject * obj0 = 0 ;
18741 PyObject * obj1 = 0 ;
18742 double result;
18743
18744 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_deadc",&obj0,&obj1)) SWIG_failgoto fail;
18745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18746 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_deadc" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_deadc" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
18748 }
18749 arg1 = reinterpret_cast< GObservation * >(argp1);
18750 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
18751 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_deadc" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
18753 }
18754 if (!argp2) {
18755 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_deadc" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_deadc" "', argument " "2"" of type '"
"GTime const &""'"); goto fail; } while(0)
;
18756 }
18757 arg2 = reinterpret_cast< GTime * >(argp2);
18758 {
18759 try {
18760 result = (double)((GObservation const *)arg1)->deadc((GTime const &)*arg2);
18761 }
18762 catch (const GException::out_of_range& e) {
18763 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18764 }
18765 catch (const GExceptionHandler& e) {
18766 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18767 }
18768 catch (const std::exception& e) {
18769 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18770 }
18771 }
18772 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
18773 return resultobj;
18774fail:
18775 return NULL__null;
18776}
18777
18778
18779SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18780 PyObject *resultobj = 0;
18781 GObservation *arg1 = (GObservation *) 0 ;
18782 GXmlElement *arg2 = 0 ;
18783 void *argp1 = 0 ;
18784 int res1 = 0 ;
18785 void *argp2 = 0 ;
18786 int res2 = 0 ;
18787 PyObject * obj0 = 0 ;
18788 PyObject * obj1 = 0 ;
18789
18790 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_read",&obj0,&obj1)) SWIG_failgoto fail;
18791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18792 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_read" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_read" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
18794 }
18795 arg1 = reinterpret_cast< GObservation * >(argp1);
18796 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37]
, 0 | 0, 0)
;
18797 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18798 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_read" "', argument "
"2"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
18799 }
18800 if (!argp2) {
18801 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_read" "', argument " "2"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_read" "', argument " "2"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
18802 }
18803 arg2 = reinterpret_cast< GXmlElement * >(argp2);
18804 {
18805 try {
18806 (arg1)->read((GXmlElement const &)*arg2);
18807 }
18808 catch (const GException::out_of_range& e) {
18809 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18810 }
18811 catch (const GExceptionHandler& e) {
18812 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18813 }
18814 catch (const std::exception& e) {
18815 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18816 }
18817 }
18818 resultobj = SWIG_Py_Void();
18819 return resultobj;
18820fail:
18821 return NULL__null;
18822}
18823
18824
18825SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18826 PyObject *resultobj = 0;
18827 GObservation *arg1 = (GObservation *) 0 ;
18828 GXmlElement *arg2 = 0 ;
18829 void *argp1 = 0 ;
18830 int res1 = 0 ;
18831 void *argp2 = 0 ;
18832 int res2 = 0 ;
18833 PyObject * obj0 = 0 ;
18834 PyObject * obj1 = 0 ;
18835
18836 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_write",&obj0,&obj1)) SWIG_failgoto fail;
18837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18838 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_write" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_write" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
18840 }
18841 arg1 = reinterpret_cast< GObservation * >(argp1);
18842 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlElement, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[37]
, 0, 0)
;
18843 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_write" "', argument "
"2"" of type '" "GXmlElement &""'"); goto fail; } while(
0)
;
18845 }
18846 if (!argp2) {
18847 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_write" "', argument " "2"" of type '" "GXmlElement &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_write" "', argument " "2"" of type '"
"GXmlElement &""'"); goto fail; } while(0)
;
18848 }
18849 arg2 = reinterpret_cast< GXmlElement * >(argp2);
18850 {
18851 try {
18852 ((GObservation const *)arg1)->write(*arg2);
18853 }
18854 catch (const GException::out_of_range& e) {
18855 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18856 }
18857 catch (const GExceptionHandler& e) {
18858 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18859 }
18860 catch (const std::exception& e) {
18861 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18862 }
18863 }
18864 resultobj = SWIG_Py_Void();
18865 return resultobj;
18866fail:
18867 return NULL__null;
18868}
18869
18870
18871SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18872 PyObject *resultobj = 0;
18873 GObservation *arg1 = (GObservation *) 0 ;
18874 std::string *arg2 = 0 ;
18875 void *argp1 = 0 ;
18876 int res1 = 0 ;
18877 int res2 = SWIG_OLDOBJ((0)) ;
18878 PyObject * obj0 = 0 ;
18879 PyObject * obj1 = 0 ;
18880
18881 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_name",&obj0,&obj1)) SWIG_failgoto fail;
18882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18883 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_name" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_name" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
18885 }
18886 arg1 = reinterpret_cast< GObservation * >(argp1);
18887 {
18888 std::string *ptr = (std::string *)0;
18889 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
18890 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18891 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_name" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
18892 }
18893 if (!ptr) {
18894 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_name" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
18895 }
18896 arg2 = ptr;
18897 }
18898 {
18899 try {
18900 (arg1)->name((std::string const &)*arg2);
18901 }
18902 catch (const GException::out_of_range& e) {
18903 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18904 }
18905 catch (const GExceptionHandler& e) {
18906 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18907 }
18908 catch (const std::exception& e) {
18909 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18910 }
18911 }
18912 resultobj = SWIG_Py_Void();
18913 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
18914 return resultobj;
18915fail:
18916 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
18917 return NULL__null;
18918}
18919
18920
18921SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_id__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18922 PyObject *resultobj = 0;
18923 GObservation *arg1 = (GObservation *) 0 ;
18924 std::string *arg2 = 0 ;
18925 void *argp1 = 0 ;
18926 int res1 = 0 ;
18927 int res2 = SWIG_OLDOBJ((0)) ;
18928 PyObject * obj0 = 0 ;
18929 PyObject * obj1 = 0 ;
18930
18931 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_id",&obj0,&obj1)) SWIG_failgoto fail;
18932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18933 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_id" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_id" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
18935 }
18936 arg1 = reinterpret_cast< GObservation * >(argp1);
18937 {
18938 std::string *ptr = (std::string *)0;
18939 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
18940 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_id" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_id" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
18942 }
18943 if (!ptr) {
18944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_id" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_id" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
18945 }
18946 arg2 = ptr;
18947 }
18948 {
18949 try {
18950 (arg1)->id((std::string const &)*arg2);
18951 }
18952 catch (const GException::out_of_range& e) {
18953 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
18954 }
18955 catch (const GExceptionHandler& e) {
18956 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18957 }
18958 catch (const std::exception& e) {
18959 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
18960 }
18961 }
18962 resultobj = SWIG_Py_Void();
18963 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
18964 return resultobj;
18965fail:
18966 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
18967 return NULL__null;
18968}
18969
18970
18971SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_events__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18972 PyObject *resultobj = 0;
18973 GObservation *arg1 = (GObservation *) 0 ;
18974 GEvents *arg2 = 0 ;
18975 void *argp1 = 0 ;
18976 int res1 = 0 ;
18977 void *argp2 = 0 ;
18978 int res2 = 0 ;
18979 PyObject * obj0 = 0 ;
18980 PyObject * obj1 = 0 ;
18981
18982 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_events",&obj0,&obj1)) SWIG_failgoto fail;
18983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
18984 if (!SWIG_IsOK(res1)(res1 >= 0)) {
18985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_events" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_events" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
18986 }
18987 arg1 = reinterpret_cast< GObservation * >(argp1);
18988 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvents, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[11]
, 0 | 0, 0)
;
18989 if (!SWIG_IsOK(res2)(res2 >= 0)) {
18990 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_events" "', argument " "2"" of type '" "GEvents const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_events" "', argument "
"2"" of type '" "GEvents const &""'"); goto fail; } while
(0)
;
18991 }
18992 if (!argp2) {
18993 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_events" "', argument " "2"" of type '" "GEvents const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_events" "', argument " "2"" of type '"
"GEvents const &""'"); goto fail; } while(0)
;
18994 }
18995 arg2 = reinterpret_cast< GEvents * >(argp2);
18996 {
18997 try {
18998 (arg1)->events((GEvents const &)*arg2);
18999 }
19000 catch (const GException::out_of_range& e) {
19001 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19002 }
19003 catch (const GExceptionHandler& e) {
19004 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19005 }
19006 catch (const std::exception& e) {
19007 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19008 }
19009 }
19010 resultobj = SWIG_Py_Void();
19011 return resultobj;
19012fail:
19013 return NULL__null;
19014}
19015
19016
19017SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_statistics__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19018 PyObject *resultobj = 0;
19019 GObservation *arg1 = (GObservation *) 0 ;
19020 std::string *arg2 = 0 ;
19021 void *argp1 = 0 ;
19022 int res1 = 0 ;
19023 int res2 = SWIG_OLDOBJ((0)) ;
19024 PyObject * obj0 = 0 ;
19025 PyObject * obj1 = 0 ;
19026
19027 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_statistics",&obj0,&obj1)) SWIG_failgoto fail;
19028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19029 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_statistics" "', argument " "1"" of type '" "GObservation *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_statistics" "', argument "
"1"" of type '" "GObservation *""'"); goto fail; } while(0)
;
19031 }
19032 arg1 = reinterpret_cast< GObservation * >(argp1);
19033 {
19034 std::string *ptr = (std::string *)0;
19035 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
19036 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_statistics" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_statistics" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
19038 }
19039 if (!ptr) {
19040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_statistics" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_statistics" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
19041 }
19042 arg2 = ptr;
19043 }
19044 {
19045 try {
19046 (arg1)->statistics((std::string const &)*arg2);
19047 }
19048 catch (const GException::out_of_range& e) {
19049 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19050 }
19051 catch (const GExceptionHandler& e) {
19052 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19053 }
19054 catch (const std::exception& e) {
19055 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19056 }
19057 }
19058 resultobj = SWIG_Py_Void();
19059 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
19060 return resultobj;
19061fail:
19062 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
19063 return NULL__null;
19064}
19065
19066
19067SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19068 PyObject *resultobj = 0;
19069 GObservation *arg1 = (GObservation *) 0 ;
19070 void *argp1 = 0 ;
19071 int res1 = 0 ;
19072 PyObject * obj0 = 0 ;
19073 std::string *result = 0 ;
19074
19075 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_name",&obj0)) SWIG_failgoto fail;
19076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19077 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_name" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_name" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19079 }
19080 arg1 = reinterpret_cast< GObservation * >(argp1);
19081 {
19082 try {
19083 result = (std::string *) &((GObservation const *)arg1)->name();
19084 }
19085 catch (const GException::out_of_range& e) {
19086 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19087 }
19088 catch (const GExceptionHandler& e) {
19089 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19090 }
19091 catch (const std::exception& e) {
19092 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19093 }
19094 }
19095 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
19096 return resultobj;
19097fail:
19098 return NULL__null;
19099}
19100
19101
19102SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_name(PyObject *self, PyObject *args) {
19103 int argc;
19104 PyObject *argv[3];
19105 int ii;
19106
19107 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19108 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19109 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
19110 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19111 }
19112 if (argc == 1) {
19113 int _v;
19114 void *vptr = 0;
19115 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19116 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19117 if (_v) {
19118 return _wrap_GObservation_name__SWIG_1(self, args);
19119 }
19120 }
19121 if (argc == 2) {
19122 int _v;
19123 void *vptr = 0;
19124 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19125 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19126 if (_v) {
19127 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
19128 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19129 if (_v) {
19130 return _wrap_GObservation_name__SWIG_0(self, args);
19131 }
19132 }
19133 }
19134
19135fail:
19136 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservation_name'.\n"
19137 " Possible C/C++ prototypes are:\n"
19138 " GObservation::name(std::string const &)\n"
19139 " GObservation::name() const\n");
19140 return 0;
19141}
19142
19143
19144SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_id__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19145 PyObject *resultobj = 0;
19146 GObservation *arg1 = (GObservation *) 0 ;
19147 void *argp1 = 0 ;
19148 int res1 = 0 ;
19149 PyObject * obj0 = 0 ;
19150 std::string *result = 0 ;
19151
19152 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_id",&obj0)) SWIG_failgoto fail;
19153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19154 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_id" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_id" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19156 }
19157 arg1 = reinterpret_cast< GObservation * >(argp1);
19158 {
19159 try {
19160 result = (std::string *) &((GObservation const *)arg1)->id();
19161 }
19162 catch (const GException::out_of_range& e) {
19163 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19164 }
19165 catch (const GExceptionHandler& e) {
19166 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19167 }
19168 catch (const std::exception& e) {
19169 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19170 }
19171 }
19172 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
19173 return resultobj;
19174fail:
19175 return NULL__null;
19176}
19177
19178
19179SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_id(PyObject *self, PyObject *args) {
19180 int argc;
19181 PyObject *argv[3];
19182 int ii;
19183
19184 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19185 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19186 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
19187 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19188 }
19189 if (argc == 1) {
19190 int _v;
19191 void *vptr = 0;
19192 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19193 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19194 if (_v) {
19195 return _wrap_GObservation_id__SWIG_1(self, args);
19196 }
19197 }
19198 if (argc == 2) {
19199 int _v;
19200 void *vptr = 0;
19201 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19202 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19203 if (_v) {
19204 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
19205 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19206 if (_v) {
19207 return _wrap_GObservation_id__SWIG_0(self, args);
19208 }
19209 }
19210 }
19211
19212fail:
19213 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservation_id'.\n"
19214 " Possible C/C++ prototypes are:\n"
19215 " GObservation::id(std::string const &)\n"
19216 " GObservation::id() const\n");
19217 return 0;
19218}
19219
19220
19221SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_events__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19222 PyObject *resultobj = 0;
19223 GObservation *arg1 = (GObservation *) 0 ;
19224 void *argp1 = 0 ;
19225 int res1 = 0 ;
19226 PyObject * obj0 = 0 ;
19227 GEvents *result = 0 ;
19228
19229 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_events",&obj0)) SWIG_failgoto fail;
19230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19231 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_events" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_events" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19233 }
19234 arg1 = reinterpret_cast< GObservation * >(argp1);
19235 {
19236 try {
19237 result = (GEvents *)((GObservation const *)arg1)->events();
19238 }
19239 catch (const GException::out_of_range& e) {
19240 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19241 }
19242 catch (const GExceptionHandler& e) {
19243 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19244 }
19245 catch (const std::exception& e) {
19246 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19247 }
19248 }
19249 {
19250 if (dynamic_cast<GEventList*>(result) != NULL__null) {
19251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
19252 }
19253 else if (dynamic_cast<GEventCube*>(result) != NULL__null) {
19254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
19255 }
19256 else {
19257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], 0
| 0)
;
19258 }
19259 }
19260 return resultobj;
19261fail:
19262 return NULL__null;
19263}
19264
19265
19266SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_events(PyObject *self, PyObject *args) {
19267 int argc;
19268 PyObject *argv[3];
19269 int ii;
19270
19271 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19272 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19273 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
19274 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19275 }
19276 if (argc == 1) {
19277 int _v;
19278 void *vptr = 0;
19279 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19280 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19281 if (_v) {
19282 return _wrap_GObservation_events__SWIG_1(self, args);
19283 }
19284 }
19285 if (argc == 2) {
19286 int _v;
19287 void *vptr = 0;
19288 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19289 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19290 if (_v) {
19291 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEvents, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[11], 0, 0
)
;
19292 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19293 if (_v) {
19294 return _wrap_GObservation_events__SWIG_0(self, args);
19295 }
19296 }
19297 }
19298
19299fail:
19300 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservation_events'.\n"
19301 " Possible C/C++ prototypes are:\n"
19302 " GObservation::events(GEvents const &)\n"
19303 " GObservation::events() const\n");
19304 return 0;
19305}
19306
19307
19308SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_statistics__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19309 PyObject *resultobj = 0;
19310 GObservation *arg1 = (GObservation *) 0 ;
19311 void *argp1 = 0 ;
19312 int res1 = 0 ;
19313 PyObject * obj0 = 0 ;
19314 std::string *result = 0 ;
19315
19316 if (!PyArg_ParseTuple(args,(char *)"O:GObservation_statistics",&obj0)) SWIG_failgoto fail;
19317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19318 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_statistics" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_statistics" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19320 }
19321 arg1 = reinterpret_cast< GObservation * >(argp1);
19322 {
19323 try {
19324 result = (std::string *) &((GObservation const *)arg1)->statistics();
19325 }
19326 catch (const GException::out_of_range& e) {
19327 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19328 }
19329 catch (const GExceptionHandler& e) {
19330 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19331 }
19332 catch (const std::exception& e) {
19333 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19334 }
19335 }
19336 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
19337 return resultobj;
19338fail:
19339 return NULL__null;
19340}
19341
19342
19343SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_statistics(PyObject *self, PyObject *args) {
19344 int argc;
19345 PyObject *argv[3];
19346 int ii;
19347
19348 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19349 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19350 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
19351 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19352 }
19353 if (argc == 1) {
19354 int _v;
19355 void *vptr = 0;
19356 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19357 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19358 if (_v) {
19359 return _wrap_GObservation_statistics__SWIG_1(self, args);
19360 }
19361 }
19362 if (argc == 2) {
19363 int _v;
19364 void *vptr = 0;
19365 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19366 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19367 if (_v) {
19368 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
19369 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19370 if (_v) {
19371 return _wrap_GObservation_statistics__SWIG_0(self, args);
19372 }
19373 }
19374 }
19375
19376fail:
19377 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservation_statistics'.\n"
19378 " Possible C/C++ prototypes are:\n"
19379 " GObservation::statistics(std::string const &)\n"
19380 " GObservation::statistics() const\n");
19381 return 0;
19382}
19383
19384
19385SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_model__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19386 PyObject *resultobj = 0;
19387 GObservation *arg1 = (GObservation *) 0 ;
19388 GModels *arg2 = 0 ;
19389 GEvent *arg3 = 0 ;
19390 GVector *arg4 = (GVector *) 0 ;
19391 void *argp1 = 0 ;
19392 int res1 = 0 ;
19393 void *argp2 = 0 ;
19394 int res2 = 0 ;
19395 void *argp3 = 0 ;
19396 int res3 = 0 ;
19397 void *argp4 = 0 ;
19398 int res4 = 0 ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 PyObject * obj2 = 0 ;
19402 PyObject * obj3 = 0 ;
19403 double result;
19404
19405 if (!PyArg_ParseTuple(args,(char *)"OOOO:GObservation_model",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19407 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_model" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_model" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19409 }
19410 arg1 = reinterpret_cast< GObservation * >(argp1);
19411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModels, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[19]
, 0 | 0, 0)
;
19412 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_model" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_model" "', argument "
"2"" of type '" "GModels const &""'"); goto fail; } while
(0)
;
19414 }
19415 if (!argp2) {
19416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_model" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_model" "', argument " "2"" of type '"
"GModels const &""'"); goto fail; } while(0)
;
19417 }
19418 arg2 = reinterpret_cast< GModels * >(argp2);
19419 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
19420 if (!SWIG_IsOK(res3)(res3 >= 0)) {
19421 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservation_model" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservation_model" "', argument "
"3"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
19422 }
19423 if (!argp3) {
19424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_model" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_model" "', argument " "3"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
19425 }
19426 arg3 = reinterpret_cast< GEvent * >(argp3);
19427 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[35]
, 0 | 0, 0)
;
19428 if (!SWIG_IsOK(res4)(res4 >= 0)) {
19429 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GObservation_model" "', argument " "4"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GObservation_model" "', argument "
"4"" of type '" "GVector *""'"); goto fail; } while(0)
;
19430 }
19431 arg4 = reinterpret_cast< GVector * >(argp4);
19432 {
19433 try {
19434 result = (double)((GObservation const *)arg1)->model((GModels const &)*arg2,(GEvent const &)*arg3,arg4);
19435 }
19436 catch (const GException::out_of_range& e) {
19437 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19438 }
19439 catch (const GExceptionHandler& e) {
19440 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19441 }
19442 catch (const std::exception& e) {
19443 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19444 }
19445 }
19446 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19447 return resultobj;
19448fail:
19449 return NULL__null;
19450}
19451
19452
19453SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_model__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19454 PyObject *resultobj = 0;
19455 GObservation *arg1 = (GObservation *) 0 ;
19456 GModels *arg2 = 0 ;
19457 GEvent *arg3 = 0 ;
19458 void *argp1 = 0 ;
19459 int res1 = 0 ;
19460 void *argp2 = 0 ;
19461 int res2 = 0 ;
19462 void *argp3 = 0 ;
19463 int res3 = 0 ;
19464 PyObject * obj0 = 0 ;
19465 PyObject * obj1 = 0 ;
19466 PyObject * obj2 = 0 ;
19467 double result;
19468
19469 if (!PyArg_ParseTuple(args,(char *)"OOO:GObservation_model",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
19470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19471 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_model" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_model" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19473 }
19474 arg1 = reinterpret_cast< GObservation * >(argp1);
19475 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModels, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[19]
, 0 | 0, 0)
;
19476 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_model" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_model" "', argument "
"2"" of type '" "GModels const &""'"); goto fail; } while
(0)
;
19478 }
19479 if (!argp2) {
19480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_model" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_model" "', argument " "2"" of type '"
"GModels const &""'"); goto fail; } while(0)
;
19481 }
19482 arg2 = reinterpret_cast< GModels * >(argp2);
19483 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
19484 if (!SWIG_IsOK(res3)(res3 >= 0)) {
19485 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservation_model" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservation_model" "', argument "
"3"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
19486 }
19487 if (!argp3) {
19488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_model" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_model" "', argument " "3"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
19489 }
19490 arg3 = reinterpret_cast< GEvent * >(argp3);
19491 {
19492 try {
19493 result = (double)((GObservation const *)arg1)->model((GModels const &)*arg2,(GEvent const &)*arg3);
19494 }
19495 catch (const GException::out_of_range& e) {
19496 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19497 }
19498 catch (const GExceptionHandler& e) {
19499 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19500 }
19501 catch (const std::exception& e) {
19502 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19503 }
19504 }
19505 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19506 return resultobj;
19507fail:
19508 return NULL__null;
19509}
19510
19511
19512SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_model(PyObject *self, PyObject *args) {
19513 int argc;
19514 PyObject *argv[5];
19515 int ii;
19516
19517 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19518 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19519 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
19520 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19521 }
19522 if (argc == 3) {
19523 int _v;
19524 void *vptr = 0;
19525 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19526 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19527 if (_v) {
19528 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[19], 0, 0
)
;
19529 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19530 if (_v) {
19531 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEvent, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
19532 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19533 if (_v) {
19534 return _wrap_GObservation_model__SWIG_1(self, args);
19535 }
19536 }
19537 }
19538 }
19539 if (argc == 4) {
19540 int _v;
19541 void *vptr = 0;
19542 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19543 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19544 if (_v) {
19545 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[19], 0, 0
)
;
19546 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19547 if (_v) {
19548 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEvent, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[6], 0, 0);
19549 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19550 if (_v) {
19551 void *vptr = 0;
19552 int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], &vptr, swig_types[35
], 0, 0)
;
19553 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19554 if (_v) {
19555 return _wrap_GObservation_model__SWIG_0(self, args);
19556 }
19557 }
19558 }
19559 }
19560 }
19561
19562fail:
19563 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservation_model'.\n"
19564 " Possible C/C++ prototypes are:\n"
19565 " GObservation::model(GModels const &,GEvent const &,GVector *) const\n"
19566 " GObservation::model(GModels const &,GEvent const &) const\n");
19567 return 0;
19568}
19569
19570
19571SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_npred__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19572 PyObject *resultobj = 0;
19573 GObservation *arg1 = (GObservation *) 0 ;
19574 GModels *arg2 = 0 ;
19575 GVector *arg3 = (GVector *) 0 ;
19576 void *argp1 = 0 ;
19577 int res1 = 0 ;
19578 void *argp2 = 0 ;
19579 int res2 = 0 ;
19580 void *argp3 = 0 ;
19581 int res3 = 0 ;
19582 PyObject * obj0 = 0 ;
19583 PyObject * obj1 = 0 ;
19584 PyObject * obj2 = 0 ;
19585 double result;
19586
19587 if (!PyArg_ParseTuple(args,(char *)"OOO:GObservation_npred",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
19588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19589 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_npred" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_npred" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19591 }
19592 arg1 = reinterpret_cast< GObservation * >(argp1);
19593 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModels, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[19]
, 0 | 0, 0)
;
19594 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19595 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_npred" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_npred" "', argument "
"2"" of type '" "GModels const &""'"); goto fail; } while
(0)
;
19596 }
19597 if (!argp2) {
19598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_npred" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_npred" "', argument " "2"" of type '"
"GModels const &""'"); goto fail; } while(0)
;
19599 }
19600 arg2 = reinterpret_cast< GModels * >(argp2);
19601 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_GVector, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[35]
, 0 | 0, 0)
;
19602 if (!SWIG_IsOK(res3)(res3 >= 0)) {
19603 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservation_npred" "', argument " "3"" of type '" "GVector *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservation_npred" "', argument "
"3"" of type '" "GVector *""'"); goto fail; } while(0)
;
19604 }
19605 arg3 = reinterpret_cast< GVector * >(argp3);
19606 {
19607 try {
19608 result = (double)((GObservation const *)arg1)->npred((GModels const &)*arg2,arg3);
19609 }
19610 catch (const GException::out_of_range& e) {
19611 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19612 }
19613 catch (const GExceptionHandler& e) {
19614 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19615 }
19616 catch (const std::exception& e) {
19617 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19618 }
19619 }
19620 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19621 return resultobj;
19622fail:
19623 return NULL__null;
19624}
19625
19626
19627SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_npred__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19628 PyObject *resultobj = 0;
19629 GObservation *arg1 = (GObservation *) 0 ;
19630 GModels *arg2 = 0 ;
19631 void *argp1 = 0 ;
19632 int res1 = 0 ;
19633 void *argp2 = 0 ;
19634 int res2 = 0 ;
19635 PyObject * obj0 = 0 ;
19636 PyObject * obj1 = 0 ;
19637 double result;
19638
19639 if (!PyArg_ParseTuple(args,(char *)"OO:GObservation_npred",&obj0,&obj1)) SWIG_failgoto fail;
19640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19641 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_npred" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_npred" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19643 }
19644 arg1 = reinterpret_cast< GObservation * >(argp1);
19645 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModels, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[19]
, 0 | 0, 0)
;
19646 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19647 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_npred" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_npred" "', argument "
"2"" of type '" "GModels const &""'"); goto fail; } while
(0)
;
19648 }
19649 if (!argp2) {
19650 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_npred" "', argument " "2"" of type '" "GModels const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_npred" "', argument " "2"" of type '"
"GModels const &""'"); goto fail; } while(0)
;
19651 }
19652 arg2 = reinterpret_cast< GModels * >(argp2);
19653 {
19654 try {
19655 result = (double)((GObservation const *)arg1)->npred((GModels const &)*arg2);
19656 }
19657 catch (const GException::out_of_range& e) {
19658 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19659 }
19660 catch (const GExceptionHandler& e) {
19661 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19662 }
19663 catch (const std::exception& e) {
19664 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19665 }
19666 }
19667 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19668 return resultobj;
19669fail:
19670 return NULL__null;
19671}
19672
19673
19674SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_npred(PyObject *self, PyObject *args) {
19675 int argc;
19676 PyObject *argv[4];
19677 int ii;
19678
19679 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19680 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19681 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
19682 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19683 }
19684 if (argc == 2) {
19685 int _v;
19686 void *vptr = 0;
19687 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19688 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19689 if (_v) {
19690 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[19], 0, 0
)
;
19691 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19692 if (_v) {
19693 return _wrap_GObservation_npred__SWIG_1(self, args);
19694 }
19695 }
19696 }
19697 if (argc == 3) {
19698 int _v;
19699 void *vptr = 0;
19700 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19701 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19702 if (_v) {
19703 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GModels, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[19], 0, 0
)
;
19704 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19705 if (_v) {
19706 void *vptr = 0;
19707 int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_GVector, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], &vptr, swig_types[35
], 0, 0)
;
19708 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19709 if (_v) {
19710 return _wrap_GObservation_npred__SWIG_0(self, args);
19711 }
19712 }
19713 }
19714 }
19715
19716fail:
19717 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GObservation_npred'.\n"
19718 " Possible C/C++ prototypes are:\n"
19719 " GObservation::npred(GModels const &,GVector *) const\n"
19720 " GObservation::npred(GModels const &) const\n");
19721 return 0;
19722}
19723
19724
19725SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_model_grad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19726 PyObject *resultobj = 0;
19727 GObservation *arg1 = (GObservation *) 0 ;
19728 GModel *arg2 = 0 ;
19729 GEvent *arg3 = 0 ;
19730 int *arg4 = 0 ;
19731 void *argp1 = 0 ;
19732 int res1 = 0 ;
19733 void *argp2 = 0 ;
19734 int res2 = 0 ;
19735 void *argp3 = 0 ;
19736 int res3 = 0 ;
19737 int temp4 ;
19738 int val4 ;
19739 int ecode4 = 0 ;
19740 PyObject * obj0 = 0 ;
19741 PyObject * obj1 = 0 ;
19742 PyObject * obj2 = 0 ;
19743 PyObject * obj3 = 0 ;
19744 double result;
19745
19746 if (!PyArg_ParseTuple(args,(char *)"OOOO:GObservation_model_grad",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19748 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_model_grad" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_model_grad" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19750 }
19751 arg1 = reinterpret_cast< GObservation * >(argp1);
19752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[17]
, 0 | 0, 0)
;
19753 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_model_grad" "', argument " "2"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_model_grad" "', argument "
"2"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
19755 }
19756 if (!argp2) {
19757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_model_grad" "', argument " "2"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_model_grad" "', argument " "2"" of type '"
"GModel const &""'"); goto fail; } while(0)
;
19758 }
19759 arg2 = reinterpret_cast< GModel * >(argp2);
19760 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
19761 if (!SWIG_IsOK(res3)(res3 >= 0)) {
19762 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GObservation_model_grad" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GObservation_model_grad" "', argument "
"3"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
19763 }
19764 if (!argp3) {
19765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_model_grad" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_model_grad" "', argument " "3"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
19766 }
19767 arg3 = reinterpret_cast< GEvent * >(argp3);
19768 ecode4 = SWIG_AsVal_int(obj3, &val4);
19769 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
19770 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GObservation_model_grad" "', argument " "4"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "GObservation_model_grad"
"', argument " "4"" of type '" "int""'"); goto fail; } while
(0)
;
19771 }
19772 temp4 = static_cast< int >(val4);
19773 arg4 = &temp4;
19774 {
19775 try {
19776 result = (double)((GObservation const *)arg1)->model_grad((GModel const &)*arg2,(GEvent const &)*arg3,(int const &)*arg4);
19777 }
19778 catch (const GException::out_of_range& e) {
19779 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19780 }
19781 catch (const GExceptionHandler& e) {
19782 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19783 }
19784 catch (const std::exception& e) {
19785 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19786 }
19787 }
19788 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19789 return resultobj;
19790fail:
19791 return NULL__null;
19792}
19793
19794
19795SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservation_npred_grad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19796 PyObject *resultobj = 0;
19797 GObservation *arg1 = (GObservation *) 0 ;
19798 GModel *arg2 = 0 ;
19799 int *arg3 = 0 ;
19800 void *argp1 = 0 ;
19801 int res1 = 0 ;
19802 void *argp2 = 0 ;
19803 int res2 = 0 ;
19804 int temp3 ;
19805 int val3 ;
19806 int ecode3 = 0 ;
19807 PyObject * obj0 = 0 ;
19808 PyObject * obj1 = 0 ;
19809 PyObject * obj2 = 0 ;
19810 double result;
19811
19812 if (!PyArg_ParseTuple(args,(char *)"OOO:GObservation_npred_grad",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
19813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19814 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservation_npred_grad" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservation_npred_grad" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19816 }
19817 arg1 = reinterpret_cast< GObservation * >(argp1);
19818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GModel, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[17]
, 0 | 0, 0)
;
19819 if (!SWIG_IsOK(res2)(res2 >= 0)) {
19820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservation_npred_grad" "', argument " "2"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservation_npred_grad" "', argument "
"2"" of type '" "GModel const &""'"); goto fail; } while
(0)
;
19821 }
19822 if (!argp2) {
19823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservation_npred_grad" "', argument " "2"" of type '" "GModel const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservation_npred_grad" "', argument " "2"" of type '"
"GModel const &""'"); goto fail; } while(0)
;
19824 }
19825 arg2 = reinterpret_cast< GModel * >(argp2);
19826 ecode3 = SWIG_AsVal_int(obj2, &val3);
19827 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
19828 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GObservation_npred_grad" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GObservation_npred_grad"
"', argument " "3"" of type '" "int""'"); goto fail; } while
(0)
;
19829 }
19830 temp3 = static_cast< int >(val3);
19831 arg3 = &temp3;
19832 {
19833 try {
19834 result = (double)((GObservation const *)arg1)->npred_grad((GModel const &)*arg2,(int const &)*arg3);
19835 }
19836 catch (const GException::out_of_range& e) {
19837 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19838 }
19839 catch (const GExceptionHandler& e) {
19840 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19841 }
19842 catch (const std::exception& e) {
19843 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19844 }
19845 }
19846 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
19847 return resultobj;
19848fail:
19849 return NULL__null;
19850}
19851
19852
19853SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GObservation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19854 PyObject *obj;
19855 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
19856 SWIG_TypeNewClientData(SWIGTYPE_p_GObservationswig_types[20], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
19857 return SWIG_Py_Void();
19858}
19859
19860SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservationRegistry__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19861 PyObject *resultobj = 0;
19862 GObservationRegistry *result = 0 ;
19863
19864 if (!PyArg_ParseTuple(args,(char *)":new_GObservationRegistry")) SWIG_failgoto fail;
19865 {
19866 try {
19867 result = (GObservationRegistry *)new GObservationRegistry();
19868 }
19869 catch (const GException::out_of_range& e) {
19870 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19871 }
19872 catch (const GExceptionHandler& e) {
19873 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19874 }
19875 catch (const std::exception& e) {
19876 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19877 }
19878 }
19879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservationRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], (
(0x1 << 1) | 0x1) | 0)
;
19880 return resultobj;
19881fail:
19882 return NULL__null;
19883}
19884
19885
19886SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservationRegistry__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19887 PyObject *resultobj = 0;
19888 GObservation *arg1 = (GObservation *) 0 ;
19889 void *argp1 = 0 ;
19890 int res1 = 0 ;
19891 PyObject * obj0 = 0 ;
19892 GObservationRegistry *result = 0 ;
19893
19894 if (!PyArg_ParseTuple(args,(char *)"O:new_GObservationRegistry",&obj0)) SWIG_failgoto fail;
19895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[20]
, 0 | 0, 0)
;
19896 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GObservationRegistry" "', argument " "1"" of type '" "GObservation const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GObservationRegistry" "', argument "
"1"" of type '" "GObservation const *""'"); goto fail; } while
(0)
;
19898 }
19899 arg1 = reinterpret_cast< GObservation * >(argp1);
19900 {
19901 try {
19902 result = (GObservationRegistry *)new GObservationRegistry((GObservation const *)arg1);
19903 }
19904 catch (const GException::out_of_range& e) {
19905 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19906 }
19907 catch (const GExceptionHandler& e) {
19908 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19909 }
19910 catch (const std::exception& e) {
19911 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19912 }
19913 }
19914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservationRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], (
(0x1 << 1) | 0x1) | 0)
;
19915 return resultobj;
19916fail:
19917 return NULL__null;
19918}
19919
19920
19921SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservationRegistry__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19922 PyObject *resultobj = 0;
19923 GObservationRegistry *arg1 = 0 ;
19924 void *argp1 = 0 ;
19925 int res1 = 0 ;
19926 PyObject * obj0 = 0 ;
19927 GObservationRegistry *result = 0 ;
19928
19929 if (!PyArg_ParseTuple(args,(char *)"O:new_GObservationRegistry",&obj0)) SWIG_failgoto fail;
19930 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GObservationRegistry, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
19931 if (!SWIG_IsOK(res1)(res1 >= 0)) {
19932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GObservationRegistry" "', argument " "1"" of type '" "GObservationRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GObservationRegistry" "', argument "
"1"" of type '" "GObservationRegistry const &""'"); goto
fail; } while(0)
;
19933 }
19934 if (!argp1) {
19935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GObservationRegistry" "', argument " "1"" of type '" "GObservationRegistry const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GObservationRegistry" "', argument " "1"" of type '"
"GObservationRegistry const &""'"); goto fail; } while(0
)
;
19936 }
19937 arg1 = reinterpret_cast< GObservationRegistry * >(argp1);
19938 {
19939 try {
19940 result = (GObservationRegistry *)new GObservationRegistry((GObservationRegistry const &)*arg1);
19941 }
19942 catch (const GException::out_of_range& e) {
19943 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
19944 }
19945 catch (const GExceptionHandler& e) {
19946 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19947 }
19948 catch (const std::exception& e) {
19949 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
19950 }
19951 }
19952 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservationRegistry, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[21], (
(0x1 << 1) | 0x1) | 0)
;
19953 return resultobj;
19954fail:
19955 return NULL__null;
19956}
19957
19958
19959SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GObservationRegistry(PyObject *self, PyObject *args) {
19960 int argc;
19961 PyObject *argv[2];
19962 int ii;
19963
19964 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
19965 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
19966 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
19967 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
19968 }
19969 if (argc == 0) {
19970 return _wrap_new_GObservationRegistry__SWIG_0(self, args);
19971 }
19972 if (argc == 1) {
19973 int _v;
19974 void *vptr = 0;
19975 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[20
], 0, 0)
;
19976 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19977 if (_v) {
19978 return _wrap_new_GObservationRegistry__SWIG_1(self, args);
19979 }
19980 }
19981 if (argc == 1) {
19982 int _v;
19983 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GObservationRegistry, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[21], 0, 0
)
;
19984 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
19985 if (_v) {
19986 return _wrap_new_GObservationRegistry__SWIG_2(self, args);
19987 }
19988 }
19989
19990fail:
19991 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GObservationRegistry'.\n"
19992 " Possible C/C++ prototypes are:\n"
19993 " GObservationRegistry::GObservationRegistry()\n"
19994 " GObservationRegistry::GObservationRegistry(GObservation const *)\n"
19995 " GObservationRegistry::GObservationRegistry(GObservationRegistry const &)\n");
19996 return 0;
19997}
19998
19999
20000SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GObservationRegistry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20001 PyObject *resultobj = 0;
20002 GObservationRegistry *arg1 = (GObservationRegistry *) 0 ;
20003 void *argp1 = 0 ;
20004 int res1 = 0 ;
20005 PyObject * obj0 = 0 ;
20006
20007 if (!PyArg_ParseTuple(args,(char *)"O:delete_GObservationRegistry",&obj0)) SWIG_failgoto fail;
20008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservationRegistry, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0x1 | 0, 0)
;
20009 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GObservationRegistry" "', argument " "1"" of type '" "GObservationRegistry *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GObservationRegistry"
"', argument " "1"" of type '" "GObservationRegistry *""'");
goto fail; } while(0)
;
20011 }
20012 arg1 = reinterpret_cast< GObservationRegistry * >(argp1);
20013 {
20014 try {
20015 delete arg1;
20016 }
20017 catch (const GException::out_of_range& e) {
20018 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20019 }
20020 catch (const GExceptionHandler& e) {
20021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20022 }
20023 catch (const std::exception& e) {
20024 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20025 }
20026 }
20027 resultobj = SWIG_Py_Void();
20028 return resultobj;
20029fail:
20030 return NULL__null;
20031}
20032
20033
20034SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservationRegistry_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20035 PyObject *resultobj = 0;
20036 GObservationRegistry *arg1 = (GObservationRegistry *) 0 ;
20037 void *argp1 = 0 ;
20038 int res1 = 0 ;
20039 PyObject * obj0 = 0 ;
20040 int result;
20041
20042 if (!PyArg_ParseTuple(args,(char *)"O:GObservationRegistry_size",&obj0)) SWIG_failgoto fail;
20043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservationRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
20044 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservationRegistry_size" "', argument " "1"" of type '" "GObservationRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservationRegistry_size"
"', argument " "1"" of type '" "GObservationRegistry const *"
"'"); goto fail; } while(0)
;
20046 }
20047 arg1 = reinterpret_cast< GObservationRegistry * >(argp1);
20048 {
20049 try {
20050 result = (int)((GObservationRegistry const *)arg1)->size();
20051 }
20052 catch (const GException::out_of_range& e) {
20053 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20054 }
20055 catch (const GExceptionHandler& e) {
20056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20057 }
20058 catch (const std::exception& e) {
20059 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20060 }
20061 }
20062 resultobj = SWIG_From_int(static_cast< int >(result));
20063 return resultobj;
20064fail:
20065 return NULL__null;
20066}
20067
20068
20069SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservationRegistry_alloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20070 PyObject *resultobj = 0;
20071 GObservationRegistry *arg1 = (GObservationRegistry *) 0 ;
20072 std::string *arg2 = 0 ;
20073 void *argp1 = 0 ;
20074 int res1 = 0 ;
20075 int res2 = SWIG_OLDOBJ((0)) ;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 GObservation *result = 0 ;
20079
20080 if (!PyArg_ParseTuple(args,(char *)"OO:GObservationRegistry_alloc",&obj0,&obj1)) SWIG_failgoto fail;
20081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservationRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
20082 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservationRegistry_alloc" "', argument " "1"" of type '" "GObservationRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservationRegistry_alloc"
"', argument " "1"" of type '" "GObservationRegistry const *"
"'"); goto fail; } while(0)
;
20084 }
20085 arg1 = reinterpret_cast< GObservationRegistry * >(argp1);
20086 {
20087 std::string *ptr = (std::string *)0;
20088 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
20089 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GObservationRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GObservationRegistry_alloc"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
20091 }
20092 if (!ptr) {
20093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GObservationRegistry_alloc" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GObservationRegistry_alloc" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
20094 }
20095 arg2 = ptr;
20096 }
20097 {
20098 try {
20099 result = (GObservation *)((GObservationRegistry const *)arg1)->alloc((std::string const &)*arg2);
20100 }
20101 catch (const GException::out_of_range& e) {
20102 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20103 }
20104 catch (const GExceptionHandler& e) {
20105 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20106 }
20107 catch (const std::exception& e) {
20108 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20109 }
20110 }
20111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GObservation, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[20], 0
| 0)
;
20112 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20113 return resultobj;
20114fail:
20115 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20116 return NULL__null;
20117}
20118
20119
20120SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GObservationRegistry_name(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20121 PyObject *resultobj = 0;
20122 GObservationRegistry *arg1 = (GObservationRegistry *) 0 ;
20123 int *arg2 = 0 ;
20124 void *argp1 = 0 ;
20125 int res1 = 0 ;
20126 int temp2 ;
20127 int val2 ;
20128 int ecode2 = 0 ;
20129 PyObject * obj0 = 0 ;
20130 PyObject * obj1 = 0 ;
20131 std::string result;
20132
20133 if (!PyArg_ParseTuple(args,(char *)"OO:GObservationRegistry_name",&obj0,&obj1)) SWIG_failgoto fail;
20134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GObservationRegistry, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[21]
, 0 | 0, 0)
;
20135 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GObservationRegistry_name" "', argument " "1"" of type '" "GObservationRegistry const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GObservationRegistry_name"
"', argument " "1"" of type '" "GObservationRegistry const *"
"'"); goto fail; } while(0)
;
20137 }
20138 arg1 = reinterpret_cast< GObservationRegistry * >(argp1);
20139 ecode2 = SWIG_AsVal_int(obj1, &val2);
20140 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
20141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GObservationRegistry_name" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GObservationRegistry_name"
"', argument " "2"" of type '" "int""'"); goto fail; } while
(0)
;
20142 }
20143 temp2 = static_cast< int >(val2);
20144 arg2 = &temp2;
20145 {
20146 try {
20147 result = ((GObservationRegistry const *)arg1)->name((int const &)*arg2);
20148 }
20149 catch (const GException::out_of_range& e) {
20150 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20151 }
20152 catch (const GExceptionHandler& e) {
20153 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20154 }
20155 catch (const std::exception& e) {
20156 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20157 }
20158 }
20159 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
20160 return resultobj;
20161fail:
20162 return NULL__null;
20163}
20164
20165
20166SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GObservationRegistry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20167 PyObject *obj;
20168 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
20169 SWIG_TypeNewClientData(SWIGTYPE_p_GObservationRegistryswig_types[21], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
20170 return SWIG_Py_Void();
20171}
20172
20173SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20174 PyObject *resultobj = 0;
20175 GEvents *arg1 = (GEvents *) 0 ;
20176 void *argp1 = 0 ;
20177 int res1 = 0 ;
20178 PyObject * obj0 = 0 ;
20179
20180 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEvents",&obj0)) SWIG_failgoto fail;
20181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0x1 | 0, 0)
;
20182 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEvents" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEvents" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
20184 }
20185 arg1 = reinterpret_cast< GEvents * >(argp1);
20186 {
20187 try {
20188 delete arg1;
20189 }
20190 catch (const GException::out_of_range& e) {
20191 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20192 }
20193 catch (const GExceptionHandler& e) {
20194 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20195 }
20196 catch (const std::exception& e) {
20197 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20198 }
20199 }
20200 resultobj = SWIG_Py_Void();
20201 return resultobj;
20202fail:
20203 return NULL__null;
20204}
20205
20206
20207SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20208 PyObject *resultobj = 0;
20209 GEvents *arg1 = (GEvents *) 0 ;
20210 void *argp1 = 0 ;
20211 int res1 = 0 ;
20212 PyObject * obj0 = 0 ;
20213
20214 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_clear",&obj0)) SWIG_failgoto fail;
20215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20216 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_clear" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_clear" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
20218 }
20219 arg1 = reinterpret_cast< GEvents * >(argp1);
20220 {
20221 try {
20222 (arg1)->clear();
20223 }
20224 catch (const GException::out_of_range& e) {
20225 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20226 }
20227 catch (const GExceptionHandler& e) {
20228 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20229 }
20230 catch (const std::exception& e) {
20231 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20232 }
20233 }
20234 resultobj = SWIG_Py_Void();
20235 return resultobj;
20236fail:
20237 return NULL__null;
20238}
20239
20240
20241SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20242 PyObject *resultobj = 0;
20243 GEvents *arg1 = (GEvents *) 0 ;
20244 void *argp1 = 0 ;
20245 int res1 = 0 ;
20246 PyObject * obj0 = 0 ;
20247 GEvents *result = 0 ;
20248
20249 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_clone",&obj0)) SWIG_failgoto fail;
20250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20251 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_clone" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_clone" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20253 }
20254 arg1 = reinterpret_cast< GEvents * >(argp1);
20255 {
20256 try {
20257 result = (GEvents *)((GEvents const *)arg1)->clone();
20258 }
20259 catch (const GException::out_of_range& e) {
20260 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20261 }
20262 catch (const GExceptionHandler& e) {
20263 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20264 }
20265 catch (const std::exception& e) {
20266 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20267 }
20268 }
20269 {
20270 if (dynamic_cast<GEventList*>(result) != NULL__null) {
20271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
20272 }
20273 else if (dynamic_cast<GEventCube*>(result) != NULL__null) {
20274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
20275 }
20276 else {
20277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[11], 0
| 0)
;
20278 }
20279 }
20280 return resultobj;
20281fail:
20282 return NULL__null;
20283}
20284
20285
20286SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20287 PyObject *resultobj = 0;
20288 GEvents *arg1 = (GEvents *) 0 ;
20289 void *argp1 = 0 ;
20290 int res1 = 0 ;
20291 PyObject * obj0 = 0 ;
20292 int result;
20293
20294 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_size",&obj0)) SWIG_failgoto fail;
20295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20296 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_size" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_size" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20298 }
20299 arg1 = reinterpret_cast< GEvents * >(argp1);
20300 {
20301 try {
20302 result = (int)((GEvents const *)arg1)->size();
20303 }
20304 catch (const GException::out_of_range& e) {
20305 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20306 }
20307 catch (const GExceptionHandler& e) {
20308 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20309 }
20310 catch (const std::exception& e) {
20311 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20312 }
20313 }
20314 resultobj = SWIG_From_int(static_cast< int >(result));
20315 return resultobj;
20316fail:
20317 return NULL__null;
20318}
20319
20320
20321SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20322 PyObject *resultobj = 0;
20323 GEvents *arg1 = (GEvents *) 0 ;
20324 std::string *arg2 = 0 ;
20325 void *argp1 = 0 ;
20326 int res1 = 0 ;
20327 int res2 = SWIG_OLDOBJ((0)) ;
20328 PyObject * obj0 = 0 ;
20329 PyObject * obj1 = 0 ;
20330
20331 if (!PyArg_ParseTuple(args,(char *)"OO:GEvents_load",&obj0,&obj1)) SWIG_failgoto fail;
20332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20333 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_load" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_load" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
20335 }
20336 arg1 = reinterpret_cast< GEvents * >(argp1);
20337 {
20338 std::string *ptr = (std::string *)0;
20339 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
20340 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEvents_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEvents_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
20342 }
20343 if (!ptr) {
20344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
20345 }
20346 arg2 = ptr;
20347 }
20348 {
20349 try {
20350 (arg1)->load((std::string const &)*arg2);
20351 }
20352 catch (const GException::out_of_range& e) {
20353 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20354 }
20355 catch (const GExceptionHandler& e) {
20356 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20357 }
20358 catch (const std::exception& e) {
20359 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20360 }
20361 }
20362 resultobj = SWIG_Py_Void();
20363 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20364 return resultobj;
20365fail:
20366 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20367 return NULL__null;
20368}
20369
20370
20371SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20372 PyObject *resultobj = 0;
20373 GEvents *arg1 = (GEvents *) 0 ;
20374 std::string *arg2 = 0 ;
20375 bool *arg3 = 0 ;
20376 void *argp1 = 0 ;
20377 int res1 = 0 ;
20378 int res2 = SWIG_OLDOBJ((0)) ;
20379 bool temp3 ;
20380 bool val3 ;
20381 int ecode3 = 0 ;
20382 PyObject * obj0 = 0 ;
20383 PyObject * obj1 = 0 ;
20384 PyObject * obj2 = 0 ;
20385
20386 if (!PyArg_ParseTuple(args,(char *)"OOO:GEvents_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
20387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20388 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_save" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_save" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20390 }
20391 arg1 = reinterpret_cast< GEvents * >(argp1);
20392 {
20393 std::string *ptr = (std::string *)0;
20394 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
20395 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEvents_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEvents_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
20397 }
20398 if (!ptr) {
20399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
20400 }
20401 arg2 = ptr;
20402 }
20403 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20404 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
20405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GEvents_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GEvents_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
20406 }
20407 temp3 = static_cast< bool >(val3);
20408 arg3 = &temp3;
20409 {
20410 try {
20411 ((GEvents const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
20412 }
20413 catch (const GException::out_of_range& e) {
20414 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20415 }
20416 catch (const GExceptionHandler& e) {
20417 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20418 }
20419 catch (const std::exception& e) {
20420 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20421 }
20422 }
20423 resultobj = SWIG_Py_Void();
20424 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20425 return resultobj;
20426fail:
20427 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20428 return NULL__null;
20429}
20430
20431
20432SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20433 PyObject *resultobj = 0;
20434 GEvents *arg1 = (GEvents *) 0 ;
20435 std::string *arg2 = 0 ;
20436 void *argp1 = 0 ;
20437 int res1 = 0 ;
20438 int res2 = SWIG_OLDOBJ((0)) ;
20439 PyObject * obj0 = 0 ;
20440 PyObject * obj1 = 0 ;
20441
20442 if (!PyArg_ParseTuple(args,(char *)"OO:GEvents_save",&obj0,&obj1)) SWIG_failgoto fail;
20443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20444 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_save" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_save" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20446 }
20447 arg1 = reinterpret_cast< GEvents * >(argp1);
20448 {
20449 std::string *ptr = (std::string *)0;
20450 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
20451 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEvents_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEvents_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
20453 }
20454 if (!ptr) {
20455 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
20456 }
20457 arg2 = ptr;
20458 }
20459 {
20460 try {
20461 ((GEvents const *)arg1)->save((std::string const &)*arg2);
20462 }
20463 catch (const GException::out_of_range& e) {
20464 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20465 }
20466 catch (const GExceptionHandler& e) {
20467 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20468 }
20469 catch (const std::exception& e) {
20470 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20471 }
20472 }
20473 resultobj = SWIG_Py_Void();
20474 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20475 return resultobj;
20476fail:
20477 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
20478 return NULL__null;
20479}
20480
20481
20482SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_save(PyObject *self, PyObject *args) {
20483 int argc;
20484 PyObject *argv[4];
20485 int ii;
20486
20487 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
20488 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
20489 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
20490 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
20491 }
20492 if (argc == 2) {
20493 int _v;
20494 void *vptr = 0;
20495 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEvents, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
20496 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20497 if (_v) {
20498 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
20499 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20500 if (_v) {
20501 return _wrap_GEvents_save__SWIG_1(self, args);
20502 }
20503 }
20504 }
20505 if (argc == 3) {
20506 int _v;
20507 void *vptr = 0;
20508 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEvents, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
20509 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20510 if (_v) {
20511 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
20512 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20513 if (_v) {
20514 {
20515 int res = SWIG_AsVal_bool(argv[2], NULL__null);
20516 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20517 }
20518 if (_v) {
20519 return _wrap_GEvents_save__SWIG_0(self, args);
20520 }
20521 }
20522 }
20523 }
20524
20525fail:
20526 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEvents_save'.\n"
20527 " Possible C/C++ prototypes are:\n"
20528 " GEvents::save(std::string const &,bool const &) const\n"
20529 " GEvents::save(std::string const &) const\n");
20530 return 0;
20531}
20532
20533
20534SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20535 PyObject *resultobj = 0;
20536 GEvents *arg1 = (GEvents *) 0 ;
20537 GFits *arg2 = 0 ;
20538 void *argp1 = 0 ;
20539 int res1 = 0 ;
20540 void *argp2 = 0 ;
20541 int res2 = 0 ;
20542 PyObject * obj0 = 0 ;
20543 PyObject * obj1 = 0 ;
20544
20545 if (!PyArg_ParseTuple(args,(char *)"OO:GEvents_read",&obj0,&obj1)) SWIG_failgoto fail;
20546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20547 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_read" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_read" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
20549 }
20550 arg1 = reinterpret_cast< GEvents * >(argp1);
20551 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0 | 0, 0)
;
20552 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEvents_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEvents_read" "', argument "
"2"" of type '" "GFits const &""'"); goto fail; } while(
0)
;
20554 }
20555 if (!argp2) {
20556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents_read" "', argument " "2"" of type '" "GFits const &"
"'"); goto fail; } while(0)
;
20557 }
20558 arg2 = reinterpret_cast< GFits * >(argp2);
20559 {
20560 try {
20561 (arg1)->read((GFits const &)*arg2);
20562 }
20563 catch (const GException::out_of_range& e) {
20564 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20565 }
20566 catch (const GExceptionHandler& e) {
20567 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20568 }
20569 catch (const std::exception& e) {
20570 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20571 }
20572 }
20573 resultobj = SWIG_Py_Void();
20574 return resultobj;
20575fail:
20576 return NULL__null;
20577}
20578
20579
20580SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20581 PyObject *resultobj = 0;
20582 GEvents *arg1 = (GEvents *) 0 ;
20583 GFits *arg2 = 0 ;
20584 void *argp1 = 0 ;
20585 int res1 = 0 ;
20586 void *argp2 = 0 ;
20587 int res2 = 0 ;
20588 PyObject * obj0 = 0 ;
20589 PyObject * obj1 = 0 ;
20590
20591 if (!PyArg_ParseTuple(args,(char *)"OO:GEvents_write",&obj0,&obj1)) SWIG_failgoto fail;
20592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20593 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_write" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_write" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20595 }
20596 arg1 = reinterpret_cast< GEvents * >(argp1);
20597 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
20598 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20599 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEvents_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEvents_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
20600 }
20601 if (!argp2) {
20602 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
20603 }
20604 arg2 = reinterpret_cast< GFits * >(argp2);
20605 {
20606 try {
20607 ((GEvents const *)arg1)->write(*arg2);
20608 }
20609 catch (const GException::out_of_range& e) {
20610 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20611 }
20612 catch (const GExceptionHandler& e) {
20613 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20614 }
20615 catch (const std::exception& e) {
20616 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20617 }
20618 }
20619 resultobj = SWIG_Py_Void();
20620 return resultobj;
20621fail:
20622 return NULL__null;
20623}
20624
20625
20626SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20627 PyObject *resultobj = 0;
20628 GEvents *arg1 = (GEvents *) 0 ;
20629 void *argp1 = 0 ;
20630 int res1 = 0 ;
20631 PyObject * obj0 = 0 ;
20632 int result;
20633
20634 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_number",&obj0)) SWIG_failgoto fail;
20635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20636 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_number" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_number" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20638 }
20639 arg1 = reinterpret_cast< GEvents * >(argp1);
20640 {
20641 try {
20642 result = (int)((GEvents const *)arg1)->number();
20643 }
20644 catch (const GException::out_of_range& e) {
20645 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20646 }
20647 catch (const GExceptionHandler& e) {
20648 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20649 }
20650 catch (const std::exception& e) {
20651 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20652 }
20653 }
20654 resultobj = SWIG_From_int(static_cast< int >(result));
20655 return resultobj;
20656fail:
20657 return NULL__null;
20658}
20659
20660
20661SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_ebounds__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20662 PyObject *resultobj = 0;
20663 GEvents *arg1 = (GEvents *) 0 ;
20664 GEbounds *arg2 = 0 ;
20665 void *argp1 = 0 ;
20666 int res1 = 0 ;
20667 void *argp2 = 0 ;
20668 int res2 = 0 ;
20669 PyObject * obj0 = 0 ;
20670 PyObject * obj1 = 0 ;
20671
20672 if (!PyArg_ParseTuple(args,(char *)"OO:GEvents_ebounds",&obj0,&obj1)) SWIG_failgoto fail;
20673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20674 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_ebounds" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_ebounds" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
20676 }
20677 arg1 = reinterpret_cast< GEvents * >(argp1);
20678 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEbounds, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[3],
0 | 0, 0)
;
20679 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEvents_ebounds" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEvents_ebounds" "', argument "
"2"" of type '" "GEbounds const &""'"); goto fail; } while
(0)
;
20681 }
20682 if (!argp2) {
20683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents_ebounds" "', argument " "2"" of type '" "GEbounds const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents_ebounds" "', argument " "2"" of type '"
"GEbounds const &""'"); goto fail; } while(0)
;
20684 }
20685 arg2 = reinterpret_cast< GEbounds * >(argp2);
20686 {
20687 try {
20688 (arg1)->ebounds((GEbounds const &)*arg2);
20689 }
20690 catch (const GException::out_of_range& e) {
20691 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20692 }
20693 catch (const GExceptionHandler& e) {
20694 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20695 }
20696 catch (const std::exception& e) {
20697 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20698 }
20699 }
20700 resultobj = SWIG_Py_Void();
20701 return resultobj;
20702fail:
20703 return NULL__null;
20704}
20705
20706
20707SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_gti__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20708 PyObject *resultobj = 0;
20709 GEvents *arg1 = (GEvents *) 0 ;
20710 GGti *arg2 = 0 ;
20711 void *argp1 = 0 ;
20712 int res1 = 0 ;
20713 void *argp2 = 0 ;
20714 int res2 = 0 ;
20715 PyObject * obj0 = 0 ;
20716 PyObject * obj1 = 0 ;
20717
20718 if (!PyArg_ParseTuple(args,(char *)"OO:GEvents_gti",&obj0,&obj1)) SWIG_failgoto fail;
20719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20720 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_gti" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_gti" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
20722 }
20723 arg1 = reinterpret_cast< GEvents * >(argp1);
20724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GGti, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[15]
, 0 | 0, 0)
;
20725 if (!SWIG_IsOK(res2)(res2 >= 0)) {
20726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEvents_gti" "', argument " "2"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEvents_gti" "', argument "
"2"" of type '" "GGti const &""'"); goto fail; } while(0
)
;
20727 }
20728 if (!argp2) {
20729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents_gti" "', argument " "2"" of type '" "GGti const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents_gti" "', argument " "2"" of type '" "GGti const &"
"'"); goto fail; } while(0)
;
20730 }
20731 arg2 = reinterpret_cast< GGti * >(argp2);
20732 {
20733 try {
20734 (arg1)->gti((GGti const &)*arg2);
20735 }
20736 catch (const GException::out_of_range& e) {
20737 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20738 }
20739 catch (const GExceptionHandler& e) {
20740 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20741 }
20742 catch (const std::exception& e) {
20743 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20744 }
20745 }
20746 resultobj = SWIG_Py_Void();
20747 return resultobj;
20748fail:
20749 return NULL__null;
20750}
20751
20752
20753SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_ebounds__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20754 PyObject *resultobj = 0;
20755 GEvents *arg1 = (GEvents *) 0 ;
20756 void *argp1 = 0 ;
20757 int res1 = 0 ;
20758 PyObject * obj0 = 0 ;
20759 GEbounds *result = 0 ;
20760
20761 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_ebounds",&obj0)) SWIG_failgoto fail;
20762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20763 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_ebounds" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_ebounds" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20765 }
20766 arg1 = reinterpret_cast< GEvents * >(argp1);
20767 {
20768 try {
20769 result = (GEbounds *) &((GEvents const *)arg1)->ebounds();
20770 }
20771 catch (const GException::out_of_range& e) {
20772 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20773 }
20774 catch (const GExceptionHandler& e) {
20775 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20776 }
20777 catch (const std::exception& e) {
20778 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20779 }
20780 }
20781 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEbounds, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0 |
0)
;
20782 return resultobj;
20783fail:
20784 return NULL__null;
20785}
20786
20787
20788SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_ebounds(PyObject *self, PyObject *args) {
20789 int argc;
20790 PyObject *argv[3];
20791 int ii;
20792
20793 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
20794 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
20795 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
20796 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
20797 }
20798 if (argc == 1) {
20799 int _v;
20800 void *vptr = 0;
20801 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEvents, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
20802 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20803 if (_v) {
20804 return _wrap_GEvents_ebounds__SWIG_1(self, args);
20805 }
20806 }
20807 if (argc == 2) {
20808 int _v;
20809 void *vptr = 0;
20810 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEvents, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
20811 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20812 if (_v) {
20813 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEbounds, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[3], 0, 0);
20814 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20815 if (_v) {
20816 return _wrap_GEvents_ebounds__SWIG_0(self, args);
20817 }
20818 }
20819 }
20820
20821fail:
20822 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEvents_ebounds'.\n"
20823 " Possible C/C++ prototypes are:\n"
20824 " GEvents::ebounds(GEbounds const &)\n"
20825 " GEvents::ebounds() const\n");
20826 return 0;
20827}
20828
20829
20830SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_gti__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20831 PyObject *resultobj = 0;
20832 GEvents *arg1 = (GEvents *) 0 ;
20833 void *argp1 = 0 ;
20834 int res1 = 0 ;
20835 PyObject * obj0 = 0 ;
20836 GGti *result = 0 ;
20837
20838 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_gti",&obj0)) SWIG_failgoto fail;
20839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20840 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_gti" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_gti" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20842 }
20843 arg1 = reinterpret_cast< GEvents * >(argp1);
20844 {
20845 try {
20846 result = (GGti *) &((GEvents const *)arg1)->gti();
20847 }
20848 catch (const GException::out_of_range& e) {
20849 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20850 }
20851 catch (const GExceptionHandler& e) {
20852 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20853 }
20854 catch (const std::exception& e) {
20855 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20856 }
20857 }
20858 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GGti, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[15], 0
| 0)
;
20859 return resultobj;
20860fail:
20861 return NULL__null;
20862}
20863
20864
20865SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_gti(PyObject *self, PyObject *args) {
20866 int argc;
20867 PyObject *argv[3];
20868 int ii;
20869
20870 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
20871 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
20872 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
20873 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
20874 }
20875 if (argc == 1) {
20876 int _v;
20877 void *vptr = 0;
20878 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEvents, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
20879 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20880 if (_v) {
20881 return _wrap_GEvents_gti__SWIG_1(self, args);
20882 }
20883 }
20884 if (argc == 2) {
20885 int _v;
20886 void *vptr = 0;
20887 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEvents, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[11
], 0, 0)
;
20888 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20889 if (_v) {
20890 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GGti, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[15], 0, 0
)
;
20891 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
20892 if (_v) {
20893 return _wrap_GEvents_gti__SWIG_0(self, args);
20894 }
20895 }
20896 }
20897
20898fail:
20899 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEvents_gti'.\n"
20900 " Possible C/C++ prototypes are:\n"
20901 " GEvents::gti(GGti const &)\n"
20902 " GEvents::gti() const\n");
20903 return 0;
20904}
20905
20906
20907SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_tstart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20908 PyObject *resultobj = 0;
20909 GEvents *arg1 = (GEvents *) 0 ;
20910 void *argp1 = 0 ;
20911 int res1 = 0 ;
20912 PyObject * obj0 = 0 ;
20913 GTime result;
20914
20915 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_tstart",&obj0)) SWIG_failgoto fail;
20916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20917 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_tstart" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_tstart" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20919 }
20920 arg1 = reinterpret_cast< GEvents * >(argp1);
20921 {
20922 try {
20923 result = ((GEvents const *)arg1)->tstart();
20924 }
20925 catch (const GException::out_of_range& e) {
20926 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20927 }
20928 catch (const GExceptionHandler& e) {
20929 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20930 }
20931 catch (const std::exception& e) {
20932 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20933 }
20934 }
20935 resultobj = SWIG_NewPointerObj((new GTime(static_cast< const GTime& >(result))), SWIGTYPE_p_GTime, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTime(static_cast< const
GTime& >(result))), swig_types[32], 0x1 | 0)
;
20936 return resultobj;
20937fail:
20938 return NULL__null;
20939}
20940
20941
20942SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_tstop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20943 PyObject *resultobj = 0;
20944 GEvents *arg1 = (GEvents *) 0 ;
20945 void *argp1 = 0 ;
20946 int res1 = 0 ;
20947 PyObject * obj0 = 0 ;
20948 GTime result;
20949
20950 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_tstop",&obj0)) SWIG_failgoto fail;
20951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20952 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_tstop" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_tstop" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20954 }
20955 arg1 = reinterpret_cast< GEvents * >(argp1);
20956 {
20957 try {
20958 result = ((GEvents const *)arg1)->tstop();
20959 }
20960 catch (const GException::out_of_range& e) {
20961 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20962 }
20963 catch (const GExceptionHandler& e) {
20964 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20965 }
20966 catch (const std::exception& e) {
20967 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
20968 }
20969 }
20970 resultobj = SWIG_NewPointerObj((new GTime(static_cast< const GTime& >(result))), SWIGTYPE_p_GTime, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GTime(static_cast< const
GTime& >(result))), swig_types[32], 0x1 | 0)
;
20971 return resultobj;
20972fail:
20973 return NULL__null;
20974}
20975
20976
20977SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_emin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20978 PyObject *resultobj = 0;
20979 GEvents *arg1 = (GEvents *) 0 ;
20980 void *argp1 = 0 ;
20981 int res1 = 0 ;
20982 PyObject * obj0 = 0 ;
20983 GEnergy result;
20984
20985 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_emin",&obj0)) SWIG_failgoto fail;
20986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
20987 if (!SWIG_IsOK(res1)(res1 >= 0)) {
20988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_emin" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_emin" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
20989 }
20990 arg1 = reinterpret_cast< GEvents * >(argp1);
20991 {
20992 try {
20993 result = ((GEvents const *)arg1)->emin();
20994 }
20995 catch (const GException::out_of_range& e) {
20996 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
20997 }
20998 catch (const GExceptionHandler& e) {
20999 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21000 }
21001 catch (const std::exception& e) {
21002 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21003 }
21004 }
21005 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
21006 return resultobj;
21007fail:
21008 return NULL__null;
21009}
21010
21011
21012SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents_emax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21013 PyObject *resultobj = 0;
21014 GEvents *arg1 = (GEvents *) 0 ;
21015 void *argp1 = 0 ;
21016 int res1 = 0 ;
21017 PyObject * obj0 = 0 ;
21018 GEnergy result;
21019
21020 if (!PyArg_ParseTuple(args,(char *)"O:GEvents_emax",&obj0)) SWIG_failgoto fail;
21021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
21022 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents_emax" "', argument " "1"" of type '" "GEvents const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents_emax" "', argument "
"1"" of type '" "GEvents const *""'"); goto fail; } while(0)
;
21024 }
21025 arg1 = reinterpret_cast< GEvents * >(argp1);
21026 {
21027 try {
21028 result = ((GEvents const *)arg1)->emax();
21029 }
21030 catch (const GException::out_of_range& e) {
21031 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21032 }
21033 catch (const GExceptionHandler& e) {
21034 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21035 }
21036 catch (const std::exception& e) {
21037 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21038 }
21039 }
21040 resultobj = SWIG_NewPointerObj((new GEnergy(static_cast< const GEnergy& >(result))), SWIGTYPE_p_GEnergy, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GEnergy(static_cast<
const GEnergy& >(result))), swig_types[5], 0x1 | 0)
;
21041 return resultobj;
21042fail:
21043 return NULL__null;
21044}
21045
21046
21047SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21048 PyObject *resultobj = 0;
21049 GEvents *arg1 = (GEvents *) 0 ;
21050 int arg2 ;
21051 void *argp1 = 0 ;
21052 int res1 = 0 ;
21053 int val2 ;
21054 int ecode2 = 0 ;
21055 PyObject * obj0 = 0 ;
21056 PyObject * obj1 = 0 ;
21057 GEvent *result = 0 ;
21058
21059 if (!PyArg_ParseTuple(args,(char *)"OO:GEvents___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
21060 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
21061 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents___getitem__" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents___getitem__" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
21063 }
21064 arg1 = reinterpret_cast< GEvents * >(argp1);
21065 ecode2 = SWIG_AsVal_int(obj1, &val2);
21066 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
21067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEvents___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEvents___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
21068 }
21069 arg2 = static_cast< int >(val2);
21070 {
21071 try {
21072 result = (GEvent *)GEvents___getitem__(arg1,arg2);
21073 }
21074 catch (const GException::out_of_range& e) {
21075 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21076 }
21077 catch (const GExceptionHandler& e) {
21078 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21079 }
21080 catch (const std::exception& e) {
21081 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21082 }
21083 }
21084 {
21085 if (dynamic_cast<GEventBin*>(result) != NULL__null) {
21086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
21087 }
21088 else if (dynamic_cast<GEventAtom*>(result) != NULL__null) {
21089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
21090 }
21091 else {
21092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
21093 }
21094 }
21095 return resultobj;
21096fail:
21097 return NULL__null;
21098}
21099
21100
21101SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvents___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21102 PyObject *resultobj = 0;
21103 GEvents *arg1 = (GEvents *) 0 ;
21104 int arg2 ;
21105 GEvent *arg3 = 0 ;
21106 void *argp1 = 0 ;
21107 int res1 = 0 ;
21108 int val2 ;
21109 int ecode2 = 0 ;
21110 void *argp3 = 0 ;
21111 int res3 = 0 ;
21112 PyObject * obj0 = 0 ;
21113 PyObject * obj1 = 0 ;
21114 PyObject * obj2 = 0 ;
21115
21116 if (!PyArg_ParseTuple(args,(char *)"OOO:GEvents___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
21117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvents, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[11]
, 0 | 0, 0)
;
21118 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvents___setitem__" "', argument " "1"" of type '" "GEvents *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvents___setitem__" "', argument "
"1"" of type '" "GEvents *""'"); goto fail; } while(0)
;
21120 }
21121 arg1 = reinterpret_cast< GEvents * >(argp1);
21122 ecode2 = SWIG_AsVal_int(obj1, &val2);
21123 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
21124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEvents___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEvents___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
21125 }
21126 arg2 = static_cast< int >(val2);
21127 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[6],
0 | 0, 0)
;
21128 if (!SWIG_IsOK(res3)(res3 >= 0)) {
21129 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GEvents___setitem__" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GEvents___setitem__" "', argument "
"3"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
21130 }
21131 if (!argp3) {
21132 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEvents___setitem__" "', argument " "3"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEvents___setitem__" "', argument " "3"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
21133 }
21134 arg3 = reinterpret_cast< GEvent * >(argp3);
21135 {
21136 try {
21137 GEvents___setitem__(arg1,arg2,(GEvent const &)*arg3);
21138 }
21139 catch (const GException::out_of_range& e) {
21140 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21141 }
21142 catch (const GExceptionHandler& e) {
21143 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21144 }
21145 catch (const std::exception& e) {
21146 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21147 }
21148 }
21149 resultobj = SWIG_Py_Void();
21150 return resultobj;
21151fail:
21152 return NULL__null;
21153}
21154
21155
21156SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEvents_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21157 PyObject *obj;
21158 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
21159 SWIG_TypeNewClientData(SWIGTYPE_p_GEventsswig_types[11], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
21160 return SWIG_Py_Void();
21161}
21162
21163SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEventList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21164 PyObject *resultobj = 0;
21165 GEventList *arg1 = (GEventList *) 0 ;
21166 void *argp1 = 0 ;
21167 int res1 = 0 ;
21168 PyObject * obj0 = 0 ;
21169
21170 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEventList",&obj0)) SWIG_failgoto fail;
21171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0x1 | 0, 0)
;
21172 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEventList" "', argument " "1"" of type '" "GEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEventList" "', argument "
"1"" of type '" "GEventList *""'"); goto fail; } while(0)
;
21174 }
21175 arg1 = reinterpret_cast< GEventList * >(argp1);
21176 {
21177 try {
21178 delete arg1;
21179 }
21180 catch (const GException::out_of_range& e) {
21181 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21182 }
21183 catch (const GExceptionHandler& e) {
21184 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21185 }
21186 catch (const std::exception& e) {
21187 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21188 }
21189 }
21190 resultobj = SWIG_Py_Void();
21191 return resultobj;
21192fail:
21193 return NULL__null;
21194}
21195
21196
21197SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21198 PyObject *resultobj = 0;
21199 GEventList *arg1 = (GEventList *) 0 ;
21200 void *argp1 = 0 ;
21201 int res1 = 0 ;
21202 PyObject * obj0 = 0 ;
21203
21204 if (!PyArg_ParseTuple(args,(char *)"O:GEventList_clear",&obj0)) SWIG_failgoto fail;
21205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21206 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_clear" "', argument " "1"" of type '" "GEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_clear" "', argument "
"1"" of type '" "GEventList *""'"); goto fail; } while(0)
;
21208 }
21209 arg1 = reinterpret_cast< GEventList * >(argp1);
21210 {
21211 try {
21212 (arg1)->clear();
21213 }
21214 catch (const GException::out_of_range& e) {
21215 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21216 }
21217 catch (const GExceptionHandler& e) {
21218 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21219 }
21220 catch (const std::exception& e) {
21221 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21222 }
21223 }
21224 resultobj = SWIG_Py_Void();
21225 return resultobj;
21226fail:
21227 return NULL__null;
21228}
21229
21230
21231SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21232 PyObject *resultobj = 0;
21233 GEventList *arg1 = (GEventList *) 0 ;
21234 void *argp1 = 0 ;
21235 int res1 = 0 ;
21236 PyObject * obj0 = 0 ;
21237 GEventList *result = 0 ;
21238
21239 if (!PyArg_ParseTuple(args,(char *)"O:GEventList_clone",&obj0)) SWIG_failgoto fail;
21240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21241 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_clone" "', argument " "1"" of type '" "GEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_clone" "', argument "
"1"" of type '" "GEventList const *""'"); goto fail; } while
(0)
;
21243 }
21244 arg1 = reinterpret_cast< GEventList * >(argp1);
21245 {
21246 try {
21247 result = (GEventList *)((GEventList const *)arg1)->clone();
21248 }
21249 catch (const GException::out_of_range& e) {
21250 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21251 }
21252 catch (const GExceptionHandler& e) {
21253 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21254 }
21255 catch (const std::exception& e) {
21256 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21257 }
21258 }
21259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
21260 return resultobj;
21261fail:
21262 return NULL__null;
21263}
21264
21265
21266SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21267 PyObject *resultobj = 0;
21268 GEventList *arg1 = (GEventList *) 0 ;
21269 void *argp1 = 0 ;
21270 int res1 = 0 ;
21271 PyObject * obj0 = 0 ;
21272 int result;
21273
21274 if (!PyArg_ParseTuple(args,(char *)"O:GEventList_size",&obj0)) SWIG_failgoto fail;
21275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21276 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_size" "', argument " "1"" of type '" "GEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_size" "', argument "
"1"" of type '" "GEventList const *""'"); goto fail; } while
(0)
;
21278 }
21279 arg1 = reinterpret_cast< GEventList * >(argp1);
21280 {
21281 try {
21282 result = (int)((GEventList const *)arg1)->size();
21283 }
21284 catch (const GException::out_of_range& e) {
21285 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21286 }
21287 catch (const GExceptionHandler& e) {
21288 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21289 }
21290 catch (const std::exception& e) {
21291 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21292 }
21293 }
21294 resultobj = SWIG_From_int(static_cast< int >(result));
21295 return resultobj;
21296fail:
21297 return NULL__null;
21298}
21299
21300
21301SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21302 PyObject *resultobj = 0;
21303 GEventList *arg1 = (GEventList *) 0 ;
21304 std::string *arg2 = 0 ;
21305 void *argp1 = 0 ;
21306 int res1 = 0 ;
21307 int res2 = SWIG_OLDOBJ((0)) ;
21308 PyObject * obj0 = 0 ;
21309 PyObject * obj1 = 0 ;
21310
21311 if (!PyArg_ParseTuple(args,(char *)"OO:GEventList_load",&obj0,&obj1)) SWIG_failgoto fail;
21312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21313 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_load" "', argument " "1"" of type '" "GEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_load" "', argument "
"1"" of type '" "GEventList *""'"); goto fail; } while(0)
;
21315 }
21316 arg1 = reinterpret_cast< GEventList * >(argp1);
21317 {
21318 std::string *ptr = (std::string *)0;
21319 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
21320 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventList_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventList_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
21322 }
21323 if (!ptr) {
21324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventList_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventList_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
21325 }
21326 arg2 = ptr;
21327 }
21328 {
21329 try {
21330 (arg1)->load((std::string const &)*arg2);
21331 }
21332 catch (const GException::out_of_range& e) {
21333 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21334 }
21335 catch (const GExceptionHandler& e) {
21336 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21337 }
21338 catch (const std::exception& e) {
21339 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21340 }
21341 }
21342 resultobj = SWIG_Py_Void();
21343 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
21344 return resultobj;
21345fail:
21346 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
21347 return NULL__null;
21348}
21349
21350
21351SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21352 PyObject *resultobj = 0;
21353 GEventList *arg1 = (GEventList *) 0 ;
21354 std::string *arg2 = 0 ;
21355 bool *arg3 = 0 ;
21356 void *argp1 = 0 ;
21357 int res1 = 0 ;
21358 int res2 = SWIG_OLDOBJ((0)) ;
21359 bool temp3 ;
21360 bool val3 ;
21361 int ecode3 = 0 ;
21362 PyObject * obj0 = 0 ;
21363 PyObject * obj1 = 0 ;
21364 PyObject * obj2 = 0 ;
21365
21366 if (!PyArg_ParseTuple(args,(char *)"OOO:GEventList_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
21367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21368 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_save" "', argument " "1"" of type '" "GEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_save" "', argument "
"1"" of type '" "GEventList const *""'"); goto fail; } while
(0)
;
21370 }
21371 arg1 = reinterpret_cast< GEventList * >(argp1);
21372 {
21373 std::string *ptr = (std::string *)0;
21374 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
21375 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21376 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventList_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
21377 }
21378 if (!ptr) {
21379 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventList_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
21380 }
21381 arg2 = ptr;
21382 }
21383 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21384 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
21385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GEventList_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GEventList_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
21386 }
21387 temp3 = static_cast< bool >(val3);
21388 arg3 = &temp3;
21389 {
21390 try {
21391 ((GEventList const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
21392 }
21393 catch (const GException::out_of_range& e) {
21394 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21395 }
21396 catch (const GExceptionHandler& e) {
21397 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21398 }
21399 catch (const std::exception& e) {
21400 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21401 }
21402 }
21403 resultobj = SWIG_Py_Void();
21404 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
21405 return resultobj;
21406fail:
21407 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
21408 return NULL__null;
21409}
21410
21411
21412SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21413 PyObject *resultobj = 0;
21414 GEventList *arg1 = (GEventList *) 0 ;
21415 std::string *arg2 = 0 ;
21416 void *argp1 = 0 ;
21417 int res1 = 0 ;
21418 int res2 = SWIG_OLDOBJ((0)) ;
21419 PyObject * obj0 = 0 ;
21420 PyObject * obj1 = 0 ;
21421
21422 if (!PyArg_ParseTuple(args,(char *)"OO:GEventList_save",&obj0,&obj1)) SWIG_failgoto fail;
21423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21424 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_save" "', argument " "1"" of type '" "GEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_save" "', argument "
"1"" of type '" "GEventList const *""'"); goto fail; } while
(0)
;
21426 }
21427 arg1 = reinterpret_cast< GEventList * >(argp1);
21428 {
21429 std::string *ptr = (std::string *)0;
21430 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
21431 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventList_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
21433 }
21434 if (!ptr) {
21435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventList_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventList_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
21436 }
21437 arg2 = ptr;
21438 }
21439 {
21440 try {
21441 ((GEventList const *)arg1)->save((std::string const &)*arg2);
21442 }
21443 catch (const GException::out_of_range& e) {
21444 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21445 }
21446 catch (const GExceptionHandler& e) {
21447 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21448 }
21449 catch (const std::exception& e) {
21450 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21451 }
21452 }
21453 resultobj = SWIG_Py_Void();
21454 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
21455 return resultobj;
21456fail:
21457 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
21458 return NULL__null;
21459}
21460
21461
21462SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_save(PyObject *self, PyObject *args) {
21463 int argc;
21464 PyObject *argv[4];
21465 int ii;
21466
21467 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
21468 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
21469 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
21470 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
21471 }
21472 if (argc == 2) {
21473 int _v;
21474 void *vptr = 0;
21475 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
21476 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21477 if (_v) {
21478 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
21479 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21480 if (_v) {
21481 return _wrap_GEventList_save__SWIG_1(self, args);
21482 }
21483 }
21484 }
21485 if (argc == 3) {
21486 int _v;
21487 void *vptr = 0;
21488 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
21489 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21490 if (_v) {
21491 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
21492 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21493 if (_v) {
21494 {
21495 int res = SWIG_AsVal_bool(argv[2], NULL__null);
21496 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21497 }
21498 if (_v) {
21499 return _wrap_GEventList_save__SWIG_0(self, args);
21500 }
21501 }
21502 }
21503 }
21504
21505fail:
21506 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEventList_save'.\n"
21507 " Possible C/C++ prototypes are:\n"
21508 " GEventList::save(std::string const &,bool const &) const\n"
21509 " GEventList::save(std::string const &) const\n");
21510 return 0;
21511}
21512
21513
21514SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21515 PyObject *resultobj = 0;
21516 GEventList *arg1 = (GEventList *) 0 ;
21517 GFits *arg2 = 0 ;
21518 void *argp1 = 0 ;
21519 int res1 = 0 ;
21520 void *argp2 = 0 ;
21521 int res2 = 0 ;
21522 PyObject * obj0 = 0 ;
21523 PyObject * obj1 = 0 ;
21524
21525 if (!PyArg_ParseTuple(args,(char *)"OO:GEventList_read",&obj0,&obj1)) SWIG_failgoto fail;
21526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21527 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_read" "', argument " "1"" of type '" "GEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_read" "', argument "
"1"" of type '" "GEventList *""'"); goto fail; } while(0)
;
21529 }
21530 arg1 = reinterpret_cast< GEventList * >(argp1);
21531 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0 | 0, 0)
;
21532 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21533 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventList_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventList_read" "', argument "
"2"" of type '" "GFits const &""'"); goto fail; } while(
0)
;
21534 }
21535 if (!argp2) {
21536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventList_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventList_read" "', argument " "2"" of type '"
"GFits const &""'"); goto fail; } while(0)
;
21537 }
21538 arg2 = reinterpret_cast< GFits * >(argp2);
21539 {
21540 try {
21541 (arg1)->read((GFits const &)*arg2);
21542 }
21543 catch (const GException::out_of_range& e) {
21544 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21545 }
21546 catch (const GExceptionHandler& e) {
21547 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21548 }
21549 catch (const std::exception& e) {
21550 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21551 }
21552 }
21553 resultobj = SWIG_Py_Void();
21554 return resultobj;
21555fail:
21556 return NULL__null;
21557}
21558
21559
21560SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21561 PyObject *resultobj = 0;
21562 GEventList *arg1 = (GEventList *) 0 ;
21563 GFits *arg2 = 0 ;
21564 void *argp1 = 0 ;
21565 int res1 = 0 ;
21566 void *argp2 = 0 ;
21567 int res2 = 0 ;
21568 PyObject * obj0 = 0 ;
21569 PyObject * obj1 = 0 ;
21570
21571 if (!PyArg_ParseTuple(args,(char *)"OO:GEventList_write",&obj0,&obj1)) SWIG_failgoto fail;
21572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21573 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_write" "', argument " "1"" of type '" "GEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_write" "', argument "
"1"" of type '" "GEventList const *""'"); goto fail; } while
(0)
;
21575 }
21576 arg1 = reinterpret_cast< GEventList * >(argp1);
21577 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
21578 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21579 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventList_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventList_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
21580 }
21581 if (!argp2) {
21582 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventList_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventList_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
21583 }
21584 arg2 = reinterpret_cast< GFits * >(argp2);
21585 {
21586 try {
21587 ((GEventList const *)arg1)->write(*arg2);
21588 }
21589 catch (const GException::out_of_range& e) {
21590 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21591 }
21592 catch (const GExceptionHandler& e) {
21593 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21594 }
21595 catch (const std::exception& e) {
21596 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21597 }
21598 }
21599 resultobj = SWIG_Py_Void();
21600 return resultobj;
21601fail:
21602 return NULL__null;
21603}
21604
21605
21606SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21607 PyObject *resultobj = 0;
21608 GEventList *arg1 = (GEventList *) 0 ;
21609 void *argp1 = 0 ;
21610 int res1 = 0 ;
21611 PyObject * obj0 = 0 ;
21612 int result;
21613
21614 if (!PyArg_ParseTuple(args,(char *)"O:GEventList_number",&obj0)) SWIG_failgoto fail;
21615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21616 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_number" "', argument " "1"" of type '" "GEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_number" "', argument "
"1"" of type '" "GEventList const *""'"); goto fail; } while
(0)
;
21618 }
21619 arg1 = reinterpret_cast< GEventList * >(argp1);
21620 {
21621 try {
21622 result = (int)((GEventList const *)arg1)->number();
21623 }
21624 catch (const GException::out_of_range& e) {
21625 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21626 }
21627 catch (const GExceptionHandler& e) {
21628 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21629 }
21630 catch (const std::exception& e) {
21631 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21632 }
21633 }
21634 resultobj = SWIG_From_int(static_cast< int >(result));
21635 return resultobj;
21636fail:
21637 return NULL__null;
21638}
21639
21640
21641SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_roi__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21642 PyObject *resultobj = 0;
21643 GEventList *arg1 = (GEventList *) 0 ;
21644 GRoi *arg2 = 0 ;
21645 void *argp1 = 0 ;
21646 int res1 = 0 ;
21647 void *argp2 = 0 ;
21648 int res2 = 0 ;
21649 PyObject * obj0 = 0 ;
21650 PyObject * obj1 = 0 ;
21651
21652 if (!PyArg_ParseTuple(args,(char *)"OO:GEventList_roi",&obj0,&obj1)) SWIG_failgoto fail;
21653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21654 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_roi" "', argument " "1"" of type '" "GEventList *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_roi" "', argument "
"1"" of type '" "GEventList *""'"); goto fail; } while(0)
;
21656 }
21657 arg1 = reinterpret_cast< GEventList * >(argp1);
21658 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GRoi, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[29]
, 0 | 0, 0)
;
21659 if (!SWIG_IsOK(res2)(res2 >= 0)) {
21660 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventList_roi" "', argument " "2"" of type '" "GRoi const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventList_roi" "', argument "
"2"" of type '" "GRoi const &""'"); goto fail; } while(0
)
;
21661 }
21662 if (!argp2) {
21663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventList_roi" "', argument " "2"" of type '" "GRoi const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventList_roi" "', argument " "2"" of type '"
"GRoi const &""'"); goto fail; } while(0)
;
21664 }
21665 arg2 = reinterpret_cast< GRoi * >(argp2);
21666 {
21667 try {
21668 (arg1)->roi((GRoi const &)*arg2);
21669 }
21670 catch (const GException::out_of_range& e) {
21671 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21672 }
21673 catch (const GExceptionHandler& e) {
21674 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21675 }
21676 catch (const std::exception& e) {
21677 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21678 }
21679 }
21680 resultobj = SWIG_Py_Void();
21681 return resultobj;
21682fail:
21683 return NULL__null;
21684}
21685
21686
21687SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_roi__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21688 PyObject *resultobj = 0;
21689 GEventList *arg1 = (GEventList *) 0 ;
21690 void *argp1 = 0 ;
21691 int res1 = 0 ;
21692 PyObject * obj0 = 0 ;
21693 GRoi *result = 0 ;
21694
21695 if (!PyArg_ParseTuple(args,(char *)"O:GEventList_roi",&obj0)) SWIG_failgoto fail;
21696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventList, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
21697 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventList_roi" "', argument " "1"" of type '" "GEventList const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventList_roi" "', argument "
"1"" of type '" "GEventList const *""'"); goto fail; } while
(0)
;
21699 }
21700 arg1 = reinterpret_cast< GEventList * >(argp1);
21701 {
21702 try {
21703 result = (GRoi *) &((GEventList const *)arg1)->roi();
21704 }
21705 catch (const GException::out_of_range& e) {
21706 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21707 }
21708 catch (const GExceptionHandler& e) {
21709 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21710 }
21711 catch (const std::exception& e) {
21712 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21713 }
21714 }
21715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRoi, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], 0
| 0)
;
21716 return resultobj;
21717fail:
21718 return NULL__null;
21719}
21720
21721
21722SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventList_roi(PyObject *self, PyObject *args) {
21723 int argc;
21724 PyObject *argv[3];
21725 int ii;
21726
21727 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
21728 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
21729 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
21730 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
21731 }
21732 if (argc == 1) {
21733 int _v;
21734 void *vptr = 0;
21735 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
21736 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21737 if (_v) {
21738 return _wrap_GEventList_roi__SWIG_1(self, args);
21739 }
21740 }
21741 if (argc == 2) {
21742 int _v;
21743 void *vptr = 0;
21744 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventList, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
21745 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21746 if (_v) {
21747 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GRoi, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[29], 0, 0
)
;
21748 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
21749 if (_v) {
21750 return _wrap_GEventList_roi__SWIG_0(self, args);
21751 }
21752 }
21753 }
21754
21755fail:
21756 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEventList_roi'.\n"
21757 " Possible C/C++ prototypes are:\n"
21758 " GEventList::roi(GRoi const &)\n"
21759 " GEventList::roi() const\n");
21760 return 0;
21761}
21762
21763
21764SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEventList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21765 PyObject *obj;
21766 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
21767 SWIG_TypeNewClientData(SWIGTYPE_p_GEventListswig_types[10], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
21768 return SWIG_Py_Void();
21769}
21770
21771SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEventCube(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21772 PyObject *resultobj = 0;
21773 GEventCube *arg1 = (GEventCube *) 0 ;
21774 void *argp1 = 0 ;
21775 int res1 = 0 ;
21776 PyObject * obj0 = 0 ;
21777
21778 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEventCube",&obj0)) SWIG_failgoto fail;
21779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0x1 | 0, 0)
;
21780 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEventCube" "', argument " "1"" of type '" "GEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEventCube" "', argument "
"1"" of type '" "GEventCube *""'"); goto fail; } while(0)
;
21782 }
21783 arg1 = reinterpret_cast< GEventCube * >(argp1);
21784 {
21785 try {
21786 delete arg1;
21787 }
21788 catch (const GException::out_of_range& e) {
21789 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21790 }
21791 catch (const GExceptionHandler& e) {
21792 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21793 }
21794 catch (const std::exception& e) {
21795 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21796 }
21797 }
21798 resultobj = SWIG_Py_Void();
21799 return resultobj;
21800fail:
21801 return NULL__null;
21802}
21803
21804
21805SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21806 PyObject *resultobj = 0;
21807 GEventCube *arg1 = (GEventCube *) 0 ;
21808 void *argp1 = 0 ;
21809 int res1 = 0 ;
21810 PyObject * obj0 = 0 ;
21811
21812 if (!PyArg_ParseTuple(args,(char *)"O:GEventCube_clear",&obj0)) SWIG_failgoto fail;
21813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
21814 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_clear" "', argument " "1"" of type '" "GEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_clear" "', argument "
"1"" of type '" "GEventCube *""'"); goto fail; } while(0)
;
21816 }
21817 arg1 = reinterpret_cast< GEventCube * >(argp1);
21818 {
21819 try {
21820 (arg1)->clear();
21821 }
21822 catch (const GException::out_of_range& e) {
21823 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21824 }
21825 catch (const GExceptionHandler& e) {
21826 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21827 }
21828 catch (const std::exception& e) {
21829 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21830 }
21831 }
21832 resultobj = SWIG_Py_Void();
21833 return resultobj;
21834fail:
21835 return NULL__null;
21836}
21837
21838
21839SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21840 PyObject *resultobj = 0;
21841 GEventCube *arg1 = (GEventCube *) 0 ;
21842 void *argp1 = 0 ;
21843 int res1 = 0 ;
21844 PyObject * obj0 = 0 ;
21845 GEventCube *result = 0 ;
21846
21847 if (!PyArg_ParseTuple(args,(char *)"O:GEventCube_clone",&obj0)) SWIG_failgoto fail;
21848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
21849 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_clone" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_clone" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
21851 }
21852 arg1 = reinterpret_cast< GEventCube * >(argp1);
21853 {
21854 try {
21855 result = (GEventCube *)((GEventCube const *)arg1)->clone();
21856 }
21857 catch (const GException::out_of_range& e) {
21858 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21859 }
21860 catch (const GExceptionHandler& e) {
21861 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21862 }
21863 catch (const std::exception& e) {
21864 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21865 }
21866 }
21867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
21868 return resultobj;
21869fail:
21870 return NULL__null;
21871}
21872
21873
21874SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21875 PyObject *resultobj = 0;
21876 GEventCube *arg1 = (GEventCube *) 0 ;
21877 void *argp1 = 0 ;
21878 int res1 = 0 ;
21879 PyObject * obj0 = 0 ;
21880 int result;
21881
21882 if (!PyArg_ParseTuple(args,(char *)"O:GEventCube_size",&obj0)) SWIG_failgoto fail;
21883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
21884 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_size" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_size" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
21886 }
21887 arg1 = reinterpret_cast< GEventCube * >(argp1);
21888 {
21889 try {
21890 result = (int)((GEventCube const *)arg1)->size();
21891 }
21892 catch (const GException::out_of_range& e) {
21893 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21894 }
21895 catch (const GExceptionHandler& e) {
21896 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21897 }
21898 catch (const std::exception& e) {
21899 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21900 }
21901 }
21902 resultobj = SWIG_From_int(static_cast< int >(result));
21903 return resultobj;
21904fail:
21905 return NULL__null;
21906}
21907
21908
21909SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21910 PyObject *resultobj = 0;
21911 GEventCube *arg1 = (GEventCube *) 0 ;
21912 void *argp1 = 0 ;
21913 int res1 = 0 ;
21914 PyObject * obj0 = 0 ;
21915 int result;
21916
21917 if (!PyArg_ParseTuple(args,(char *)"O:GEventCube_dim",&obj0)) SWIG_failgoto fail;
21918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
21919 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_dim" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_dim" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
21921 }
21922 arg1 = reinterpret_cast< GEventCube * >(argp1);
21923 {
21924 try {
21925 result = (int)((GEventCube const *)arg1)->dim();
21926 }
21927 catch (const GException::out_of_range& e) {
21928 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21929 }
21930 catch (const GExceptionHandler& e) {
21931 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21932 }
21933 catch (const std::exception& e) {
21934 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21935 }
21936 }
21937 resultobj = SWIG_From_int(static_cast< int >(result));
21938 return resultobj;
21939fail:
21940 return NULL__null;
21941}
21942
21943
21944SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_naxis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21945 PyObject *resultobj = 0;
21946 GEventCube *arg1 = (GEventCube *) 0 ;
21947 int *arg2 = 0 ;
21948 void *argp1 = 0 ;
21949 int res1 = 0 ;
21950 int temp2 ;
21951 int val2 ;
21952 int ecode2 = 0 ;
21953 PyObject * obj0 = 0 ;
21954 PyObject * obj1 = 0 ;
21955 int result;
21956
21957 if (!PyArg_ParseTuple(args,(char *)"OO:GEventCube_naxis",&obj0,&obj1)) SWIG_failgoto fail;
21958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
21959 if (!SWIG_IsOK(res1)(res1 >= 0)) {
21960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_naxis" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_naxis" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
21961 }
21962 arg1 = reinterpret_cast< GEventCube * >(argp1);
21963 ecode2 = SWIG_AsVal_int(obj1, &val2);
21964 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
21965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEventCube_naxis" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEventCube_naxis" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
21966 }
21967 temp2 = static_cast< int >(val2);
21968 arg2 = &temp2;
21969 {
21970 try {
21971 result = (int)((GEventCube const *)arg1)->naxis((int const &)*arg2);
21972 }
21973 catch (const GException::out_of_range& e) {
21974 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
21975 }
21976 catch (const GExceptionHandler& e) {
21977 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21978 }
21979 catch (const std::exception& e) {
21980 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
21981 }
21982 }
21983 resultobj = SWIG_From_int(static_cast< int >(result));
21984 return resultobj;
21985fail:
21986 return NULL__null;
21987}
21988
21989
21990SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21991 PyObject *resultobj = 0;
21992 GEventCube *arg1 = (GEventCube *) 0 ;
21993 std::string *arg2 = 0 ;
21994 void *argp1 = 0 ;
21995 int res1 = 0 ;
21996 int res2 = SWIG_OLDOBJ((0)) ;
21997 PyObject * obj0 = 0 ;
21998 PyObject * obj1 = 0 ;
21999
22000 if (!PyArg_ParseTuple(args,(char *)"OO:GEventCube_load",&obj0,&obj1)) SWIG_failgoto fail;
22001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
22002 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_load" "', argument " "1"" of type '" "GEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_load" "', argument "
"1"" of type '" "GEventCube *""'"); goto fail; } while(0)
;
22004 }
22005 arg1 = reinterpret_cast< GEventCube * >(argp1);
22006 {
22007 std::string *ptr = (std::string *)0;
22008 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
22009 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22010 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventCube_load" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
22011 }
22012 if (!ptr) {
22013 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventCube_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventCube_load" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
22014 }
22015 arg2 = ptr;
22016 }
22017 {
22018 try {
22019 (arg1)->load((std::string const &)*arg2);
22020 }
22021 catch (const GException::out_of_range& e) {
22022 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22023 }
22024 catch (const GExceptionHandler& e) {
22025 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22026 }
22027 catch (const std::exception& e) {
22028 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22029 }
22030 }
22031 resultobj = SWIG_Py_Void();
22032 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22033 return resultobj;
22034fail:
22035 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22036 return NULL__null;
22037}
22038
22039
22040SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22041 PyObject *resultobj = 0;
22042 GEventCube *arg1 = (GEventCube *) 0 ;
22043 std::string *arg2 = 0 ;
22044 bool *arg3 = 0 ;
22045 void *argp1 = 0 ;
22046 int res1 = 0 ;
22047 int res2 = SWIG_OLDOBJ((0)) ;
22048 bool temp3 ;
22049 bool val3 ;
22050 int ecode3 = 0 ;
22051 PyObject * obj0 = 0 ;
22052 PyObject * obj1 = 0 ;
22053 PyObject * obj2 = 0 ;
22054
22055 if (!PyArg_ParseTuple(args,(char *)"OOO:GEventCube_save",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
22056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
22057 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_save" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_save" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
22059 }
22060 arg1 = reinterpret_cast< GEventCube * >(argp1);
22061 {
22062 std::string *ptr = (std::string *)0;
22063 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
22064 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22065 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventCube_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
22066 }
22067 if (!ptr) {
22068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventCube_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
22069 }
22070 arg2 = ptr;
22071 }
22072 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22073 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
22074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GEventCube_save" "', argument " "3"" of type '" "bool""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GEventCube_save" "', argument "
"3"" of type '" "bool""'"); goto fail; } while(0)
;
22075 }
22076 temp3 = static_cast< bool >(val3);
22077 arg3 = &temp3;
22078 {
22079 try {
22080 ((GEventCube const *)arg1)->save((std::string const &)*arg2,(bool const &)*arg3);
22081 }
22082 catch (const GException::out_of_range& e) {
22083 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22084 }
22085 catch (const GExceptionHandler& e) {
22086 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22087 }
22088 catch (const std::exception& e) {
22089 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22090 }
22091 }
22092 resultobj = SWIG_Py_Void();
22093 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22094 return resultobj;
22095fail:
22096 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22097 return NULL__null;
22098}
22099
22100
22101SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22102 PyObject *resultobj = 0;
22103 GEventCube *arg1 = (GEventCube *) 0 ;
22104 std::string *arg2 = 0 ;
22105 void *argp1 = 0 ;
22106 int res1 = 0 ;
22107 int res2 = SWIG_OLDOBJ((0)) ;
22108 PyObject * obj0 = 0 ;
22109 PyObject * obj1 = 0 ;
22110
22111 if (!PyArg_ParseTuple(args,(char *)"OO:GEventCube_save",&obj0,&obj1)) SWIG_failgoto fail;
22112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
22113 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_save" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_save" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
22115 }
22116 arg1 = reinterpret_cast< GEventCube * >(argp1);
22117 {
22118 std::string *ptr = (std::string *)0;
22119 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
22120 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22121 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventCube_save" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
22122 }
22123 if (!ptr) {
22124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventCube_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventCube_save" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
22125 }
22126 arg2 = ptr;
22127 }
22128 {
22129 try {
22130 ((GEventCube const *)arg1)->save((std::string const &)*arg2);
22131 }
22132 catch (const GException::out_of_range& e) {
22133 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22134 }
22135 catch (const GExceptionHandler& e) {
22136 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22137 }
22138 catch (const std::exception& e) {
22139 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22140 }
22141 }
22142 resultobj = SWIG_Py_Void();
22143 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22144 return resultobj;
22145fail:
22146 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
22147 return NULL__null;
22148}
22149
22150
22151SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_save(PyObject *self, PyObject *args) {
22152 int argc;
22153 PyObject *argv[4];
22154 int ii;
22155
22156 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
22157 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
22158 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
22159 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
22160 }
22161 if (argc == 2) {
22162 int _v;
22163 void *vptr = 0;
22164 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
22165 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22166 if (_v) {
22167 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
22168 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22169 if (_v) {
22170 return _wrap_GEventCube_save__SWIG_1(self, args);
22171 }
22172 }
22173 }
22174 if (argc == 3) {
22175 int _v;
22176 void *vptr = 0;
22177 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventCube, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
22178 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22179 if (_v) {
22180 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
22181 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22182 if (_v) {
22183 {
22184 int res = SWIG_AsVal_bool(argv[2], NULL__null);
22185 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
22186 }
22187 if (_v) {
22188 return _wrap_GEventCube_save__SWIG_0(self, args);
22189 }
22190 }
22191 }
22192 }
22193
22194fail:
22195 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEventCube_save'.\n"
22196 " Possible C/C++ prototypes are:\n"
22197 " GEventCube::save(std::string const &,bool const &) const\n"
22198 " GEventCube::save(std::string const &) const\n");
22199 return 0;
22200}
22201
22202
22203SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22204 PyObject *resultobj = 0;
22205 GEventCube *arg1 = (GEventCube *) 0 ;
22206 GFits *arg2 = 0 ;
22207 void *argp1 = 0 ;
22208 int res1 = 0 ;
22209 void *argp2 = 0 ;
22210 int res2 = 0 ;
22211 PyObject * obj0 = 0 ;
22212 PyObject * obj1 = 0 ;
22213
22214 if (!PyArg_ParseTuple(args,(char *)"OO:GEventCube_read",&obj0,&obj1)) SWIG_failgoto fail;
22215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
22216 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_read" "', argument " "1"" of type '" "GEventCube *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_read" "', argument "
"1"" of type '" "GEventCube *""'"); goto fail; } while(0)
;
22218 }
22219 arg1 = reinterpret_cast< GEventCube * >(argp1);
22220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0 | 0, 0)
;
22221 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventCube_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventCube_read" "', argument "
"2"" of type '" "GFits const &""'"); goto fail; } while(
0)
;
22223 }
22224 if (!argp2) {
22225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventCube_read" "', argument " "2"" of type '" "GFits const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventCube_read" "', argument " "2"" of type '"
"GFits const &""'"); goto fail; } while(0)
;
22226 }
22227 arg2 = reinterpret_cast< GFits * >(argp2);
22228 {
22229 try {
22230 (arg1)->read((GFits const &)*arg2);
22231 }
22232 catch (const GException::out_of_range& e) {
22233 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22234 }
22235 catch (const GExceptionHandler& e) {
22236 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22237 }
22238 catch (const std::exception& e) {
22239 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22240 }
22241 }
22242 resultobj = SWIG_Py_Void();
22243 return resultobj;
22244fail:
22245 return NULL__null;
22246}
22247
22248
22249SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22250 PyObject *resultobj = 0;
22251 GEventCube *arg1 = (GEventCube *) 0 ;
22252 GFits *arg2 = 0 ;
22253 void *argp1 = 0 ;
22254 int res1 = 0 ;
22255 void *argp2 = 0 ;
22256 int res2 = 0 ;
22257 PyObject * obj0 = 0 ;
22258 PyObject * obj1 = 0 ;
22259
22260 if (!PyArg_ParseTuple(args,(char *)"OO:GEventCube_write",&obj0,&obj1)) SWIG_failgoto fail;
22261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
22262 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_write" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_write" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
22264 }
22265 arg1 = reinterpret_cast< GEventCube * >(argp1);
22266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GFits, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[12]
, 0, 0)
;
22267 if (!SWIG_IsOK(res2)(res2 >= 0)) {
22268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GEventCube_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GEventCube_write" "', argument "
"2"" of type '" "GFits &""'"); goto fail; } while(0)
;
22269 }
22270 if (!argp2) {
22271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GEventCube_write" "', argument " "2"" of type '" "GFits &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GEventCube_write" "', argument " "2"" of type '"
"GFits &""'"); goto fail; } while(0)
;
22272 }
22273 arg2 = reinterpret_cast< GFits * >(argp2);
22274 {
22275 try {
22276 ((GEventCube const *)arg1)->write(*arg2);
22277 }
22278 catch (const GException::out_of_range& e) {
22279 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22280 }
22281 catch (const GExceptionHandler& e) {
22282 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22283 }
22284 catch (const std::exception& e) {
22285 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22286 }
22287 }
22288 resultobj = SWIG_Py_Void();
22289 return resultobj;
22290fail:
22291 return NULL__null;
22292}
22293
22294
22295SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventCube_number(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22296 PyObject *resultobj = 0;
22297 GEventCube *arg1 = (GEventCube *) 0 ;
22298 void *argp1 = 0 ;
22299 int res1 = 0 ;
22300 PyObject * obj0 = 0 ;
22301 int result;
22302
22303 if (!PyArg_ParseTuple(args,(char *)"O:GEventCube_number",&obj0)) SWIG_failgoto fail;
22304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventCube, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
22305 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventCube_number" "', argument " "1"" of type '" "GEventCube const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventCube_number" "', argument "
"1"" of type '" "GEventCube const *""'"); goto fail; } while
(0)
;
22307 }
22308 arg1 = reinterpret_cast< GEventCube * >(argp1);
22309 {
22310 try {
22311 result = (int)((GEventCube const *)arg1)->number();
22312 }
22313 catch (const GException::out_of_range& e) {
22314 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22315 }
22316 catch (const GExceptionHandler& e) {
22317 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22318 }
22319 catch (const std::exception& e) {
22320 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22321 }
22322 }
22323 resultobj = SWIG_From_int(static_cast< int >(result));
22324 return resultobj;
22325fail:
22326 return NULL__null;
22327}
22328
22329
22330SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEventCube_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22331 PyObject *obj;
22332 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
22333 SWIG_TypeNewClientData(SWIGTYPE_p_GEventCubeswig_types[9], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
22334 return SWIG_Py_Void();
22335}
22336
22337SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22338 PyObject *resultobj = 0;
22339 GEvent *arg1 = (GEvent *) 0 ;
22340 void *argp1 = 0 ;
22341 int res1 = 0 ;
22342 PyObject * obj0 = 0 ;
22343
22344 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEvent",&obj0)) SWIG_failgoto fail;
22345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0x1 | 0, 0)
;
22346 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEvent" "', argument " "1"" of type '" "GEvent *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEvent" "', argument "
"1"" of type '" "GEvent *""'"); goto fail; } while(0)
;
22348 }
22349 arg1 = reinterpret_cast< GEvent * >(argp1);
22350 {
22351 try {
22352 delete arg1;
22353 }
22354 catch (const GException::out_of_range& e) {
22355 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22356 }
22357 catch (const GExceptionHandler& e) {
22358 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22359 }
22360 catch (const std::exception& e) {
22361 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22362 }
22363 }
22364 resultobj = SWIG_Py_Void();
22365 return resultobj;
22366fail:
22367 return NULL__null;
22368}
22369
22370
22371SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22372 PyObject *resultobj = 0;
22373 GEvent *arg1 = (GEvent *) 0 ;
22374 void *argp1 = 0 ;
22375 int res1 = 0 ;
22376 PyObject * obj0 = 0 ;
22377
22378 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_clear",&obj0)) SWIG_failgoto fail;
22379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22380 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_clear" "', argument " "1"" of type '" "GEvent *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_clear" "', argument "
"1"" of type '" "GEvent *""'"); goto fail; } while(0)
;
22382 }
22383 arg1 = reinterpret_cast< GEvent * >(argp1);
22384 {
22385 try {
22386 (arg1)->clear();
22387 }
22388 catch (const GException::out_of_range& e) {
22389 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22390 }
22391 catch (const GExceptionHandler& e) {
22392 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22393 }
22394 catch (const std::exception& e) {
22395 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22396 }
22397 }
22398 resultobj = SWIG_Py_Void();
22399 return resultobj;
22400fail:
22401 return NULL__null;
22402}
22403
22404
22405SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22406 PyObject *resultobj = 0;
22407 GEvent *arg1 = (GEvent *) 0 ;
22408 void *argp1 = 0 ;
22409 int res1 = 0 ;
22410 PyObject * obj0 = 0 ;
22411 GEvent *result = 0 ;
22412
22413 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_clone",&obj0)) SWIG_failgoto fail;
22414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22415 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_clone" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_clone" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22417 }
22418 arg1 = reinterpret_cast< GEvent * >(argp1);
22419 {
22420 try {
22421 result = (GEvent *)((GEvent const *)arg1)->clone();
22422 }
22423 catch (const GException::out_of_range& e) {
22424 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22425 }
22426 catch (const GExceptionHandler& e) {
22427 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22428 }
22429 catch (const std::exception& e) {
22430 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22431 }
22432 }
22433 {
22434 if (dynamic_cast<GEventBin*>(result) != NULL__null) {
22435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
22436 }
22437 else if (dynamic_cast<GEventAtom*>(result) != NULL__null) {
22438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
22439 }
22440 else {
22441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
22442 }
22443 }
22444 return resultobj;
22445fail:
22446 return NULL__null;
22447}
22448
22449
22450SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22451 PyObject *resultobj = 0;
22452 GEvent *arg1 = (GEvent *) 0 ;
22453 void *argp1 = 0 ;
22454 int res1 = 0 ;
22455 PyObject * obj0 = 0 ;
22456 double result;
22457
22458 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_size",&obj0)) SWIG_failgoto fail;
22459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22460 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_size" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_size" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22462 }
22463 arg1 = reinterpret_cast< GEvent * >(argp1);
22464 {
22465 try {
22466 result = (double)((GEvent const *)arg1)->size();
22467 }
22468 catch (const GException::out_of_range& e) {
22469 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22470 }
22471 catch (const GExceptionHandler& e) {
22472 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22473 }
22474 catch (const std::exception& e) {
22475 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22476 }
22477 }
22478 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
22479 return resultobj;
22480fail:
22481 return NULL__null;
22482}
22483
22484
22485SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22486 PyObject *resultobj = 0;
22487 GEvent *arg1 = (GEvent *) 0 ;
22488 void *argp1 = 0 ;
22489 int res1 = 0 ;
22490 PyObject * obj0 = 0 ;
22491 GInstDir *result = 0 ;
22492
22493 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_dir",&obj0)) SWIG_failgoto fail;
22494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22495 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_dir" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_dir" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22497 }
22498 arg1 = reinterpret_cast< GEvent * >(argp1);
22499 {
22500 try {
22501 result = (GInstDir *) &((GEvent const *)arg1)->dir();
22502 }
22503 catch (const GException::out_of_range& e) {
22504 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22505 }
22506 catch (const GExceptionHandler& e) {
22507 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22508 }
22509 catch (const std::exception& e) {
22510 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22511 }
22512 }
22513 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[16], 0
| 0)
;
22514 return resultobj;
22515fail:
22516 return NULL__null;
22517}
22518
22519
22520SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22521 PyObject *resultobj = 0;
22522 GEvent *arg1 = (GEvent *) 0 ;
22523 void *argp1 = 0 ;
22524 int res1 = 0 ;
22525 PyObject * obj0 = 0 ;
22526 GEnergy *result = 0 ;
22527
22528 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_energy",&obj0)) SWIG_failgoto fail;
22529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22530 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_energy" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_energy" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22532 }
22533 arg1 = reinterpret_cast< GEvent * >(argp1);
22534 {
22535 try {
22536 result = (GEnergy *) &((GEvent const *)arg1)->energy();
22537 }
22538 catch (const GException::out_of_range& e) {
22539 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22540 }
22541 catch (const GExceptionHandler& e) {
22542 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22543 }
22544 catch (const std::exception& e) {
22545 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22546 }
22547 }
22548 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[5], 0 |
0)
;
22549 return resultobj;
22550fail:
22551 return NULL__null;
22552}
22553
22554
22555SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22556 PyObject *resultobj = 0;
22557 GEvent *arg1 = (GEvent *) 0 ;
22558 void *argp1 = 0 ;
22559 int res1 = 0 ;
22560 PyObject * obj0 = 0 ;
22561 GTime *result = 0 ;
22562
22563 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_time",&obj0)) SWIG_failgoto fail;
22564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22565 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_time" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_time" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22567 }
22568 arg1 = reinterpret_cast< GEvent * >(argp1);
22569 {
22570 try {
22571 result = (GTime *) &((GEvent const *)arg1)->time();
22572 }
22573 catch (const GException::out_of_range& e) {
22574 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22575 }
22576 catch (const GExceptionHandler& e) {
22577 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22578 }
22579 catch (const std::exception& e) {
22580 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22581 }
22582 }
22583 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[32], 0
| 0)
;
22584 return resultobj;
22585fail:
22586 return NULL__null;
22587}
22588
22589
22590SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_counts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22591 PyObject *resultobj = 0;
22592 GEvent *arg1 = (GEvent *) 0 ;
22593 void *argp1 = 0 ;
22594 int res1 = 0 ;
22595 PyObject * obj0 = 0 ;
22596 double result;
22597
22598 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_counts",&obj0)) SWIG_failgoto fail;
22599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22600 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_counts" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_counts" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22602 }
22603 arg1 = reinterpret_cast< GEvent * >(argp1);
22604 {
22605 try {
22606 result = (double)((GEvent const *)arg1)->counts();
22607 }
22608 catch (const GException::out_of_range& e) {
22609 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22610 }
22611 catch (const GExceptionHandler& e) {
22612 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22613 }
22614 catch (const std::exception& e) {
22615 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22616 }
22617 }
22618 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
22619 return resultobj;
22620fail:
22621 return NULL__null;
22622}
22623
22624
22625SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22626 PyObject *resultobj = 0;
22627 GEvent *arg1 = (GEvent *) 0 ;
22628 void *argp1 = 0 ;
22629 int res1 = 0 ;
22630 PyObject * obj0 = 0 ;
22631 double result;
22632
22633 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_error",&obj0)) SWIG_failgoto fail;
22634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22635 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_error" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_error" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22637 }
22638 arg1 = reinterpret_cast< GEvent * >(argp1);
22639 {
22640 try {
22641 result = (double)((GEvent const *)arg1)->error();
22642 }
22643 catch (const GException::out_of_range& e) {
22644 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22645 }
22646 catch (const GExceptionHandler& e) {
22647 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22648 }
22649 catch (const std::exception& e) {
22650 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22651 }
22652 }
22653 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
22654 return resultobj;
22655fail:
22656 return NULL__null;
22657}
22658
22659
22660SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_isatom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22661 PyObject *resultobj = 0;
22662 GEvent *arg1 = (GEvent *) 0 ;
22663 void *argp1 = 0 ;
22664 int res1 = 0 ;
22665 PyObject * obj0 = 0 ;
22666 bool result;
22667
22668 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_isatom",&obj0)) SWIG_failgoto fail;
22669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22670 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_isatom" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_isatom" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22672 }
22673 arg1 = reinterpret_cast< GEvent * >(argp1);
22674 {
22675 try {
22676 result = (bool)((GEvent const *)arg1)->isatom();
22677 }
22678 catch (const GException::out_of_range& e) {
22679 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22680 }
22681 catch (const GExceptionHandler& e) {
22682 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22683 }
22684 catch (const std::exception& e) {
22685 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22686 }
22687 }
22688 resultobj = SWIG_From_bool(static_cast< bool >(result));
22689 return resultobj;
22690fail:
22691 return NULL__null;
22692}
22693
22694
22695SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEvent_isbin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22696 PyObject *resultobj = 0;
22697 GEvent *arg1 = (GEvent *) 0 ;
22698 void *argp1 = 0 ;
22699 int res1 = 0 ;
22700 PyObject * obj0 = 0 ;
22701 bool result;
22702
22703 if (!PyArg_ParseTuple(args,(char *)"O:GEvent_isbin",&obj0)) SWIG_failgoto fail;
22704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
22705 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEvent_isbin" "', argument " "1"" of type '" "GEvent const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEvent_isbin" "', argument "
"1"" of type '" "GEvent const *""'"); goto fail; } while(0)
;
22707 }
22708 arg1 = reinterpret_cast< GEvent * >(argp1);
22709 {
22710 try {
22711 result = (bool)((GEvent const *)arg1)->isbin();
22712 }
22713 catch (const GException::out_of_range& e) {
22714 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22715 }
22716 catch (const GExceptionHandler& e) {
22717 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22718 }
22719 catch (const std::exception& e) {
22720 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22721 }
22722 }
22723 resultobj = SWIG_From_bool(static_cast< bool >(result));
22724 return resultobj;
22725fail:
22726 return NULL__null;
22727}
22728
22729
22730SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22731 PyObject *obj;
22732 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
22733 SWIG_TypeNewClientData(SWIGTYPE_p_GEventswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
22734 return SWIG_Py_Void();
22735}
22736
22737SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEventAtom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22738 PyObject *resultobj = 0;
22739 GEventAtom *arg1 = (GEventAtom *) 0 ;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 PyObject * obj0 = 0 ;
22743
22744 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEventAtom",&obj0)) SWIG_failgoto fail;
22745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0x1 | 0, 0)
;
22746 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEventAtom" "', argument " "1"" of type '" "GEventAtom *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEventAtom" "', argument "
"1"" of type '" "GEventAtom *""'"); goto fail; } while(0)
;
22748 }
22749 arg1 = reinterpret_cast< GEventAtom * >(argp1);
22750 {
22751 try {
22752 delete arg1;
22753 }
22754 catch (const GException::out_of_range& e) {
22755 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22756 }
22757 catch (const GExceptionHandler& e) {
22758 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22759 }
22760 catch (const std::exception& e) {
22761 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22762 }
22763 }
22764 resultobj = SWIG_Py_Void();
22765 return resultobj;
22766fail:
22767 return NULL__null;
22768}
22769
22770
22771SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22772 PyObject *resultobj = 0;
22773 GEventAtom *arg1 = (GEventAtom *) 0 ;
22774 void *argp1 = 0 ;
22775 int res1 = 0 ;
22776 PyObject * obj0 = 0 ;
22777
22778 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_clear",&obj0)) SWIG_failgoto fail;
22779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
22780 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_clear" "', argument " "1"" of type '" "GEventAtom *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_clear" "', argument "
"1"" of type '" "GEventAtom *""'"); goto fail; } while(0)
;
22782 }
22783 arg1 = reinterpret_cast< GEventAtom * >(argp1);
22784 {
22785 try {
22786 (arg1)->clear();
22787 }
22788 catch (const GException::out_of_range& e) {
22789 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22790 }
22791 catch (const GExceptionHandler& e) {
22792 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22793 }
22794 catch (const std::exception& e) {
22795 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22796 }
22797 }
22798 resultobj = SWIG_Py_Void();
22799 return resultobj;
22800fail:
22801 return NULL__null;
22802}
22803
22804
22805SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22806 PyObject *resultobj = 0;
22807 GEventAtom *arg1 = (GEventAtom *) 0 ;
22808 void *argp1 = 0 ;
22809 int res1 = 0 ;
22810 PyObject * obj0 = 0 ;
22811 GEvent *result = 0 ;
22812
22813 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_clone",&obj0)) SWIG_failgoto fail;
22814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
22815 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_clone" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_clone" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
22817 }
22818 arg1 = reinterpret_cast< GEventAtom * >(argp1);
22819 {
22820 try {
22821 result = (GEvent *)((GEventAtom const *)arg1)->clone();
22822 }
22823 catch (const GException::out_of_range& e) {
22824 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22825 }
22826 catch (const GExceptionHandler& e) {
22827 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22828 }
22829 catch (const std::exception& e) {
22830 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22831 }
22832 }
22833 {
22834 if (dynamic_cast<GEventBin*>(result) != NULL__null) {
22835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
22836 }
22837 else if (dynamic_cast<GEventAtom*>(result) != NULL__null) {
22838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
22839 }
22840 else {
22841 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
22842 }
22843 }
22844 return resultobj;
22845fail:
22846 return NULL__null;
22847}
22848
22849
22850SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22851 PyObject *resultobj = 0;
22852 GEventAtom *arg1 = (GEventAtom *) 0 ;
22853 void *argp1 = 0 ;
22854 int res1 = 0 ;
22855 PyObject * obj0 = 0 ;
22856 double result;
22857
22858 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_size",&obj0)) SWIG_failgoto fail;
22859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
22860 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_size" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_size" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
22862 }
22863 arg1 = reinterpret_cast< GEventAtom * >(argp1);
22864 {
22865 try {
22866 result = (double)((GEventAtom const *)arg1)->size();
22867 }
22868 catch (const GException::out_of_range& e) {
22869 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22870 }
22871 catch (const GExceptionHandler& e) {
22872 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22873 }
22874 catch (const std::exception& e) {
22875 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22876 }
22877 }
22878 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
22879 return resultobj;
22880fail:
22881 return NULL__null;
22882}
22883
22884
22885SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22886 PyObject *resultobj = 0;
22887 GEventAtom *arg1 = (GEventAtom *) 0 ;
22888 void *argp1 = 0 ;
22889 int res1 = 0 ;
22890 PyObject * obj0 = 0 ;
22891 GInstDir *result = 0 ;
22892
22893 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_dir",&obj0)) SWIG_failgoto fail;
22894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
22895 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_dir" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_dir" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
22897 }
22898 arg1 = reinterpret_cast< GEventAtom * >(argp1);
22899 {
22900 try {
22901 result = (GInstDir *) &((GEventAtom const *)arg1)->dir();
22902 }
22903 catch (const GException::out_of_range& e) {
22904 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22905 }
22906 catch (const GExceptionHandler& e) {
22907 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22908 }
22909 catch (const std::exception& e) {
22910 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22911 }
22912 }
22913 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[16], 0
| 0)
;
22914 return resultobj;
22915fail:
22916 return NULL__null;
22917}
22918
22919
22920SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22921 PyObject *resultobj = 0;
22922 GEventAtom *arg1 = (GEventAtom *) 0 ;
22923 void *argp1 = 0 ;
22924 int res1 = 0 ;
22925 PyObject * obj0 = 0 ;
22926 GEnergy *result = 0 ;
22927
22928 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_energy",&obj0)) SWIG_failgoto fail;
22929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
22930 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_energy" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_energy" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
22932 }
22933 arg1 = reinterpret_cast< GEventAtom * >(argp1);
22934 {
22935 try {
22936 result = (GEnergy *) &((GEventAtom const *)arg1)->energy();
22937 }
22938 catch (const GException::out_of_range& e) {
22939 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22940 }
22941 catch (const GExceptionHandler& e) {
22942 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22943 }
22944 catch (const std::exception& e) {
22945 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22946 }
22947 }
22948 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[5], 0 |
0)
;
22949 return resultobj;
22950fail:
22951 return NULL__null;
22952}
22953
22954
22955SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22956 PyObject *resultobj = 0;
22957 GEventAtom *arg1 = (GEventAtom *) 0 ;
22958 void *argp1 = 0 ;
22959 int res1 = 0 ;
22960 PyObject * obj0 = 0 ;
22961 GTime *result = 0 ;
22962
22963 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_time",&obj0)) SWIG_failgoto fail;
22964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
22965 if (!SWIG_IsOK(res1)(res1 >= 0)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_time" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_time" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
22967 }
22968 arg1 = reinterpret_cast< GEventAtom * >(argp1);
22969 {
22970 try {
22971 result = (GTime *) &((GEventAtom const *)arg1)->time();
22972 }
22973 catch (const GException::out_of_range& e) {
22974 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
22975 }
22976 catch (const GExceptionHandler& e) {
22977 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22978 }
22979 catch (const std::exception& e) {
22980 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
22981 }
22982 }
22983 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[32], 0
| 0)
;
22984 return resultobj;
22985fail:
22986 return NULL__null;
22987}
22988
22989
22990SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_counts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22991 PyObject *resultobj = 0;
22992 GEventAtom *arg1 = (GEventAtom *) 0 ;
22993 void *argp1 = 0 ;
22994 int res1 = 0 ;
22995 PyObject * obj0 = 0 ;
22996 double result;
22997
22998 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_counts",&obj0)) SWIG_failgoto fail;
22999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
23000 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_counts" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_counts" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
23002 }
23003 arg1 = reinterpret_cast< GEventAtom * >(argp1);
23004 {
23005 try {
23006 result = (double)((GEventAtom const *)arg1)->counts();
23007 }
23008 catch (const GException::out_of_range& e) {
23009 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23010 }
23011 catch (const GExceptionHandler& e) {
23012 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23013 }
23014 catch (const std::exception& e) {
23015 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23016 }
23017 }
23018 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23019 return resultobj;
23020fail:
23021 return NULL__null;
23022}
23023
23024
23025SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23026 PyObject *resultobj = 0;
23027 GEventAtom *arg1 = (GEventAtom *) 0 ;
23028 void *argp1 = 0 ;
23029 int res1 = 0 ;
23030 PyObject * obj0 = 0 ;
23031 double result;
23032
23033 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_error",&obj0)) SWIG_failgoto fail;
23034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
23035 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_error" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_error" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
23037 }
23038 arg1 = reinterpret_cast< GEventAtom * >(argp1);
23039 {
23040 try {
23041 result = (double)((GEventAtom const *)arg1)->error();
23042 }
23043 catch (const GException::out_of_range& e) {
23044 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23045 }
23046 catch (const GExceptionHandler& e) {
23047 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23048 }
23049 catch (const std::exception& e) {
23050 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23051 }
23052 }
23053 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23054 return resultobj;
23055fail:
23056 return NULL__null;
23057}
23058
23059
23060SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_isatom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23061 PyObject *resultobj = 0;
23062 GEventAtom *arg1 = (GEventAtom *) 0 ;
23063 void *argp1 = 0 ;
23064 int res1 = 0 ;
23065 PyObject * obj0 = 0 ;
23066 bool result;
23067
23068 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_isatom",&obj0)) SWIG_failgoto fail;
23069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
23070 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_isatom" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_isatom" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
23072 }
23073 arg1 = reinterpret_cast< GEventAtom * >(argp1);
23074 {
23075 try {
23076 result = (bool)((GEventAtom const *)arg1)->isatom();
23077 }
23078 catch (const GException::out_of_range& e) {
23079 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23080 }
23081 catch (const GExceptionHandler& e) {
23082 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23083 }
23084 catch (const std::exception& e) {
23085 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23086 }
23087 }
23088 resultobj = SWIG_From_bool(static_cast< bool >(result));
23089 return resultobj;
23090fail:
23091 return NULL__null;
23092}
23093
23094
23095SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventAtom_isbin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23096 PyObject *resultobj = 0;
23097 GEventAtom *arg1 = (GEventAtom *) 0 ;
23098 void *argp1 = 0 ;
23099 int res1 = 0 ;
23100 PyObject * obj0 = 0 ;
23101 bool result;
23102
23103 if (!PyArg_ParseTuple(args,(char *)"O:GEventAtom_isbin",&obj0)) SWIG_failgoto fail;
23104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
23105 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventAtom_isbin" "', argument " "1"" of type '" "GEventAtom const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventAtom_isbin" "', argument "
"1"" of type '" "GEventAtom const *""'"); goto fail; } while
(0)
;
23107 }
23108 arg1 = reinterpret_cast< GEventAtom * >(argp1);
23109 {
23110 try {
23111 result = (bool)((GEventAtom const *)arg1)->isbin();
23112 }
23113 catch (const GException::out_of_range& e) {
23114 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23115 }
23116 catch (const GExceptionHandler& e) {
23117 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23118 }
23119 catch (const std::exception& e) {
23120 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23121 }
23122 }
23123 resultobj = SWIG_From_bool(static_cast< bool >(result));
23124 return resultobj;
23125fail:
23126 return NULL__null;
23127}
23128
23129
23130SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEventAtom_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23131 PyObject *obj;
23132 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
23133 SWIG_TypeNewClientData(SWIGTYPE_p_GEventAtomswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
23134 return SWIG_Py_Void();
23135}
23136
23137SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GEventBin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23138 PyObject *resultobj = 0;
23139 GEventBin *arg1 = (GEventBin *) 0 ;
23140 void *argp1 = 0 ;
23141 int res1 = 0 ;
23142 PyObject * obj0 = 0 ;
23143
23144 if (!PyArg_ParseTuple(args,(char *)"O:delete_GEventBin",&obj0)) SWIG_failgoto fail;
23145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0x1 | 0, 0)
;
23146 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GEventBin" "', argument " "1"" of type '" "GEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GEventBin" "', argument "
"1"" of type '" "GEventBin *""'"); goto fail; } while(0)
;
23148 }
23149 arg1 = reinterpret_cast< GEventBin * >(argp1);
23150 {
23151 try {
23152 delete arg1;
23153 }
23154 catch (const GException::out_of_range& e) {
23155 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23156 }
23157 catch (const GExceptionHandler& e) {
23158 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23159 }
23160 catch (const std::exception& e) {
23161 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23162 }
23163 }
23164 resultobj = SWIG_Py_Void();
23165 return resultobj;
23166fail:
23167 return NULL__null;
23168}
23169
23170
23171SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23172 PyObject *resultobj = 0;
23173 GEventBin *arg1 = (GEventBin *) 0 ;
23174 void *argp1 = 0 ;
23175 int res1 = 0 ;
23176 PyObject * obj0 = 0 ;
23177
23178 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_clear",&obj0)) SWIG_failgoto fail;
23179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23180 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_clear" "', argument " "1"" of type '" "GEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_clear" "', argument "
"1"" of type '" "GEventBin *""'"); goto fail; } while(0)
;
23182 }
23183 arg1 = reinterpret_cast< GEventBin * >(argp1);
23184 {
23185 try {
23186 (arg1)->clear();
23187 }
23188 catch (const GException::out_of_range& e) {
23189 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23190 }
23191 catch (const GExceptionHandler& e) {
23192 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23193 }
23194 catch (const std::exception& e) {
23195 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23196 }
23197 }
23198 resultobj = SWIG_Py_Void();
23199 return resultobj;
23200fail:
23201 return NULL__null;
23202}
23203
23204
23205SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23206 PyObject *resultobj = 0;
23207 GEventBin *arg1 = (GEventBin *) 0 ;
23208 void *argp1 = 0 ;
23209 int res1 = 0 ;
23210 PyObject * obj0 = 0 ;
23211 GEvent *result = 0 ;
23212
23213 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_clone",&obj0)) SWIG_failgoto fail;
23214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23215 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_clone" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_clone" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23217 }
23218 arg1 = reinterpret_cast< GEventBin * >(argp1);
23219 {
23220 try {
23221 result = (GEvent *)((GEventBin const *)arg1)->clone();
23222 }
23223 catch (const GException::out_of_range& e) {
23224 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23225 }
23226 catch (const GExceptionHandler& e) {
23227 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23228 }
23229 catch (const std::exception& e) {
23230 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23231 }
23232 }
23233 {
23234 if (dynamic_cast<GEventBin*>(result) != NULL__null) {
23235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
23236 }
23237 else if (dynamic_cast<GEventAtom*>(result) != NULL__null) {
23238 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEventAtom, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
23239 }
23240 else {
23241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GEvent, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
23242 }
23243 }
23244 return resultobj;
23245fail:
23246 return NULL__null;
23247}
23248
23249
23250SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23251 PyObject *resultobj = 0;
23252 GEventBin *arg1 = (GEventBin *) 0 ;
23253 void *argp1 = 0 ;
23254 int res1 = 0 ;
23255 PyObject * obj0 = 0 ;
23256 double result;
23257
23258 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_size",&obj0)) SWIG_failgoto fail;
23259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23260 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_size" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_size" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23262 }
23263 arg1 = reinterpret_cast< GEventBin * >(argp1);
23264 {
23265 try {
23266 result = (double)((GEventBin const *)arg1)->size();
23267 }
23268 catch (const GException::out_of_range& e) {
23269 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23270 }
23271 catch (const GExceptionHandler& e) {
23272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23273 }
23274 catch (const std::exception& e) {
23275 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23276 }
23277 }
23278 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23279 return resultobj;
23280fail:
23281 return NULL__null;
23282}
23283
23284
23285SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_dir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23286 PyObject *resultobj = 0;
23287 GEventBin *arg1 = (GEventBin *) 0 ;
23288 void *argp1 = 0 ;
23289 int res1 = 0 ;
23290 PyObject * obj0 = 0 ;
23291 GInstDir *result = 0 ;
23292
23293 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_dir",&obj0)) SWIG_failgoto fail;
23294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23295 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_dir" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_dir" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23297 }
23298 arg1 = reinterpret_cast< GEventBin * >(argp1);
23299 {
23300 try {
23301 result = (GInstDir *) &((GEventBin const *)arg1)->dir();
23302 }
23303 catch (const GException::out_of_range& e) {
23304 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23305 }
23306 catch (const GExceptionHandler& e) {
23307 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23308 }
23309 catch (const std::exception& e) {
23310 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23311 }
23312 }
23313 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[16], 0
| 0)
;
23314 return resultobj;
23315fail:
23316 return NULL__null;
23317}
23318
23319
23320SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_energy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23321 PyObject *resultobj = 0;
23322 GEventBin *arg1 = (GEventBin *) 0 ;
23323 void *argp1 = 0 ;
23324 int res1 = 0 ;
23325 PyObject * obj0 = 0 ;
23326 GEnergy *result = 0 ;
23327
23328 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_energy",&obj0)) SWIG_failgoto fail;
23329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23330 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_energy" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_energy" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23332 }
23333 arg1 = reinterpret_cast< GEventBin * >(argp1);
23334 {
23335 try {
23336 result = (GEnergy *) &((GEventBin const *)arg1)->energy();
23337 }
23338 catch (const GException::out_of_range& e) {
23339 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23340 }
23341 catch (const GExceptionHandler& e) {
23342 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23343 }
23344 catch (const std::exception& e) {
23345 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23346 }
23347 }
23348 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[5], 0 |
0)
;
23349 return resultobj;
23350fail:
23351 return NULL__null;
23352}
23353
23354
23355SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_time(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23356 PyObject *resultobj = 0;
23357 GEventBin *arg1 = (GEventBin *) 0 ;
23358 void *argp1 = 0 ;
23359 int res1 = 0 ;
23360 PyObject * obj0 = 0 ;
23361 GTime *result = 0 ;
23362
23363 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_time",&obj0)) SWIG_failgoto fail;
23364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23365 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_time" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_time" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23367 }
23368 arg1 = reinterpret_cast< GEventBin * >(argp1);
23369 {
23370 try {
23371 result = (GTime *) &((GEventBin const *)arg1)->time();
23372 }
23373 catch (const GException::out_of_range& e) {
23374 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23375 }
23376 catch (const GExceptionHandler& e) {
23377 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23378 }
23379 catch (const std::exception& e) {
23380 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23381 }
23382 }
23383 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[32], 0
| 0)
;
23384 return resultobj;
23385fail:
23386 return NULL__null;
23387}
23388
23389
23390SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_counts__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23391 PyObject *resultobj = 0;
23392 GEventBin *arg1 = (GEventBin *) 0 ;
23393 void *argp1 = 0 ;
23394 int res1 = 0 ;
23395 PyObject * obj0 = 0 ;
23396 double result;
23397
23398 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_counts",&obj0)) SWIG_failgoto fail;
23399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23400 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_counts" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_counts" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23402 }
23403 arg1 = reinterpret_cast< GEventBin * >(argp1);
23404 {
23405 try {
23406 result = (double)((GEventBin const *)arg1)->counts();
23407 }
23408 catch (const GException::out_of_range& e) {
23409 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23410 }
23411 catch (const GExceptionHandler& e) {
23412 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23413 }
23414 catch (const std::exception& e) {
23415 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23416 }
23417 }
23418 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23419 return resultobj;
23420fail:
23421 return NULL__null;
23422}
23423
23424
23425SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_error(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23426 PyObject *resultobj = 0;
23427 GEventBin *arg1 = (GEventBin *) 0 ;
23428 void *argp1 = 0 ;
23429 int res1 = 0 ;
23430 PyObject * obj0 = 0 ;
23431 double result;
23432
23433 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_error",&obj0)) SWIG_failgoto fail;
23434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23435 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_error" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_error" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23437 }
23438 arg1 = reinterpret_cast< GEventBin * >(argp1);
23439 {
23440 try {
23441 result = (double)((GEventBin const *)arg1)->error();
23442 }
23443 catch (const GException::out_of_range& e) {
23444 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23445 }
23446 catch (const GExceptionHandler& e) {
23447 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23448 }
23449 catch (const std::exception& e) {
23450 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23451 }
23452 }
23453 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
23454 return resultobj;
23455fail:
23456 return NULL__null;
23457}
23458
23459
23460SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_counts__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23461 PyObject *resultobj = 0;
23462 GEventBin *arg1 = (GEventBin *) 0 ;
23463 double *arg2 = 0 ;
23464 void *argp1 = 0 ;
23465 int res1 = 0 ;
23466 double temp2 ;
23467 double val2 ;
23468 int ecode2 = 0 ;
23469 PyObject * obj0 = 0 ;
23470 PyObject * obj1 = 0 ;
23471
23472 if (!PyArg_ParseTuple(args,(char *)"OO:GEventBin_counts",&obj0,&obj1)) SWIG_failgoto fail;
23473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23474 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_counts" "', argument " "1"" of type '" "GEventBin *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_counts" "', argument "
"1"" of type '" "GEventBin *""'"); goto fail; } while(0)
;
23476 }
23477 arg1 = reinterpret_cast< GEventBin * >(argp1);
23478 ecode2 = SWIG_AsVal_double(obj1, &val2);
23479 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
23480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GEventBin_counts" "', argument " "2"" of type '" "double""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GEventBin_counts" "', argument "
"2"" of type '" "double""'"); goto fail; } while(0)
;
23481 }
23482 temp2 = static_cast< double >(val2);
23483 arg2 = &temp2;
23484 {
23485 try {
23486 (arg1)->counts((double const &)*arg2);
23487 }
23488 catch (const GException::out_of_range& e) {
23489 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23490 }
23491 catch (const GExceptionHandler& e) {
23492 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23493 }
23494 catch (const std::exception& e) {
23495 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23496 }
23497 }
23498 resultobj = SWIG_Py_Void();
23499 return resultobj;
23500fail:
23501 return NULL__null;
23502}
23503
23504
23505SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_counts(PyObject *self, PyObject *args) {
23506 int argc;
23507 PyObject *argv[3];
23508 int ii;
23509
23510 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
23511 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
23512 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
23513 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
23514 }
23515 if (argc == 1) {
23516 int _v;
23517 void *vptr = 0;
23518 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
23519 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23520 if (_v) {
23521 return _wrap_GEventBin_counts__SWIG_0(self, args);
23522 }
23523 }
23524 if (argc == 2) {
23525 int _v;
23526 void *vptr = 0;
23527 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GEventBin, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
23528 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23529 if (_v) {
23530 {
23531 int res = SWIG_AsVal_double(argv[1], NULL__null);
23532 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
23533 }
23534 if (_v) {
23535 return _wrap_GEventBin_counts__SWIG_1(self, args);
23536 }
23537 }
23538 }
23539
23540fail:
23541 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GEventBin_counts'.\n"
23542 " Possible C/C++ prototypes are:\n"
23543 " GEventBin::counts() const\n"
23544 " GEventBin::counts(double const &)\n");
23545 return 0;
23546}
23547
23548
23549SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_isatom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23550 PyObject *resultobj = 0;
23551 GEventBin *arg1 = (GEventBin *) 0 ;
23552 void *argp1 = 0 ;
23553 int res1 = 0 ;
23554 PyObject * obj0 = 0 ;
23555 bool result;
23556
23557 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_isatom",&obj0)) SWIG_failgoto fail;
23558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23559 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_isatom" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_isatom" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23561 }
23562 arg1 = reinterpret_cast< GEventBin * >(argp1);
23563 {
23564 try {
23565 result = (bool)((GEventBin const *)arg1)->isatom();
23566 }
23567 catch (const GException::out_of_range& e) {
23568 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23569 }
23570 catch (const GExceptionHandler& e) {
23571 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23572 }
23573 catch (const std::exception& e) {
23574 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23575 }
23576 }
23577 resultobj = SWIG_From_bool(static_cast< bool >(result));
23578 return resultobj;
23579fail:
23580 return NULL__null;
23581}
23582
23583
23584SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GEventBin_isbin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23585 PyObject *resultobj = 0;
23586 GEventBin *arg1 = (GEventBin *) 0 ;
23587 void *argp1 = 0 ;
23588 int res1 = 0 ;
23589 PyObject * obj0 = 0 ;
23590 bool result;
23591
23592 if (!PyArg_ParseTuple(args,(char *)"O:GEventBin_isbin",&obj0)) SWIG_failgoto fail;
23593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GEventBin, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
23594 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GEventBin_isbin" "', argument " "1"" of type '" "GEventBin const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GEventBin_isbin" "', argument "
"1"" of type '" "GEventBin const *""'"); goto fail; } while(
0)
;
23596 }
23597 arg1 = reinterpret_cast< GEventBin * >(argp1);
23598 {
23599 try {
23600 result = (bool)((GEventBin const *)arg1)->isbin();
23601 }
23602 catch (const GException::out_of_range& e) {
23603 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23604 }
23605 catch (const GExceptionHandler& e) {
23606 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23607 }
23608 catch (const std::exception& e) {
23609 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23610 }
23611 }
23612 resultobj = SWIG_From_bool(static_cast< bool >(result));
23613 return resultobj;
23614fail:
23615 return NULL__null;
23616}
23617
23618
23619SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GEventBin_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23620 PyObject *obj;
23621 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
23622 SWIG_TypeNewClientData(SWIGTYPE_p_GEventBinswig_types[8], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
23623 return SWIG_Py_Void();
23624}
23625
23626SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GInstDir(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23627 PyObject *resultobj = 0;
23628 GInstDir *arg1 = (GInstDir *) 0 ;
23629 void *argp1 = 0 ;
23630 int res1 = 0 ;
23631 PyObject * obj0 = 0 ;
23632
23633 if (!PyArg_ParseTuple(args,(char *)"O:delete_GInstDir",&obj0)) SWIG_failgoto fail;
23634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GInstDir, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0x1 | 0, 0)
;
23635 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GInstDir" "', argument " "1"" of type '" "GInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GInstDir" "', argument "
"1"" of type '" "GInstDir *""'"); goto fail; } while(0)
;
23637 }
23638 arg1 = reinterpret_cast< GInstDir * >(argp1);
23639 {
23640 try {
23641 delete arg1;
23642 }
23643 catch (const GException::out_of_range& e) {
23644 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23645 }
23646 catch (const GExceptionHandler& e) {
23647 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23648 }
23649 catch (const std::exception& e) {
23650 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23651 }
23652 }
23653 resultobj = SWIG_Py_Void();
23654 return resultobj;
23655fail:
23656 return NULL__null;
23657}
23658
23659
23660SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GInstDir_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23661 PyObject *resultobj = 0;
23662 GInstDir *arg1 = (GInstDir *) 0 ;
23663 void *argp1 = 0 ;
23664 int res1 = 0 ;
23665 PyObject * obj0 = 0 ;
23666
23667 if (!PyArg_ParseTuple(args,(char *)"O:GInstDir_clear",&obj0)) SWIG_failgoto fail;
23668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
23669 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GInstDir_clear" "', argument " "1"" of type '" "GInstDir *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GInstDir_clear" "', argument "
"1"" of type '" "GInstDir *""'"); goto fail; } while(0)
;
23671 }
23672 arg1 = reinterpret_cast< GInstDir * >(argp1);
23673 {
23674 try {
23675 (arg1)->clear();
23676 }
23677 catch (const GException::out_of_range& e) {
23678 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23679 }
23680 catch (const GExceptionHandler& e) {
23681 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23682 }
23683 catch (const std::exception& e) {
23684 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23685 }
23686 }
23687 resultobj = SWIG_Py_Void();
23688 return resultobj;
23689fail:
23690 return NULL__null;
23691}
23692
23693
23694SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GInstDir_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23695 PyObject *resultobj = 0;
23696 GInstDir *arg1 = (GInstDir *) 0 ;
23697 void *argp1 = 0 ;
23698 int res1 = 0 ;
23699 PyObject * obj0 = 0 ;
23700 GInstDir *result = 0 ;
23701
23702 if (!PyArg_ParseTuple(args,(char *)"O:GInstDir_clone",&obj0)) SWIG_failgoto fail;
23703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GInstDir, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[16]
, 0 | 0, 0)
;
23704 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GInstDir_clone" "', argument " "1"" of type '" "GInstDir const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GInstDir_clone" "', argument "
"1"" of type '" "GInstDir const *""'"); goto fail; } while(0
)
;
23706 }
23707 arg1 = reinterpret_cast< GInstDir * >(argp1);
23708 {
23709 try {
23710 result = (GInstDir *)((GInstDir const *)arg1)->clone();
23711 }
23712 catch (const GException::out_of_range& e) {
23713 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23714 }
23715 catch (const GExceptionHandler& e) {
23716 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23717 }
23718 catch (const std::exception& e) {
23719 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23720 }
23721 }
23722 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[16], 0
| 0)
;
23723 return resultobj;
23724fail:
23725 return NULL__null;
23726}
23727
23728
23729SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GInstDir_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23730 PyObject *obj;
23731 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
23732 SWIG_TypeNewClientData(SWIGTYPE_p_GInstDirswig_types[16], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
23733 return SWIG_Py_Void();
23734}
23735
23736SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GRoi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23737 PyObject *resultobj = 0;
23738 GRoi *arg1 = (GRoi *) 0 ;
23739 void *argp1 = 0 ;
23740 int res1 = 0 ;
23741 PyObject * obj0 = 0 ;
23742
23743 if (!PyArg_ParseTuple(args,(char *)"O:delete_GRoi",&obj0)) SWIG_failgoto fail;
23744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRoi, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0x1 | 0, 0)
;
23745 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GRoi" "', argument " "1"" of type '" "GRoi *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GRoi" "', argument "
"1"" of type '" "GRoi *""'"); goto fail; } while(0)
;
23747 }
23748 arg1 = reinterpret_cast< GRoi * >(argp1);
23749 {
23750 try {
23751 delete arg1;
23752 }
23753 catch (const GException::out_of_range& e) {
23754 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23755 }
23756 catch (const GExceptionHandler& e) {
23757 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23758 }
23759 catch (const std::exception& e) {
23760 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23761 }
23762 }
23763 resultobj = SWIG_Py_Void();
23764 return resultobj;
23765fail:
23766 return NULL__null;
23767}
23768
23769
23770SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRoi_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23771 PyObject *resultobj = 0;
23772 GRoi *arg1 = (GRoi *) 0 ;
23773 void *argp1 = 0 ;
23774 int res1 = 0 ;
23775 PyObject * obj0 = 0 ;
23776
23777 if (!PyArg_ParseTuple(args,(char *)"O:GRoi_clear",&obj0)) SWIG_failgoto fail;
23778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
23779 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRoi_clear" "', argument " "1"" of type '" "GRoi *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRoi_clear" "', argument "
"1"" of type '" "GRoi *""'"); goto fail; } while(0)
;
23781 }
23782 arg1 = reinterpret_cast< GRoi * >(argp1);
23783 {
23784 try {
23785 (arg1)->clear();
23786 }
23787 catch (const GException::out_of_range& e) {
23788 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23789 }
23790 catch (const GExceptionHandler& e) {
23791 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23792 }
23793 catch (const std::exception& e) {
23794 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23795 }
23796 }
23797 resultobj = SWIG_Py_Void();
23798 return resultobj;
23799fail:
23800 return NULL__null;
23801}
23802
23803
23804SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRoi_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23805 PyObject *resultobj = 0;
23806 GRoi *arg1 = (GRoi *) 0 ;
23807 void *argp1 = 0 ;
23808 int res1 = 0 ;
23809 PyObject * obj0 = 0 ;
23810 GRoi *result = 0 ;
23811
23812 if (!PyArg_ParseTuple(args,(char *)"O:GRoi_clone",&obj0)) SWIG_failgoto fail;
23813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
23814 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRoi_clone" "', argument " "1"" of type '" "GRoi const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRoi_clone" "', argument "
"1"" of type '" "GRoi const *""'"); goto fail; } while(0)
;
23816 }
23817 arg1 = reinterpret_cast< GRoi * >(argp1);
23818 {
23819 try {
23820 result = (GRoi *)((GRoi const *)arg1)->clone();
23821 }
23822 catch (const GException::out_of_range& e) {
23823 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23824 }
23825 catch (const GExceptionHandler& e) {
23826 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23827 }
23828 catch (const std::exception& e) {
23829 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23830 }
23831 }
23832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GRoi, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[29], 0
| 0)
;
23833 return resultobj;
23834fail:
23835 return NULL__null;
23836}
23837
23838
23839SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GRoi_contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23840 PyObject *resultobj = 0;
23841 GRoi *arg1 = (GRoi *) 0 ;
23842 GEvent *arg2 = 0 ;
23843 void *argp1 = 0 ;
23844 int res1 = 0 ;
23845 void *argp2 = 0 ;
23846 int res2 = 0 ;
23847 PyObject * obj0 = 0 ;
23848 PyObject * obj1 = 0 ;
23849 bool result;
23850
23851 if (!PyArg_ParseTuple(args,(char *)"OO:GRoi_contains",&obj0,&obj1)) SWIG_failgoto fail;
23852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GRoi, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[29]
, 0 | 0, 0)
;
23853 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GRoi_contains" "', argument " "1"" of type '" "GRoi const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GRoi_contains" "', argument "
"1"" of type '" "GRoi const *""'"); goto fail; } while(0)
;
23855 }
23856 arg1 = reinterpret_cast< GRoi * >(argp1);
23857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
23858 if (!SWIG_IsOK(res2)(res2 >= 0)) {
23859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GRoi_contains" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GRoi_contains" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
23860 }
23861 if (!argp2) {
23862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GRoi_contains" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GRoi_contains" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
23863 }
23864 arg2 = reinterpret_cast< GEvent * >(argp2);
23865 {
23866 try {
23867 result = (bool)((GRoi const *)arg1)->contains((GEvent const &)*arg2);
23868 }
23869 catch (const GException::out_of_range& e) {
23870 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23871 }
23872 catch (const GExceptionHandler& e) {
23873 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23874 }
23875 catch (const std::exception& e) {
23876 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23877 }
23878 }
23879 resultobj = SWIG_From_bool(static_cast< bool >(result));
23880 return resultobj;
23881fail:
23882 return NULL__null;
23883}
23884
23885
23886SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GRoi_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23887 PyObject *obj;
23888 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
23889 SWIG_TypeNewClientData(SWIGTYPE_p_GRoiswig_types[29], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
23890 return SWIG_Py_Void();
23891}
23892
23893SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GResponse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23894 PyObject *resultobj = 0;
23895 GResponse *arg1 = (GResponse *) 0 ;
23896 void *argp1 = 0 ;
23897 int res1 = 0 ;
23898 PyObject * obj0 = 0 ;
23899
23900 if (!PyArg_ParseTuple(args,(char *)"O:delete_GResponse",&obj0)) SWIG_failgoto fail;
23901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0x1 | 0, 0)
;
23902 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GResponse" "', argument " "1"" of type '" "GResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GResponse" "', argument "
"1"" of type '" "GResponse *""'"); goto fail; } while(0)
;
23904 }
23905 arg1 = reinterpret_cast< GResponse * >(argp1);
23906 {
23907 try {
23908 delete arg1;
23909 }
23910 catch (const GException::out_of_range& e) {
23911 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23912 }
23913 catch (const GExceptionHandler& e) {
23914 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23915 }
23916 catch (const std::exception& e) {
23917 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23918 }
23919 }
23920 resultobj = SWIG_Py_Void();
23921 return resultobj;
23922fail:
23923 return NULL__null;
23924}
23925
23926
23927SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23928 PyObject *resultobj = 0;
23929 GResponse *arg1 = (GResponse *) 0 ;
23930 void *argp1 = 0 ;
23931 int res1 = 0 ;
23932 PyObject * obj0 = 0 ;
23933
23934 if (!PyArg_ParseTuple(args,(char *)"O:GResponse_clear",&obj0)) SWIG_failgoto fail;
23935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
23936 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_clear" "', argument " "1"" of type '" "GResponse *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_clear" "', argument "
"1"" of type '" "GResponse *""'"); goto fail; } while(0)
;
23938 }
23939 arg1 = reinterpret_cast< GResponse * >(argp1);
23940 {
23941 try {
23942 (arg1)->clear();
23943 }
23944 catch (const GException::out_of_range& e) {
23945 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23946 }
23947 catch (const GExceptionHandler& e) {
23948 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23949 }
23950 catch (const std::exception& e) {
23951 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23952 }
23953 }
23954 resultobj = SWIG_Py_Void();
23955 return resultobj;
23956fail:
23957 return NULL__null;
23958}
23959
23960
23961SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23962 PyObject *resultobj = 0;
23963 GResponse *arg1 = (GResponse *) 0 ;
23964 void *argp1 = 0 ;
23965 int res1 = 0 ;
23966 PyObject * obj0 = 0 ;
23967 GResponse *result = 0 ;
23968
23969 if (!PyArg_ParseTuple(args,(char *)"O:GResponse_clone",&obj0)) SWIG_failgoto fail;
23970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
23971 if (!SWIG_IsOK(res1)(res1 >= 0)) {
23972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_clone" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_clone" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
23973 }
23974 arg1 = reinterpret_cast< GResponse * >(argp1);
23975 {
23976 try {
23977 result = (GResponse *)((GResponse const *)arg1)->clone();
23978 }
23979 catch (const GException::out_of_range& e) {
23980 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
23981 }
23982 catch (const GExceptionHandler& e) {
23983 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23984 }
23985 catch (const std::exception& e) {
23986 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
23987 }
23988 }
23989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[28], 0
| 0)
;
23990 return resultobj;
23991fail:
23992 return NULL__null;
23993}
23994
23995
23996SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_hasedisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23997 PyObject *resultobj = 0;
23998 GResponse *arg1 = (GResponse *) 0 ;
23999 void *argp1 = 0 ;
24000 int res1 = 0 ;
24001 PyObject * obj0 = 0 ;
24002 bool result;
24003
24004 if (!PyArg_ParseTuple(args,(char *)"O:GResponse_hasedisp",&obj0)) SWIG_failgoto fail;
24005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24006 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_hasedisp" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_hasedisp" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24008 }
24009 arg1 = reinterpret_cast< GResponse * >(argp1);
24010 {
24011 try {
24012 result = (bool)((GResponse const *)arg1)->hasedisp();
24013 }
24014 catch (const GException::out_of_range& e) {
24015 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24016 }
24017 catch (const GExceptionHandler& e) {
24018 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24019 }
24020 catch (const std::exception& e) {
24021 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24022 }
24023 }
24024 resultobj = SWIG_From_bool(static_cast< bool >(result));
24025 return resultobj;
24026fail:
24027 return NULL__null;
24028}
24029
24030
24031SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_hastdisp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24032 PyObject *resultobj = 0;
24033 GResponse *arg1 = (GResponse *) 0 ;
24034 void *argp1 = 0 ;
24035 int res1 = 0 ;
24036 PyObject * obj0 = 0 ;
24037 bool result;
24038
24039 if (!PyArg_ParseTuple(args,(char *)"O:GResponse_hastdisp",&obj0)) SWIG_failgoto fail;
24040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24041 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_hastdisp" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_hastdisp" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24043 }
24044 arg1 = reinterpret_cast< GResponse * >(argp1);
24045 {
24046 try {
24047 result = (bool)((GResponse const *)arg1)->hastdisp();
24048 }
24049 catch (const GException::out_of_range& e) {
24050 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24051 }
24052 catch (const GExceptionHandler& e) {
24053 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24054 }
24055 catch (const std::exception& e) {
24056 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24057 }
24058 }
24059 resultobj = SWIG_From_bool(static_cast< bool >(result));
24060 return resultobj;
24061fail:
24062 return NULL__null;
24063}
24064
24065
24066SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_irf__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24067 PyObject *resultobj = 0;
24068 GResponse *arg1 = (GResponse *) 0 ;
24069 GEvent *arg2 = 0 ;
24070 GPhoton *arg3 = 0 ;
24071 GObservation *arg4 = 0 ;
24072 void *argp1 = 0 ;
24073 int res1 = 0 ;
24074 void *argp2 = 0 ;
24075 int res2 = 0 ;
24076 void *argp3 = 0 ;
24077 int res3 = 0 ;
24078 void *argp4 = 0 ;
24079 int res4 = 0 ;
24080 PyObject * obj0 = 0 ;
24081 PyObject * obj1 = 0 ;
24082 PyObject * obj2 = 0 ;
24083 PyObject * obj3 = 0 ;
24084 double result;
24085
24086 if (!PyArg_ParseTuple(args,(char *)"OOOO:GResponse_irf",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
24087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24088 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_irf" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_irf" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24090 }
24091 arg1 = reinterpret_cast< GResponse * >(argp1);
24092 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
24093 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_irf" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
24095 }
24096 if (!argp2) {
24097 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
24098 }
24099 arg2 = reinterpret_cast< GEvent * >(argp2);
24100 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[25]
, 0 | 0, 0)
;
24101 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24102 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_irf" "', argument "
"3"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
24103 }
24104 if (!argp3) {
24105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf" "', argument " "3"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
24106 }
24107 arg3 = reinterpret_cast< GPhoton * >(argp3);
24108 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[20]
, 0 | 0, 0)
;
24109 if (!SWIG_IsOK(res4)(res4 >= 0)) {
24110 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GResponse_irf" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24111 }
24112 if (!argp4) {
24113 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24114 }
24115 arg4 = reinterpret_cast< GObservation * >(argp4);
24116 {
24117 try {
24118 result = (double)((GResponse const *)arg1)->irf((GEvent const &)*arg2,(GPhoton const &)*arg3,(GObservation const &)*arg4);
24119 }
24120 catch (const GException::out_of_range& e) {
24121 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24122 }
24123 catch (const GExceptionHandler& e) {
24124 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24125 }
24126 catch (const std::exception& e) {
24127 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24128 }
24129 }
24130 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24131 return resultobj;
24132fail:
24133 return NULL__null;
24134}
24135
24136
24137SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_npred__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24138 PyObject *resultobj = 0;
24139 GResponse *arg1 = (GResponse *) 0 ;
24140 GPhoton *arg2 = 0 ;
24141 GObservation *arg3 = 0 ;
24142 void *argp1 = 0 ;
24143 int res1 = 0 ;
24144 void *argp2 = 0 ;
24145 int res2 = 0 ;
24146 void *argp3 = 0 ;
24147 int res3 = 0 ;
24148 PyObject * obj0 = 0 ;
24149 PyObject * obj1 = 0 ;
24150 PyObject * obj2 = 0 ;
24151 double result;
24152
24153 if (!PyArg_ParseTuple(args,(char *)"OOO:GResponse_npred",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24155 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_npred" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_npred" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24157 }
24158 arg1 = reinterpret_cast< GResponse * >(argp1);
24159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25]
, 0 | 0, 0)
;
24160 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_npred" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
24162 }
24163 if (!argp2) {
24164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
24165 }
24166 arg2 = reinterpret_cast< GPhoton * >(argp2);
24167 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
24168 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24169 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_npred" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24170 }
24171 if (!argp3) {
24172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24173 }
24174 arg3 = reinterpret_cast< GObservation * >(argp3);
24175 {
24176 try {
24177 result = (double)((GResponse const *)arg1)->npred((GPhoton const &)*arg2,(GObservation const &)*arg3);
24178 }
24179 catch (const GException::out_of_range& e) {
24180 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24181 }
24182 catch (const GExceptionHandler& e) {
24183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24184 }
24185 catch (const std::exception& e) {
24186 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24187 }
24188 }
24189 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24190 return resultobj;
24191fail:
24192 return NULL__null;
24193}
24194
24195
24196SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_irf__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24197 PyObject *resultobj = 0;
24198 GResponse *arg1 = (GResponse *) 0 ;
24199 GEvent *arg2 = 0 ;
24200 GSource *arg3 = 0 ;
24201 GObservation *arg4 = 0 ;
24202 void *argp1 = 0 ;
24203 int res1 = 0 ;
24204 void *argp2 = 0 ;
24205 int res2 = 0 ;
24206 void *argp3 = 0 ;
24207 int res3 = 0 ;
24208 void *argp4 = 0 ;
24209 int res4 = 0 ;
24210 PyObject * obj0 = 0 ;
24211 PyObject * obj1 = 0 ;
24212 PyObject * obj2 = 0 ;
24213 PyObject * obj3 = 0 ;
24214 double result;
24215
24216 if (!PyArg_ParseTuple(args,(char *)"OOOO:GResponse_irf",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
24217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24218 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_irf" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_irf" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24220 }
24221 arg1 = reinterpret_cast< GResponse * >(argp1);
24222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
24223 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_irf" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
24225 }
24226 if (!argp2) {
24227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
24228 }
24229 arg2 = reinterpret_cast< GEvent * >(argp2);
24230 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[31]
, 0 | 0, 0)
;
24231 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24232 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_irf" "', argument "
"3"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24233 }
24234 if (!argp3) {
24235 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf" "', argument " "3"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24236 }
24237 arg3 = reinterpret_cast< GSource * >(argp3);
24238 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[20]
, 0 | 0, 0)
;
24239 if (!SWIG_IsOK(res4)(res4 >= 0)) {
24240 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GResponse_irf" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24241 }
24242 if (!argp4) {
24243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24244 }
24245 arg4 = reinterpret_cast< GObservation * >(argp4);
24246 {
24247 try {
24248 result = (double)((GResponse const *)arg1)->irf((GEvent const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4);
24249 }
24250 catch (const GException::out_of_range& e) {
24251 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24252 }
24253 catch (const GExceptionHandler& e) {
24254 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24255 }
24256 catch (const std::exception& e) {
24257 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24258 }
24259 }
24260 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24261 return resultobj;
24262fail:
24263 return NULL__null;
24264}
24265
24266
24267SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_irf(PyObject *self, PyObject *args) {
24268 int argc;
24269 PyObject *argv[5];
24270 int ii;
24271
24272 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
24273 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
24274 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
24275 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
24276 }
24277 if (argc == 4) {
24278 int _v;
24279 void *vptr = 0;
24280 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
24281 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24282 if (_v) {
24283 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEvent, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0);
24284 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24285 if (_v) {
24286 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[25], 0, 0
)
;
24287 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24288 if (_v) {
24289 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[20], 0, 0
)
;
24290 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24291 if (_v) {
24292 return _wrap_GResponse_irf__SWIG_0(self, args);
24293 }
24294 }
24295 }
24296 }
24297 }
24298 if (argc == 4) {
24299 int _v;
24300 void *vptr = 0;
24301 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
24302 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24303 if (_v) {
24304 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEvent, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[6], 0, 0);
24305 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24306 if (_v) {
24307 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[31], 0, 0
)
;
24308 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24309 if (_v) {
24310 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[20], 0, 0
)
;
24311 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24312 if (_v) {
24313 return _wrap_GResponse_irf__SWIG_1(self, args);
24314 }
24315 }
24316 }
24317 }
24318 }
24319
24320fail:
24321 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GResponse_irf'.\n"
24322 " Possible C/C++ prototypes are:\n"
24323 " GResponse::irf(GEvent const &,GPhoton const &,GObservation const &) const\n"
24324 " GResponse::irf(GEvent const &,GSource const &,GObservation const &) const\n");
24325 return 0;
24326}
24327
24328
24329SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_irf_ptsrc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24330 PyObject *resultobj = 0;
24331 GResponse *arg1 = (GResponse *) 0 ;
24332 GEvent *arg2 = 0 ;
24333 GSource *arg3 = 0 ;
24334 GObservation *arg4 = 0 ;
24335 void *argp1 = 0 ;
24336 int res1 = 0 ;
24337 void *argp2 = 0 ;
24338 int res2 = 0 ;
24339 void *argp3 = 0 ;
24340 int res3 = 0 ;
24341 void *argp4 = 0 ;
24342 int res4 = 0 ;
24343 PyObject * obj0 = 0 ;
24344 PyObject * obj1 = 0 ;
24345 PyObject * obj2 = 0 ;
24346 PyObject * obj3 = 0 ;
24347 double result;
24348
24349 if (!PyArg_ParseTuple(args,(char *)"OOOO:GResponse_irf_ptsrc",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
24350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24351 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_irf_ptsrc" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_irf_ptsrc" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24353 }
24354 arg1 = reinterpret_cast< GResponse * >(argp1);
24355 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
24356 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_irf_ptsrc" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_irf_ptsrc" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
24358 }
24359 if (!argp2) {
24360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_ptsrc" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_ptsrc" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
24361 }
24362 arg2 = reinterpret_cast< GEvent * >(argp2);
24363 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[31]
, 0 | 0, 0)
;
24364 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24365 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_irf_ptsrc" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_irf_ptsrc" "', argument "
"3"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24366 }
24367 if (!argp3) {
24368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_ptsrc" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_ptsrc" "', argument " "3"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24369 }
24370 arg3 = reinterpret_cast< GSource * >(argp3);
24371 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[20]
, 0 | 0, 0)
;
24372 if (!SWIG_IsOK(res4)(res4 >= 0)) {
24373 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GResponse_irf_ptsrc" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GResponse_irf_ptsrc" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24374 }
24375 if (!argp4) {
24376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_ptsrc" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_ptsrc" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24377 }
24378 arg4 = reinterpret_cast< GObservation * >(argp4);
24379 {
24380 try {
24381 result = (double)((GResponse const *)arg1)->irf_ptsrc((GEvent const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4);
24382 }
24383 catch (const GException::out_of_range& e) {
24384 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24385 }
24386 catch (const GExceptionHandler& e) {
24387 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24388 }
24389 catch (const std::exception& e) {
24390 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24391 }
24392 }
24393 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24394 return resultobj;
24395fail:
24396 return NULL__null;
24397}
24398
24399
24400SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_irf_radial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24401 PyObject *resultobj = 0;
24402 GResponse *arg1 = (GResponse *) 0 ;
24403 GEvent *arg2 = 0 ;
24404 GSource *arg3 = 0 ;
24405 GObservation *arg4 = 0 ;
24406 void *argp1 = 0 ;
24407 int res1 = 0 ;
24408 void *argp2 = 0 ;
24409 int res2 = 0 ;
24410 void *argp3 = 0 ;
24411 int res3 = 0 ;
24412 void *argp4 = 0 ;
24413 int res4 = 0 ;
24414 PyObject * obj0 = 0 ;
24415 PyObject * obj1 = 0 ;
24416 PyObject * obj2 = 0 ;
24417 PyObject * obj3 = 0 ;
24418 double result;
24419
24420 if (!PyArg_ParseTuple(args,(char *)"OOOO:GResponse_irf_radial",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
24421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24422 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_irf_radial" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_irf_radial" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24424 }
24425 arg1 = reinterpret_cast< GResponse * >(argp1);
24426 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
24427 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_irf_radial" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_irf_radial" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
24429 }
24430 if (!argp2) {
24431 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_radial" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_radial" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
24432 }
24433 arg2 = reinterpret_cast< GEvent * >(argp2);
24434 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[31]
, 0 | 0, 0)
;
24435 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24436 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_irf_radial" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_irf_radial" "', argument "
"3"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24437 }
24438 if (!argp3) {
24439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_radial" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_radial" "', argument " "3"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24440 }
24441 arg3 = reinterpret_cast< GSource * >(argp3);
24442 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[20]
, 0 | 0, 0)
;
24443 if (!SWIG_IsOK(res4)(res4 >= 0)) {
24444 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GResponse_irf_radial" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GResponse_irf_radial" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24445 }
24446 if (!argp4) {
24447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_radial" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_radial" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24448 }
24449 arg4 = reinterpret_cast< GObservation * >(argp4);
24450 {
24451 try {
24452 result = (double)((GResponse const *)arg1)->irf_radial((GEvent const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4);
24453 }
24454 catch (const GException::out_of_range& e) {
24455 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24456 }
24457 catch (const GExceptionHandler& e) {
24458 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24459 }
24460 catch (const std::exception& e) {
24461 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24462 }
24463 }
24464 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24465 return resultobj;
24466fail:
24467 return NULL__null;
24468}
24469
24470
24471SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_irf_elliptical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24472 PyObject *resultobj = 0;
24473 GResponse *arg1 = (GResponse *) 0 ;
24474 GEvent *arg2 = 0 ;
24475 GSource *arg3 = 0 ;
24476 GObservation *arg4 = 0 ;
24477 void *argp1 = 0 ;
24478 int res1 = 0 ;
24479 void *argp2 = 0 ;
24480 int res2 = 0 ;
24481 void *argp3 = 0 ;
24482 int res3 = 0 ;
24483 void *argp4 = 0 ;
24484 int res4 = 0 ;
24485 PyObject * obj0 = 0 ;
24486 PyObject * obj1 = 0 ;
24487 PyObject * obj2 = 0 ;
24488 PyObject * obj3 = 0 ;
24489 double result;
24490
24491 if (!PyArg_ParseTuple(args,(char *)"OOOO:GResponse_irf_elliptical",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
24492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24493 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_irf_elliptical" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_irf_elliptical" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24495 }
24496 arg1 = reinterpret_cast< GResponse * >(argp1);
24497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
24498 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_irf_elliptical" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_irf_elliptical" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
24500 }
24501 if (!argp2) {
24502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_elliptical" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_elliptical" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
24503 }
24504 arg2 = reinterpret_cast< GEvent * >(argp2);
24505 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[31]
, 0 | 0, 0)
;
24506 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24507 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_irf_elliptical" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_irf_elliptical" "', argument "
"3"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24508 }
24509 if (!argp3) {
24510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_elliptical" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_elliptical" "', argument " "3"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24511 }
24512 arg3 = reinterpret_cast< GSource * >(argp3);
24513 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[20]
, 0 | 0, 0)
;
24514 if (!SWIG_IsOK(res4)(res4 >= 0)) {
24515 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GResponse_irf_elliptical" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GResponse_irf_elliptical" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24516 }
24517 if (!argp4) {
24518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_elliptical" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_elliptical" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24519 }
24520 arg4 = reinterpret_cast< GObservation * >(argp4);
24521 {
24522 try {
24523 result = (double)((GResponse const *)arg1)->irf_elliptical((GEvent const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4);
24524 }
24525 catch (const GException::out_of_range& e) {
24526 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24527 }
24528 catch (const GExceptionHandler& e) {
24529 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24530 }
24531 catch (const std::exception& e) {
24532 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24533 }
24534 }
24535 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24536 return resultobj;
24537fail:
24538 return NULL__null;
24539}
24540
24541
24542SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_irf_diffuse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24543 PyObject *resultobj = 0;
24544 GResponse *arg1 = (GResponse *) 0 ;
24545 GEvent *arg2 = 0 ;
24546 GSource *arg3 = 0 ;
24547 GObservation *arg4 = 0 ;
24548 void *argp1 = 0 ;
24549 int res1 = 0 ;
24550 void *argp2 = 0 ;
24551 int res2 = 0 ;
24552 void *argp3 = 0 ;
24553 int res3 = 0 ;
24554 void *argp4 = 0 ;
24555 int res4 = 0 ;
24556 PyObject * obj0 = 0 ;
24557 PyObject * obj1 = 0 ;
24558 PyObject * obj2 = 0 ;
24559 PyObject * obj3 = 0 ;
24560 double result;
24561
24562 if (!PyArg_ParseTuple(args,(char *)"OOOO:GResponse_irf_diffuse",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
24563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24564 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_irf_diffuse" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_irf_diffuse" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24566 }
24567 arg1 = reinterpret_cast< GResponse * >(argp1);
24568 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEvent, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[6],
0 | 0, 0)
;
24569 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24570 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_irf_diffuse" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_irf_diffuse" "', argument "
"2"" of type '" "GEvent const &""'"); goto fail; } while
(0)
;
24571 }
24572 if (!argp2) {
24573 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_diffuse" "', argument " "2"" of type '" "GEvent const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_diffuse" "', argument " "2"" of type '"
"GEvent const &""'"); goto fail; } while(0)
;
24574 }
24575 arg2 = reinterpret_cast< GEvent * >(argp2);
24576 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[31]
, 0 | 0, 0)
;
24577 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24578 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_irf_diffuse" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_irf_diffuse" "', argument "
"3"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24579 }
24580 if (!argp3) {
24581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_diffuse" "', argument " "3"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_diffuse" "', argument " "3"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24582 }
24583 arg3 = reinterpret_cast< GSource * >(argp3);
24584 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[20]
, 0 | 0, 0)
;
24585 if (!SWIG_IsOK(res4)(res4 >= 0)) {
24586 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GResponse_irf_diffuse" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "GResponse_irf_diffuse" "', argument "
"4"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24587 }
24588 if (!argp4) {
24589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_irf_diffuse" "', argument " "4"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_irf_diffuse" "', argument " "4"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24590 }
24591 arg4 = reinterpret_cast< GObservation * >(argp4);
24592 {
24593 try {
24594 result = (double)((GResponse const *)arg1)->irf_diffuse((GEvent const &)*arg2,(GSource const &)*arg3,(GObservation const &)*arg4);
24595 }
24596 catch (const GException::out_of_range& e) {
24597 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24598 }
24599 catch (const GExceptionHandler& e) {
24600 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24601 }
24602 catch (const std::exception& e) {
24603 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24604 }
24605 }
24606 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24607 return resultobj;
24608fail:
24609 return NULL__null;
24610}
24611
24612
24613SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_npred__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24614 PyObject *resultobj = 0;
24615 GResponse *arg1 = (GResponse *) 0 ;
24616 GSource *arg2 = 0 ;
24617 GObservation *arg3 = 0 ;
24618 void *argp1 = 0 ;
24619 int res1 = 0 ;
24620 void *argp2 = 0 ;
24621 int res2 = 0 ;
24622 void *argp3 = 0 ;
24623 int res3 = 0 ;
24624 PyObject * obj0 = 0 ;
24625 PyObject * obj1 = 0 ;
24626 PyObject * obj2 = 0 ;
24627 double result;
24628
24629 if (!PyArg_ParseTuple(args,(char *)"OOO:GResponse_npred",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24631 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_npred" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_npred" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24633 }
24634 arg1 = reinterpret_cast< GResponse * >(argp1);
24635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[31]
, 0 | 0, 0)
;
24636 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_npred" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_npred" "', argument "
"2"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24638 }
24639 if (!argp2) {
24640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred" "', argument " "2"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24641 }
24642 arg2 = reinterpret_cast< GSource * >(argp2);
24643 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
24644 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24645 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_npred" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24646 }
24647 if (!argp3) {
24648 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24649 }
24650 arg3 = reinterpret_cast< GObservation * >(argp3);
24651 {
24652 try {
24653 result = (double)((GResponse const *)arg1)->npred((GSource const &)*arg2,(GObservation const &)*arg3);
24654 }
24655 catch (const GException::out_of_range& e) {
24656 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24657 }
24658 catch (const GExceptionHandler& e) {
24659 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24660 }
24661 catch (const std::exception& e) {
24662 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24663 }
24664 }
24665 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24666 return resultobj;
24667fail:
24668 return NULL__null;
24669}
24670
24671
24672SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_npred(PyObject *self, PyObject *args) {
24673 int argc;
24674 PyObject *argv[4];
24675 int ii;
24676
24677 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
24678 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
24679 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
24680 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
24681 }
24682 if (argc == 3) {
24683 int _v;
24684 void *vptr = 0;
24685 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
24686 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24687 if (_v) {
24688 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[25], 0, 0
)
;
24689 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24690 if (_v) {
24691 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[20], 0, 0
)
;
24692 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24693 if (_v) {
24694 return _wrap_GResponse_npred__SWIG_0(self, args);
24695 }
24696 }
24697 }
24698 }
24699 if (argc == 3) {
24700 int _v;
24701 void *vptr = 0;
24702 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GResponse, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[28
], 0, 0)
;
24703 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24704 if (_v) {
24705 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[31], 0, 0
)
;
24706 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24707 if (_v) {
24708 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GObservation, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[20], 0, 0
)
;
24709 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
24710 if (_v) {
24711 return _wrap_GResponse_npred__SWIG_1(self, args);
24712 }
24713 }
24714 }
24715 }
24716
24717fail:
24718 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GResponse_npred'.\n"
24719 " Possible C/C++ prototypes are:\n"
24720 " GResponse::npred(GPhoton const &,GObservation const &) const\n"
24721 " GResponse::npred(GSource const &,GObservation const &) const\n");
24722 return 0;
24723}
24724
24725
24726SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_npred_ptsrc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24727 PyObject *resultobj = 0;
24728 GResponse *arg1 = (GResponse *) 0 ;
24729 GSource *arg2 = 0 ;
24730 GObservation *arg3 = 0 ;
24731 void *argp1 = 0 ;
24732 int res1 = 0 ;
24733 void *argp2 = 0 ;
24734 int res2 = 0 ;
24735 void *argp3 = 0 ;
24736 int res3 = 0 ;
24737 PyObject * obj0 = 0 ;
24738 PyObject * obj1 = 0 ;
24739 PyObject * obj2 = 0 ;
24740 double result;
24741
24742 if (!PyArg_ParseTuple(args,(char *)"OOO:GResponse_npred_ptsrc",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24744 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_npred_ptsrc" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_npred_ptsrc" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24746 }
24747 arg1 = reinterpret_cast< GResponse * >(argp1);
24748 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[31]
, 0 | 0, 0)
;
24749 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24750 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_npred_ptsrc" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_npred_ptsrc" "', argument "
"2"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24751 }
24752 if (!argp2) {
24753 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_ptsrc" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_ptsrc" "', argument " "2"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24754 }
24755 arg2 = reinterpret_cast< GSource * >(argp2);
24756 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
24757 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24758 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_npred_ptsrc" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_npred_ptsrc" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24759 }
24760 if (!argp3) {
24761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_ptsrc" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_ptsrc" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24762 }
24763 arg3 = reinterpret_cast< GObservation * >(argp3);
24764 {
24765 try {
24766 result = (double)((GResponse const *)arg1)->npred_ptsrc((GSource const &)*arg2,(GObservation const &)*arg3);
24767 }
24768 catch (const GException::out_of_range& e) {
24769 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24770 }
24771 catch (const GExceptionHandler& e) {
24772 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24773 }
24774 catch (const std::exception& e) {
24775 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24776 }
24777 }
24778 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24779 return resultobj;
24780fail:
24781 return NULL__null;
24782}
24783
24784
24785SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_npred_radial(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24786 PyObject *resultobj = 0;
24787 GResponse *arg1 = (GResponse *) 0 ;
24788 GSource *arg2 = 0 ;
24789 GObservation *arg3 = 0 ;
24790 void *argp1 = 0 ;
24791 int res1 = 0 ;
24792 void *argp2 = 0 ;
24793 int res2 = 0 ;
24794 void *argp3 = 0 ;
24795 int res3 = 0 ;
24796 PyObject * obj0 = 0 ;
24797 PyObject * obj1 = 0 ;
24798 PyObject * obj2 = 0 ;
24799 double result;
24800
24801 if (!PyArg_ParseTuple(args,(char *)"OOO:GResponse_npred_radial",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24803 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_npred_radial" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_npred_radial" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24805 }
24806 arg1 = reinterpret_cast< GResponse * >(argp1);
24807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[31]
, 0 | 0, 0)
;
24808 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_npred_radial" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_npred_radial" "', argument "
"2"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24810 }
24811 if (!argp2) {
24812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_radial" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_radial" "', argument " "2"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24813 }
24814 arg2 = reinterpret_cast< GSource * >(argp2);
24815 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
24816 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24817 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_npred_radial" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_npred_radial" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24818 }
24819 if (!argp3) {
24820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_radial" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_radial" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24821 }
24822 arg3 = reinterpret_cast< GObservation * >(argp3);
24823 {
24824 try {
24825 result = (double)((GResponse const *)arg1)->npred_radial((GSource const &)*arg2,(GObservation const &)*arg3);
24826 }
24827 catch (const GException::out_of_range& e) {
24828 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24829 }
24830 catch (const GExceptionHandler& e) {
24831 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24832 }
24833 catch (const std::exception& e) {
24834 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24835 }
24836 }
24837 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24838 return resultobj;
24839fail:
24840 return NULL__null;
24841}
24842
24843
24844SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_npred_elliptical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24845 PyObject *resultobj = 0;
24846 GResponse *arg1 = (GResponse *) 0 ;
24847 GSource *arg2 = 0 ;
24848 GObservation *arg3 = 0 ;
24849 void *argp1 = 0 ;
24850 int res1 = 0 ;
24851 void *argp2 = 0 ;
24852 int res2 = 0 ;
24853 void *argp3 = 0 ;
24854 int res3 = 0 ;
24855 PyObject * obj0 = 0 ;
24856 PyObject * obj1 = 0 ;
24857 PyObject * obj2 = 0 ;
24858 double result;
24859
24860 if (!PyArg_ParseTuple(args,(char *)"OOO:GResponse_npred_elliptical",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24862 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_npred_elliptical" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_npred_elliptical"
"', argument " "1"" of type '" "GResponse const *""'"); goto
fail; } while(0)
;
24864 }
24865 arg1 = reinterpret_cast< GResponse * >(argp1);
24866 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[31]
, 0 | 0, 0)
;
24867 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_npred_elliptical" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_npred_elliptical"
"', argument " "2"" of type '" "GSource const &""'"); goto
fail; } while(0)
;
24869 }
24870 if (!argp2) {
24871 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_elliptical" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_elliptical" "', argument " "2"
" of type '" "GSource const &""'"); goto fail; } while(0)
;
24872 }
24873 arg2 = reinterpret_cast< GSource * >(argp2);
24874 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
24875 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24876 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_npred_elliptical" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_npred_elliptical"
"', argument " "3"" of type '" "GObservation const &""'"
); goto fail; } while(0)
;
24877 }
24878 if (!argp3) {
24879 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_elliptical" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_elliptical" "', argument " "3"
" of type '" "GObservation const &""'"); goto fail; } while
(0)
;
24880 }
24881 arg3 = reinterpret_cast< GObservation * >(argp3);
24882 {
24883 try {
24884 result = (double)((GResponse const *)arg1)->npred_elliptical((GSource const &)*arg2,(GObservation const &)*arg3);
24885 }
24886 catch (const GException::out_of_range& e) {
24887 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24888 }
24889 catch (const GExceptionHandler& e) {
24890 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24891 }
24892 catch (const std::exception& e) {
24893 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24894 }
24895 }
24896 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24897 return resultobj;
24898fail:
24899 return NULL__null;
24900}
24901
24902
24903SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GResponse_npred_diffuse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24904 PyObject *resultobj = 0;
24905 GResponse *arg1 = (GResponse *) 0 ;
24906 GSource *arg2 = 0 ;
24907 GObservation *arg3 = 0 ;
24908 void *argp1 = 0 ;
24909 int res1 = 0 ;
24910 void *argp2 = 0 ;
24911 int res2 = 0 ;
24912 void *argp3 = 0 ;
24913 int res3 = 0 ;
24914 PyObject * obj0 = 0 ;
24915 PyObject * obj1 = 0 ;
24916 PyObject * obj2 = 0 ;
24917 double result;
24918
24919 if (!PyArg_ParseTuple(args,(char *)"OOO:GResponse_npred_diffuse",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
24920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GResponse, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[28]
, 0 | 0, 0)
;
24921 if (!SWIG_IsOK(res1)(res1 >= 0)) {
24922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GResponse_npred_diffuse" "', argument " "1"" of type '" "GResponse const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GResponse_npred_diffuse" "', argument "
"1"" of type '" "GResponse const *""'"); goto fail; } while(
0)
;
24923 }
24924 arg1 = reinterpret_cast< GResponse * >(argp1);
24925 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[31]
, 0 | 0, 0)
;
24926 if (!SWIG_IsOK(res2)(res2 >= 0)) {
24927 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GResponse_npred_diffuse" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GResponse_npred_diffuse" "', argument "
"2"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
24928 }
24929 if (!argp2) {
24930 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_diffuse" "', argument " "2"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_diffuse" "', argument " "2"" of type '"
"GSource const &""'"); goto fail; } while(0)
;
24931 }
24932 arg2 = reinterpret_cast< GSource * >(argp2);
24933 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GObservation, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[20]
, 0 | 0, 0)
;
24934 if (!SWIG_IsOK(res3)(res3 >= 0)) {
24935 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GResponse_npred_diffuse" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GResponse_npred_diffuse" "', argument "
"3"" of type '" "GObservation const &""'"); goto fail; }
while(0)
;
24936 }
24937 if (!argp3) {
24938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GResponse_npred_diffuse" "', argument " "3"" of type '" "GObservation const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GResponse_npred_diffuse" "', argument " "3"" of type '"
"GObservation const &""'"); goto fail; } while(0)
;
24939 }
24940 arg3 = reinterpret_cast< GObservation * >(argp3);
24941 {
24942 try {
24943 result = (double)((GResponse const *)arg1)->npred_diffuse((GSource const &)*arg2,(GObservation const &)*arg3);
24944 }
24945 catch (const GException::out_of_range& e) {
24946 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24947 }
24948 catch (const GExceptionHandler& e) {
24949 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24950 }
24951 catch (const std::exception& e) {
24952 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24953 }
24954 }
24955 resultobj = SWIG_From_doublePyFloat_FromDouble(static_cast< double >(result));
24956 return resultobj;
24957fail:
24958 return NULL__null;
24959}
24960
24961
24962SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GResponse_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24963 PyObject *obj;
24964 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
24965 SWIG_TypeNewClientData(SWIGTYPE_p_GResponseswig_types[28], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
24966 return SWIG_Py_Void();
24967}
24968
24969SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhoton__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24970 PyObject *resultobj = 0;
24971 GPhoton *result = 0 ;
24972
24973 if (!PyArg_ParseTuple(args,(char *)":new_GPhoton")) SWIG_failgoto fail;
24974 {
24975 try {
24976 result = (GPhoton *)new GPhoton();
24977 }
24978 catch (const GException::out_of_range& e) {
24979 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
24980 }
24981 catch (const GExceptionHandler& e) {
24982 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24983 }
24984 catch (const std::exception& e) {
24985 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
24986 }
24987 }
24988 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhoton, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
24989 return resultobj;
24990fail:
24991 return NULL__null;
24992}
24993
24994
24995SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhoton__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24996 PyObject *resultobj = 0;
24997 GSkyDir *arg1 = 0 ;
24998 GEnergy *arg2 = 0 ;
24999 GTime *arg3 = 0 ;
25000 int *arg4 = 0 ;
25001 void *argp1 = 0 ;
25002 int res1 = 0 ;
25003 void *argp2 = 0 ;
25004 int res2 = 0 ;
25005 void *argp3 = 0 ;
25006 int res3 = 0 ;
25007 int temp4 ;
25008 int val4 ;
25009 int ecode4 = 0 ;
25010 PyObject * obj0 = 0 ;
25011 PyObject * obj1 = 0 ;
25012 PyObject * obj2 = 0 ;
25013 PyObject * obj3 = 0 ;
25014 GPhoton *result = 0 ;
25015
25016 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GPhoton",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
25017 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
25018 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPhoton" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GPhoton" "', argument "
"1"" of type '" "GSkyDir const &""'"); goto fail; } while
(0)
;
25020 }
25021 if (!argp1) {
25022 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhoton" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhoton" "', argument " "1"" of type '" "GSkyDir const &"
"'"); goto fail; } while(0)
;
25023 }
25024 arg1 = reinterpret_cast< GSkyDir * >(argp1);
25025 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
25026 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25027 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GPhoton" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GPhoton" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
25028 }
25029 if (!argp2) {
25030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhoton" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhoton" "', argument " "2"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
25031 }
25032 arg2 = reinterpret_cast< GEnergy * >(argp2);
25033 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
25034 if (!SWIG_IsOK(res3)(res3 >= 0)) {
25035 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GPhoton" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GPhoton" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
25036 }
25037 if (!argp3) {
25038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhoton" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhoton" "', argument " "3"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
25039 }
25040 arg3 = reinterpret_cast< GTime * >(argp3);
25041 ecode4 = SWIG_AsVal_int(obj3, &val4);
25042 if (!SWIG_IsOK(ecode4)(ecode4 >= 0)) {
25043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GPhoton" "', argument " "4"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode4 !=
(-1)) ? ecode4 : -5)), "in method '" "new_GPhoton" "', argument "
"4"" of type '" "int""'"); goto fail; } while(0)
;
25044 }
25045 temp4 = static_cast< int >(val4);
25046 arg4 = &temp4;
25047 {
25048 try {
25049 result = (GPhoton *)new GPhoton((GSkyDir const &)*arg1,(GEnergy const &)*arg2,(GTime const &)*arg3,(int const &)*arg4);
25050 }
25051 catch (const GException::out_of_range& e) {
25052 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25053 }
25054 catch (const GExceptionHandler& e) {
25055 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25056 }
25057 catch (const std::exception& e) {
25058 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25059 }
25060 }
25061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhoton, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
25062 return resultobj;
25063fail:
25064 return NULL__null;
25065}
25066
25067
25068SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhoton__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25069 PyObject *resultobj = 0;
25070 GSkyDir *arg1 = 0 ;
25071 GEnergy *arg2 = 0 ;
25072 GTime *arg3 = 0 ;
25073 void *argp1 = 0 ;
25074 int res1 = 0 ;
25075 void *argp2 = 0 ;
25076 int res2 = 0 ;
25077 void *argp3 = 0 ;
25078 int res3 = 0 ;
25079 PyObject * obj0 = 0 ;
25080 PyObject * obj1 = 0 ;
25081 PyObject * obj2 = 0 ;
25082 GPhoton *result = 0 ;
25083
25084 if (!PyArg_ParseTuple(args,(char *)"OOO:new_GPhoton",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
25085 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[30]
, 0 | 0, 0)
;
25086 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPhoton" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GPhoton" "', argument "
"1"" of type '" "GSkyDir const &""'"); goto fail; } while
(0)
;
25088 }
25089 if (!argp1) {
25090 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhoton" "', argument " "1"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhoton" "', argument " "1"" of type '" "GSkyDir const &"
"'"); goto fail; } while(0)
;
25091 }
25092 arg1 = reinterpret_cast< GSkyDir * >(argp1);
25093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
25094 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GPhoton" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GPhoton" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
25096 }
25097 if (!argp2) {
25098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhoton" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhoton" "', argument " "2"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
25099 }
25100 arg2 = reinterpret_cast< GEnergy * >(argp2);
25101 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[32]
, 0 | 0, 0)
;
25102 if (!SWIG_IsOK(res3)(res3 >= 0)) {
25103 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GPhoton" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GPhoton" "', argument "
"3"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
25104 }
25105 if (!argp3) {
25106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhoton" "', argument " "3"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhoton" "', argument " "3"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
25107 }
25108 arg3 = reinterpret_cast< GTime * >(argp3);
25109 {
25110 try {
25111 result = (GPhoton *)new GPhoton((GSkyDir const &)*arg1,(GEnergy const &)*arg2,(GTime const &)*arg3);
25112 }
25113 catch (const GException::out_of_range& e) {
25114 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25115 }
25116 catch (const GExceptionHandler& e) {
25117 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25118 }
25119 catch (const std::exception& e) {
25120 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25121 }
25122 }
25123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhoton, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
25124 return resultobj;
25125fail:
25126 return NULL__null;
25127}
25128
25129
25130SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhoton__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25131 PyObject *resultobj = 0;
25132 GPhoton *arg1 = 0 ;
25133 void *argp1 = 0 ;
25134 int res1 = 0 ;
25135 PyObject * obj0 = 0 ;
25136 GPhoton *result = 0 ;
25137
25138 if (!PyArg_ParseTuple(args,(char *)"O:new_GPhoton",&obj0)) SWIG_failgoto fail;
25139 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25140 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPhoton" "', argument " "1"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GPhoton" "', argument "
"1"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
25142 }
25143 if (!argp1) {
25144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhoton" "', argument " "1"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhoton" "', argument " "1"" of type '" "GPhoton const &"
"'"); goto fail; } while(0)
;
25145 }
25146 arg1 = reinterpret_cast< GPhoton * >(argp1);
25147 {
25148 try {
25149 result = (GPhoton *)new GPhoton((GPhoton const &)*arg1);
25150 }
25151 catch (const GException::out_of_range& e) {
25152 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25153 }
25154 catch (const GExceptionHandler& e) {
25155 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25156 }
25157 catch (const std::exception& e) {
25158 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25159 }
25160 }
25161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhoton, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], (
(0x1 << 1) | 0x1) | 0)
;
25162 return resultobj;
25163fail:
25164 return NULL__null;
25165}
25166
25167
25168SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhoton(PyObject *self, PyObject *args) {
25169 int argc;
25170 PyObject *argv[5];
25171 int ii;
25172
25173 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25174 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25175 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
25176 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25177 }
25178 if (argc == 0) {
25179 return _wrap_new_GPhoton__SWIG_0(self, args);
25180 }
25181 if (argc == 1) {
25182 int _v;
25183 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[25], 0, 0
)
;
25184 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25185 if (_v) {
25186 return _wrap_new_GPhoton__SWIG_3(self, args);
25187 }
25188 }
25189 if (argc == 3) {
25190 int _v;
25191 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[30], 0, 0
)
;
25192 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25193 if (_v) {
25194 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
25195 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25196 if (_v) {
25197 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[32], 0, 0
)
;
25198 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25199 if (_v) {
25200 return _wrap_new_GPhoton__SWIG_2(self, args);
25201 }
25202 }
25203 }
25204 }
25205 if (argc == 4) {
25206 int _v;
25207 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[30], 0, 0
)
;
25208 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25209 if (_v) {
25210 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
25211 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25212 if (_v) {
25213 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[32], 0, 0
)
;
25214 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25215 if (_v) {
25216 {
25217 int res = SWIG_AsVal_int(argv[3], NULL__null);
25218 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25219 }
25220 if (_v) {
25221 return _wrap_new_GPhoton__SWIG_1(self, args);
25222 }
25223 }
25224 }
25225 }
25226 }
25227
25228fail:
25229 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GPhoton'.\n"
25230 " Possible C/C++ prototypes are:\n"
25231 " GPhoton::GPhoton()\n"
25232 " GPhoton::GPhoton(GSkyDir const &,GEnergy const &,GTime const &,int const &)\n"
25233 " GPhoton::GPhoton(GSkyDir const &,GEnergy const &,GTime const &)\n"
25234 " GPhoton::GPhoton(GPhoton const &)\n");
25235 return 0;
25236}
25237
25238
25239SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GPhoton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25240 PyObject *resultobj = 0;
25241 GPhoton *arg1 = (GPhoton *) 0 ;
25242 void *argp1 = 0 ;
25243 int res1 = 0 ;
25244 PyObject * obj0 = 0 ;
25245
25246 if (!PyArg_ParseTuple(args,(char *)"O:delete_GPhoton",&obj0)) SWIG_failgoto fail;
25247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0x1 | 0, 0)
;
25248 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GPhoton" "', argument " "1"" of type '" "GPhoton *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GPhoton" "', argument "
"1"" of type '" "GPhoton *""'"); goto fail; } while(0)
;
25250 }
25251 arg1 = reinterpret_cast< GPhoton * >(argp1);
25252 {
25253 try {
25254 delete arg1;
25255 }
25256 catch (const GException::out_of_range& e) {
25257 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25258 }
25259 catch (const GExceptionHandler& e) {
25260 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25261 }
25262 catch (const std::exception& e) {
25263 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25264 }
25265 }
25266 resultobj = SWIG_Py_Void();
25267 return resultobj;
25268fail:
25269 return NULL__null;
25270}
25271
25272
25273SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25274 PyObject *resultobj = 0;
25275 GPhoton *arg1 = (GPhoton *) 0 ;
25276 void *argp1 = 0 ;
25277 int res1 = 0 ;
25278 PyObject * obj0 = 0 ;
25279
25280 if (!PyArg_ParseTuple(args,(char *)"O:GPhoton_clear",&obj0)) SWIG_failgoto fail;
25281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25282 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_clear" "', argument " "1"" of type '" "GPhoton *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_clear" "', argument "
"1"" of type '" "GPhoton *""'"); goto fail; } while(0)
;
25284 }
25285 arg1 = reinterpret_cast< GPhoton * >(argp1);
25286 {
25287 try {
25288 (arg1)->clear();
25289 }
25290 catch (const GException::out_of_range& e) {
25291 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25292 }
25293 catch (const GExceptionHandler& e) {
25294 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25295 }
25296 catch (const std::exception& e) {
25297 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25298 }
25299 }
25300 resultobj = SWIG_Py_Void();
25301 return resultobj;
25302fail:
25303 return NULL__null;
25304}
25305
25306
25307SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25308 PyObject *resultobj = 0;
25309 GPhoton *arg1 = (GPhoton *) 0 ;
25310 void *argp1 = 0 ;
25311 int res1 = 0 ;
25312 PyObject * obj0 = 0 ;
25313 GPhoton *result = 0 ;
25314
25315 if (!PyArg_ParseTuple(args,(char *)"O:GPhoton_clone",&obj0)) SWIG_failgoto fail;
25316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25317 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_clone" "', argument " "1"" of type '" "GPhoton const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_clone" "', argument "
"1"" of type '" "GPhoton const *""'"); goto fail; } while(0)
;
25319 }
25320 arg1 = reinterpret_cast< GPhoton * >(argp1);
25321 {
25322 try {
25323 result = (GPhoton *)((GPhoton const *)arg1)->clone();
25324 }
25325 catch (const GException::out_of_range& e) {
25326 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25327 }
25328 catch (const GExceptionHandler& e) {
25329 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25330 }
25331 catch (const std::exception& e) {
25332 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25333 }
25334 }
25335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], 0
| 0)
;
25336 return resultobj;
25337fail:
25338 return NULL__null;
25339}
25340
25341
25342SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_dir__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25343 PyObject *resultobj = 0;
25344 GPhoton *arg1 = (GPhoton *) 0 ;
25345 void *argp1 = 0 ;
25346 int res1 = 0 ;
25347 PyObject * obj0 = 0 ;
25348 GSkyDir *result = 0 ;
25349
25350 if (!PyArg_ParseTuple(args,(char *)"O:GPhoton_dir",&obj0)) SWIG_failgoto fail;
25351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25352 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_dir" "', argument " "1"" of type '" "GPhoton const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_dir" "', argument "
"1"" of type '" "GPhoton const *""'"); goto fail; } while(0)
;
25354 }
25355 arg1 = reinterpret_cast< GPhoton * >(argp1);
25356 {
25357 try {
25358 result = (GSkyDir *) &((GPhoton const *)arg1)->dir();
25359 }
25360 catch (const GException::out_of_range& e) {
25361 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25362 }
25363 catch (const GExceptionHandler& e) {
25364 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25365 }
25366 catch (const std::exception& e) {
25367 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25368 }
25369 }
25370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSkyDir, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[30], 0
| 0)
;
25371 return resultobj;
25372fail:
25373 return NULL__null;
25374}
25375
25376
25377SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_energy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25378 PyObject *resultobj = 0;
25379 GPhoton *arg1 = (GPhoton *) 0 ;
25380 void *argp1 = 0 ;
25381 int res1 = 0 ;
25382 PyObject * obj0 = 0 ;
25383 GEnergy *result = 0 ;
25384
25385 if (!PyArg_ParseTuple(args,(char *)"O:GPhoton_energy",&obj0)) SWIG_failgoto fail;
25386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25387 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_energy" "', argument " "1"" of type '" "GPhoton const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_energy" "', argument "
"1"" of type '" "GPhoton const *""'"); goto fail; } while(0)
;
25389 }
25390 arg1 = reinterpret_cast< GPhoton * >(argp1);
25391 {
25392 try {
25393 result = (GEnergy *) &((GPhoton const *)arg1)->energy();
25394 }
25395 catch (const GException::out_of_range& e) {
25396 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25397 }
25398 catch (const GExceptionHandler& e) {
25399 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25400 }
25401 catch (const std::exception& e) {
25402 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25403 }
25404 }
25405 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[5], 0 |
0)
;
25406 return resultobj;
25407fail:
25408 return NULL__null;
25409}
25410
25411
25412SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_time__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25413 PyObject *resultobj = 0;
25414 GPhoton *arg1 = (GPhoton *) 0 ;
25415 void *argp1 = 0 ;
25416 int res1 = 0 ;
25417 PyObject * obj0 = 0 ;
25418 GTime *result = 0 ;
25419
25420 if (!PyArg_ParseTuple(args,(char *)"O:GPhoton_time",&obj0)) SWIG_failgoto fail;
25421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25422 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_time" "', argument " "1"" of type '" "GPhoton const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_time" "', argument "
"1"" of type '" "GPhoton const *""'"); goto fail; } while(0)
;
25424 }
25425 arg1 = reinterpret_cast< GPhoton * >(argp1);
25426 {
25427 try {
25428 result = (GTime *) &((GPhoton const *)arg1)->time();
25429 }
25430 catch (const GException::out_of_range& e) {
25431 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25432 }
25433 catch (const GExceptionHandler& e) {
25434 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25435 }
25436 catch (const std::exception& e) {
25437 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25438 }
25439 }
25440 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[32], 0
| 0)
;
25441 return resultobj;
25442fail:
25443 return NULL__null;
25444}
25445
25446
25447SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_mcid__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25448 PyObject *resultobj = 0;
25449 GPhoton *arg1 = (GPhoton *) 0 ;
25450 void *argp1 = 0 ;
25451 int res1 = 0 ;
25452 PyObject * obj0 = 0 ;
25453 int *result = 0 ;
25454
25455 if (!PyArg_ParseTuple(args,(char *)"O:GPhoton_mcid",&obj0)) SWIG_failgoto fail;
25456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25457 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_mcid" "', argument " "1"" of type '" "GPhoton const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_mcid" "', argument "
"1"" of type '" "GPhoton const *""'"); goto fail; } while(0)
;
25459 }
25460 arg1 = reinterpret_cast< GPhoton * >(argp1);
25461 {
25462 try {
25463 result = (int *) &((GPhoton const *)arg1)->mcid();
25464 }
25465 catch (const GException::out_of_range& e) {
25466 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25467 }
25468 catch (const GExceptionHandler& e) {
25469 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25470 }
25471 catch (const std::exception& e) {
25472 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25473 }
25474 }
25475 resultobj = SWIG_From_int(static_cast< int >(*result));
25476 return resultobj;
25477fail:
25478 return NULL__null;
25479}
25480
25481
25482SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_dir__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25483 PyObject *resultobj = 0;
25484 GPhoton *arg1 = (GPhoton *) 0 ;
25485 GSkyDir *arg2 = 0 ;
25486 void *argp1 = 0 ;
25487 int res1 = 0 ;
25488 void *argp2 = 0 ;
25489 int res2 = 0 ;
25490 PyObject * obj0 = 0 ;
25491 PyObject * obj1 = 0 ;
25492
25493 if (!PyArg_ParseTuple(args,(char *)"OO:GPhoton_dir",&obj0,&obj1)) SWIG_failgoto fail;
25494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25495 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_dir" "', argument " "1"" of type '" "GPhoton *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_dir" "', argument "
"1"" of type '" "GPhoton *""'"); goto fail; } while(0)
;
25497 }
25498 arg1 = reinterpret_cast< GPhoton * >(argp1);
25499 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GSkyDir, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[30]
, 0 | 0, 0)
;
25500 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25501 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPhoton_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPhoton_dir" "', argument "
"2"" of type '" "GSkyDir const &""'"); goto fail; } while
(0)
;
25502 }
25503 if (!argp2) {
25504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhoton_dir" "', argument " "2"" of type '" "GSkyDir const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhoton_dir" "', argument " "2"" of type '" "GSkyDir const &"
"'"); goto fail; } while(0)
;
25505 }
25506 arg2 = reinterpret_cast< GSkyDir * >(argp2);
25507 {
25508 try {
25509 (arg1)->dir((GSkyDir const &)*arg2);
25510 }
25511 catch (const GException::out_of_range& e) {
25512 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25513 }
25514 catch (const GExceptionHandler& e) {
25515 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25516 }
25517 catch (const std::exception& e) {
25518 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25519 }
25520 }
25521 resultobj = SWIG_Py_Void();
25522 return resultobj;
25523fail:
25524 return NULL__null;
25525}
25526
25527
25528SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_dir(PyObject *self, PyObject *args) {
25529 int argc;
25530 PyObject *argv[3];
25531 int ii;
25532
25533 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25534 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25535 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
25536 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25537 }
25538 if (argc == 1) {
25539 int _v;
25540 void *vptr = 0;
25541 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25542 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25543 if (_v) {
25544 return _wrap_GPhoton_dir__SWIG_0(self, args);
25545 }
25546 }
25547 if (argc == 2) {
25548 int _v;
25549 void *vptr = 0;
25550 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25551 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25552 if (_v) {
25553 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GSkyDir, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[30], 0, 0
)
;
25554 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25555 if (_v) {
25556 return _wrap_GPhoton_dir__SWIG_1(self, args);
25557 }
25558 }
25559 }
25560
25561fail:
25562 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPhoton_dir'.\n"
25563 " Possible C/C++ prototypes are:\n"
25564 " GPhoton::dir() const\n"
25565 " GPhoton::dir(GSkyDir const &)\n");
25566 return 0;
25567}
25568
25569
25570SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_energy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25571 PyObject *resultobj = 0;
25572 GPhoton *arg1 = (GPhoton *) 0 ;
25573 GEnergy *arg2 = 0 ;
25574 void *argp1 = 0 ;
25575 int res1 = 0 ;
25576 void *argp2 = 0 ;
25577 int res2 = 0 ;
25578 PyObject * obj0 = 0 ;
25579 PyObject * obj1 = 0 ;
25580
25581 if (!PyArg_ParseTuple(args,(char *)"OO:GPhoton_energy",&obj0,&obj1)) SWIG_failgoto fail;
25582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25583 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_energy" "', argument " "1"" of type '" "GPhoton *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_energy" "', argument "
"1"" of type '" "GPhoton *""'"); goto fail; } while(0)
;
25585 }
25586 arg1 = reinterpret_cast< GPhoton * >(argp1);
25587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
25588 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPhoton_energy" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPhoton_energy" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
25590 }
25591 if (!argp2) {
25592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhoton_energy" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhoton_energy" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
25593 }
25594 arg2 = reinterpret_cast< GEnergy * >(argp2);
25595 {
25596 try {
25597 (arg1)->energy((GEnergy const &)*arg2);
25598 }
25599 catch (const GException::out_of_range& e) {
25600 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25601 }
25602 catch (const GExceptionHandler& e) {
25603 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25604 }
25605 catch (const std::exception& e) {
25606 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25607 }
25608 }
25609 resultobj = SWIG_Py_Void();
25610 return resultobj;
25611fail:
25612 return NULL__null;
25613}
25614
25615
25616SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_energy(PyObject *self, PyObject *args) {
25617 int argc;
25618 PyObject *argv[3];
25619 int ii;
25620
25621 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25622 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25623 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
25624 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25625 }
25626 if (argc == 1) {
25627 int _v;
25628 void *vptr = 0;
25629 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25630 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25631 if (_v) {
25632 return _wrap_GPhoton_energy__SWIG_0(self, args);
25633 }
25634 }
25635 if (argc == 2) {
25636 int _v;
25637 void *vptr = 0;
25638 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25639 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25640 if (_v) {
25641 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
25642 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25643 if (_v) {
25644 return _wrap_GPhoton_energy__SWIG_1(self, args);
25645 }
25646 }
25647 }
25648
25649fail:
25650 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPhoton_energy'.\n"
25651 " Possible C/C++ prototypes are:\n"
25652 " GPhoton::energy() const\n"
25653 " GPhoton::energy(GEnergy const &)\n");
25654 return 0;
25655}
25656
25657
25658SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_time__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25659 PyObject *resultobj = 0;
25660 GPhoton *arg1 = (GPhoton *) 0 ;
25661 GTime *arg2 = 0 ;
25662 void *argp1 = 0 ;
25663 int res1 = 0 ;
25664 void *argp2 = 0 ;
25665 int res2 = 0 ;
25666 PyObject * obj0 = 0 ;
25667 PyObject * obj1 = 0 ;
25668
25669 if (!PyArg_ParseTuple(args,(char *)"OO:GPhoton_time",&obj0,&obj1)) SWIG_failgoto fail;
25670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25671 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_time" "', argument " "1"" of type '" "GPhoton *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_time" "', argument "
"1"" of type '" "GPhoton *""'"); goto fail; } while(0)
;
25673 }
25674 arg1 = reinterpret_cast< GPhoton * >(argp1);
25675 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
25676 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPhoton_time" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPhoton_time" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
25678 }
25679 if (!argp2) {
25680 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhoton_time" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhoton_time" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
25681 }
25682 arg2 = reinterpret_cast< GTime * >(argp2);
25683 {
25684 try {
25685 (arg1)->time((GTime const &)*arg2);
25686 }
25687 catch (const GException::out_of_range& e) {
25688 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25689 }
25690 catch (const GExceptionHandler& e) {
25691 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25692 }
25693 catch (const std::exception& e) {
25694 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25695 }
25696 }
25697 resultobj = SWIG_Py_Void();
25698 return resultobj;
25699fail:
25700 return NULL__null;
25701}
25702
25703
25704SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_time(PyObject *self, PyObject *args) {
25705 int argc;
25706 PyObject *argv[3];
25707 int ii;
25708
25709 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25710 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25711 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
25712 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25713 }
25714 if (argc == 1) {
25715 int _v;
25716 void *vptr = 0;
25717 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25718 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25719 if (_v) {
25720 return _wrap_GPhoton_time__SWIG_0(self, args);
25721 }
25722 }
25723 if (argc == 2) {
25724 int _v;
25725 void *vptr = 0;
25726 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25727 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25728 if (_v) {
25729 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[32], 0, 0
)
;
25730 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25731 if (_v) {
25732 return _wrap_GPhoton_time__SWIG_1(self, args);
25733 }
25734 }
25735 }
25736
25737fail:
25738 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPhoton_time'.\n"
25739 " Possible C/C++ prototypes are:\n"
25740 " GPhoton::time() const\n"
25741 " GPhoton::time(GTime const &)\n");
25742 return 0;
25743}
25744
25745
25746SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_mcid__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25747 PyObject *resultobj = 0;
25748 GPhoton *arg1 = (GPhoton *) 0 ;
25749 int *arg2 = 0 ;
25750 void *argp1 = 0 ;
25751 int res1 = 0 ;
25752 int temp2 ;
25753 int val2 ;
25754 int ecode2 = 0 ;
25755 PyObject * obj0 = 0 ;
25756 PyObject * obj1 = 0 ;
25757
25758 if (!PyArg_ParseTuple(args,(char *)"OO:GPhoton_mcid",&obj0,&obj1)) SWIG_failgoto fail;
25759 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25760 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_mcid" "', argument " "1"" of type '" "GPhoton *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_mcid" "', argument "
"1"" of type '" "GPhoton *""'"); goto fail; } while(0)
;
25762 }
25763 arg1 = reinterpret_cast< GPhoton * >(argp1);
25764 ecode2 = SWIG_AsVal_int(obj1, &val2);
25765 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
25766 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPhoton_mcid" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPhoton_mcid" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
25767 }
25768 temp2 = static_cast< int >(val2);
25769 arg2 = &temp2;
25770 {
25771 try {
25772 (arg1)->mcid((int const &)*arg2);
25773 }
25774 catch (const GException::out_of_range& e) {
25775 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25776 }
25777 catch (const GExceptionHandler& e) {
25778 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25779 }
25780 catch (const std::exception& e) {
25781 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25782 }
25783 }
25784 resultobj = SWIG_Py_Void();
25785 return resultobj;
25786fail:
25787 return NULL__null;
25788}
25789
25790
25791SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_mcid(PyObject *self, PyObject *args) {
25792 int argc;
25793 PyObject *argv[3];
25794 int ii;
25795
25796 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
25797 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
25798 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
25799 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
25800 }
25801 if (argc == 1) {
25802 int _v;
25803 void *vptr = 0;
25804 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25805 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25806 if (_v) {
25807 return _wrap_GPhoton_mcid__SWIG_0(self, args);
25808 }
25809 }
25810 if (argc == 2) {
25811 int _v;
25812 void *vptr = 0;
25813 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GPhoton, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[25
], 0, 0)
;
25814 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25815 if (_v) {
25816 {
25817 int res = SWIG_AsVal_int(argv[1], NULL__null);
25818 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
25819 }
25820 if (_v) {
25821 return _wrap_GPhoton_mcid__SWIG_1(self, args);
25822 }
25823 }
25824 }
25825
25826fail:
25827 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GPhoton_mcid'.\n"
25828 " Possible C/C++ prototypes are:\n"
25829 " GPhoton::mcid() const\n"
25830 " GPhoton::mcid(int const &)\n");
25831 return 0;
25832}
25833
25834
25835SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25836 PyObject *resultobj = 0;
25837 GPhoton *arg1 = (GPhoton *) 0 ;
25838 GPhoton *arg2 = 0 ;
25839 void *argp1 = 0 ;
25840 int res1 = 0 ;
25841 void *argp2 = 0 ;
25842 int res2 = 0 ;
25843 PyObject * obj0 = 0 ;
25844 PyObject * obj1 = 0 ;
25845 bool result;
25846
25847 if (!PyArg_ParseTuple(args,(char *)"OO:GPhoton___eq__",&obj0,&obj1)) SWIG_failgoto fail;
25848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25849 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton___eq__" "', argument " "1"" of type '" "GPhoton const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton___eq__" "', argument "
"1"" of type '" "GPhoton const *""'"); goto fail; } while(0)
;
25851 }
25852 arg1 = reinterpret_cast< GPhoton * >(argp1);
25853 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25]
, 0 | 0, 0)
;
25854 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPhoton___eq__" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPhoton___eq__" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
25856 }
25857 if (!argp2) {
25858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhoton___eq__" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhoton___eq__" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
25859 }
25860 arg2 = reinterpret_cast< GPhoton * >(argp2);
25861 {
25862 try {
25863 result = (bool)GPhoton___eq__((GPhoton const *)arg1,(GPhoton const &)*arg2);
25864 }
25865 catch (const GException::out_of_range& e) {
25866 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25867 }
25868 catch (const GExceptionHandler& e) {
25869 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25870 }
25871 catch (const std::exception& e) {
25872 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25873 }
25874 }
25875 resultobj = SWIG_From_bool(static_cast< bool >(result));
25876 return resultobj;
25877fail:
25878 return NULL__null;
25879}
25880
25881
25882SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25883 PyObject *resultobj = 0;
25884 GPhoton *arg1 = (GPhoton *) 0 ;
25885 GPhoton *arg2 = 0 ;
25886 void *argp1 = 0 ;
25887 int res1 = 0 ;
25888 void *argp2 = 0 ;
25889 int res2 = 0 ;
25890 PyObject * obj0 = 0 ;
25891 PyObject * obj1 = 0 ;
25892 bool result;
25893
25894 if (!PyArg_ParseTuple(args,(char *)"OO:GPhoton___ne__",&obj0,&obj1)) SWIG_failgoto fail;
25895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25896 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton___ne__" "', argument " "1"" of type '" "GPhoton const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton___ne__" "', argument "
"1"" of type '" "GPhoton const *""'"); goto fail; } while(0)
;
25898 }
25899 arg1 = reinterpret_cast< GPhoton * >(argp1);
25900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25]
, 0 | 0, 0)
;
25901 if (!SWIG_IsOK(res2)(res2 >= 0)) {
25902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPhoton___ne__" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPhoton___ne__" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
25903 }
25904 if (!argp2) {
25905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhoton___ne__" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhoton___ne__" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
25906 }
25907 arg2 = reinterpret_cast< GPhoton * >(argp2);
25908 {
25909 try {
25910 result = (bool)GPhoton___ne__((GPhoton const *)arg1,(GPhoton const &)*arg2);
25911 }
25912 catch (const GException::out_of_range& e) {
25913 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25914 }
25915 catch (const GExceptionHandler& e) {
25916 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25917 }
25918 catch (const std::exception& e) {
25919 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25920 }
25921 }
25922 resultobj = SWIG_From_bool(static_cast< bool >(result));
25923 return resultobj;
25924fail:
25925 return NULL__null;
25926}
25927
25928
25929SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhoton_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25930 PyObject *resultobj = 0;
25931 GPhoton *arg1 = (GPhoton *) 0 ;
25932 void *argp1 = 0 ;
25933 int res1 = 0 ;
25934 PyObject * obj0 = 0 ;
25935 GPhoton result;
25936
25937 if (!PyArg_ParseTuple(args,(char *)"O:GPhoton_copy",&obj0)) SWIG_failgoto fail;
25938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[25]
, 0 | 0, 0)
;
25939 if (!SWIG_IsOK(res1)(res1 >= 0)) {
25940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhoton_copy" "', argument " "1"" of type '" "GPhoton *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhoton_copy" "', argument "
"1"" of type '" "GPhoton *""'"); goto fail; } while(0)
;
25941 }
25942 arg1 = reinterpret_cast< GPhoton * >(argp1);
25943 {
25944 try {
25945 result = GPhoton_copy(arg1);
25946 }
25947 catch (const GException::out_of_range& e) {
25948 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25949 }
25950 catch (const GExceptionHandler& e) {
25951 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25952 }
25953 catch (const std::exception& e) {
25954 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25955 }
25956 }
25957 resultobj = SWIG_NewPointerObj((new GPhoton(static_cast< const GPhoton& >(result))), SWIGTYPE_p_GPhoton, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GPhoton(static_cast<
const GPhoton& >(result))), swig_types[25], 0x1 | 0)
;
25958 return resultobj;
25959fail:
25960 return NULL__null;
25961}
25962
25963
25964SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GPhoton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25965 PyObject *obj;
25966 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
25967 SWIG_TypeNewClientData(SWIGTYPE_p_GPhotonswig_types[25], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
25968 return SWIG_Py_Void();
25969}
25970
25971SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhotons__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25972 PyObject *resultobj = 0;
25973 GPhotons *result = 0 ;
25974
25975 if (!PyArg_ParseTuple(args,(char *)":new_GPhotons")) SWIG_failgoto fail;
25976 {
25977 try {
25978 result = (GPhotons *)new GPhotons();
25979 }
25980 catch (const GException::out_of_range& e) {
25981 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
25982 }
25983 catch (const GExceptionHandler& e) {
25984 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25985 }
25986 catch (const std::exception& e) {
25987 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
25988 }
25989 }
25990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhotons, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], (
(0x1 << 1) | 0x1) | 0)
;
25991 return resultobj;
25992fail:
25993 return NULL__null;
25994}
25995
25996
25997SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhotons__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25998 PyObject *resultobj = 0;
25999 GPhotons *arg1 = 0 ;
26000 void *argp1 = 0 ;
26001 int res1 = 0 ;
26002 PyObject * obj0 = 0 ;
26003 GPhotons *result = 0 ;
26004
26005 if (!PyArg_ParseTuple(args,(char *)"O:new_GPhotons",&obj0)) SWIG_failgoto fail;
26006 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GPhotons, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26007 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GPhotons" "', argument " "1"" of type '" "GPhotons const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GPhotons" "', argument "
"1"" of type '" "GPhotons const &""'"); goto fail; } while
(0)
;
26009 }
26010 if (!argp1) {
26011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GPhotons" "', argument " "1"" of type '" "GPhotons const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GPhotons" "', argument " "1"" of type '" "GPhotons const &"
"'"); goto fail; } while(0)
;
26012 }
26013 arg1 = reinterpret_cast< GPhotons * >(argp1);
26014 {
26015 try {
26016 result = (GPhotons *)new GPhotons((GPhotons const &)*arg1);
26017 }
26018 catch (const GException::out_of_range& e) {
26019 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26020 }
26021 catch (const GExceptionHandler& e) {
26022 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26023 }
26024 catch (const std::exception& e) {
26025 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26026 }
26027 }
26028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhotons, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], (
(0x1 << 1) | 0x1) | 0)
;
26029 return resultobj;
26030fail:
26031 return NULL__null;
26032}
26033
26034
26035SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GPhotons(PyObject *self, PyObject *args) {
26036 int argc;
26037 PyObject *argv[2];
26038 int ii;
26039
26040 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
26041 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
26042 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
26043 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
26044 }
26045 if (argc == 0) {
26046 return _wrap_new_GPhotons__SWIG_0(self, args);
26047 }
26048 if (argc == 1) {
26049 int _v;
26050 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GPhotons, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[26], 0, 0
)
;
26051 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26052 if (_v) {
26053 return _wrap_new_GPhotons__SWIG_1(self, args);
26054 }
26055 }
26056
26057fail:
26058 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GPhotons'.\n"
26059 " Possible C/C++ prototypes are:\n"
26060 " GPhotons::GPhotons()\n"
26061 " GPhotons::GPhotons(GPhotons const &)\n");
26062 return 0;
26063}
26064
26065
26066SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GPhotons(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26067 PyObject *resultobj = 0;
26068 GPhotons *arg1 = (GPhotons *) 0 ;
26069 void *argp1 = 0 ;
26070 int res1 = 0 ;
26071 PyObject * obj0 = 0 ;
26072
26073 if (!PyArg_ParseTuple(args,(char *)"O:delete_GPhotons",&obj0)) SWIG_failgoto fail;
26074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0x1 | 0, 0)
;
26075 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GPhotons" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GPhotons" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26077 }
26078 arg1 = reinterpret_cast< GPhotons * >(argp1);
26079 {
26080 try {
26081 delete arg1;
26082 }
26083 catch (const GException::out_of_range& e) {
26084 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26085 }
26086 catch (const GExceptionHandler& e) {
26087 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26088 }
26089 catch (const std::exception& e) {
26090 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26091 }
26092 }
26093 resultobj = SWIG_Py_Void();
26094 return resultobj;
26095fail:
26096 return NULL__null;
26097}
26098
26099
26100SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26101 PyObject *resultobj = 0;
26102 GPhotons *arg1 = (GPhotons *) 0 ;
26103 void *argp1 = 0 ;
26104 int res1 = 0 ;
26105 PyObject * obj0 = 0 ;
26106
26107 if (!PyArg_ParseTuple(args,(char *)"O:GPhotons_clear",&obj0)) SWIG_failgoto fail;
26108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26109 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_clear" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_clear" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26111 }
26112 arg1 = reinterpret_cast< GPhotons * >(argp1);
26113 {
26114 try {
26115 (arg1)->clear();
26116 }
26117 catch (const GException::out_of_range& e) {
26118 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26119 }
26120 catch (const GExceptionHandler& e) {
26121 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26122 }
26123 catch (const std::exception& e) {
26124 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26125 }
26126 }
26127 resultobj = SWIG_Py_Void();
26128 return resultobj;
26129fail:
26130 return NULL__null;
26131}
26132
26133
26134SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26135 PyObject *resultobj = 0;
26136 GPhotons *arg1 = (GPhotons *) 0 ;
26137 void *argp1 = 0 ;
26138 int res1 = 0 ;
26139 PyObject * obj0 = 0 ;
26140 GPhotons *result = 0 ;
26141
26142 if (!PyArg_ParseTuple(args,(char *)"O:GPhotons_clone",&obj0)) SWIG_failgoto fail;
26143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26144 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_clone" "', argument " "1"" of type '" "GPhotons const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_clone" "', argument "
"1"" of type '" "GPhotons const *""'"); goto fail; } while(0
)
;
26146 }
26147 arg1 = reinterpret_cast< GPhotons * >(argp1);
26148 {
26149 try {
26150 result = (GPhotons *)((GPhotons const *)arg1)->clone();
26151 }
26152 catch (const GException::out_of_range& e) {
26153 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26154 }
26155 catch (const GExceptionHandler& e) {
26156 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26157 }
26158 catch (const std::exception& e) {
26159 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26160 }
26161 }
26162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[26], 0
| 0)
;
26163 return resultobj;
26164fail:
26165 return NULL__null;
26166}
26167
26168
26169SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26170 PyObject *resultobj = 0;
26171 GPhotons *arg1 = (GPhotons *) 0 ;
26172 void *argp1 = 0 ;
26173 int res1 = 0 ;
26174 PyObject * obj0 = 0 ;
26175 int result;
26176
26177 if (!PyArg_ParseTuple(args,(char *)"O:GPhotons_size",&obj0)) SWIG_failgoto fail;
26178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26179 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_size" "', argument " "1"" of type '" "GPhotons const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_size" "', argument "
"1"" of type '" "GPhotons const *""'"); goto fail; } while(0
)
;
26181 }
26182 arg1 = reinterpret_cast< GPhotons * >(argp1);
26183 {
26184 try {
26185 result = (int)((GPhotons const *)arg1)->size();
26186 }
26187 catch (const GException::out_of_range& e) {
26188 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26189 }
26190 catch (const GExceptionHandler& e) {
26191 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26192 }
26193 catch (const std::exception& e) {
26194 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26195 }
26196 }
26197 resultobj = SWIG_From_int(static_cast< int >(result));
26198 return resultobj;
26199fail:
26200 return NULL__null;
26201}
26202
26203
26204SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26205 PyObject *resultobj = 0;
26206 GPhotons *arg1 = (GPhotons *) 0 ;
26207 void *argp1 = 0 ;
26208 int res1 = 0 ;
26209 PyObject * obj0 = 0 ;
26210 bool result;
26211
26212 if (!PyArg_ParseTuple(args,(char *)"O:GPhotons_isempty",&obj0)) SWIG_failgoto fail;
26213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26214 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_isempty" "', argument " "1"" of type '" "GPhotons const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_isempty" "', argument "
"1"" of type '" "GPhotons const *""'"); goto fail; } while(0
)
;
26216 }
26217 arg1 = reinterpret_cast< GPhotons * >(argp1);
26218 {
26219 try {
26220 result = (bool)((GPhotons const *)arg1)->isempty();
26221 }
26222 catch (const GException::out_of_range& e) {
26223 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26224 }
26225 catch (const GExceptionHandler& e) {
26226 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26227 }
26228 catch (const std::exception& e) {
26229 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26230 }
26231 }
26232 resultobj = SWIG_From_bool(static_cast< bool >(result));
26233 return resultobj;
26234fail:
26235 return NULL__null;
26236}
26237
26238
26239SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26240 PyObject *resultobj = 0;
26241 GPhotons *arg1 = (GPhotons *) 0 ;
26242 GPhoton *arg2 = 0 ;
26243 void *argp1 = 0 ;
26244 int res1 = 0 ;
26245 void *argp2 = 0 ;
26246 int res2 = 0 ;
26247 PyObject * obj0 = 0 ;
26248 PyObject * obj1 = 0 ;
26249
26250 if (!PyArg_ParseTuple(args,(char *)"OO:GPhotons_append",&obj0,&obj1)) SWIG_failgoto fail;
26251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26252 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_append" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_append" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26254 }
26255 arg1 = reinterpret_cast< GPhotons * >(argp1);
26256 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[25]
, 0 | 0, 0)
;
26257 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPhotons_append" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPhotons_append" "', argument "
"2"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
26259 }
26260 if (!argp2) {
26261 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhotons_append" "', argument " "2"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhotons_append" "', argument " "2"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
26262 }
26263 arg2 = reinterpret_cast< GPhoton * >(argp2);
26264 {
26265 try {
26266 (arg1)->append((GPhoton const &)*arg2);
26267 }
26268 catch (const GException::out_of_range& e) {
26269 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26270 }
26271 catch (const GExceptionHandler& e) {
26272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26273 }
26274 catch (const std::exception& e) {
26275 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26276 }
26277 }
26278 resultobj = SWIG_Py_Void();
26279 return resultobj;
26280fail:
26281 return NULL__null;
26282}
26283
26284
26285SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26286 PyObject *resultobj = 0;
26287 GPhotons *arg1 = (GPhotons *) 0 ;
26288 int *arg2 = 0 ;
26289 GPhoton *arg3 = 0 ;
26290 void *argp1 = 0 ;
26291 int res1 = 0 ;
26292 int temp2 ;
26293 int val2 ;
26294 int ecode2 = 0 ;
26295 void *argp3 = 0 ;
26296 int res3 = 0 ;
26297 PyObject * obj0 = 0 ;
26298 PyObject * obj1 = 0 ;
26299 PyObject * obj2 = 0 ;
26300
26301 if (!PyArg_ParseTuple(args,(char *)"OOO:GPhotons_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
26302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26303 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_insert" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_insert" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26305 }
26306 arg1 = reinterpret_cast< GPhotons * >(argp1);
26307 ecode2 = SWIG_AsVal_int(obj1, &val2);
26308 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
26309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPhotons_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPhotons_insert" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
26310 }
26311 temp2 = static_cast< int >(val2);
26312 arg2 = &temp2;
26313 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[25]
, 0 | 0, 0)
;
26314 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26315 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPhotons_insert" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GPhotons_insert" "', argument "
"3"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
26316 }
26317 if (!argp3) {
26318 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhotons_insert" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhotons_insert" "', argument " "3"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
26319 }
26320 arg3 = reinterpret_cast< GPhoton * >(argp3);
26321 {
26322 try {
26323 (arg1)->insert((int const &)*arg2,(GPhoton const &)*arg3);
26324 }
26325 catch (const GException::out_of_range& e) {
26326 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26327 }
26328 catch (const GExceptionHandler& e) {
26329 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26330 }
26331 catch (const std::exception& e) {
26332 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26333 }
26334 }
26335 resultobj = SWIG_Py_Void();
26336 return resultobj;
26337fail:
26338 return NULL__null;
26339}
26340
26341
26342SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26343 PyObject *resultobj = 0;
26344 GPhotons *arg1 = (GPhotons *) 0 ;
26345 int *arg2 = 0 ;
26346 void *argp1 = 0 ;
26347 int res1 = 0 ;
26348 int temp2 ;
26349 int val2 ;
26350 int ecode2 = 0 ;
26351 PyObject * obj0 = 0 ;
26352 PyObject * obj1 = 0 ;
26353
26354 if (!PyArg_ParseTuple(args,(char *)"OO:GPhotons_remove",&obj0,&obj1)) SWIG_failgoto fail;
26355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26356 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_remove" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_remove" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26358 }
26359 arg1 = reinterpret_cast< GPhotons * >(argp1);
26360 ecode2 = SWIG_AsVal_int(obj1, &val2);
26361 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
26362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPhotons_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPhotons_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
26363 }
26364 temp2 = static_cast< int >(val2);
26365 arg2 = &temp2;
26366 {
26367 try {
26368 (arg1)->remove((int const &)*arg2);
26369 }
26370 catch (const GException::out_of_range& e) {
26371 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26372 }
26373 catch (const GExceptionHandler& e) {
26374 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26375 }
26376 catch (const std::exception& e) {
26377 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26378 }
26379 }
26380 resultobj = SWIG_Py_Void();
26381 return resultobj;
26382fail:
26383 return NULL__null;
26384}
26385
26386
26387SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26388 PyObject *resultobj = 0;
26389 GPhotons *arg1 = (GPhotons *) 0 ;
26390 int *arg2 = 0 ;
26391 void *argp1 = 0 ;
26392 int res1 = 0 ;
26393 int temp2 ;
26394 int val2 ;
26395 int ecode2 = 0 ;
26396 PyObject * obj0 = 0 ;
26397 PyObject * obj1 = 0 ;
26398
26399 if (!PyArg_ParseTuple(args,(char *)"OO:GPhotons_reserve",&obj0,&obj1)) SWIG_failgoto fail;
26400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26401 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_reserve" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_reserve" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26403 }
26404 arg1 = reinterpret_cast< GPhotons * >(argp1);
26405 ecode2 = SWIG_AsVal_int(obj1, &val2);
26406 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
26407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPhotons_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPhotons_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
26408 }
26409 temp2 = static_cast< int >(val2);
26410 arg2 = &temp2;
26411 {
26412 try {
26413 (arg1)->reserve((int const &)*arg2);
26414 }
26415 catch (const GException::out_of_range& e) {
26416 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26417 }
26418 catch (const GExceptionHandler& e) {
26419 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26420 }
26421 catch (const std::exception& e) {
26422 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26423 }
26424 }
26425 resultobj = SWIG_Py_Void();
26426 return resultobj;
26427fail:
26428 return NULL__null;
26429}
26430
26431
26432SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26433 PyObject *resultobj = 0;
26434 GPhotons *arg1 = (GPhotons *) 0 ;
26435 GPhotons *arg2 = 0 ;
26436 void *argp1 = 0 ;
26437 int res1 = 0 ;
26438 void *argp2 = 0 ;
26439 int res2 = 0 ;
26440 PyObject * obj0 = 0 ;
26441 PyObject * obj1 = 0 ;
26442
26443 if (!PyArg_ParseTuple(args,(char *)"OO:GPhotons_extend",&obj0,&obj1)) SWIG_failgoto fail;
26444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26445 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_extend" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_extend" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26447 }
26448 arg1 = reinterpret_cast< GPhotons * >(argp1);
26449 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GPhotons, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[26]
, 0 | 0, 0)
;
26450 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GPhotons_extend" "', argument " "2"" of type '" "GPhotons const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GPhotons_extend" "', argument "
"2"" of type '" "GPhotons const &""'"); goto fail; } while
(0)
;
26452 }
26453 if (!argp2) {
26454 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhotons_extend" "', argument " "2"" of type '" "GPhotons const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhotons_extend" "', argument " "2"" of type '"
"GPhotons const &""'"); goto fail; } while(0)
;
26455 }
26456 arg2 = reinterpret_cast< GPhotons * >(argp2);
26457 {
26458 try {
26459 (arg1)->extend((GPhotons const &)*arg2);
26460 }
26461 catch (const GException::out_of_range& e) {
26462 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26463 }
26464 catch (const GExceptionHandler& e) {
26465 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26466 }
26467 catch (const std::exception& e) {
26468 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26469 }
26470 }
26471 resultobj = SWIG_Py_Void();
26472 return resultobj;
26473fail:
26474 return NULL__null;
26475}
26476
26477
26478SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26479 PyObject *resultobj = 0;
26480 GPhotons *arg1 = (GPhotons *) 0 ;
26481 int *arg2 = 0 ;
26482 void *argp1 = 0 ;
26483 int res1 = 0 ;
26484 int temp2 ;
26485 int val2 ;
26486 int ecode2 = 0 ;
26487 PyObject * obj0 = 0 ;
26488 PyObject * obj1 = 0 ;
26489 GPhoton *result = 0 ;
26490
26491 if (!PyArg_ParseTuple(args,(char *)"OO:GPhotons___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
26492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26493 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons___getitem__" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons___getitem__" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26495 }
26496 arg1 = reinterpret_cast< GPhotons * >(argp1);
26497 ecode2 = SWIG_AsVal_int(obj1, &val2);
26498 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
26499 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPhotons___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPhotons___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
26500 }
26501 temp2 = static_cast< int >(val2);
26502 arg2 = &temp2;
26503 {
26504 try {
26505 result = (GPhoton *) &GPhotons___getitem__(arg1,(int const &)*arg2);
26506 }
26507 catch (const GException::out_of_range& e) {
26508 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26509 }
26510 catch (const GExceptionHandler& e) {
26511 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26512 }
26513 catch (const std::exception& e) {
26514 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26515 }
26516 }
26517 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GPhoton, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[25], 0
| 0)
;
26518 return resultobj;
26519fail:
26520 return NULL__null;
26521}
26522
26523
26524SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26525 PyObject *resultobj = 0;
26526 GPhotons *arg1 = (GPhotons *) 0 ;
26527 int *arg2 = 0 ;
26528 GPhoton *arg3 = 0 ;
26529 void *argp1 = 0 ;
26530 int res1 = 0 ;
26531 int temp2 ;
26532 int val2 ;
26533 int ecode2 = 0 ;
26534 void *argp3 = 0 ;
26535 int res3 = 0 ;
26536 PyObject * obj0 = 0 ;
26537 PyObject * obj1 = 0 ;
26538 PyObject * obj2 = 0 ;
26539
26540 if (!PyArg_ParseTuple(args,(char *)"OOO:GPhotons___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
26541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26542 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons___setitem__" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons___setitem__" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26544 }
26545 arg1 = reinterpret_cast< GPhotons * >(argp1);
26546 ecode2 = SWIG_AsVal_int(obj1, &val2);
26547 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
26548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GPhotons___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GPhotons___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
26549 }
26550 temp2 = static_cast< int >(val2);
26551 arg2 = &temp2;
26552 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GPhoton, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[25]
, 0 | 0, 0)
;
26553 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26554 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GPhotons___setitem__" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GPhotons___setitem__" "', argument "
"3"" of type '" "GPhoton const &""'"); goto fail; } while
(0)
;
26555 }
26556 if (!argp3) {
26557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GPhotons___setitem__" "', argument " "3"" of type '" "GPhoton const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GPhotons___setitem__" "', argument " "3"" of type '"
"GPhoton const &""'"); goto fail; } while(0)
;
26558 }
26559 arg3 = reinterpret_cast< GPhoton * >(argp3);
26560 {
26561 try {
26562 GPhotons___setitem__(arg1,(int const &)*arg2,(GPhoton const &)*arg3);
26563 }
26564 catch (const GException::out_of_range& e) {
26565 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26566 }
26567 catch (const GExceptionHandler& e) {
26568 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26569 }
26570 catch (const std::exception& e) {
26571 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26572 }
26573 }
26574 resultobj = SWIG_Py_Void();
26575 return resultobj;
26576fail:
26577 return NULL__null;
26578}
26579
26580
26581SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GPhotons_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26582 PyObject *resultobj = 0;
26583 GPhotons *arg1 = (GPhotons *) 0 ;
26584 void *argp1 = 0 ;
26585 int res1 = 0 ;
26586 PyObject * obj0 = 0 ;
26587 GPhotons result;
26588
26589 if (!PyArg_ParseTuple(args,(char *)"O:GPhotons_copy",&obj0)) SWIG_failgoto fail;
26590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GPhotons, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[26]
, 0 | 0, 0)
;
26591 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GPhotons_copy" "', argument " "1"" of type '" "GPhotons *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GPhotons_copy" "', argument "
"1"" of type '" "GPhotons *""'"); goto fail; } while(0)
;
26593 }
26594 arg1 = reinterpret_cast< GPhotons * >(argp1);
26595 {
26596 try {
26597 result = GPhotons_copy(arg1);
26598 }
26599 catch (const GException::out_of_range& e) {
26600 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26601 }
26602 catch (const GExceptionHandler& e) {
26603 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26604 }
26605 catch (const std::exception& e) {
26606 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26607 }
26608 }
26609 resultobj = SWIG_NewPointerObj((new GPhotons(static_cast< const GPhotons& >(result))), SWIGTYPE_p_GPhotons, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GPhotons(static_cast<
const GPhotons& >(result))), swig_types[26], 0x1 | 0)
;
26610 return resultobj;
26611fail:
26612 return NULL__null;
26613}
26614
26615
26616SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GPhotons_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26617 PyObject *obj;
26618 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
26619 SWIG_TypeNewClientData(SWIGTYPE_p_GPhotonsswig_types[26], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
26620 return SWIG_Py_Void();
26621}
26622
26623SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSource__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26624 PyObject *resultobj = 0;
26625 GSource *result = 0 ;
26626
26627 if (!PyArg_ParseTuple(args,(char *)":new_GSource")) SWIG_failgoto fail;
26628 {
26629 try {
26630 result = (GSource *)new GSource();
26631 }
26632 catch (const GException::out_of_range& e) {
26633 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26634 }
26635 catch (const GExceptionHandler& e) {
26636 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26637 }
26638 catch (const std::exception& e) {
26639 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26640 }
26641 }
26642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], (
(0x1 << 1) | 0x1) | 0)
;
26643 return resultobj;
26644fail:
26645 return NULL__null;
26646}
26647
26648
26649SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSource__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26650 PyObject *resultobj = 0;
26651 std::string *arg1 = 0 ;
26652 GModelSpatial *arg2 = (GModelSpatial *) 0 ;
26653 GEnergy *arg3 = 0 ;
26654 GTime *arg4 = 0 ;
26655 int res1 = SWIG_OLDOBJ((0)) ;
26656 void *argp2 = 0 ;
26657 int res2 = 0 ;
26658 void *argp3 = 0 ;
26659 int res3 = 0 ;
26660 void *argp4 = 0 ;
26661 int res4 = 0 ;
26662 PyObject * obj0 = 0 ;
26663 PyObject * obj1 = 0 ;
26664 PyObject * obj2 = 0 ;
26665 PyObject * obj3 = 0 ;
26666 GSource *result = 0 ;
26667
26668 if (!PyArg_ParseTuple(args,(char *)"OOOO:new_GSource",&obj0,&obj1,&obj2,&obj3)) SWIG_failgoto fail;
26669 {
26670 std::string *ptr = (std::string *)0;
26671 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
26672 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSource" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GSource" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
26674 }
26675 if (!ptr) {
26676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSource" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GSource" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
26677 }
26678 arg1 = ptr;
26679 }
26680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[18]
, 0 | 0, 0)
;
26681 if (!SWIG_IsOK(res2)(res2 >= 0)) {
26682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GSource" "', argument " "2"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GSource" "', argument "
"2"" of type '" "GModelSpatial *""'"); goto fail; } while(0)
;
26683 }
26684 arg2 = reinterpret_cast< GModelSpatial * >(argp2);
26685 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[5],
0 | 0, 0)
;
26686 if (!SWIG_IsOK(res3)(res3 >= 0)) {
26687 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_GSource" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "new_GSource" "', argument "
"3"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
26688 }
26689 if (!argp3) {
26690 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSource" "', argument " "3"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GSource" "', argument " "3"" of type '" "GEnergy const &"
"'"); goto fail; } while(0)
;
26691 }
26692 arg3 = reinterpret_cast< GEnergy * >(argp3);
26693 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj3, &argp4, swig_types[32]
, 0 | 0, 0)
;
26694 if (!SWIG_IsOK(res4)(res4 >= 0)) {
26695 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_GSource" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res4 != (
-1)) ? res4 : -5)), "in method '" "new_GSource" "', argument "
"4"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
26696 }
26697 if (!argp4) {
26698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSource" "', argument " "4"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GSource" "', argument " "4"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
26699 }
26700 arg4 = reinterpret_cast< GTime * >(argp4);
26701 {
26702 try {
26703 result = (GSource *)new GSource((std::string const &)*arg1,arg2,(GEnergy const &)*arg3,(GTime const &)*arg4);
26704 }
26705 catch (const GException::out_of_range& e) {
26706 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26707 }
26708 catch (const GExceptionHandler& e) {
26709 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26710 }
26711 catch (const std::exception& e) {
26712 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26713 }
26714 }
26715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], (
(0x1 << 1) | 0x1) | 0)
;
26716 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
26717 return resultobj;
26718fail:
26719 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
26720 return NULL__null;
26721}
26722
26723
26724SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSource__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26725 PyObject *resultobj = 0;
26726 GSource *arg1 = 0 ;
26727 void *argp1 = 0 ;
26728 int res1 = 0 ;
26729 PyObject * obj0 = 0 ;
26730 GSource *result = 0 ;
26731
26732 if (!PyArg_ParseTuple(args,(char *)"O:new_GSource",&obj0)) SWIG_failgoto fail;
26733 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GSource, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
26734 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GSource" "', argument " "1"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GSource" "', argument "
"1"" of type '" "GSource const &""'"); goto fail; } while
(0)
;
26736 }
26737 if (!argp1) {
26738 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GSource" "', argument " "1"" of type '" "GSource const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GSource" "', argument " "1"" of type '" "GSource const &"
"'"); goto fail; } while(0)
;
26739 }
26740 arg1 = reinterpret_cast< GSource * >(argp1);
26741 {
26742 try {
26743 result = (GSource *)new GSource((GSource const &)*arg1);
26744 }
26745 catch (const GException::out_of_range& e) {
26746 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26747 }
26748 catch (const GExceptionHandler& e) {
26749 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26750 }
26751 catch (const std::exception& e) {
26752 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26753 }
26754 }
26755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSource, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], (
(0x1 << 1) | 0x1) | 0)
;
26756 return resultobj;
26757fail:
26758 return NULL__null;
26759}
26760
26761
26762SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GSource(PyObject *self, PyObject *args) {
26763 int argc;
26764 PyObject *argv[5];
26765 int ii;
26766
26767 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
26768 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
26769 for (ii = 0; (ii < 4) && (ii < argc); ii++) {
26770 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
26771 }
26772 if (argc == 0) {
26773 return _wrap_new_GSource__SWIG_0(self, args);
26774 }
26775 if (argc == 1) {
26776 int _v;
26777 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[31], 0, 0
)
;
26778 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26779 if (_v) {
26780 return _wrap_new_GSource__SWIG_2(self, args);
26781 }
26782 }
26783 if (argc == 4) {
26784 int _v;
26785 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
26786 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26787 if (_v) {
26788 void *vptr = 0;
26789 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[18
], 0, 0)
;
26790 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26791 if (_v) {
26792 int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[2], 0, swig_types[5], 0, 0);
26793 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26794 if (_v) {
26795 int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[3], 0, swig_types[32], 0, 0
)
;
26796 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
26797 if (_v) {
26798 return _wrap_new_GSource__SWIG_1(self, args);
26799 }
26800 }
26801 }
26802 }
26803 }
26804
26805fail:
26806 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GSource'.\n"
26807 " Possible C/C++ prototypes are:\n"
26808 " GSource::GSource()\n"
26809 " GSource::GSource(std::string const &,GModelSpatial *,GEnergy const &,GTime const &)\n"
26810 " GSource::GSource(GSource const &)\n");
26811 return 0;
26812}
26813
26814
26815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26816 PyObject *resultobj = 0;
26817 GSource *arg1 = (GSource *) 0 ;
26818 void *argp1 = 0 ;
26819 int res1 = 0 ;
26820 PyObject * obj0 = 0 ;
26821
26822 if (!PyArg_ParseTuple(args,(char *)"O:delete_GSource",&obj0)) SWIG_failgoto fail;
26823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0x1 | 0, 0)
;
26824 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GSource" "', argument " "1"" of type '" "GSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GSource" "', argument "
"1"" of type '" "GSource *""'"); goto fail; } while(0)
;
26826 }
26827 arg1 = reinterpret_cast< GSource * >(argp1);
26828 {
26829 try {
26830 delete arg1;
26831 }
26832 catch (const GException::out_of_range& e) {
26833 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26834 }
26835 catch (const GExceptionHandler& e) {
26836 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26837 }
26838 catch (const std::exception& e) {
26839 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26840 }
26841 }
26842 resultobj = SWIG_Py_Void();
26843 return resultobj;
26844fail:
26845 return NULL__null;
26846}
26847
26848
26849SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26850 PyObject *resultobj = 0;
26851 GSource *arg1 = (GSource *) 0 ;
26852 void *argp1 = 0 ;
26853 int res1 = 0 ;
26854 PyObject * obj0 = 0 ;
26855
26856 if (!PyArg_ParseTuple(args,(char *)"O:GSource_clear",&obj0)) SWIG_failgoto fail;
26857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
26858 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_clear" "', argument " "1"" of type '" "GSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_clear" "', argument "
"1"" of type '" "GSource *""'"); goto fail; } while(0)
;
26860 }
26861 arg1 = reinterpret_cast< GSource * >(argp1);
26862 {
26863 try {
26864 (arg1)->clear();
26865 }
26866 catch (const GException::out_of_range& e) {
26867 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26868 }
26869 catch (const GExceptionHandler& e) {
26870 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26871 }
26872 catch (const std::exception& e) {
26873 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26874 }
26875 }
26876 resultobj = SWIG_Py_Void();
26877 return resultobj;
26878fail:
26879 return NULL__null;
26880}
26881
26882
26883SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26884 PyObject *resultobj = 0;
26885 GSource *arg1 = (GSource *) 0 ;
26886 void *argp1 = 0 ;
26887 int res1 = 0 ;
26888 PyObject * obj0 = 0 ;
26889 GSource *result = 0 ;
26890
26891 if (!PyArg_ParseTuple(args,(char *)"O:GSource_clone",&obj0)) SWIG_failgoto fail;
26892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
26893 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_clone" "', argument " "1"" of type '" "GSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_clone" "', argument "
"1"" of type '" "GSource const *""'"); goto fail; } while(0)
;
26895 }
26896 arg1 = reinterpret_cast< GSource * >(argp1);
26897 {
26898 try {
26899 result = (GSource *)((GSource const *)arg1)->clone();
26900 }
26901 catch (const GException::out_of_range& e) {
26902 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26903 }
26904 catch (const GExceptionHandler& e) {
26905 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26906 }
26907 catch (const std::exception& e) {
26908 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26909 }
26910 }
26911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[31], 0
| 0)
;
26912 return resultobj;
26913fail:
26914 return NULL__null;
26915}
26916
26917
26918SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26919 PyObject *resultobj = 0;
26920 GSource *arg1 = (GSource *) 0 ;
26921 void *argp1 = 0 ;
26922 int res1 = 0 ;
26923 PyObject * obj0 = 0 ;
26924 std::string *result = 0 ;
26925
26926 if (!PyArg_ParseTuple(args,(char *)"O:GSource_name",&obj0)) SWIG_failgoto fail;
26927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
26928 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_name" "', argument " "1"" of type '" "GSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_name" "', argument "
"1"" of type '" "GSource const *""'"); goto fail; } while(0)
;
26930 }
26931 arg1 = reinterpret_cast< GSource * >(argp1);
26932 {
26933 try {
26934 result = (std::string *) &((GSource const *)arg1)->name();
26935 }
26936 catch (const GException::out_of_range& e) {
26937 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26938 }
26939 catch (const GExceptionHandler& e) {
26940 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26941 }
26942 catch (const std::exception& e) {
26943 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26944 }
26945 }
26946 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
26947 return resultobj;
26948fail:
26949 return NULL__null;
26950}
26951
26952
26953SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_model__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26954 PyObject *resultobj = 0;
26955 GSource *arg1 = (GSource *) 0 ;
26956 void *argp1 = 0 ;
26957 int res1 = 0 ;
26958 PyObject * obj0 = 0 ;
26959 GModelSpatial *result = 0 ;
26960
26961 if (!PyArg_ParseTuple(args,(char *)"O:GSource_model",&obj0)) SWIG_failgoto fail;
26962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
26963 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_model" "', argument " "1"" of type '" "GSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_model" "', argument "
"1"" of type '" "GSource const *""'"); goto fail; } while(0)
;
26965 }
26966 arg1 = reinterpret_cast< GSource * >(argp1);
26967 {
26968 try {
26969 result = (GModelSpatial *)((GSource const *)arg1)->model();
26970 }
26971 catch (const GException::out_of_range& e) {
26972 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
26973 }
26974 catch (const GExceptionHandler& e) {
26975 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26976 }
26977 catch (const std::exception& e) {
26978 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
26979 }
26980 }
26981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[18], 0
| 0)
;
26982 return resultobj;
26983fail:
26984 return NULL__null;
26985}
26986
26987
26988SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_energy__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26989 PyObject *resultobj = 0;
26990 GSource *arg1 = (GSource *) 0 ;
26991 void *argp1 = 0 ;
26992 int res1 = 0 ;
26993 PyObject * obj0 = 0 ;
26994 GEnergy *result = 0 ;
26995
26996 if (!PyArg_ParseTuple(args,(char *)"O:GSource_energy",&obj0)) SWIG_failgoto fail;
26997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
26998 if (!SWIG_IsOK(res1)(res1 >= 0)) {
26999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_energy" "', argument " "1"" of type '" "GSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_energy" "', argument "
"1"" of type '" "GSource const *""'"); goto fail; } while(0)
;
27000 }
27001 arg1 = reinterpret_cast< GSource * >(argp1);
27002 {
27003 try {
27004 result = (GEnergy *) &((GSource const *)arg1)->energy();
27005 }
27006 catch (const GException::out_of_range& e) {
27007 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27008 }
27009 catch (const GExceptionHandler& e) {
27010 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27011 }
27012 catch (const std::exception& e) {
27013 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27014 }
27015 }
27016 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[5], 0 |
0)
;
27017 return resultobj;
27018fail:
27019 return NULL__null;
27020}
27021
27022
27023SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_time__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27024 PyObject *resultobj = 0;
27025 GSource *arg1 = (GSource *) 0 ;
27026 void *argp1 = 0 ;
27027 int res1 = 0 ;
27028 PyObject * obj0 = 0 ;
27029 GTime *result = 0 ;
27030
27031 if (!PyArg_ParseTuple(args,(char *)"O:GSource_time",&obj0)) SWIG_failgoto fail;
27032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
27033 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_time" "', argument " "1"" of type '" "GSource const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_time" "', argument "
"1"" of type '" "GSource const *""'"); goto fail; } while(0)
;
27035 }
27036 arg1 = reinterpret_cast< GSource * >(argp1);
27037 {
27038 try {
27039 result = (GTime *) &((GSource const *)arg1)->time();
27040 }
27041 catch (const GException::out_of_range& e) {
27042 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27043 }
27044 catch (const GExceptionHandler& e) {
27045 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27046 }
27047 catch (const std::exception& e) {
27048 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27049 }
27050 }
27051 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[32], 0
| 0)
;
27052 return resultobj;
27053fail:
27054 return NULL__null;
27055}
27056
27057
27058SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27059 PyObject *resultobj = 0;
27060 GSource *arg1 = (GSource *) 0 ;
27061 std::string *arg2 = 0 ;
27062 void *argp1 = 0 ;
27063 int res1 = 0 ;
27064 int res2 = SWIG_OLDOBJ((0)) ;
27065 PyObject * obj0 = 0 ;
27066 PyObject * obj1 = 0 ;
27067
27068 if (!PyArg_ParseTuple(args,(char *)"OO:GSource_name",&obj0,&obj1)) SWIG_failgoto fail;
27069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
27070 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_name" "', argument " "1"" of type '" "GSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_name" "', argument "
"1"" of type '" "GSource *""'"); goto fail; } while(0)
;
27072 }
27073 arg1 = reinterpret_cast< GSource * >(argp1);
27074 {
27075 std::string *ptr = (std::string *)0;
27076 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
27077 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSource_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GSource_name" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
27079 }
27080 if (!ptr) {
27081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSource_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GSource_name" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
27082 }
27083 arg2 = ptr;
27084 }
27085 {
27086 try {
27087 (arg1)->name((std::string const &)*arg2);
27088 }
27089 catch (const GException::out_of_range& e) {
27090 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27091 }
27092 catch (const GExceptionHandler& e) {
27093 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27094 }
27095 catch (const std::exception& e) {
27096 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27097 }
27098 }
27099 resultobj = SWIG_Py_Void();
27100 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
27101 return resultobj;
27102fail:
27103 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
27104 return NULL__null;
27105}
27106
27107
27108SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_name(PyObject *self, PyObject *args) {
27109 int argc;
27110 PyObject *argv[3];
27111 int ii;
27112
27113 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27114 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27115 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27116 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27117 }
27118 if (argc == 1) {
27119 int _v;
27120 void *vptr = 0;
27121 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27122 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27123 if (_v) {
27124 return _wrap_GSource_name__SWIG_0(self, args);
27125 }
27126 }
27127 if (argc == 2) {
27128 int _v;
27129 void *vptr = 0;
27130 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27131 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27132 if (_v) {
27133 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
27134 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27135 if (_v) {
27136 return _wrap_GSource_name__SWIG_1(self, args);
27137 }
27138 }
27139 }
27140
27141fail:
27142 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSource_name'.\n"
27143 " Possible C/C++ prototypes are:\n"
27144 " GSource::name() const\n"
27145 " GSource::name(std::string const &)\n");
27146 return 0;
27147}
27148
27149
27150SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_model__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27151 PyObject *resultobj = 0;
27152 GSource *arg1 = (GSource *) 0 ;
27153 GModelSpatial *arg2 = (GModelSpatial *) 0 ;
27154 void *argp1 = 0 ;
27155 int res1 = 0 ;
27156 void *argp2 = 0 ;
27157 int res2 = 0 ;
27158 PyObject * obj0 = 0 ;
27159 PyObject * obj1 = 0 ;
27160
27161 if (!PyArg_ParseTuple(args,(char *)"OO:GSource_model",&obj0,&obj1)) SWIG_failgoto fail;
27162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
27163 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_model" "', argument " "1"" of type '" "GSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_model" "', argument "
"1"" of type '" "GSource *""'"); goto fail; } while(0)
;
27165 }
27166 arg1 = reinterpret_cast< GSource * >(argp1);
27167 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GModelSpatial, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[18]
, 0 | 0, 0)
;
27168 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSource_model" "', argument " "2"" of type '" "GModelSpatial *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GSource_model" "', argument "
"2"" of type '" "GModelSpatial *""'"); goto fail; } while(0)
;
27170 }
27171 arg2 = reinterpret_cast< GModelSpatial * >(argp2);
27172 {
27173 try {
27174 (arg1)->model(arg2);
27175 }
27176 catch (const GException::out_of_range& e) {
27177 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27178 }
27179 catch (const GExceptionHandler& e) {
27180 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27181 }
27182 catch (const std::exception& e) {
27183 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27184 }
27185 }
27186 resultobj = SWIG_Py_Void();
27187 return resultobj;
27188fail:
27189 return NULL__null;
27190}
27191
27192
27193SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_model(PyObject *self, PyObject *args) {
27194 int argc;
27195 PyObject *argv[3];
27196 int ii;
27197
27198 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27199 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27200 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27201 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27202 }
27203 if (argc == 1) {
27204 int _v;
27205 void *vptr = 0;
27206 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27207 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27208 if (_v) {
27209 return _wrap_GSource_model__SWIG_0(self, args);
27210 }
27211 }
27212 if (argc == 2) {
27213 int _v;
27214 void *vptr = 0;
27215 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27216 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27217 if (_v) {
27218 void *vptr = 0;
27219 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GModelSpatial, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[18
], 0, 0)
;
27220 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27221 if (_v) {
27222 return _wrap_GSource_model__SWIG_1(self, args);
27223 }
27224 }
27225 }
27226
27227fail:
27228 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSource_model'.\n"
27229 " Possible C/C++ prototypes are:\n"
27230 " GSource::model() const\n"
27231 " GSource::model(GModelSpatial *)\n");
27232 return 0;
27233}
27234
27235
27236SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_energy__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27237 PyObject *resultobj = 0;
27238 GSource *arg1 = (GSource *) 0 ;
27239 GEnergy *arg2 = 0 ;
27240 void *argp1 = 0 ;
27241 int res1 = 0 ;
27242 void *argp2 = 0 ;
27243 int res2 = 0 ;
27244 PyObject * obj0 = 0 ;
27245 PyObject * obj1 = 0 ;
27246
27247 if (!PyArg_ParseTuple(args,(char *)"OO:GSource_energy",&obj0,&obj1)) SWIG_failgoto fail;
27248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
27249 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_energy" "', argument " "1"" of type '" "GSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_energy" "', argument "
"1"" of type '" "GSource *""'"); goto fail; } while(0)
;
27251 }
27252 arg1 = reinterpret_cast< GSource * >(argp1);
27253 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GEnergy, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[5],
0 | 0, 0)
;
27254 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSource_energy" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GSource_energy" "', argument "
"2"" of type '" "GEnergy const &""'"); goto fail; } while
(0)
;
27256 }
27257 if (!argp2) {
27258 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSource_energy" "', argument " "2"" of type '" "GEnergy const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GSource_energy" "', argument " "2"" of type '"
"GEnergy const &""'"); goto fail; } while(0)
;
27259 }
27260 arg2 = reinterpret_cast< GEnergy * >(argp2);
27261 {
27262 try {
27263 (arg1)->energy((GEnergy const &)*arg2);
27264 }
27265 catch (const GException::out_of_range& e) {
27266 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27267 }
27268 catch (const GExceptionHandler& e) {
27269 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27270 }
27271 catch (const std::exception& e) {
27272 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27273 }
27274 }
27275 resultobj = SWIG_Py_Void();
27276 return resultobj;
27277fail:
27278 return NULL__null;
27279}
27280
27281
27282SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_energy(PyObject *self, PyObject *args) {
27283 int argc;
27284 PyObject *argv[3];
27285 int ii;
27286
27287 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27288 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27289 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27290 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27291 }
27292 if (argc == 1) {
27293 int _v;
27294 void *vptr = 0;
27295 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27296 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27297 if (_v) {
27298 return _wrap_GSource_energy__SWIG_0(self, args);
27299 }
27300 }
27301 if (argc == 2) {
27302 int _v;
27303 void *vptr = 0;
27304 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27305 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27306 if (_v) {
27307 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GEnergy, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[5], 0, 0);
27308 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27309 if (_v) {
27310 return _wrap_GSource_energy__SWIG_1(self, args);
27311 }
27312 }
27313 }
27314
27315fail:
27316 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSource_energy'.\n"
27317 " Possible C/C++ prototypes are:\n"
27318 " GSource::energy() const\n"
27319 " GSource::energy(GEnergy const &)\n");
27320 return 0;
27321}
27322
27323
27324SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_time__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27325 PyObject *resultobj = 0;
27326 GSource *arg1 = (GSource *) 0 ;
27327 GTime *arg2 = 0 ;
27328 void *argp1 = 0 ;
27329 int res1 = 0 ;
27330 void *argp2 = 0 ;
27331 int res2 = 0 ;
27332 PyObject * obj0 = 0 ;
27333 PyObject * obj1 = 0 ;
27334
27335 if (!PyArg_ParseTuple(args,(char *)"OO:GSource_time",&obj0,&obj1)) SWIG_failgoto fail;
27336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
27337 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_time" "', argument " "1"" of type '" "GSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_time" "', argument "
"1"" of type '" "GSource *""'"); goto fail; } while(0)
;
27339 }
27340 arg1 = reinterpret_cast< GSource * >(argp1);
27341 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GTime, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[32]
, 0 | 0, 0)
;
27342 if (!SWIG_IsOK(res2)(res2 >= 0)) {
27343 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GSource_time" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GSource_time" "', argument "
"2"" of type '" "GTime const &""'"); goto fail; } while(
0)
;
27344 }
27345 if (!argp2) {
27346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GSource_time" "', argument " "2"" of type '" "GTime const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GSource_time" "', argument " "2"" of type '" "GTime const &"
"'"); goto fail; } while(0)
;
27347 }
27348 arg2 = reinterpret_cast< GTime * >(argp2);
27349 {
27350 try {
27351 (arg1)->time((GTime const &)*arg2);
27352 }
27353 catch (const GException::out_of_range& e) {
27354 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27355 }
27356 catch (const GExceptionHandler& e) {
27357 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27358 }
27359 catch (const std::exception& e) {
27360 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27361 }
27362 }
27363 resultobj = SWIG_Py_Void();
27364 return resultobj;
27365fail:
27366 return NULL__null;
27367}
27368
27369
27370SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_time(PyObject *self, PyObject *args) {
27371 int argc;
27372 PyObject *argv[3];
27373 int ii;
27374
27375 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
27376 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
27377 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
27378 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
27379 }
27380 if (argc == 1) {
27381 int _v;
27382 void *vptr = 0;
27383 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27384 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27385 if (_v) {
27386 return _wrap_GSource_time__SWIG_0(self, args);
27387 }
27388 }
27389 if (argc == 2) {
27390 int _v;
27391 void *vptr = 0;
27392 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GSource, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[31
], 0, 0)
;
27393 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27394 if (_v) {
27395 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GTime, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[32], 0, 0
)
;
27396 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
27397 if (_v) {
27398 return _wrap_GSource_time__SWIG_1(self, args);
27399 }
27400 }
27401 }
27402
27403fail:
27404 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GSource_time'.\n"
27405 " Possible C/C++ prototypes are:\n"
27406 " GSource::time() const\n"
27407 " GSource::time(GTime const &)\n");
27408 return 0;
27409}
27410
27411
27412SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GSource_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27413 PyObject *resultobj = 0;
27414 GSource *arg1 = (GSource *) 0 ;
27415 void *argp1 = 0 ;
27416 int res1 = 0 ;
27417 PyObject * obj0 = 0 ;
27418 GSource result;
27419
27420 if (!PyArg_ParseTuple(args,(char *)"O:GSource_copy",&obj0)) SWIG_failgoto fail;
27421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GSource, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[31]
, 0 | 0, 0)
;
27422 if (!SWIG_IsOK(res1)(res1 >= 0)) {
27423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GSource_copy" "', argument " "1"" of type '" "GSource *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GSource_copy" "', argument "
"1"" of type '" "GSource *""'"); goto fail; } while(0)
;
27424 }
27425 arg1 = reinterpret_cast< GSource * >(argp1);
27426 {
27427 try {
27428 result = GSource_copy(arg1);
27429 }
27430 catch (const GException::out_of_range& e) {
27431 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
27432 }
27433 catch (const GExceptionHandler& e) {
27434 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27435 }
27436 catch (const std::exception& e) {
27437 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
27438 }
27439 }
27440 resultobj = SWIG_NewPointerObj((new GSource(static_cast< const GSource& >(result))), SWIGTYPE_p_GSource, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GSource(static_cast<
const GSource& >(result))), swig_types[31], 0x1 | 0)
;
27441 return resultobj;
27442fail:
27443 return NULL__null;
27444}
27445
27446
27447SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GSource_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27448 PyObject *obj;
27449 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
27450 SWIG_TypeNewClientData(SWIGTYPE_p_GSourceswig_types[31], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
27451 return SWIG_Py_Void();
27452}
27453
27454static PyMethodDef SwigMethods[] = {
27455 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
27456 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
27457 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
27458 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
27459 "incr(size_t n=1) -> SwigPyIterator\n"
27460 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
27461 ""},
27462 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
27463 "decr(size_t n=1) -> SwigPyIterator\n"
27464 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
27465 ""},
27466 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
27467 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
27468 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
27469 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
27470 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
27471 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
27472 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
27473 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
27474 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
27475 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
27476 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
27477 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
27478 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
27479 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
27480 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
27481 ""},
27482 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
27483 { (char *)"new_GEnergy", _wrap_new_GEnergy, METH_VARARGS0x0001, (char *)"\n"
27484 "GEnergy()\n"
27485 "GEnergy(GEnergy eng)\n"
27486 "new_GEnergy(double const & eng, std::string const & unit) -> GEnergy\n"
27487 ""},
27488 { (char *)"delete_GEnergy", _wrap_delete_GEnergy, METH_VARARGS0x0001, (char *)"delete_GEnergy(GEnergy self)"},
27489 { (char *)"GEnergy___iadd__", _wrap_GEnergy___iadd__, METH_VARARGS0x0001, (char *)"GEnergy___iadd__(GEnergy self, GEnergy eng) -> GEnergy"},
27490 { (char *)"GEnergy___isub__", _wrap_GEnergy___isub__, METH_VARARGS0x0001, (char *)"GEnergy___isub__(GEnergy self, GEnergy eng) -> GEnergy"},
27491 { (char *)"GEnergy_clear", _wrap_GEnergy_clear, METH_VARARGS0x0001, (char *)"GEnergy_clear(GEnergy self)"},
27492 { (char *)"GEnergy_clone", _wrap_GEnergy_clone, METH_VARARGS0x0001, (char *)"GEnergy_clone(GEnergy self) -> GEnergy"},
27493 { (char *)"GEnergy_erg", _wrap_GEnergy_erg, METH_VARARGS0x0001, (char *)"\n"
27494 "erg() -> double\n"
27495 "GEnergy_erg(GEnergy self, double const & eng)\n"
27496 ""},
27497 { (char *)"GEnergy_keV", _wrap_GEnergy_keV, METH_VARARGS0x0001, (char *)"\n"
27498 "keV() -> double\n"
27499 "GEnergy_keV(GEnergy self, double const & eng)\n"
27500 ""},
27501 { (char *)"GEnergy_MeV", _wrap_GEnergy_MeV, METH_VARARGS0x0001, (char *)"\n"
27502 "MeV() -> double\n"
27503 "GEnergy_MeV(GEnergy self, double const & eng)\n"
27504 ""},
27505 { (char *)"GEnergy_GeV", _wrap_GEnergy_GeV, METH_VARARGS0x0001, (char *)"\n"
27506 "GeV() -> double\n"
27507 "GEnergy_GeV(GEnergy self, double const & eng)\n"
27508 ""},
27509 { (char *)"GEnergy_TeV", _wrap_GEnergy_TeV, METH_VARARGS0x0001, (char *)"\n"
27510 "TeV() -> double\n"
27511 "GEnergy_TeV(GEnergy self, double const & eng)\n"
27512 ""},
27513 { (char *)"GEnergy_log10keV", _wrap_GEnergy_log10keV, METH_VARARGS0x0001, (char *)"\n"
27514 "log10keV() -> double\n"
27515 "GEnergy_log10keV(GEnergy self, double const & eng)\n"
27516 ""},
27517 { (char *)"GEnergy_log10MeV", _wrap_GEnergy_log10MeV, METH_VARARGS0x0001, (char *)"\n"
27518 "log10MeV() -> double\n"
27519 "GEnergy_log10MeV(GEnergy self, double const & eng)\n"
27520 ""},
27521 { (char *)"GEnergy_log10GeV", _wrap_GEnergy_log10GeV, METH_VARARGS0x0001, (char *)"\n"
27522 "log10GeV() -> double\n"
27523 "GEnergy_log10GeV(GEnergy self, double const & eng)\n"
27524 ""},
27525 { (char *)"GEnergy_log10TeV", _wrap_GEnergy_log10TeV, METH_VARARGS0x0001, (char *)"\n"
27526 "log10TeV() -> double\n"
27527 "GEnergy_log10TeV(GEnergy self, double const & eng)\n"
27528 ""},
27529 { (char *)"GEnergy___add__", _wrap_GEnergy___add__, METH_VARARGS0x0001, (char *)"GEnergy___add__(GEnergy self, GEnergy eng) -> GEnergy"},
27530 { (char *)"GEnergy___sub__", _wrap_GEnergy___sub__, METH_VARARGS0x0001, (char *)"GEnergy___sub__(GEnergy self, GEnergy eng) -> GEnergy"},
27531 { (char *)"GEnergy___mul__", _wrap_GEnergy___mul__, METH_VARARGS0x0001, (char *)"GEnergy___mul__(GEnergy self, double const & factor) -> GEnergy"},
27532 { (char *)"GEnergy___div__", _wrap_GEnergy___div__, METH_VARARGS0x0001, (char *)"GEnergy___div__(GEnergy self, double const & factor) -> GEnergy"},
27533 { (char *)"GEnergy___eq__", _wrap_GEnergy___eq__, METH_VARARGS0x0001, (char *)"GEnergy___eq__(GEnergy self, GEnergy eng) -> bool"},
27534 { (char *)"GEnergy___ne__", _wrap_GEnergy___ne__, METH_VARARGS0x0001, (char *)"GEnergy___ne__(GEnergy self, GEnergy eng) -> bool"},
27535 { (char *)"GEnergy___lt__", _wrap_GEnergy___lt__, METH_VARARGS0x0001, (char *)"GEnergy___lt__(GEnergy self, GEnergy eng) -> bool"},
27536 { (char *)"GEnergy___gt__", _wrap_GEnergy___gt__, METH_VARARGS0x0001, (char *)"GEnergy___gt__(GEnergy self, GEnergy eng) -> bool"},
27537 { (char *)"GEnergy___lte__", _wrap_GEnergy___lte__, METH_VARARGS0x0001, (char *)"GEnergy___lte__(GEnergy self, GEnergy eng) -> bool"},
27538 { (char *)"GEnergy___gte__", _wrap_GEnergy___gte__, METH_VARARGS0x0001, (char *)"GEnergy___gte__(GEnergy self, GEnergy eng) -> bool"},
27539 { (char *)"GEnergy_copy", _wrap_GEnergy_copy, METH_VARARGS0x0001, (char *)"GEnergy_copy(GEnergy self) -> GEnergy"},
27540 { (char *)"GEnergy_swigregister", GEnergy_swigregister, METH_VARARGS0x0001, NULL__null},
27541 { (char *)"new_GEnergies", _wrap_new_GEnergies, METH_VARARGS0x0001, (char *)"\n"
27542 "GEnergies()\n"
27543 "GEnergies(std::string const & filename, std::string const & extname=\"ENERGIES\")\n"
27544 "GEnergies(std::string const & filename)\n"
27545 "new_GEnergies(GEnergies energies) -> GEnergies\n"
27546 ""},
27547 { (char *)"delete_GEnergies", _wrap_delete_GEnergies, METH_VARARGS0x0001, (char *)"delete_GEnergies(GEnergies self)"},
27548 { (char *)"GEnergies_clear", _wrap_GEnergies_clear, METH_VARARGS0x0001, (char *)"GEnergies_clear(GEnergies self)"},
27549 { (char *)"GEnergies_clone", _wrap_GEnergies_clone, METH_VARARGS0x0001, (char *)"GEnergies_clone(GEnergies self) -> GEnergies"},
27550 { (char *)"GEnergies_at", _wrap_GEnergies_at, METH_VARARGS0x0001, (char *)"GEnergies_at(GEnergies self, int const & index) -> GEnergy"},
27551 { (char *)"GEnergies_size", _wrap_GEnergies_size, METH_VARARGS0x0001, (char *)"GEnergies_size(GEnergies self) -> int"},
27552 { (char *)"GEnergies_isempty", _wrap_GEnergies_isempty, METH_VARARGS0x0001, (char *)"GEnergies_isempty(GEnergies self) -> bool"},
27553 { (char *)"GEnergies_append", _wrap_GEnergies_append, METH_VARARGS0x0001, (char *)"GEnergies_append(GEnergies self, GEnergy energy) -> GEnergy"},
27554 { (char *)"GEnergies_insert", _wrap_GEnergies_insert, METH_VARARGS0x0001, (char *)"GEnergies_insert(GEnergies self, int const & index, GEnergy energy) -> GEnergy"},
27555 { (char *)"GEnergies_remove", _wrap_GEnergies_remove, METH_VARARGS0x0001, (char *)"GEnergies_remove(GEnergies self, int const & index)"},
27556 { (char *)"GEnergies_reserve", _wrap_GEnergies_reserve, METH_VARARGS0x0001, (char *)"GEnergies_reserve(GEnergies self, int const & num)"},
27557 { (char *)"GEnergies_extend", _wrap_GEnergies_extend, METH_VARARGS0x0001, (char *)"GEnergies_extend(GEnergies self, GEnergies energies)"},
27558 { (char *)"GEnergies_load", _wrap_GEnergies_load, METH_VARARGS0x0001, (char *)"\n"
27559 "load(std::string const & filename, std::string const & extname=\"ENERGIES\")\n"
27560 "GEnergies_load(GEnergies self, std::string const & filename)\n"
27561 ""},
27562 { (char *)"GEnergies_save", _wrap_GEnergies_save, METH_VARARGS0x0001, (char *)"\n"
27563 "save(std::string const & filename, bool const & clobber, std::string const & extname=\"ENERGIES\")\n"
27564 "GEnergies_save(GEnergies self, std::string const & filename, bool const & clobber)\n"
27565 ""},
27566 { (char *)"GEnergies_read", _wrap_GEnergies_read, METH_VARARGS0x0001, (char *)"GEnergies_read(GEnergies self, GFitsTable const & table)"},
27567 { (char *)"GEnergies_write", _wrap_GEnergies_write, METH_VARARGS0x0001, (char *)"\n"
27568 "write(GFits & file, std::string const & extname=\"ENERGIES\")\n"
27569 "GEnergies_write(GEnergies self, GFits & file)\n"
27570 ""},
27571 { (char *)"GEnergies___getitem__", _wrap_GEnergies___getitem__, METH_VARARGS0x0001, (char *)"GEnergies___getitem__(GEnergies self, int const & index) -> GEnergy"},
27572 { (char *)"GEnergies___setitem__", _wrap_GEnergies___setitem__, METH_VARARGS0x0001, (char *)"GEnergies___setitem__(GEnergies self, int const & index, GEnergy val)"},
27573 { (char *)"GEnergies_copy", _wrap_GEnergies_copy, METH_VARARGS0x0001, (char *)"GEnergies_copy(GEnergies self) -> GEnergies"},
27574 { (char *)"GEnergies_swigregister", GEnergies_swigregister, METH_VARARGS0x0001, NULL__null},
27575 { (char *)"new_GTime", _wrap_new_GTime, METH_VARARGS0x0001, (char *)"\n"
27576 "GTime()\n"
27577 "GTime(GTime time)\n"
27578 "GTime(double const & time, std::string const & unit=\"sec\")\n"
27579 "GTime(double const & time)\n"
27580 "new_GTime(double const & time, GTimeReference ref) -> GTime\n"
27581 ""},
27582 { (char *)"delete_GTime", _wrap_delete_GTime, METH_VARARGS0x0001, (char *)"delete_GTime(GTime self)"},
27583 { (char *)"GTime_clear", _wrap_GTime_clear, METH_VARARGS0x0001, (char *)"GTime_clear(GTime self)"},
27584 { (char *)"GTime_clone", _wrap_GTime_clone, METH_VARARGS0x0001, (char *)"GTime_clone(GTime self) -> GTime"},
27585 { (char *)"GTime_convert", _wrap_GTime_convert, METH_VARARGS0x0001, (char *)"GTime_convert(GTime self, GTimeReference ref) -> double"},
27586 { (char *)"GTime_jd", _wrap_GTime_jd, METH_VARARGS0x0001, (char *)"\n"
27587 "jd() -> double\n"
27588 "GTime_jd(GTime self, double const & time)\n"
27589 ""},
27590 { (char *)"GTime_mjd", _wrap_GTime_mjd, METH_VARARGS0x0001, (char *)"\n"
27591 "mjd() -> double\n"
27592 "GTime_mjd(GTime self, double const & time)\n"
27593 ""},
27594 { (char *)"GTime_secs", _wrap_GTime_secs, METH_VARARGS0x0001, (char *)"\n"
27595 "secs() -> double const\n"
27596 "GTime_secs(GTime self, double const & seconds)\n"
27597 ""},
27598 { (char *)"GTime_days", _wrap_GTime_days, METH_VARARGS0x0001, (char *)"\n"
27599 "days() -> double\n"
27600 "GTime_days(GTime self, double const & days)\n"
27601 ""},
27602 { (char *)"GTime_set", _wrap_GTime_set, METH_VARARGS0x0001, (char *)"GTime_set(GTime self, double const & time, GTimeReference ref)"},
27603 { (char *)"GTime_reference", _wrap_GTime_reference, METH_VARARGS0x0001, (char *)"GTime_reference(GTime self) -> GTimeReference"},
27604 { (char *)"GTime___add__", _wrap_GTime___add__, METH_VARARGS0x0001, (char *)"GTime___add__(GTime self, GTime time) -> GTime"},
27605 { (char *)"GTime___sub__", _wrap_GTime___sub__, METH_VARARGS0x0001, (char *)"GTime___sub__(GTime self, GTime time) -> GTime"},
27606 { (char *)"GTime___mul__", _wrap_GTime___mul__, METH_VARARGS0x0001, (char *)"GTime___mul__(GTime self, double const & factor) -> GTime"},
27607 { (char *)"GTime___div__", _wrap_GTime___div__, METH_VARARGS0x0001, (char *)"GTime___div__(GTime self, double const & factor) -> GTime"},
27608 { (char *)"GTime___eq__", _wrap_GTime___eq__, METH_VARARGS0x0001, (char *)"GTime___eq__(GTime self, GTime time) -> bool"},
27609 { (char *)"GTime___ne__", _wrap_GTime___ne__, METH_VARARGS0x0001, (char *)"GTime___ne__(GTime self, GTime time) -> bool"},
27610 { (char *)"GTime___lt__", _wrap_GTime___lt__, METH_VARARGS0x0001, (char *)"GTime___lt__(GTime self, GTime time) -> bool"},
27611 { (char *)"GTime___gt__", _wrap_GTime___gt__, METH_VARARGS0x0001, (char *)"GTime___gt__(GTime self, GTime time) -> bool"},
27612 { (char *)"GTime___lte__", _wrap_GTime___lte__, METH_VARARGS0x0001, (char *)"GTime___lte__(GTime self, GTime time) -> bool"},
27613 { (char *)"GTime___gte__", _wrap_GTime___gte__, METH_VARARGS0x0001, (char *)"GTime___gte__(GTime self, GTime time) -> bool"},
27614 { (char *)"GTime_copy", _wrap_GTime_copy, METH_VARARGS0x0001, (char *)"GTime_copy(GTime self) -> GTime"},
27615 { (char *)"GTime_swigregister", GTime_swigregister, METH_VARARGS0x0001, NULL__null},
27616 { (char *)"new_GTimes", _wrap_new_GTimes, METH_VARARGS0x0001, (char *)"\n"
27617 "GTimes()\n"
27618 "new_GTimes(GTimes times) -> GTimes\n"
27619 ""},
27620 { (char *)"delete_GTimes", _wrap_delete_GTimes, METH_VARARGS0x0001, (char *)"delete_GTimes(GTimes self)"},
27621 { (char *)"GTimes_clear", _wrap_GTimes_clear, METH_VARARGS0x0001, (char *)"GTimes_clear(GTimes self)"},
27622 { (char *)"GTimes_clone", _wrap_GTimes_clone, METH_VARARGS0x0001, (char *)"GTimes_clone(GTimes self) -> GTimes"},
27623 { (char *)"GTimes_size", _wrap_GTimes_size, METH_VARARGS0x0001, (char *)"GTimes_size(GTimes self) -> int"},
27624 { (char *)"GTimes_isempty", _wrap_GTimes_isempty, METH_VARARGS0x0001, (char *)"GTimes_isempty(GTimes self) -> bool"},
27625 { (char *)"GTimes_append", _wrap_GTimes_append, METH_VARARGS0x0001, (char *)"GTimes_append(GTimes self, GTime time)"},
27626 { (char *)"GTimes_insert", _wrap_GTimes_insert, METH_VARARGS0x0001, (char *)"GTimes_insert(GTimes self, int const & index, GTime time)"},
27627 { (char *)"GTimes_remove", _wrap_GTimes_remove, METH_VARARGS0x0001, (char *)"GTimes_remove(GTimes self, int const & index)"},
27628 { (char *)"GTimes_reserve", _wrap_GTimes_reserve, METH_VARARGS0x0001, (char *)"GTimes_reserve(GTimes self, int const & num)"},
27629 { (char *)"GTimes_extend", _wrap_GTimes_extend, METH_VARARGS0x0001, (char *)"GTimes_extend(GTimes self, GTimes times)"},
27630 { (char *)"GTimes___getitem__", _wrap_GTimes___getitem__, METH_VARARGS0x0001, (char *)"GTimes___getitem__(GTimes self, int const & index) -> GTime"},
27631 { (char *)"GTimes___setitem__", _wrap_GTimes___setitem__, METH_VARARGS0x0001, (char *)"GTimes___setitem__(GTimes self, int const & index, GTime val)"},
27632 { (char *)"GTimes_copy", _wrap_GTimes_copy, METH_VARARGS0x0001, (char *)"GTimes_copy(GTimes self) -> GTimes"},
27633 { (char *)"GTimes_swigregister", GTimes_swigregister, METH_VARARGS0x0001, NULL__null},
27634 { (char *)"new_GTimeReference", _wrap_new_GTimeReference, METH_VARARGS0x0001, (char *)"\n"
27635 "GTimeReference()\n"
27636 "GTimeReference(GTimeReference ref)\n"
27637 "GTimeReference(double const & mrdref, std::string const & timeunit, std::string const & timesys=\"TT\", \n"
27638 " std::string const & timeref=\"local\")\n"
27639 "GTimeReference(double const & mrdref, std::string const & timeunit, std::string const & timesys=\"TT\")\n"
27640 "GTimeReference(double const & mrdref, std::string const & timeunit)\n"
27641 "GTimeReference(int const & mjdrefi, double const & mrdreff, std::string const & timeunit, std::string const & timesys=\"TT\", \n"
27642 " std::string const & timeref=\"local\")\n"
27643 "GTimeReference(int const & mjdrefi, double const & mrdreff, std::string const & timeunit, std::string const & timesys=\"TT\")\n"
27644 "GTimeReference(int const & mjdrefi, double const & mrdreff, std::string const & timeunit)\n"
27645 "new_GTimeReference(GFitsHDU const & hdu) -> GTimeReference\n"
27646 ""},
27647 { (char *)"delete_GTimeReference", _wrap_delete_GTimeReference, METH_VARARGS0x0001, (char *)"delete_GTimeReference(GTimeReference self)"},
27648 { (char *)"GTimeReference_clear", _wrap_GTimeReference_clear, METH_VARARGS0x0001, (char *)"GTimeReference_clear(GTimeReference self)"},
27649 { (char *)"GTimeReference_clone", _wrap_GTimeReference_clone, METH_VARARGS0x0001, (char *)"GTimeReference_clone(GTimeReference self) -> GTimeReference"},
27650 { (char *)"GTimeReference_read", _wrap_GTimeReference_read, METH_VARARGS0x0001, (char *)"GTimeReference_read(GTimeReference self, GFitsHDU const & hdu)"},
27651 { (char *)"GTimeReference_write", _wrap_GTimeReference_write, METH_VARARGS0x0001, (char *)"GTimeReference_write(GTimeReference self, GFitsHDU & hdu)"},
27652 { (char *)"GTimeReference_set", _wrap_GTimeReference_set, METH_VARARGS0x0001, (char *)"\n"
27653 "set(double const & mrdref, std::string const & timeunit, std::string const & timesys=\"TT\", \n"
27654 " std::string const & timeref=\"local\")\n"
27655 "set(double const & mrdref, std::string const & timeunit, std::string const & timesys=\"TT\")\n"
27656 "set(double const & mrdref, std::string const & timeunit)\n"
27657 "set(int const & mjdrefi, double const & mjdreff, std::string const & timeunit, std::string const & timesys=\"TT\", \n"
27658 " std::string const & timeref=\"local\")\n"
27659 "set(int const & mjdrefi, double const & mjdreff, std::string const & timeunit, std::string const & timesys=\"TT\")\n"
27660 "GTimeReference_set(GTimeReference self, int const & mjdrefi, double const & mjdreff, std::string const & timeunit)\n"
27661 ""},
27662 { (char *)"GTimeReference_mjdref", _wrap_GTimeReference_mjdref, METH_VARARGS0x0001, (char *)"GTimeReference_mjdref(GTimeReference self) -> double const &"},
27663 { (char *)"GTimeReference_mjdrefi", _wrap_GTimeReference_mjdrefi, METH_VARARGS0x0001, (char *)"GTimeReference_mjdrefi(GTimeReference self) -> int"},
27664 { (char *)"GTimeReference_mjdreff", _wrap_GTimeReference_mjdreff, METH_VARARGS0x0001, (char *)"GTimeReference_mjdreff(GTimeReference self) -> double"},
27665 { (char *)"GTimeReference_timeunit", _wrap_GTimeReference_timeunit, METH_VARARGS0x0001, (char *)"GTimeReference_timeunit(GTimeReference self) -> std::string const &"},
27666 { (char *)"GTimeReference_timesys", _wrap_GTimeReference_timesys, METH_VARARGS0x0001, (char *)"GTimeReference_timesys(GTimeReference self) -> std::string const &"},
27667 { (char *)"GTimeReference_timeref", _wrap_GTimeReference_timeref, METH_VARARGS0x0001, (char *)"GTimeReference_timeref(GTimeReference self) -> std::string const &"},
27668 { (char *)"GTimeReference_unitseconds", _wrap_GTimeReference_unitseconds, METH_VARARGS0x0001, (char *)"GTimeReference_unitseconds(GTimeReference self) -> double"},
27669 { (char *)"GTimeReference_copy", _wrap_GTimeReference_copy, METH_VARARGS0x0001, (char *)"GTimeReference_copy(GTimeReference self) -> GTimeReference"},
27670 { (char *)"GTimeReference_swigregister", GTimeReference_swigregister, METH_VARARGS0x0001, NULL__null},
27671 { (char *)"new_GEbounds", _wrap_new_GEbounds, METH_VARARGS0x0001, (char *)"\n"
27672 "GEbounds()\n"
27673 "GEbounds(GEbounds ebds)\n"
27674 "GEbounds(int const & num, GEnergy emin, GEnergy emax, bool const & log=True)\n"
27675 "GEbounds(int const & num, GEnergy emin, GEnergy emax)\n"
27676 "new_GEbounds(std::string const & filename, std::string const & extname) -> GEbounds\n"
27677 ""},
27678 { (char *)"delete_GEbounds", _wrap_delete_GEbounds, METH_VARARGS0x0001, (char *)"delete_GEbounds(GEbounds self)"},
27679 { (char *)"GEbounds_clear", _wrap_GEbounds_clear, METH_VARARGS0x0001, (char *)"GEbounds_clear(GEbounds self)"},
27680 { (char *)"GEbounds_clone", _wrap_GEbounds_clone, METH_VARARGS0x0001, (char *)"GEbounds_clone(GEbounds self) -> GEbounds"},
27681 { (char *)"GEbounds_size", _wrap_GEbounds_size, METH_VARARGS0x0001, (char *)"GEbounds_size(GEbounds self) -> int"},
27682 { (char *)"GEbounds_isempty", _wrap_GEbounds_isempty, METH_VARARGS0x0001, (char *)"GEbounds_isempty(GEbounds self) -> bool"},
27683 { (char *)"GEbounds_append", _wrap_GEbounds_append, METH_VARARGS0x0001, (char *)"GEbounds_append(GEbounds self, GEnergy emin, GEnergy emax)"},
27684 { (char *)"GEbounds_insert", _wrap_GEbounds_insert, METH_VARARGS0x0001, (char *)"GEbounds_insert(GEbounds self, GEnergy emin, GEnergy emax)"},
27685 { (char *)"GEbounds_merge", _wrap_GEbounds_merge, METH_VARARGS0x0001, (char *)"\n"
27686 "merge()\n"
27687 "GEbounds_merge(GEbounds self, GEnergy emin, GEnergy emax)\n"
27688 ""},
27689 { (char *)"GEbounds_remove", _wrap_GEbounds_remove, METH_VARARGS0x0001, (char *)"GEbounds_remove(GEbounds self, int const & index)"},
27690 { (char *)"GEbounds_reserve", _wrap_GEbounds_reserve, METH_VARARGS0x0001, (char *)"GEbounds_reserve(GEbounds self, int const & num)"},
27691 { (char *)"GEbounds_extend", _wrap_GEbounds_extend, METH_VARARGS0x0001, (char *)"GEbounds_extend(GEbounds self, GEbounds ebds)"},
27692 { (char *)"GEbounds_setlin", _wrap_GEbounds_setlin, METH_VARARGS0x0001, (char *)"GEbounds_setlin(GEbounds self, int const & num, GEnergy emin, GEnergy emax)"},
27693 { (char *)"GEbounds_setlog", _wrap_GEbounds_setlog, METH_VARARGS0x0001, (char *)"GEbounds_setlog(GEbounds self, int const & num, GEnergy emin, GEnergy emax)"},
27694 { (char *)"GEbounds_load", _wrap_GEbounds_load, METH_VARARGS0x0001, (char *)"\n"
27695 "load(std::string const & filename, std::string const & extname=\"EBOUNDS\")\n"
27696 "GEbounds_load(GEbounds self, std::string const & filename)\n"
27697 ""},
27698 { (char *)"GEbounds_save", _wrap_GEbounds_save, METH_VARARGS0x0001, (char *)"\n"
27699 "save(std::string const & filename, bool const & clobber=False, std::string const & extname=\"EBOUNDS\")\n"
27700 "save(std::string const & filename, bool const & clobber=False)\n"
27701 "GEbounds_save(GEbounds self, std::string const & filename)\n"
27702 ""},
27703 { (char *)"GEbounds_read", _wrap_GEbounds_read, METH_VARARGS0x0001, (char *)"GEbounds_read(GEbounds self, GFitsTable const & table)"},
27704 { (char *)"GEbounds_write", _wrap_GEbounds_write, METH_VARARGS0x0001, (char *)"\n"
27705 "write(GFits & file, std::string const & extname=\"EBOUNDS\")\n"
27706 "GEbounds_write(GEbounds self, GFits & file)\n"
27707 ""},
27708 { (char *)"GEbounds_index", _wrap_GEbounds_index, METH_VARARGS0x0001, (char *)"GEbounds_index(GEbounds self, GEnergy eng) -> int"},
27709 { (char *)"GEbounds_emin", _wrap_GEbounds_emin, METH_VARARGS0x0001, (char *)"\n"
27710 "emin() -> GEnergy\n"
27711 "GEbounds_emin(GEbounds self, int const & index) -> GEnergy\n"
27712 ""},
27713 { (char *)"GEbounds_emax", _wrap_GEbounds_emax, METH_VARARGS0x0001, (char *)"\n"
27714 "emax() -> GEnergy\n"
27715 "GEbounds_emax(GEbounds self, int const & index) -> GEnergy\n"
27716 ""},
27717 { (char *)"GEbounds_emean", _wrap_GEbounds_emean, METH_VARARGS0x0001, (char *)"GEbounds_emean(GEbounds self, int const & index) -> GEnergy"},
27718 { (char *)"GEbounds_elogmean", _wrap_GEbounds_elogmean, METH_VARARGS0x0001, (char *)"GEbounds_elogmean(GEbounds self, int const & index) -> GEnergy"},
27719 { (char *)"GEbounds_ewidth", _wrap_GEbounds_ewidth, METH_VARARGS0x0001, (char *)"GEbounds_ewidth(GEbounds self, int const & index) -> GEnergy"},
27720 { (char *)"GEbounds_contains", _wrap_GEbounds_contains, METH_VARARGS0x0001, (char *)"GEbounds_contains(GEbounds self, GEnergy eng) -> bool"},
27721 { (char *)"GEbounds_copy", _wrap_GEbounds_copy, METH_VARARGS0x0001, (char *)"GEbounds_copy(GEbounds self) -> GEbounds"},
27722 { (char *)"GEbounds_swigregister", GEbounds_swigregister, METH_VARARGS0x0001, NULL__null},
27723 { (char *)"new_GGti", _wrap_new_GGti, METH_VARARGS0x0001, (char *)"\n"
27724 "GGti()\n"
27725 "GGti(GGti gti)\n"
27726 "new_GGti(GTimeReference ref) -> GGti\n"
27727 ""},
27728 { (char *)"delete_GGti", _wrap_delete_GGti, METH_VARARGS0x0001, (char *)"delete_GGti(GGti self)"},
27729 { (char *)"GGti_clear", _wrap_GGti_clear, METH_VARARGS0x0001, (char *)"GGti_clear(GGti self)"},
27730 { (char *)"GGti_clone", _wrap_GGti_clone, METH_VARARGS0x0001, (char *)"GGti_clone(GGti self) -> GGti"},
27731 { (char *)"GGti_size", _wrap_GGti_size, METH_VARARGS0x0001, (char *)"GGti_size(GGti self) -> int"},
27732 { (char *)"GGti_isempty", _wrap_GGti_isempty, METH_VARARGS0x0001, (char *)"GGti_isempty(GGti self) -> bool"},
27733 { (char *)"GGti_append", _wrap_GGti_append, METH_VARARGS0x0001, (char *)"GGti_append(GGti self, GTime tstart, GTime tstop)"},
27734 { (char *)"GGti_insert", _wrap_GGti_insert, METH_VARARGS0x0001, (char *)"GGti_insert(GGti self, GTime tstart, GTime tstop)"},
27735 { (char *)"GGti_merge", _wrap_GGti_merge, METH_VARARGS0x0001, (char *)"\n"
27736 "merge()\n"
27737 "GGti_merge(GGti self, GTime tstart, GTime tstop)\n"
27738 ""},
27739 { (char *)"GGti_reduce", _wrap_GGti_reduce, METH_VARARGS0x0001, (char *)"GGti_reduce(GGti self, GTime tstart, GTime tstop)"},
27740 { (char *)"GGti_remove", _wrap_GGti_remove, METH_VARARGS0x0001, (char *)"GGti_remove(GGti self, int const & index)"},
27741 { (char *)"GGti_reserve", _wrap_GGti_reserve, METH_VARARGS0x0001, (char *)"GGti_reserve(GGti self, int const & num)"},
27742 { (char *)"GGti_extend", _wrap_GGti_extend, METH_VARARGS0x0001, (char *)"GGti_extend(GGti self, GGti gti)"},
27743 { (char *)"GGti_load", _wrap_GGti_load, METH_VARARGS0x0001, (char *)"\n"
27744 "load(std::string const & filename, std::string const & extname=\"GTI\")\n"
27745 "GGti_load(GGti self, std::string const & filename)\n"
27746 ""},
27747 { (char *)"GGti_save", _wrap_GGti_save, METH_VARARGS0x0001, (char *)"\n"
27748 "save(std::string const & filename, bool const & clobber=False, std::string const & extname=\"GTI\")\n"
27749 "save(std::string const & filename, bool const & clobber=False)\n"
27750 "GGti_save(GGti self, std::string const & filename)\n"
27751 ""},
27752 { (char *)"GGti_read", _wrap_GGti_read, METH_VARARGS0x0001, (char *)"GGti_read(GGti self, GFitsTable const & table)"},
27753 { (char *)"GGti_write", _wrap_GGti_write, METH_VARARGS0x0001, (char *)"\n"
27754 "write(GFits & file, std::string const & extname=\"GTI\")\n"
27755 "GGti_write(GGti self, GFits & file)\n"
27756 ""},
27757 { (char *)"GGti_tstart", _wrap_GGti_tstart, METH_VARARGS0x0001, (char *)"\n"
27758 "tstart() -> GTime\n"
27759 "GGti_tstart(GGti self, int const & index) -> GTime\n"
27760 ""},
27761 { (char *)"GGti_tstop", _wrap_GGti_tstop, METH_VARARGS0x0001, (char *)"\n"
27762 "tstop() -> GTime\n"
27763 "GGti_tstop(GGti self, int const & index) -> GTime\n"
27764 ""},
27765 { (char *)"GGti_telapse", _wrap_GGti_telapse, METH_VARARGS0x0001, (char *)"GGti_telapse(GGti self) -> double const &"},
27766 { (char *)"GGti_ontime", _wrap_GGti_ontime, METH_VARARGS0x0001, (char *)"GGti_ontime(GGti self) -> double const &"},
27767 { (char *)"GGti_reference", _wrap_GGti_reference, METH_VARARGS0x0001, (char *)"\n"
27768 "reference(GTimeReference ref)\n"
27769 "GGti_reference(GGti self) -> GTimeReference\n"
27770 ""},
27771 { (char *)"GGti_contains", _wrap_GGti_contains, METH_VARARGS0x0001, (char *)"GGti_contains(GGti self, GTime time) -> bool"},
27772 { (char *)"GGti___len__", _wrap_GGti___len__, METH_VARARGS0x0001, (char *)"GGti___len__(GGti self) -> int"},
27773 { (char *)"GGti_copy", _wrap_GGti_copy, METH_VARARGS0x0001, (char *)"GGti_copy(GGti self) -> GGti"},
27774 { (char *)"GGti_swigregister", GGti_swigregister, METH_VARARGS0x0001, NULL__null},
27775 { (char *)"new_GCaldb", _wrap_new_GCaldb, METH_VARARGS0x0001, (char *)"\n"
27776 "GCaldb()\n"
27777 "GCaldb(GCaldb caldb)\n"
27778 "new_GCaldb(std::string const & pathname) -> GCaldb\n"
27779 ""},
27780 { (char *)"delete_GCaldb", _wrap_delete_GCaldb, METH_VARARGS0x0001, (char *)"delete_GCaldb(GCaldb self)"},
27781 { (char *)"GCaldb_clear", _wrap_GCaldb_clear, METH_VARARGS0x0001, (char *)"GCaldb_clear(GCaldb self)"},
27782 { (char *)"GCaldb_clone", _wrap_GCaldb_clone, METH_VARARGS0x0001, (char *)"GCaldb_clone(GCaldb self) -> GCaldb"},
27783 { (char *)"GCaldb_size", _wrap_GCaldb_size, METH_VARARGS0x0001, (char *)"GCaldb_size(GCaldb self) -> int"},
27784 { (char *)"GCaldb_dir", _wrap_GCaldb_dir, METH_VARARGS0x0001, (char *)"\n"
27785 "dir() -> std::string const\n"
27786 "GCaldb_dir(GCaldb self, std::string const & pathname)\n"
27787 ""},
27788 { (char *)"GCaldb_open", _wrap_GCaldb_open, METH_VARARGS0x0001, (char *)"\n"
27789 "open(std::string const & mission, std::string const & instrument=\"\")\n"
27790 "GCaldb_open(GCaldb self, std::string const & mission)\n"
27791 ""},
27792 { (char *)"GCaldb_close", _wrap_GCaldb_close, METH_VARARGS0x0001, (char *)"GCaldb_close(GCaldb self)"},
27793 { (char *)"GCaldb_copy", _wrap_GCaldb_copy, METH_VARARGS0x0001, (char *)"GCaldb_copy(GCaldb self) -> GCaldb"},
27794 { (char *)"GCaldb_swigregister", GCaldb_swigregister, METH_VARARGS0x0001, NULL__null},
27795 { (char *)"new_GObservations", _wrap_new_GObservations, METH_VARARGS0x0001, (char *)"\n"
27796 "GObservations()\n"
27797 "GObservations(GObservations obs)\n"
27798 "new_GObservations(std::string const & filename) -> GObservations\n"
27799 ""},
27800 { (char *)"delete_GObservations", _wrap_delete_GObservations, METH_VARARGS0x0001, (char *)"delete_GObservations(GObservations self)"},
27801 { (char *)"GObservations_clear", _wrap_GObservations_clear, METH_VARARGS0x0001, (char *)"GObservations_clear(GObservations self)"},
27802 { (char *)"GObservations_clone", _wrap_GObservations_clone, METH_VARARGS0x0001, (char *)"GObservations_clone(GObservations self) -> GObservations"},
27803 { (char *)"GObservations_size", _wrap_GObservations_size, METH_VARARGS0x0001, (char *)"GObservations_size(GObservations self) -> int"},
27804 { (char *)"GObservations_isempty", _wrap_GObservations_isempty, METH_VARARGS0x0001, (char *)"GObservations_isempty(GObservations self) -> bool"},
27805 { (char *)"GObservations_set", _wrap_GObservations_set, METH_VARARGS0x0001, (char *)"GObservations_set(GObservations self, int const & index, GObservation obs) -> GObservation"},
27806 { (char *)"GObservations_append", _wrap_GObservations_append, METH_VARARGS0x0001, (char *)"GObservations_append(GObservations self, GObservation obs) -> GObservation"},
27807 { (char *)"GObservations_insert", _wrap_GObservations_insert, METH_VARARGS0x0001, (char *)"GObservations_insert(GObservations self, int const & index, GObservation obs) -> GObservation"},
27808 { (char *)"GObservations_remove", _wrap_GObservations_remove, METH_VARARGS0x0001, (char *)"GObservations_remove(GObservations self, int const & index)"},
27809 { (char *)"GObservations_reserve", _wrap_GObservations_reserve, METH_VARARGS0x0001, (char *)"GObservations_reserve(GObservations self, int const & num)"},
27810 { (char *)"GObservations_extend", _wrap_GObservations_extend, METH_VARARGS0x0001, (char *)"GObservations_extend(GObservations self, GObservations obs)"},
27811 { (char *)"GObservations_contains", _wrap_GObservations_contains, METH_VARARGS0x0001, (char *)"GObservations_contains(GObservations self, std::string const & instrument, std::string const & id) -> bool"},
27812 { (char *)"GObservations_load", _wrap_GObservations_load, METH_VARARGS0x0001, (char *)"GObservations_load(GObservations self, std::string const & filename)"},
27813 { (char *)"GObservations_save", _wrap_GObservations_save, METH_VARARGS0x0001, (char *)"GObservations_save(GObservations self, std::string const & filename)"},
27814 { (char *)"GObservations_read", _wrap_GObservations_read, METH_VARARGS0x0001, (char *)"GObservations_read(GObservations self, GXml const & xml)"},
27815 { (char *)"GObservations_write", _wrap_GObservations_write, METH_VARARGS0x0001, (char *)"GObservations_write(GObservations self, GXml & xml)"},
27816 { (char *)"GObservations_models", _wrap_GObservations_models, METH_VARARGS0x0001, (char *)"\n"
27817 "models(GModels const & models)\n"
27818 "models(std::string const & filename)\n"
27819 "GObservations_models(GObservations self) -> GModels const &\n"
27820 ""},
27821 { (char *)"GObservations_optimize", _wrap_GObservations_optimize, METH_VARARGS0x0001, (char *)"GObservations_optimize(GObservations self, GOptimizer & opt)"},
27822 { (char *)"GObservations_npred", _wrap_GObservations_npred, METH_VARARGS0x0001, (char *)"GObservations_npred(GObservations self) -> double"},
27823 { (char *)"GObservations_function", _wrap_GObservations_function, METH_VARARGS0x0001, (char *)"GObservations_function(GObservations self) -> GObservations::likelihood const &"},
27824 { (char *)"GObservations___getitem__", _wrap_GObservations___getitem__, METH_VARARGS0x0001, (char *)"GObservations___getitem__(GObservations self, int const & index) -> GObservation"},
27825 { (char *)"GObservations___setitem__", _wrap_GObservations___setitem__, METH_VARARGS0x0001, (char *)"GObservations___setitem__(GObservations self, int const & index, GObservation val)"},
27826 { (char *)"GObservations_copy", _wrap_GObservations_copy, METH_VARARGS0x0001, (char *)"GObservations_copy(GObservations self) -> GObservations"},
27827 { (char *)"GObservations_swigregister", GObservations_swigregister, METH_VARARGS0x0001, NULL__null},
27828 { (char *)"delete_GObservation", _wrap_delete_GObservation, METH_VARARGS0x0001, (char *)"delete_GObservation(GObservation self)"},
27829 { (char *)"GObservation_clear", _wrap_GObservation_clear, METH_VARARGS0x0001, (char *)"GObservation_clear(GObservation self)"},
27830 { (char *)"GObservation_clone", _wrap_GObservation_clone, METH_VARARGS0x0001, (char *)"GObservation_clone(GObservation self) -> GObservation"},
27831 { (char *)"GObservation_response", _wrap_GObservation_response, METH_VARARGS0x0001, (char *)"\n"
27832 "response(GResponse rsp)\n"
27833 "GObservation_response(GObservation self) -> GResponse\n"
27834 ""},
27835 { (char *)"GObservation_instrument", _wrap_GObservation_instrument, METH_VARARGS0x0001, (char *)"GObservation_instrument(GObservation self) -> std::string"},
27836 { (char *)"GObservation_ontime", _wrap_GObservation_ontime, METH_VARARGS0x0001, (char *)"GObservation_ontime(GObservation self) -> double"},
27837 { (char *)"GObservation_livetime", _wrap_GObservation_livetime, METH_VARARGS0x0001, (char *)"GObservation_livetime(GObservation self) -> double"},
27838 { (char *)"GObservation_deadc", _wrap_GObservation_deadc, METH_VARARGS0x0001, (char *)"GObservation_deadc(GObservation self, GTime time) -> double"},
27839 { (char *)"GObservation_read", _wrap_GObservation_read, METH_VARARGS0x0001, (char *)"GObservation_read(GObservation self, GXmlElement const & xml)"},
27840 { (char *)"GObservation_write", _wrap_GObservation_write, METH_VARARGS0x0001, (char *)"GObservation_write(GObservation self, GXmlElement & xml)"},
27841 { (char *)"GObservation_name", _wrap_GObservation_name, METH_VARARGS0x0001, (char *)"\n"
27842 "name(std::string const & name)\n"
27843 "GObservation_name(GObservation self) -> std::string const &\n"
27844 ""},
27845 { (char *)"GObservation_id", _wrap_GObservation_id, METH_VARARGS0x0001, (char *)"\n"
27846 "id(std::string const & id)\n"
27847 "GObservation_id(GObservation self) -> std::string const &\n"
27848 ""},
27849 { (char *)"GObservation_events", _wrap_GObservation_events, METH_VARARGS0x0001, (char *)"\n"
27850 "events(GEvents events)\n"
27851 "GObservation_events(GObservation self) -> GEvents\n"
27852 ""},
27853 { (char *)"GObservation_statistics", _wrap_GObservation_statistics, METH_VARARGS0x0001, (char *)"\n"
27854 "statistics(std::string const & statistics)\n"
27855 "GObservation_statistics(GObservation self) -> std::string const &\n"
27856 ""},
27857 { (char *)"GObservation_model", _wrap_GObservation_model, METH_VARARGS0x0001, (char *)"\n"
27858 "model(GModels const & models, GEvent event, GVector * gradient=None) -> double\n"
27859 "GObservation_model(GObservation self, GModels const & models, GEvent event) -> double\n"
27860 ""},
27861 { (char *)"GObservation_npred", _wrap_GObservation_npred, METH_VARARGS0x0001, (char *)"\n"
27862 "npred(GModels const & models, GVector * gradient=None) -> double\n"
27863 "GObservation_npred(GObservation self, GModels const & models) -> double\n"
27864 ""},
27865 { (char *)"GObservation_model_grad", _wrap_GObservation_model_grad, METH_VARARGS0x0001, (char *)"GObservation_model_grad(GObservation self, GModel const & model, GEvent event, int const & ipar) -> double"},
27866 { (char *)"GObservation_npred_grad", _wrap_GObservation_npred_grad, METH_VARARGS0x0001, (char *)"GObservation_npred_grad(GObservation self, GModel const & model, int const & ipar) -> double"},
27867 { (char *)"GObservation_swigregister", GObservation_swigregister, METH_VARARGS0x0001, NULL__null},
27868 { (char *)"new_GObservationRegistry", _wrap_new_GObservationRegistry, METH_VARARGS0x0001, (char *)"\n"
27869 "GObservationRegistry()\n"
27870 "GObservationRegistry(GObservation obs)\n"
27871 "new_GObservationRegistry(GObservationRegistry registry) -> GObservationRegistry\n"
27872 ""},
27873 { (char *)"delete_GObservationRegistry", _wrap_delete_GObservationRegistry, METH_VARARGS0x0001, (char *)"delete_GObservationRegistry(GObservationRegistry self)"},
27874 { (char *)"GObservationRegistry_size", _wrap_GObservationRegistry_size, METH_VARARGS0x0001, (char *)"GObservationRegistry_size(GObservationRegistry self) -> int"},
27875 { (char *)"GObservationRegistry_alloc", _wrap_GObservationRegistry_alloc, METH_VARARGS0x0001, (char *)"GObservationRegistry_alloc(GObservationRegistry self, std::string const & name) -> GObservation"},
27876 { (char *)"GObservationRegistry_name", _wrap_GObservationRegistry_name, METH_VARARGS0x0001, (char *)"GObservationRegistry_name(GObservationRegistry self, int const & index) -> std::string"},
27877 { (char *)"GObservationRegistry_swigregister", GObservationRegistry_swigregister, METH_VARARGS0x0001, NULL__null},
27878 { (char *)"delete_GEvents", _wrap_delete_GEvents, METH_VARARGS0x0001, (char *)"delete_GEvents(GEvents self)"},
27879 { (char *)"GEvents_clear", _wrap_GEvents_clear, METH_VARARGS0x0001, (char *)"GEvents_clear(GEvents self)"},
27880 { (char *)"GEvents_clone", _wrap_GEvents_clone, METH_VARARGS0x0001, (char *)"GEvents_clone(GEvents self) -> GEvents"},
27881 { (char *)"GEvents_size", _wrap_GEvents_size, METH_VARARGS0x0001, (char *)"GEvents_size(GEvents self) -> int"},
27882 { (char *)"GEvents_load", _wrap_GEvents_load, METH_VARARGS0x0001, (char *)"GEvents_load(GEvents self, std::string const & filename)"},
27883 { (char *)"GEvents_save", _wrap_GEvents_save, METH_VARARGS0x0001, (char *)"\n"
27884 "save(std::string const & filename, bool const & clobber=False)\n"
27885 "GEvents_save(GEvents self, std::string const & filename)\n"
27886 ""},
27887 { (char *)"GEvents_read", _wrap_GEvents_read, METH_VARARGS0x0001, (char *)"GEvents_read(GEvents self, GFits const & file)"},
27888 { (char *)"GEvents_write", _wrap_GEvents_write, METH_VARARGS0x0001, (char *)"GEvents_write(GEvents self, GFits & file)"},
27889 { (char *)"GEvents_number", _wrap_GEvents_number, METH_VARARGS0x0001, (char *)"GEvents_number(GEvents self) -> int"},
27890 { (char *)"GEvents_ebounds", _wrap_GEvents_ebounds, METH_VARARGS0x0001, (char *)"\n"
27891 "ebounds(GEbounds ebounds)\n"
27892 "GEvents_ebounds(GEvents self) -> GEbounds\n"
27893 ""},
27894 { (char *)"GEvents_gti", _wrap_GEvents_gti, METH_VARARGS0x0001, (char *)"\n"
27895 "gti(GGti gti)\n"
27896 "GEvents_gti(GEvents self) -> GGti\n"
27897 ""},
27898 { (char *)"GEvents_tstart", _wrap_GEvents_tstart, METH_VARARGS0x0001, (char *)"GEvents_tstart(GEvents self) -> GTime"},
27899 { (char *)"GEvents_tstop", _wrap_GEvents_tstop, METH_VARARGS0x0001, (char *)"GEvents_tstop(GEvents self) -> GTime"},
27900 { (char *)"GEvents_emin", _wrap_GEvents_emin, METH_VARARGS0x0001, (char *)"GEvents_emin(GEvents self) -> GEnergy"},
27901 { (char *)"GEvents_emax", _wrap_GEvents_emax, METH_VARARGS0x0001, (char *)"GEvents_emax(GEvents self) -> GEnergy"},
27902 { (char *)"GEvents___getitem__", _wrap_GEvents___getitem__, METH_VARARGS0x0001, (char *)"GEvents___getitem__(GEvents self, int index) -> GEvent"},
27903 { (char *)"GEvents___setitem__", _wrap_GEvents___setitem__, METH_VARARGS0x0001, (char *)"GEvents___setitem__(GEvents self, int index, GEvent event)"},
27904 { (char *)"GEvents_swigregister", GEvents_swigregister, METH_VARARGS0x0001, NULL__null},
27905 { (char *)"delete_GEventList", _wrap_delete_GEventList, METH_VARARGS0x0001, (char *)"delete_GEventList(GEventList self)"},
27906 { (char *)"GEventList_clear", _wrap_GEventList_clear, METH_VARARGS0x0001, (char *)"GEventList_clear(GEventList self)"},
27907 { (char *)"GEventList_clone", _wrap_GEventList_clone, METH_VARARGS0x0001, (char *)"GEventList_clone(GEventList self) -> GEventList"},
27908 { (char *)"GEventList_size", _wrap_GEventList_size, METH_VARARGS0x0001, (char *)"GEventList_size(GEventList self) -> int"},
27909 { (char *)"GEventList_load", _wrap_GEventList_load, METH_VARARGS0x0001, (char *)"GEventList_load(GEventList self, std::string const & filename)"},
27910 { (char *)"GEventList_save", _wrap_GEventList_save, METH_VARARGS0x0001, (char *)"\n"
27911 "save(std::string const & filename, bool const & clobber=False)\n"
27912 "GEventList_save(GEventList self, std::string const & filename)\n"
27913 ""},
27914 { (char *)"GEventList_read", _wrap_GEventList_read, METH_VARARGS0x0001, (char *)"GEventList_read(GEventList self, GFits const & file)"},
27915 { (char *)"GEventList_write", _wrap_GEventList_write, METH_VARARGS0x0001, (char *)"GEventList_write(GEventList self, GFits & file)"},
27916 { (char *)"GEventList_number", _wrap_GEventList_number, METH_VARARGS0x0001, (char *)"GEventList_number(GEventList self) -> int"},
27917 { (char *)"GEventList_roi", _wrap_GEventList_roi, METH_VARARGS0x0001, (char *)"\n"
27918 "roi(GRoi roi)\n"
27919 "GEventList_roi(GEventList self) -> GRoi\n"
27920 ""},
27921 { (char *)"GEventList_swigregister", GEventList_swigregister, METH_VARARGS0x0001, NULL__null},
27922 { (char *)"delete_GEventCube", _wrap_delete_GEventCube, METH_VARARGS0x0001, (char *)"delete_GEventCube(GEventCube self)"},
27923 { (char *)"GEventCube_clear", _wrap_GEventCube_clear, METH_VARARGS0x0001, (char *)"GEventCube_clear(GEventCube self)"},
27924 { (char *)"GEventCube_clone", _wrap_GEventCube_clone, METH_VARARGS0x0001, (char *)"GEventCube_clone(GEventCube self) -> GEventCube"},
27925 { (char *)"GEventCube_size", _wrap_GEventCube_size, METH_VARARGS0x0001, (char *)"GEventCube_size(GEventCube self) -> int"},
27926 { (char *)"GEventCube_dim", _wrap_GEventCube_dim, METH_VARARGS0x0001, (char *)"GEventCube_dim(GEventCube self) -> int"},
27927 { (char *)"GEventCube_naxis", _wrap_GEventCube_naxis, METH_VARARGS0x0001, (char *)"GEventCube_naxis(GEventCube self, int const & axis) -> int"},
27928 { (char *)"GEventCube_load", _wrap_GEventCube_load, METH_VARARGS0x0001, (char *)"GEventCube_load(GEventCube self, std::string const & filename)"},
27929 { (char *)"GEventCube_save", _wrap_GEventCube_save, METH_VARARGS0x0001, (char *)"\n"
27930 "save(std::string const & filename, bool const & clobber=False)\n"
27931 "GEventCube_save(GEventCube self, std::string const & filename)\n"
27932 ""},
27933 { (char *)"GEventCube_read", _wrap_GEventCube_read, METH_VARARGS0x0001, (char *)"GEventCube_read(GEventCube self, GFits const & file)"},
27934 { (char *)"GEventCube_write", _wrap_GEventCube_write, METH_VARARGS0x0001, (char *)"GEventCube_write(GEventCube self, GFits & file)"},
27935 { (char *)"GEventCube_number", _wrap_GEventCube_number, METH_VARARGS0x0001, (char *)"GEventCube_number(GEventCube self) -> int"},
27936 { (char *)"GEventCube_swigregister", GEventCube_swigregister, METH_VARARGS0x0001, NULL__null},
27937 { (char *)"delete_GEvent", _wrap_delete_GEvent, METH_VARARGS0x0001, (char *)"delete_GEvent(GEvent self)"},
27938 { (char *)"GEvent_clear", _wrap_GEvent_clear, METH_VARARGS0x0001, (char *)"GEvent_clear(GEvent self)"},
27939 { (char *)"GEvent_clone", _wrap_GEvent_clone, METH_VARARGS0x0001, (char *)"GEvent_clone(GEvent self) -> GEvent"},
27940 { (char *)"GEvent_size", _wrap_GEvent_size, METH_VARARGS0x0001, (char *)"GEvent_size(GEvent self) -> double"},
27941 { (char *)"GEvent_dir", _wrap_GEvent_dir, METH_VARARGS0x0001, (char *)"GEvent_dir(GEvent self) -> GInstDir"},
27942 { (char *)"GEvent_energy", _wrap_GEvent_energy, METH_VARARGS0x0001, (char *)"GEvent_energy(GEvent self) -> GEnergy"},
27943 { (char *)"GEvent_time", _wrap_GEvent_time, METH_VARARGS0x0001, (char *)"GEvent_time(GEvent self) -> GTime"},
27944 { (char *)"GEvent_counts", _wrap_GEvent_counts, METH_VARARGS0x0001, (char *)"GEvent_counts(GEvent self) -> double"},
27945 { (char *)"GEvent_error", _wrap_GEvent_error, METH_VARARGS0x0001, (char *)"GEvent_error(GEvent self) -> double"},
27946 { (char *)"GEvent_isatom", _wrap_GEvent_isatom, METH_VARARGS0x0001, (char *)"GEvent_isatom(GEvent self) -> bool"},
27947 { (char *)"GEvent_isbin", _wrap_GEvent_isbin, METH_VARARGS0x0001, (char *)"GEvent_isbin(GEvent self) -> bool"},
27948 { (char *)"GEvent_swigregister", GEvent_swigregister, METH_VARARGS0x0001, NULL__null},
27949 { (char *)"delete_GEventAtom", _wrap_delete_GEventAtom, METH_VARARGS0x0001, (char *)"delete_GEventAtom(GEventAtom self)"},
27950 { (char *)"GEventAtom_clear", _wrap_GEventAtom_clear, METH_VARARGS0x0001, (char *)"GEventAtom_clear(GEventAtom self)"},
27951 { (char *)"GEventAtom_clone", _wrap_GEventAtom_clone, METH_VARARGS0x0001, (char *)"GEventAtom_clone(GEventAtom self) -> GEvent"},
27952 { (char *)"GEventAtom_size", _wrap_GEventAtom_size, METH_VARARGS0x0001, (char *)"GEventAtom_size(GEventAtom self) -> double"},
27953 { (char *)"GEventAtom_dir", _wrap_GEventAtom_dir, METH_VARARGS0x0001, (char *)"GEventAtom_dir(GEventAtom self) -> GInstDir"},
27954 { (char *)"GEventAtom_energy", _wrap_GEventAtom_energy, METH_VARARGS0x0001, (char *)"GEventAtom_energy(GEventAtom self) -> GEnergy"},
27955 { (char *)"GEventAtom_time", _wrap_GEventAtom_time, METH_VARARGS0x0001, (char *)"GEventAtom_time(GEventAtom self) -> GTime"},
27956 { (char *)"GEventAtom_counts", _wrap_GEventAtom_counts, METH_VARARGS0x0001, (char *)"GEventAtom_counts(GEventAtom self) -> double"},
27957 { (char *)"GEventAtom_error", _wrap_GEventAtom_error, METH_VARARGS0x0001, (char *)"GEventAtom_error(GEventAtom self) -> double"},
27958 { (char *)"GEventAtom_isatom", _wrap_GEventAtom_isatom, METH_VARARGS0x0001, (char *)"GEventAtom_isatom(GEventAtom self) -> bool"},
27959 { (char *)"GEventAtom_isbin", _wrap_GEventAtom_isbin, METH_VARARGS0x0001, (char *)"GEventAtom_isbin(GEventAtom self) -> bool"},
27960 { (char *)"GEventAtom_swigregister", GEventAtom_swigregister, METH_VARARGS0x0001, NULL__null},
27961 { (char *)"delete_GEventBin", _wrap_delete_GEventBin, METH_VARARGS0x0001, (char *)"delete_GEventBin(GEventBin self)"},
27962 { (char *)"GEventBin_clear", _wrap_GEventBin_clear, METH_VARARGS0x0001, (char *)"GEventBin_clear(GEventBin self)"},
27963 { (char *)"GEventBin_clone", _wrap_GEventBin_clone, METH_VARARGS0x0001, (char *)"GEventBin_clone(GEventBin self) -> GEvent"},
27964 { (char *)"GEventBin_size", _wrap_GEventBin_size, METH_VARARGS0x0001, (char *)"GEventBin_size(GEventBin self) -> double"},
27965 { (char *)"GEventBin_dir", _wrap_GEventBin_dir, METH_VARARGS0x0001, (char *)"GEventBin_dir(GEventBin self) -> GInstDir"},
27966 { (char *)"GEventBin_energy", _wrap_GEventBin_energy, METH_VARARGS0x0001, (char *)"GEventBin_energy(GEventBin self) -> GEnergy"},
27967 { (char *)"GEventBin_time", _wrap_GEventBin_time, METH_VARARGS0x0001, (char *)"GEventBin_time(GEventBin self) -> GTime"},
27968 { (char *)"GEventBin_error", _wrap_GEventBin_error, METH_VARARGS0x0001, (char *)"GEventBin_error(GEventBin self) -> double"},
27969 { (char *)"GEventBin_counts", _wrap_GEventBin_counts, METH_VARARGS0x0001, (char *)"\n"
27970 "counts() -> double\n"
27971 "GEventBin_counts(GEventBin self, double const & counts)\n"
27972 ""},
27973 { (char *)"GEventBin_isatom", _wrap_GEventBin_isatom, METH_VARARGS0x0001, (char *)"GEventBin_isatom(GEventBin self) -> bool"},
27974 { (char *)"GEventBin_isbin", _wrap_GEventBin_isbin, METH_VARARGS0x0001, (char *)"GEventBin_isbin(GEventBin self) -> bool"},
27975 { (char *)"GEventBin_swigregister", GEventBin_swigregister, METH_VARARGS0x0001, NULL__null},
27976 { (char *)"delete_GInstDir", _wrap_delete_GInstDir, METH_VARARGS0x0001, (char *)"delete_GInstDir(GInstDir self)"},
27977 { (char *)"GInstDir_clear", _wrap_GInstDir_clear, METH_VARARGS0x0001, (char *)"GInstDir_clear(GInstDir self)"},
27978 { (char *)"GInstDir_clone", _wrap_GInstDir_clone, METH_VARARGS0x0001, (char *)"GInstDir_clone(GInstDir self) -> GInstDir"},
27979 { (char *)"GInstDir_swigregister", GInstDir_swigregister, METH_VARARGS0x0001, NULL__null},
27980 { (char *)"delete_GRoi", _wrap_delete_GRoi, METH_VARARGS0x0001, (char *)"delete_GRoi(GRoi self)"},
27981 { (char *)"GRoi_clear", _wrap_GRoi_clear, METH_VARARGS0x0001, (char *)"GRoi_clear(GRoi self)"},
27982 { (char *)"GRoi_clone", _wrap_GRoi_clone, METH_VARARGS0x0001, (char *)"GRoi_clone(GRoi self) -> GRoi"},
27983 { (char *)"GRoi_contains", _wrap_GRoi_contains, METH_VARARGS0x0001, (char *)"GRoi_contains(GRoi self, GEvent event) -> bool"},
27984 { (char *)"GRoi_swigregister", GRoi_swigregister, METH_VARARGS0x0001, NULL__null},
27985 { (char *)"delete_GResponse", _wrap_delete_GResponse, METH_VARARGS0x0001, (char *)"delete_GResponse(GResponse self)"},
27986 { (char *)"GResponse_clear", _wrap_GResponse_clear, METH_VARARGS0x0001, (char *)"GResponse_clear(GResponse self)"},
27987 { (char *)"GResponse_clone", _wrap_GResponse_clone, METH_VARARGS0x0001, (char *)"GResponse_clone(GResponse self) -> GResponse"},
27988 { (char *)"GResponse_hasedisp", _wrap_GResponse_hasedisp, METH_VARARGS0x0001, (char *)"GResponse_hasedisp(GResponse self) -> bool"},
27989 { (char *)"GResponse_hastdisp", _wrap_GResponse_hastdisp, METH_VARARGS0x0001, (char *)"GResponse_hastdisp(GResponse self) -> bool"},
27990 { (char *)"GResponse_irf", _wrap_GResponse_irf, METH_VARARGS0x0001, (char *)"\n"
27991 "irf(GEvent event, GPhoton photon, GObservation obs) -> double\n"
27992 "GResponse_irf(GResponse self, GEvent event, GSource source, GObservation obs) -> double\n"
27993 ""},
27994 { (char *)"GResponse_irf_ptsrc", _wrap_GResponse_irf_ptsrc, METH_VARARGS0x0001, (char *)"GResponse_irf_ptsrc(GResponse self, GEvent event, GSource source, GObservation obs) -> double"},
27995 { (char *)"GResponse_irf_radial", _wrap_GResponse_irf_radial, METH_VARARGS0x0001, (char *)"GResponse_irf_radial(GResponse self, GEvent event, GSource source, GObservation obs) -> double"},
27996 { (char *)"GResponse_irf_elliptical", _wrap_GResponse_irf_elliptical, METH_VARARGS0x0001, (char *)"GResponse_irf_elliptical(GResponse self, GEvent event, GSource source, GObservation obs) -> double"},
27997 { (char *)"GResponse_irf_diffuse", _wrap_GResponse_irf_diffuse, METH_VARARGS0x0001, (char *)"GResponse_irf_diffuse(GResponse self, GEvent event, GSource source, GObservation obs) -> double"},
27998 { (char *)"GResponse_npred", _wrap_GResponse_npred, METH_VARARGS0x0001, (char *)"\n"
27999 "npred(GPhoton photon, GObservation obs) -> double\n"
28000 "GResponse_npred(GResponse self, GSource source, GObservation obs) -> double\n"
28001 ""},
28002 { (char *)"GResponse_npred_ptsrc", _wrap_GResponse_npred_ptsrc, METH_VARARGS0x0001, (char *)"GResponse_npred_ptsrc(GResponse self, GSource source, GObservation obs) -> double"},
28003 { (char *)"GResponse_npred_radial", _wrap_GResponse_npred_radial, METH_VARARGS0x0001, (char *)"GResponse_npred_radial(GResponse self, GSource source, GObservation obs) -> double"},
28004 { (char *)"GResponse_npred_elliptical", _wrap_GResponse_npred_elliptical, METH_VARARGS0x0001, (char *)"GResponse_npred_elliptical(GResponse self, GSource source, GObservation obs) -> double"},
28005 { (char *)"GResponse_npred_diffuse", _wrap_GResponse_npred_diffuse, METH_VARARGS0x0001, (char *)"GResponse_npred_diffuse(GResponse self, GSource source, GObservation obs) -> double"},
28006 { (char *)"GResponse_swigregister", GResponse_swigregister, METH_VARARGS0x0001, NULL__null},
28007 { (char *)"new_GPhoton", _wrap_new_GPhoton, METH_VARARGS0x0001, (char *)"\n"
28008 "GPhoton()\n"
28009 "GPhoton(GSkyDir const & dir, GEnergy energy, GTime time, int const & mcid=-1)\n"
28010 "GPhoton(GSkyDir const & dir, GEnergy energy, GTime time)\n"
28011 "new_GPhoton(GPhoton photon) -> GPhoton\n"
28012 ""},
28013 { (char *)"delete_GPhoton", _wrap_delete_GPhoton, METH_VARARGS0x0001, (char *)"delete_GPhoton(GPhoton self)"},
28014 { (char *)"GPhoton_clear", _wrap_GPhoton_clear, METH_VARARGS0x0001, (char *)"GPhoton_clear(GPhoton self)"},
28015 { (char *)"GPhoton_clone", _wrap_GPhoton_clone, METH_VARARGS0x0001, (char *)"GPhoton_clone(GPhoton self) -> GPhoton"},
28016 { (char *)"GPhoton_dir", _wrap_GPhoton_dir, METH_VARARGS0x0001, (char *)"\n"
28017 "dir() -> GSkyDir const\n"
28018 "GPhoton_dir(GPhoton self, GSkyDir const & dir)\n"
28019 ""},
28020 { (char *)"GPhoton_energy", _wrap_GPhoton_energy, METH_VARARGS0x0001, (char *)"\n"
28021 "energy() -> GEnergy\n"
28022 "GPhoton_energy(GPhoton self, GEnergy energy)\n"
28023 ""},
28024 { (char *)"GPhoton_time", _wrap_GPhoton_time, METH_VARARGS0x0001, (char *)"\n"
28025 "time() -> GTime\n"
28026 "GPhoton_time(GPhoton self, GTime time)\n"
28027 ""},
28028 { (char *)"GPhoton_mcid", _wrap_GPhoton_mcid, METH_VARARGS0x0001, (char *)"\n"
28029 "mcid() -> int const\n"
28030 "GPhoton_mcid(GPhoton self, int const & mcid)\n"
28031 ""},
28032 { (char *)"GPhoton___eq__", _wrap_GPhoton___eq__, METH_VARARGS0x0001, (char *)"GPhoton___eq__(GPhoton self, GPhoton photon) -> bool"},
28033 { (char *)"GPhoton___ne__", _wrap_GPhoton___ne__, METH_VARARGS0x0001, (char *)"GPhoton___ne__(GPhoton self, GPhoton photon) -> bool"},
28034 { (char *)"GPhoton_copy", _wrap_GPhoton_copy, METH_VARARGS0x0001, (char *)"GPhoton_copy(GPhoton self) -> GPhoton"},
28035 { (char *)"GPhoton_swigregister", GPhoton_swigregister, METH_VARARGS0x0001, NULL__null},
28036 { (char *)"new_GPhotons", _wrap_new_GPhotons, METH_VARARGS0x0001, (char *)"\n"
28037 "GPhotons()\n"
28038 "new_GPhotons(GPhotons photons) -> GPhotons\n"
28039 ""},
28040 { (char *)"delete_GPhotons", _wrap_delete_GPhotons, METH_VARARGS0x0001, (char *)"delete_GPhotons(GPhotons self)"},
28041 { (char *)"GPhotons_clear", _wrap_GPhotons_clear, METH_VARARGS0x0001, (char *)"GPhotons_clear(GPhotons self)"},
28042 { (char *)"GPhotons_clone", _wrap_GPhotons_clone, METH_VARARGS0x0001, (char *)"GPhotons_clone(GPhotons self) -> GPhotons"},
28043 { (char *)"GPhotons_size", _wrap_GPhotons_size, METH_VARARGS0x0001, (char *)"GPhotons_size(GPhotons self) -> int"},
28044 { (char *)"GPhotons_isempty", _wrap_GPhotons_isempty, METH_VARARGS0x0001, (char *)"GPhotons_isempty(GPhotons self) -> bool"},
28045 { (char *)"GPhotons_append", _wrap_GPhotons_append, METH_VARARGS0x0001, (char *)"GPhotons_append(GPhotons self, GPhoton photon)"},
28046 { (char *)"GPhotons_insert", _wrap_GPhotons_insert, METH_VARARGS0x0001, (char *)"GPhotons_insert(GPhotons self, int const & index, GPhoton photon)"},
28047 { (char *)"GPhotons_remove", _wrap_GPhotons_remove, METH_VARARGS0x0001, (char *)"GPhotons_remove(GPhotons self, int const & index)"},
28048 { (char *)"GPhotons_reserve", _wrap_GPhotons_reserve, METH_VARARGS0x0001, (char *)"GPhotons_reserve(GPhotons self, int const & num)"},
28049 { (char *)"GPhotons_extend", _wrap_GPhotons_extend, METH_VARARGS0x0001, (char *)"GPhotons_extend(GPhotons self, GPhotons photons)"},
28050 { (char *)"GPhotons___getitem__", _wrap_GPhotons___getitem__, METH_VARARGS0x0001, (char *)"GPhotons___getitem__(GPhotons self, int const & index) -> GPhoton"},
28051 { (char *)"GPhotons___setitem__", _wrap_GPhotons___setitem__, METH_VARARGS0x0001, (char *)"GPhotons___setitem__(GPhotons self, int const & index, GPhoton val)"},
28052 { (char *)"GPhotons_copy", _wrap_GPhotons_copy, METH_VARARGS0x0001, (char *)"GPhotons_copy(GPhotons self) -> GPhotons"},
28053 { (char *)"GPhotons_swigregister", GPhotons_swigregister, METH_VARARGS0x0001, NULL__null},
28054 { (char *)"new_GSource", _wrap_new_GSource, METH_VARARGS0x0001, (char *)"\n"
28055 "GSource()\n"
28056 "GSource(std::string const & name, GModelSpatial * model, GEnergy energy, GTime time)\n"
28057 "new_GSource(GSource src) -> GSource\n"
28058 ""},
28059 { (char *)"delete_GSource", _wrap_delete_GSource, METH_VARARGS0x0001, (char *)"delete_GSource(GSource self)"},
28060 { (char *)"GSource_clear", _wrap_GSource_clear, METH_VARARGS0x0001, (char *)"GSource_clear(GSource self)"},
28061 { (char *)"GSource_clone", _wrap_GSource_clone, METH_VARARGS0x0001, (char *)"GSource_clone(GSource self) -> GSource"},
28062 { (char *)"GSource_name", _wrap_GSource_name, METH_VARARGS0x0001, (char *)"\n"
28063 "name() -> std::string const\n"
28064 "GSource_name(GSource self, std::string const & name)\n"
28065 ""},
28066 { (char *)"GSource_model", _wrap_GSource_model, METH_VARARGS0x0001, (char *)"\n"
28067 "model() -> GModelSpatial const\n"
28068 "GSource_model(GSource self, GModelSpatial * model)\n"
28069 ""},
28070 { (char *)"GSource_energy", _wrap_GSource_energy, METH_VARARGS0x0001, (char *)"\n"
28071 "energy() -> GEnergy\n"
28072 "GSource_energy(GSource self, GEnergy energy)\n"
28073 ""},
28074 { (char *)"GSource_time", _wrap_GSource_time, METH_VARARGS0x0001, (char *)"\n"
28075 "time() -> GTime\n"
28076 "GSource_time(GSource self, GTime time)\n"
28077 ""},
28078 { (char *)"GSource_copy", _wrap_GSource_copy, METH_VARARGS0x0001, (char *)"GSource_copy(GSource self) -> GSource"},
28079 { (char *)"GSource_swigregister", GSource_swigregister, METH_VARARGS0x0001, NULL__null},
28080 { NULL__null, NULL__null, 0, NULL__null }
28081};
28082
28083
28084/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28085
28086static void *_p_GObservationRegistryTo_p_GRegistry(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28087 return (void *)((GRegistry *) ((GObservationRegistry *) x));
28088}
28089static void *_p_GEventBinTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28090 return (void *)((GEvent *) ((GEventBin *) x));
28091}
28092static void *_p_GEventAtomTo_p_GEvent(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28093 return (void *)((GEvent *) ((GEventAtom *) x));
28094}
28095static void *_p_GTimesTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28096 return (void *)((GContainer *) ((GTimes *) x));
28097}
28098static void *_p_GPhotonsTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28099 return (void *)((GContainer *) ((GPhotons *) x));
28100}
28101static void *_p_GEnergiesTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28102 return (void *)((GContainer *) ((GEnergies *) x));
28103}
28104static void *_p_GEboundsTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28105 return (void *)((GContainer *) ((GEbounds *) x));
28106}
28107static void *_p_GObservationsTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28108 return (void *)((GContainer *) ((GObservations *) x));
28109}
28110static void *_p_GEventListTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28111 return (void *)((GEvents *) ((GEventList *) x));
28112}
28113static void *_p_GEventCubeTo_p_GEvents(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28114 return (void *)((GEvents *) ((GEventCube *) x));
28115}
28116static void *_p_GTimesTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28117 return (void *)((GBase *) (GContainer *) ((GTimes *) x));
28118}
28119static void *_p_GRoiTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28120 return (void *)((GBase *) ((GRoi *) x));
28121}
28122static void *_p_GPhotonTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28123 return (void *)((GBase *) ((GPhoton *) x));
28124}
28125static void *_p_GEventListTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28126 return (void *)((GBase *) (GEvents *) ((GEventList *) x));
28127}
28128static void *_p_GTimeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28129 return (void *)((GBase *) ((GTime *) x));
28130}
28131static void *_p_GObservationTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28132 return (void *)((GBase *) ((GObservation *) x));
28133}
28134static void *_p_GEnergyTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28135 return (void *)((GBase *) ((GEnergy *) x));
28136}
28137static void *_p_GEventCubeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28138 return (void *)((GBase *) (GEvents *) ((GEventCube *) x));
28139}
28140static void *_p_GTimeReferenceTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28141 return (void *)((GBase *) ((GTimeReference *) x));
28142}
28143static void *_p_GEboundsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28144 return (void *)((GBase *) (GContainer *) ((GEbounds *) x));
28145}
28146static void *_p_GPhotonsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28147 return (void *)((GBase *) (GContainer *) ((GPhotons *) x));
28148}
28149static void *_p_GSourceTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28150 return (void *)((GBase *) ((GSource *) x));
28151}
28152static void *_p_GObservationsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28153 return (void *)((GBase *) (GContainer *) ((GObservations *) x));
28154}
28155static void *_p_GCaldbTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28156 return (void *)((GBase *) ((GCaldb *) x));
28157}
28158static void *_p_GInstDirTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28159 return (void *)((GBase *) ((GInstDir *) x));
28160}
28161static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28162 return (void *)((GBase *) ((GContainer *) x));
28163}
28164static void *_p_GResponseTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28165 return (void *)((GBase *) ((GResponse *) x));
28166}
28167static void *_p_GEnergiesTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28168 return (void *)((GBase *) (GContainer *) ((GEnergies *) x));
28169}
28170static void *_p_GGtiTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28171 return (void *)((GBase *) ((GGti *) x));
28172}
28173static void *_p_GEventsTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28174 return (void *)((GBase *) ((GEvents *) x));
28175}
28176static void *_p_GEventTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28177 return (void *)((GBase *) ((GEvent *) x));
28178}
28179static void *_p_GEventAtomTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28180 return (void *)((GBase *) (GEvent *) ((GEventAtom *) x));
28181}
28182static void *_p_GEventBinTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
28183 return (void *)((GBase *) (GEvent *) ((GEventBin *) x));
28184}
28185static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
28186static swig_type_info _swigt__p_GCaldb = {"_p_GCaldb", "GCaldb *", 0, 0, (void*)0, 0};
28187static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0};
28188static swig_type_info _swigt__p_GEbounds = {"_p_GEbounds", "GEbounds *", 0, 0, (void*)0, 0};
28189static swig_type_info _swigt__p_GEnergies = {"_p_GEnergies", "GEnergies *", 0, 0, (void*)0, 0};
28190static swig_type_info _swigt__p_GEnergy = {"_p_GEnergy", "GEnergy *", 0, 0, (void*)0, 0};
28191static swig_type_info _swigt__p_GEvent = {"_p_GEvent", "GEvent *", 0, 0, (void*)0, 0};
28192static swig_type_info _swigt__p_GEventAtom = {"_p_GEventAtom", "GEventAtom *", 0, 0, (void*)0, 0};
28193static swig_type_info _swigt__p_GEventBin = {"_p_GEventBin", "GEventBin *", 0, 0, (void*)0, 0};
28194static swig_type_info _swigt__p_GEventCube = {"_p_GEventCube", "GEventCube *", 0, 0, (void*)0, 0};
28195static swig_type_info _swigt__p_GEventList = {"_p_GEventList", "GEventList *", 0, 0, (void*)0, 0};
28196static swig_type_info _swigt__p_GEvents = {"_p_GEvents", "GEvents *", 0, 0, (void*)0, 0};
28197static swig_type_info _swigt__p_GFits = {"_p_GFits", "GFits *", 0, 0, (void*)0, 0};
28198static swig_type_info _swigt__p_GFitsHDU = {"_p_GFitsHDU", "GFitsHDU *", 0, 0, (void*)0, 0};
28199static swig_type_info _swigt__p_GFitsTable = {"_p_GFitsTable", "GFitsTable *", 0, 0, (void*)0, 0};
28200static swig_type_info _swigt__p_GGti = {"_p_GGti", "GGti *", 0, 0, (void*)0, 0};
28201static swig_type_info _swigt__p_GInstDir = {"_p_GInstDir", "GInstDir *", 0, 0, (void*)0, 0};
28202static swig_type_info _swigt__p_GModel = {"_p_GModel", "GModel *", 0, 0, (void*)0, 0};
28203static swig_type_info _swigt__p_GModelSpatial = {"_p_GModelSpatial", "GModelSpatial *", 0, 0, (void*)0, 0};
28204static swig_type_info _swigt__p_GModels = {"_p_GModels", "GModels *", 0, 0, (void*)0, 0};
28205static swig_type_info _swigt__p_GObservation = {"_p_GObservation", "GObservation *", 0, 0, (void*)0, 0};
28206static swig_type_info _swigt__p_GObservationRegistry = {"_p_GObservationRegistry", "GObservationRegistry *", 0, 0, (void*)0, 0};
28207static swig_type_info _swigt__p_GObservations = {"_p_GObservations", "GObservations *", 0, 0, (void*)0, 0};
28208static swig_type_info _swigt__p_GObservations__likelihood = {"_p_GObservations__likelihood", "GObservations::likelihood *", 0, 0, (void*)0, 0};
28209static swig_type_info _swigt__p_GOptimizer = {"_p_GOptimizer", "GOptimizer *", 0, 0, (void*)0, 0};
28210static swig_type_info _swigt__p_GPhoton = {"_p_GPhoton", "GPhoton *", 0, 0, (void*)0, 0};
28211static swig_type_info _swigt__p_GPhotons = {"_p_GPhotons", "GPhotons *", 0, 0, (void*)0, 0};
28212static swig_type_info _swigt__p_GRegistry = {"_p_GRegistry", "GRegistry *", 0, 0, (void*)0, 0};
28213static swig_type_info _swigt__p_GResponse = {"_p_GResponse", "GResponse *", 0, 0, (void*)0, 0};
28214static swig_type_info _swigt__p_GRoi = {"_p_GRoi", "GRoi *", 0, 0, (void*)0, 0};
28215static swig_type_info _swigt__p_GSkyDir = {"_p_GSkyDir", "GSkyDir *", 0, 0, (void*)0, 0};
28216static swig_type_info _swigt__p_GSource = {"_p_GSource", "GSource *", 0, 0, (void*)0, 0};
28217static swig_type_info _swigt__p_GTime = {"_p_GTime", "GTime *", 0, 0, (void*)0, 0};
28218static swig_type_info _swigt__p_GTimeReference = {"_p_GTimeReference", "GTimeReference *", 0, 0, (void*)0, 0};
28219static swig_type_info _swigt__p_GTimes = {"_p_GTimes", "GTimes *", 0, 0, (void*)0, 0};
28220static swig_type_info _swigt__p_GVector = {"_p_GVector", "GVector *", 0, 0, (void*)0, 0};
28221static swig_type_info _swigt__p_GXml = {"_p_GXml", "GXml *", 0, 0, (void*)0, 0};
28222static swig_type_info _swigt__p_GXmlElement = {"_p_GXmlElement", "GXmlElement *", 0, 0, (void*)0, 0};
28223static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
28224static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
28225static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
28226
28227static swig_type_info *swig_type_initial[] = {
28228 &_swigt__p_GBase,
28229 &_swigt__p_GCaldb,
28230 &_swigt__p_GContainer,
28231 &_swigt__p_GEbounds,
28232 &_swigt__p_GEnergies,
28233 &_swigt__p_GEnergy,
28234 &_swigt__p_GEvent,
28235 &_swigt__p_GEventAtom,
28236 &_swigt__p_GEventBin,
28237 &_swigt__p_GEventCube,
28238 &_swigt__p_GEventList,
28239 &_swigt__p_GEvents,
28240 &_swigt__p_GFits,
28241 &_swigt__p_GFitsHDU,
28242 &_swigt__p_GFitsTable,
28243 &_swigt__p_GGti,
28244 &_swigt__p_GInstDir,
28245 &_swigt__p_GModel,
28246 &_swigt__p_GModelSpatial,
28247 &_swigt__p_GModels,
28248 &_swigt__p_GObservation,
28249 &_swigt__p_GObservationRegistry,
28250 &_swigt__p_GObservations,
28251 &_swigt__p_GObservations__likelihood,
28252 &_swigt__p_GOptimizer,
28253 &_swigt__p_GPhoton,
28254 &_swigt__p_GPhotons,
28255 &_swigt__p_GRegistry,
28256 &_swigt__p_GResponse,
28257 &_swigt__p_GRoi,
28258 &_swigt__p_GSkyDir,
28259 &_swigt__p_GSource,
28260 &_swigt__p_GTime,
28261 &_swigt__p_GTimeReference,
28262 &_swigt__p_GTimes,
28263 &_swigt__p_GVector,
28264 &_swigt__p_GXml,
28265 &_swigt__p_GXmlElement,
28266 &_swigt__p_char,
28267 &_swigt__p_std__invalid_argument,
28268 &_swigt__p_swig__SwigPyIterator,
28269};
28270
28271static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GPhoton, _p_GPhotonTo_p_GBase, 0, 0}, {&_swigt__p_GEventList, _p_GEventListTo_p_GBase, 0, 0}, {&_swigt__p_GGti, _p_GGtiTo_p_GBase, 0, 0}, {&_swigt__p_GObservation, _p_GObservationTo_p_GBase, 0, 0}, {&_swigt__p_GEnergy, _p_GEnergyTo_p_GBase, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GBase, 0, 0}, {&_swigt__p_GRoi, _p_GRoiTo_p_GBase, 0, 0}, {&_swigt__p_GTimeReference, _p_GTimeReferenceTo_p_GBase, 0, 0}, {&_swigt__p_GCaldb, _p_GCaldbTo_p_GBase, 0, 0}, {&_swigt__p_GEbounds, _p_GEboundsTo_p_GBase, 0, 0}, {&_swigt__p_GPhotons, _p_GPhotonsTo_p_GBase, 0, 0}, {&_swigt__p_GSource, _p_GSourceTo_p_GBase, 0, 0}, {&_swigt__p_GObservations, _p_GObservationsTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GInstDir, _p_GInstDirTo_p_GBase, 0, 0}, {&_swigt__p_GEvent, _p_GEventTo_p_GBase, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0}, {&_swigt__p_GResponse, _p_GResponseTo_p_GBase, 0, 0}, {&_swigt__p_GTimes, _p_GTimesTo_p_GBase, 0, 0}, {&_swigt__p_GEnergies, _p_GEnergiesTo_p_GBase, 0, 0}, {&_swigt__p_GTime, _p_GTimeTo_p_GBase, 0, 0}, {&_swigt__p_GEventAtom, _p_GEventAtomTo_p_GBase, 0, 0}, {&_swigt__p_GEvents, _p_GEventsTo_p_GBase, 0, 0}, {&_swigt__p_GEventBin, _p_GEventBinTo_p_GBase, 0, 0},{0, 0, 0, 0}};
28272static swig_cast_info _swigc__p_GCaldb[] = { {&_swigt__p_GCaldb, 0, 0, 0},{0, 0, 0, 0}};
28273static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GTimes, _p_GTimesTo_p_GContainer, 0, 0}, {&_swigt__p_GPhotons, _p_GPhotonsTo_p_GContainer, 0, 0}, {&_swigt__p_GEnergies, _p_GEnergiesTo_p_GContainer, 0, 0}, {&_swigt__p_GContainer, 0, 0, 0}, {&_swigt__p_GEbounds, _p_GEboundsTo_p_GContainer, 0, 0}, {&_swigt__p_GObservations, _p_GObservationsTo_p_GContainer, 0, 0},{0, 0, 0, 0}};
28274static swig_cast_info _swigc__p_GEbounds[] = { {&_swigt__p_GEbounds, 0, 0, 0},{0, 0, 0, 0}};
28275static swig_cast_info _swigc__p_GEnergies[] = { {&_swigt__p_GEnergies, 0, 0, 0},{0, 0, 0, 0}};
28276static swig_cast_info _swigc__p_GEnergy[] = { {&_swigt__p_GEnergy, 0, 0, 0},{0, 0, 0, 0}};
28277static swig_cast_info _swigc__p_GEvent[] = { {&_swigt__p_GEventBin, _p_GEventBinTo_p_GEvent, 0, 0}, {&_swigt__p_GEvent, 0, 0, 0}, {&_swigt__p_GEventAtom, _p_GEventAtomTo_p_GEvent, 0, 0},{0, 0, 0, 0}};
28278static swig_cast_info _swigc__p_GEventAtom[] = { {&_swigt__p_GEventAtom, 0, 0, 0},{0, 0, 0, 0}};
28279static swig_cast_info _swigc__p_GEventBin[] = { {&_swigt__p_GEventBin, 0, 0, 0},{0, 0, 0, 0}};
28280static swig_cast_info _swigc__p_GEventCube[] = { {&_swigt__p_GEventCube, 0, 0, 0},{0, 0, 0, 0}};
28281static swig_cast_info _swigc__p_GEventList[] = { {&_swigt__p_GEventList, 0, 0, 0},{0, 0, 0, 0}};
28282static swig_cast_info _swigc__p_GEvents[] = { {&_swigt__p_GEventList, _p_GEventListTo_p_GEvents, 0, 0}, {&_swigt__p_GEvents, 0, 0, 0}, {&_swigt__p_GEventCube, _p_GEventCubeTo_p_GEvents, 0, 0},{0, 0, 0, 0}};
28283static swig_cast_info _swigc__p_GFits[] = { {&_swigt__p_GFits, 0, 0, 0},{0, 0, 0, 0}};
28284static swig_cast_info _swigc__p_GFitsHDU[] = { {&_swigt__p_GFitsHDU, 0, 0, 0},{0, 0, 0, 0}};
28285static swig_cast_info _swigc__p_GFitsTable[] = { {&_swigt__p_GFitsTable, 0, 0, 0},{0, 0, 0, 0}};
28286static swig_cast_info _swigc__p_GGti[] = { {&_swigt__p_GGti, 0, 0, 0},{0, 0, 0, 0}};
28287static swig_cast_info _swigc__p_GInstDir[] = { {&_swigt__p_GInstDir, 0, 0, 0},{0, 0, 0, 0}};
28288static swig_cast_info _swigc__p_GModel[] = { {&_swigt__p_GModel, 0, 0, 0},{0, 0, 0, 0}};
28289static swig_cast_info _swigc__p_GModelSpatial[] = { {&_swigt__p_GModelSpatial, 0, 0, 0},{0, 0, 0, 0}};
28290static swig_cast_info _swigc__p_GModels[] = { {&_swigt__p_GModels, 0, 0, 0},{0, 0, 0, 0}};
28291static swig_cast_info _swigc__p_GObservation[] = { {&_swigt__p_GObservation, 0, 0, 0},{0, 0, 0, 0}};
28292static swig_cast_info _swigc__p_GObservationRegistry[] = { {&_swigt__p_GObservationRegistry, 0, 0, 0},{0, 0, 0, 0}};
28293static swig_cast_info _swigc__p_GObservations[] = { {&_swigt__p_GObservations, 0, 0, 0},{0, 0, 0, 0}};
28294static swig_cast_info _swigc__p_GObservations__likelihood[] = { {&_swigt__p_GObservations__likelihood, 0, 0, 0},{0, 0, 0, 0}};
28295static swig_cast_info _swigc__p_GOptimizer[] = { {&_swigt__p_GOptimizer, 0, 0, 0},{0, 0, 0, 0}};
28296static swig_cast_info _swigc__p_GPhoton[] = { {&_swigt__p_GPhoton, 0, 0, 0},{0, 0, 0, 0}};
28297static swig_cast_info _swigc__p_GPhotons[] = { {&_swigt__p_GPhotons, 0, 0, 0},{0, 0, 0, 0}};
28298static swig_cast_info _swigc__p_GRegistry[] = { {&_swigt__p_GRegistry, 0, 0, 0}, {&_swigt__p_GObservationRegistry, _p_GObservationRegistryTo_p_GRegistry, 0, 0},{0, 0, 0, 0}};
28299static swig_cast_info _swigc__p_GResponse[] = { {&_swigt__p_GResponse, 0, 0, 0},{0, 0, 0, 0}};
28300static swig_cast_info _swigc__p_GRoi[] = { {&_swigt__p_GRoi, 0, 0, 0},{0, 0, 0, 0}};
28301static swig_cast_info _swigc__p_GSkyDir[] = { {&_swigt__p_GSkyDir, 0, 0, 0},{0, 0, 0, 0}};
28302static swig_cast_info _swigc__p_GSource[] = { {&_swigt__p_GSource, 0, 0, 0},{0, 0, 0, 0}};
28303static swig_cast_info _swigc__p_GTime[] = { {&_swigt__p_GTime, 0, 0, 0},{0, 0, 0, 0}};
28304static swig_cast_info _swigc__p_GTimeReference[] = { {&_swigt__p_GTimeReference, 0, 0, 0},{0, 0, 0, 0}};
28305static swig_cast_info _swigc__p_GTimes[] = { {&_swigt__p_GTimes, 0, 0, 0},{0, 0, 0, 0}};
28306static swig_cast_info _swigc__p_GVector[] = { {&_swigt__p_GVector, 0, 0, 0},{0, 0, 0, 0}};
28307static swig_cast_info _swigc__p_GXml[] = { {&_swigt__p_GXml, 0, 0, 0},{0, 0, 0, 0}};
28308static swig_cast_info _swigc__p_GXmlElement[] = { {&_swigt__p_GXmlElement, 0, 0, 0},{0, 0, 0, 0}};
28309static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
28310static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
28311static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
28312
28313static swig_cast_info *swig_cast_initial[] = {
28314 _swigc__p_GBase,
28315 _swigc__p_GCaldb,
28316 _swigc__p_GContainer,
28317 _swigc__p_GEbounds,
28318 _swigc__p_GEnergies,
28319 _swigc__p_GEnergy,
28320 _swigc__p_GEvent,
28321 _swigc__p_GEventAtom,
28322 _swigc__p_GEventBin,
28323 _swigc__p_GEventCube,
28324 _swigc__p_GEventList,
28325 _swigc__p_GEvents,
28326 _swigc__p_GFits,
28327 _swigc__p_GFitsHDU,
28328 _swigc__p_GFitsTable,
28329 _swigc__p_GGti,
28330 _swigc__p_GInstDir,
28331 _swigc__p_GModel,
28332 _swigc__p_GModelSpatial,
28333 _swigc__p_GModels,
28334 _swigc__p_GObservation,
28335 _swigc__p_GObservationRegistry,
28336 _swigc__p_GObservations,
28337 _swigc__p_GObservations__likelihood,
28338 _swigc__p_GOptimizer,
28339 _swigc__p_GPhoton,
28340 _swigc__p_GPhotons,
28341 _swigc__p_GRegistry,
28342 _swigc__p_GResponse,
28343 _swigc__p_GRoi,
28344 _swigc__p_GSkyDir,
28345 _swigc__p_GSource,
28346 _swigc__p_GTime,
28347 _swigc__p_GTimeReference,
28348 _swigc__p_GTimes,
28349 _swigc__p_GVector,
28350 _swigc__p_GXml,
28351 _swigc__p_GXmlElement,
28352 _swigc__p_char,
28353 _swigc__p_std__invalid_argument,
28354 _swigc__p_swig__SwigPyIterator,
28355};
28356
28357
28358/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
28359
28360static swig_const_info swig_const_table[] = {
28361{0, 0, 0, 0.0, 0, 0}};
28362
28363#ifdef __cplusplus199711L
28364}
28365#endif
28366/* -----------------------------------------------------------------------------
28367 * Type initialization:
28368 * This problem is tough by the requirement that no dynamic
28369 * memory is used. Also, since swig_type_info structures store pointers to
28370 * swig_cast_info structures and swig_cast_info structures store pointers back
28371 * to swig_type_info structures, we need some lookup code at initialization.
28372 * The idea is that swig generates all the structures that are needed.
28373 * The runtime then collects these partially filled structures.
28374 * The SWIG_InitializeModule function takes these initial arrays out of
28375 * swig_module, and does all the lookup, filling in the swig_module.types
28376 * array with the correct data and linking the correct swig_cast_info
28377 * structures together.
28378 *
28379 * The generated swig_type_info structures are assigned staticly to an initial
28380 * array. We just loop through that array, and handle each type individually.
28381 * First we lookup if this type has been already loaded, and if so, use the
28382 * loaded structure instead of the generated one. Then we have to fill in the
28383 * cast linked list. The cast data is initially stored in something like a
28384 * two-dimensional array. Each row corresponds to a type (there are the same
28385 * number of rows as there are in the swig_type_initial array). Each entry in
28386 * a column is one of the swig_cast_info structures for that type.
28387 * The cast_initial array is actually an array of arrays, because each row has
28388 * a variable number of columns. So to actually build the cast linked list,
28389 * we find the array of casts associated with the type, and loop through it
28390 * adding the casts to the list. The one last trick we need to do is making
28391 * sure the type pointer in the swig_cast_info struct is correct.
28392 *
28393 * First off, we lookup the cast->type name to see if it is already loaded.
28394 * There are three cases to handle:
28395 * 1) If the cast->type has already been loaded AND the type we are adding
28396 * casting info to has not been loaded (it is in this module), THEN we
28397 * replace the cast->type pointer with the type pointer that has already
28398 * been loaded.
28399 * 2) If BOTH types (the one we are adding casting info to, and the
28400 * cast->type) are loaded, THEN the cast info has already been loaded by
28401 * the previous module so we just ignore it.
28402 * 3) Finally, if cast->type has not already been loaded, then we add that
28403 * swig_cast_info to the linked list (because the cast->type) pointer will
28404 * be correct.
28405 * ----------------------------------------------------------------------------- */
28406
28407#ifdef __cplusplus199711L
28408extern "C" {
28409#if 0
28410} /* c-mode */
28411#endif
28412#endif
28413
28414#if 0
28415#define SWIGRUNTIME_DEBUG
28416#endif
28417
28418
28419SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
28420SWIG_InitializeModule(void *clientdata) {
28421 size_t i;
28422 swig_module_info *module_head, *iter;
28423 int found, init;
28424
28425 /* check to see if the circular list has been setup, if not, set it up */
28426 if (swig_module.next==0) {
28427 /* Initialize the swig_module */
28428 swig_module.type_initial = swig_type_initial;
28429 swig_module.cast_initial = swig_cast_initial;
28430 swig_module.next = &swig_module;
28431 init = 1;
28432 } else {
28433 init = 0;
28434 }
28435
28436 /* Try and load any already created modules */
28437 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
28438 if (!module_head) {
28439 /* This is the first module loaded for this interpreter */
28440 /* so set the swig module into the interpreter */
28441 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
28442 module_head = &swig_module;
Value stored to 'module_head' is never read
28443 } else {
28444 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
28445 found=0;
28446 iter=module_head;
28447 do {
28448 if (iter==&swig_module) {
28449 found=1;
28450 break;
28451 }
28452 iter=iter->next;
28453 } while (iter!= module_head);
28454
28455 /* if the is found in the list, then all is done and we may leave */
28456 if (found) return;
28457 /* otherwise we must add out module into the list */
28458 swig_module.next = module_head->next;
28459 module_head->next = &swig_module;
28460 }
28461
28462 /* When multiple interpreters are used, a module could have already been initialized in
28463 a different interpreter, but not yet have a pointer in this interpreter.
28464 In this case, we do not want to continue adding types... everything should be
28465 set up already */
28466 if (init == 0) return;
28467
28468 /* Now work on filling in swig_module.types */
28469#ifdef SWIGRUNTIME_DEBUG
28470 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
28471#endif
28472 for (i = 0; i < swig_module.size; ++i) {
28473 swig_type_info *type = 0;
28474 swig_type_info *ret;
28475 swig_cast_info *cast;
28476
28477#ifdef SWIGRUNTIME_DEBUG
28478 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
28479#endif
28480
28481 /* if there is another module already loaded */
28482 if (swig_module.next != &swig_module) {
28483 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
28484 }
28485 if (type) {
28486 /* Overwrite clientdata field */
28487#ifdef SWIGRUNTIME_DEBUG
28488 printf("SWIG_InitializeModule: found type %s\n", type->name);
28489#endif
28490 if (swig_module.type_initial[i]->clientdata) {
28491 type->clientdata = swig_module.type_initial[i]->clientdata;
28492#ifdef SWIGRUNTIME_DEBUG
28493 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
28494#endif
28495 }
28496 } else {
28497 type = swig_module.type_initial[i];
28498 }
28499
28500 /* Insert casting types */
28501 cast = swig_module.cast_initial[i];
28502 while (cast->type) {
28503 /* Don't need to add information already in the list */
28504 ret = 0;
28505#ifdef SWIGRUNTIME_DEBUG
28506 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
28507#endif
28508 if (swig_module.next != &swig_module) {
28509 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
28510#ifdef SWIGRUNTIME_DEBUG
28511 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
28512#endif
28513 }
28514 if (ret) {
28515 if (type == swig_module.type_initial[i]) {
28516#ifdef SWIGRUNTIME_DEBUG
28517 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
28518#endif
28519 cast->type = ret;
28520 ret = 0;
28521 } else {
28522 /* Check for casting already in the list */
28523 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
28524#ifdef SWIGRUNTIME_DEBUG
28525 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
28526#endif
28527 if (!ocast) ret = 0;
28528 }
28529 }
28530
28531 if (!ret) {
28532#ifdef SWIGRUNTIME_DEBUG
28533 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
28534#endif
28535 if (type->cast) {
28536 type->cast->prev = cast;
28537 cast->next = type->cast;
28538 }
28539 type->cast = cast;
28540 }
28541 cast++;
28542 }
28543 /* Set entry in modules->types array equal to the type */
28544 swig_module.types[i] = type;
28545 }
28546 swig_module.types[i] = 0;
28547
28548#ifdef SWIGRUNTIME_DEBUG
28549 printf("**** SWIG_InitializeModule: Cast List ******\n");
28550 for (i = 0; i < swig_module.size; ++i) {
28551 int j = 0;
28552 swig_cast_info *cast = swig_module.cast_initial[i];
28553 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
28554 while (cast->type) {
28555 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
28556 cast++;
28557 ++j;
28558 }
28559 printf("---- Total casts: %d\n",j);
28560 }
28561 printf("**** SWIG_InitializeModule: Cast List ******\n");
28562#endif
28563}
28564
28565/* This function will propagate the clientdata field of type to
28566* any new swig_type_info structures that have been added into the list
28567* of equivalent types. It is like calling
28568* SWIG_TypeClientData(type, clientdata) a second time.
28569*/
28570SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
28571SWIG_PropagateClientData(void) {
28572 size_t i;
28573 swig_cast_info *equiv;
28574 static int init_run = 0;
28575
28576 if (init_run) return;
28577 init_run = 1;
28578
28579 for (i = 0; i < swig_module.size; i++) {
28580 if (swig_module.types[i]->clientdata) {
28581 equiv = swig_module.types[i]->cast;
28582 while (equiv) {
28583 if (!equiv->converter) {
28584 if (equiv->type && !equiv->type->clientdata)
28585 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
28586 }
28587 equiv = equiv->next;
28588 }
28589 }
28590 }
28591}
28592
28593#ifdef __cplusplus199711L
28594#if 0
28595{
28596 /* c-mode */
28597#endif
28598}
28599#endif
28600
28601
28602
28603#ifdef __cplusplus199711L
28604extern "C" {
28605#endif
28606
28607 /* Python-specific SWIG API */
28608#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
28609#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)
28610#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
28611
28612 /* -----------------------------------------------------------------------------
28613 * global variable support code.
28614 * ----------------------------------------------------------------------------- */
28615
28616 typedef struct swig_globalvar {
28617 char *name; /* Name of global variable */
28618 PyObject *(*get_attr)(void); /* Return the current value */
28619 int (*set_attr)(PyObject *); /* Set the value */
28620 struct swig_globalvar *next;
28621 } swig_globalvar;
28622
28623 typedef struct swig_varlinkobject {
28624 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
28625 swig_globalvar *vars;
28626 } swig_varlinkobject;
28627
28628 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
28629 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
28630#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
28631 return PyUnicode_InternFromString("<Swig global variables>");
28632#else
28633 return PyString_FromString("<Swig global variables>");
28634#endif
28635 }
28636
28637 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
28638 swig_varlink_str(swig_varlinkobject *v) {
28639#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
28640 PyObject *str = PyUnicode_InternFromString("(");
28641 PyObject *tail;
28642 PyObject *joined;
28643 swig_globalvar *var;
28644 for (var = v->vars; var; var=var->next) {
28645 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
28646 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
28647 Py_DecRef(str);
28648 Py_DecRef(tail);
28649 str = joined;
28650 if (var->next) {
28651 tail = PyUnicode_InternFromString(", ");
28652 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
28653 Py_DecRef(str);
28654 Py_DecRef(tail);
28655 str = joined;
28656 }
28657 }
28658 tail = PyUnicode_InternFromString(")");
28659 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
28660 Py_DecRef(str);
28661 Py_DecRef(tail);
28662 str = joined;
28663#else
28664 PyObject *str = PyString_FromString("(");
28665 swig_globalvar *var;
28666 for (var = v->vars; var; var=var->next) {
28667 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
28668 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
28669 }
28670 PyString_ConcatAndDel(&str,PyString_FromString(")"));
28671#endif
28672 return str;
28673 }
28674
28675 SWIGINTERNstatic __attribute__ ((__unused__)) int
28676 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
28677 char *tmp;
28678 PyObject *str = swig_varlink_str(v);
28679 fprintf(fp,"Swig global variables ");
28680 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
28681 SWIG_Python_str_DelForPy3(tmp);
28682 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
28683 return 0;
28684 }
28685
28686 SWIGINTERNstatic __attribute__ ((__unused__)) void
28687 swig_varlink_dealloc(swig_varlinkobject *v) {
28688 swig_globalvar *var = v->vars;
28689 while (var) {
28690 swig_globalvar *n = var->next;
28691 free(var->name);
28692 free(var);
28693 var = n;
28694 }
28695 }
28696
28697 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
28698 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
28699 PyObject *res = NULL__null;
28700 swig_globalvar *var = v->vars;
28701 while (var) {
28702 if (strcmp(var->name,n) == 0) {
28703 res = (*var->get_attr)();
28704 break;
28705 }
28706 var = var->next;
28707 }
28708 if (res == NULL__null && !PyErr_Occurred()) {
28709 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
28710 }
28711 return res;
28712 }
28713
28714 SWIGINTERNstatic __attribute__ ((__unused__)) int
28715 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
28716 int res = 1;
28717 swig_globalvar *var = v->vars;
28718 while (var) {
28719 if (strcmp(var->name,n) == 0) {
28720 res = (*var->set_attr)(p);
28721 break;
28722 }
28723 var = var->next;
28724 }
28725 if (res == 1 && !PyErr_Occurred()) {
28726 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
28727 }
28728 return res;
28729 }
28730
28731 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
28732 swig_varlink_type(void) {
28733 static char varlink__doc__[] = "Swig var link object";
28734 static PyTypeObject varlink_type;
28735 static int type_init = 0;
28736 if (!type_init) {
28737 const PyTypeObject tmp = {
28738 /* PyObject header changed in Python 3 */
28739#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
28740 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
28741#else
28742 PyObject_HEAD_INIT(NULL)1, __null,
28743 0, /* ob_size */
28744#endif
28745 (char *)"swigvarlink", /* tp_name */
28746 sizeof(swig_varlinkobject), /* tp_basicsize */
28747 0, /* tp_itemsize */
28748 (destructor) swig_varlink_dealloc, /* tp_dealloc */
28749 (printfunc) swig_varlink_print, /* tp_print */
28750 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
28751 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
28752 0, /* tp_compare */
28753 (reprfunc) swig_varlink_repr, /* tp_repr */
28754 0, /* tp_as_number */
28755 0, /* tp_as_sequence */
28756 0, /* tp_as_mapping */
28757 0, /* tp_hash */
28758 0, /* tp_call */
28759 (reprfunc) swig_varlink_str, /* tp_str */
28760 0, /* tp_getattro */
28761 0, /* tp_setattro */
28762 0, /* tp_as_buffer */
28763 0, /* tp_flags */
28764 varlink__doc__, /* tp_doc */
28765 0, /* tp_traverse */
28766 0, /* tp_clear */
28767 0, /* tp_richcompare */
28768 0, /* tp_weaklistoffset */
28769#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
28770 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
28771#endif
28772#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
28773 0, /* tp_del */
28774#endif
28775#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
28776 0, /* tp_version */
28777#endif
28778#ifdef COUNT_ALLOCS
28779 0,0,0,0 /* tp_alloc -> tp_next */
28780#endif
28781 };
28782 varlink_type = tmp;
28783 type_init = 1;
28784#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
28785 varlink_type.ob_type = &PyType_Type;
28786#else
28787 if (PyType_Ready(&varlink_type) < 0)
28788 return NULL__null;
28789#endif
28790 }
28791 return &varlink_type;
28792 }
28793
28794 /* Create a variable linking object for use later */
28795 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
28796 SWIG_Python_newvarlink(void) {
28797 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
())) )
;
28798 if (result) {
28799 result->vars = 0;
28800 }
28801 return ((PyObject*) result);
28802 }
28803
28804 SWIGINTERNstatic __attribute__ ((__unused__)) void
28805 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
28806 swig_varlinkobject *v = (swig_varlinkobject *) p;
28807 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
28808 if (gv) {
28809 size_t size = strlen(name)+1;
28810 gv->name = (char *)malloc(size);
28811 if (gv->name) {
28812 strncpy(gv->name,name,size);
28813 gv->get_attr = get_attr;
28814 gv->set_attr = set_attr;
28815 gv->next = v->vars;
28816 }
28817 }
28818 v->vars = gv;
28819 }
28820
28821 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
28822 SWIG_globals(void) {
28823 static PyObject *_SWIG_globals = 0;
28824 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
28825 return _SWIG_globals;
28826 }
28827
28828 /* -----------------------------------------------------------------------------
28829 * constants/methods manipulation
28830 * ----------------------------------------------------------------------------- */
28831
28832 /* Install Constants */
28833 SWIGINTERNstatic __attribute__ ((__unused__)) void
28834 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
28835 PyObject *obj = 0;
28836 size_t i;
28837 for (i = 0; constants[i].type; ++i) {
28838 switch(constants[i].type) {
28839 case SWIG_PY_POINTER4:
28840 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
28841 break;
28842 case SWIG_PY_BINARY5:
28843 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
28844 break;
28845 default:
28846 obj = 0;
28847 break;
28848 }
28849 if (obj) {
28850 PyDict_SetItemString(d, constants[i].name, obj);
28851 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
28852 }
28853 }
28854 }
28855
28856 /* -----------------------------------------------------------------------------*/
28857 /* Fix SwigMethods to carry the callback ptrs when needed */
28858 /* -----------------------------------------------------------------------------*/
28859
28860 SWIGINTERNstatic __attribute__ ((__unused__)) void
28861 SWIG_Python_FixMethods(PyMethodDef *methods,
28862 swig_const_info *const_table,
28863 swig_type_info **types,
28864 swig_type_info **types_initial) {
28865 size_t i;
28866 for (i = 0; methods[i].ml_name; ++i) {
28867 const char *c = methods[i].ml_doc;
28868 if (c && (c = strstr(c, "swig_ptr: "))) {
28869 int j;
28870 swig_const_info *ci = 0;
28871 const char *name = c + 10;
28872 for (j = 0; const_table[j].type; ++j) {
28873 if (strncmp(const_table[j].name, name,
28874 strlen(const_table[j].name)) == 0) {
28875 ci = &(const_table[j]);
28876 break;
28877 }
28878 }
28879 if (ci) {
28880 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
28881 if (ptr) {
28882 size_t shift = (ci->ptype) - types;
28883 swig_type_info *ty = types_initial[shift];
28884 size_t ldoc = (c - methods[i].ml_doc);
28885 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
28886 char *ndoc = (char*)malloc(ldoc + lptr + 10);
28887 if (ndoc) {
28888 char *buff = ndoc;
28889 strncpy(buff, methods[i].ml_doc, ldoc);
28890 buff += ldoc;
28891 strncpy(buff, "swig_ptr: ", 10);
28892 buff += 10;
28893 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
28894 methods[i].ml_doc = ndoc;
28895 }
28896 }
28897 }
28898 }
28899 }
28900 }
28901
28902#ifdef __cplusplus199711L
28903}
28904#endif
28905
28906/* -----------------------------------------------------------------------------*
28907 * Partial Init method
28908 * -----------------------------------------------------------------------------*/
28909
28910#ifdef __cplusplus199711L
28911extern "C"
28912#endif
28913
28914SWIGEXPORT__attribute__ ((visibility("default")))
28915#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
28916PyObject*
28917#else
28918void
28919#endif
28920SWIG_initinit_obs(void) {
28921 PyObject *m, *d, *md;
28922#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
28923 static struct PyModuleDef SWIG_module = {
28924# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
28925 PyModuleDef_HEAD_INIT,
28926# else
28927 {
28928 PyObject_HEAD_INIT(NULL)1, __null,
28929 NULL__null, /* m_init */
28930 0, /* m_index */
28931 NULL__null, /* m_copy */
28932 },
28933# endif
28934 (char *) SWIG_name"_obs",
28935 NULL__null,
28936 -1,
28937 SwigMethods,
28938 NULL__null,
28939 NULL__null,
28940 NULL__null,
28941 NULL__null
28942 };
28943#endif
28944
28945#if defined(SWIGPYTHON_BUILTIN)
28946 static SwigPyClientData SwigPyObject_clientdata = {
28947 0, 0, 0, 0, 0, 0, 0
28948 };
28949 static PyGetSetDef this_getset_def = {
28950 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
28951 };
28952 static SwigPyGetSet thisown_getset_closure = {
28953 (PyCFunction) SwigPyObject_own,
28954 (PyCFunction) SwigPyObject_own
28955 };
28956 static PyGetSetDef thisown_getset_def = {
28957 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
28958 };
28959 PyObject *metatype_args;
28960 PyTypeObject *builtin_pytype;
28961 int builtin_base_count;
28962 swig_type_info *builtin_basetype;
28963 PyObject *tuple;
28964 PyGetSetDescrObject *static_getset;
28965 PyTypeObject *metatype;
28966 SwigPyClientData *cd;
28967 PyObject *public_interface, *public_symbol;
28968 PyObject *this_descr;
28969 PyObject *thisown_descr;
28970 int i;
28971
28972 (void)builtin_pytype;
28973 (void)builtin_base_count;
28974 (void)builtin_basetype;
28975 (void)tuple;
28976 (void)static_getset;
28977
28978 /* metatype is used to implement static member variables. */
28979 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
28980 assert(metatype_args)((void)0);
28981 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
28982 assert(metatype)((void)0);
28983 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)
;
28984 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
28985 assert(PyType_Ready(metatype) >= 0)((void)0);
28986#endif
28987
28988 /* Fix SwigMethods to carry the callback ptrs when needed */
28989 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
28990
28991#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
28992 m = PyModule_Create(&SWIG_module);
28993#else
28994 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_obs", SwigMethods, (char *)__null
, (PyObject *)__null, 1013)
;
28995#endif
28996 md = d = PyModule_GetDict(m);
28997 (void)md;
28998
28999 SWIG_InitializeModule(0);
29000
29001#ifdef SWIGPYTHON_BUILTIN
29002 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
29003 assert(SwigPyObject_stype)((void)0);
29004 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
29005 if (!cd) {
29006 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
29007 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
29008 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
29009 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
29010# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
29011 return NULL__null;
29012# else
29013 return;
29014# endif
29015 }
29016
29017 /* All objects have a 'this' attribute */
29018 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
29019 (void)this_descr;
29020
29021 /* All objects have a 'thisown' attribute */
29022 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
29023 (void)thisown_descr;
29024
29025 public_interface = PyList_New(0);
29026 public_symbol = 0;
29027 (void)public_symbol;
29028
29029 PyDict_SetItemString(md, "__all__", public_interface);
29030 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)
;
29031 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
29032 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
29033 for (i = 0; swig_const_table[i].name != 0; ++i)
29034 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
29035#endif
29036
29037 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
29038
29039#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
29040 return m;
29041#else
29042 return;
29043#endif
29044}
29045