Bug Summary

File:pyext/gammalib/xml_wrap.cpp
Location:line 11987, 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_GContainerswig_types[1] swig_types[1]
2942#define SWIGTYPE_p_GUrlswig_types[2] swig_types[2]
2943#define SWIGTYPE_p_GXmlswig_types[3] swig_types[3]
2944#define SWIGTYPE_p_GXmlAttributeswig_types[4] swig_types[4]
2945#define SWIGTYPE_p_GXmlCommentswig_types[5] swig_types[5]
2946#define SWIGTYPE_p_GXmlDocumentswig_types[6] swig_types[6]
2947#define SWIGTYPE_p_GXmlElementswig_types[7] swig_types[7]
2948#define SWIGTYPE_p_GXmlNodeswig_types[8] swig_types[8]
2949#define SWIGTYPE_p_GXmlPIswig_types[9] swig_types[9]
2950#define SWIGTYPE_p_GXmlTextswig_types[10] swig_types[10]
2951#define SWIGTYPE_p_charswig_types[11] swig_types[11]
2952#define SWIGTYPE_p_std__invalid_argumentswig_types[12] swig_types[12]
2953#define SWIGTYPE_p_swig__SwigPyIteratorswig_types[13] swig_types[13]
2954static swig_type_info *swig_types[15];
2955static swig_module_info swig_module = {swig_types, 14, 0, 0, 0, 0};
2956#define SWIG_TypeQuery(name)SWIG_TypeQueryModule(&swig_module, &swig_module, name
)
SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2957#define SWIG_MangledTypeQuery(name)SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, name)
SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2958
2959/* -------- TYPES TABLE (END) -------- */
2960
2961#if (PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
<= 0x02000000)
2962# if !defined(SWIG_PYTHON_CLASSIC)
2963# error "This python version requires swig to be run with the '-classic' option"
2964# endif
2965#endif
2966
2967/*-----------------------------------------------
2968 @(target):= _xml.so
2969 ------------------------------------------------*/
2970#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
2971# define SWIG_initinit_xml PyInit__xml
2972
2973#else
2974# define SWIG_initinit_xml init_xml
2975
2976#endif
2977#define SWIG_name"_xml" "_xml"
2978
2979#define SWIGVERSION0x020011 0x020011
2980#define SWIG_VERSION0x020011 SWIGVERSION0x020011
2981
2982
2983#define SWIG_as_voidptr(a)const_cast< void * >(static_cast< const void * >(
a))
const_cast< void * >(static_cast< const void * >(a))
2984#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))
2985
2986
2987#include <stdexcept>
2988
2989
2990namespace swig {
2991 class SwigPtr_PyObject {
2992 protected:
2993 PyObject *_obj;
2994
2995 public:
2996 SwigPtr_PyObject() :_obj(0)
2997 {
2998 }
2999
3000 SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
3001 {
3002 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3003 }
3004
3005 SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
3006 {
3007 if (initial_ref) {
3008 Py_XINCREF(_obj)do { if ((_obj) == __null) ; else ( ((PyObject*)(_obj))->ob_refcnt
++); } while (0)
;
3009 }
3010 }
3011
3012 SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
3013 {
3014 Py_XINCREF(item._obj)do { if ((item._obj) == __null) ; else ( ((PyObject*)(item._obj
))->ob_refcnt++); } while (0)
;
3015 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)
;
3016 _obj = item._obj;
3017 return *this;
3018 }
3019
3020 ~SwigPtr_PyObject()
3021 {
3022 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)
;
3023 }
3024
3025 operator PyObject *() const
3026 {
3027 return _obj;
3028 }
3029
3030 PyObject *operator->() const
3031 {
3032 return _obj;
3033 }
3034 };
3035}
3036
3037
3038namespace swig {
3039 struct SwigVar_PyObject : SwigPtr_PyObject {
3040 SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
3041
3042 SwigVar_PyObject & operator = (PyObject* obj)
3043 {
3044 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)
;
3045 _obj = obj;
3046 return *this;
3047 }
3048 };
3049}
3050
3051
3052#include <stddef.h>
3053#include "GException.hpp"
3054#include "GTools.hpp"
3055
3056
3057#include <stdexcept>
3058
3059
3060#if defined(__GNUC__4)
3061# if __GNUC__4 == 2 && __GNUC_MINOR <= 96
3062# define SWIG_STD_NOMODERN_STL
3063# endif
3064#endif
3065
3066
3067#include <string>
3068#include <stdexcept>
3069#include <stddef.h>
3070
3071
3072#include <string>
3073
3074
3075#include <iostream>
3076
3077#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
3078# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PyObject*) (obj))
3079#else
3080# define SWIGPY_SLICE_ARG(obj)((PySliceObject*) (obj)) ((PySliceObject*) (obj))
3081#endif
3082
3083
3084 #include <stddef.h>
3085
3086
3087namespace swig {
3088 struct stop_iteration {
3089 };
3090
3091 struct SwigPyIterator {
3092 private:
3093 SwigPtr_PyObject _seq;
3094
3095 protected:
3096 SwigPyIterator(PyObject *seq) : _seq(seq)
3097 {
3098 }
3099
3100 public:
3101 virtual ~SwigPyIterator() {}
3102
3103 // Access iterator method, required by Python
3104 virtual PyObject *value() const = 0;
3105
3106 // Forward iterator method, required by Python
3107 virtual SwigPyIterator *incr(size_t n = 1) = 0;
3108
3109 // Backward iterator method, very common in C++, but not required in Python
3110 virtual SwigPyIterator *decr(size_t /*n*/ = 1)
3111 {
3112 throw stop_iteration();
3113 }
3114
3115 // Random access iterator methods, but not required in Python
3116 virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
3117 {
3118 throw std::invalid_argument("operation not supported");
3119 }
3120
3121 virtual bool equal (const SwigPyIterator &/*x*/) const
3122 {
3123 throw std::invalid_argument("operation not supported");
3124 }
3125
3126 // C++ common/needed methods
3127 virtual SwigPyIterator *copy() const = 0;
3128
3129 PyObject *next()
3130 {
3131 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3132 PyObject *obj = value();
3133 incr();
3134 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3135 return obj;
3136 }
3137
3138 /* Make an alias for Python 3.x */
3139 PyObject *__next__()
3140 {
3141 return next();
3142 }
3143
3144 PyObject *previous()
3145 {
3146 SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
3147 decr();
3148 PyObject *obj = value();
3149 SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
3150 return obj;
3151 }
3152
3153 SwigPyIterator *advance(ptrdiff_t n)
3154 {
3155 return (n > 0) ? incr(n) : decr(-n);
3156 }
3157
3158 bool operator == (const SwigPyIterator& x) const
3159 {
3160 return equal(x);
3161 }
3162
3163 bool operator != (const SwigPyIterator& x) const
3164 {
3165 return ! operator==(x);
3166 }
3167
3168 SwigPyIterator& operator += (ptrdiff_t n)
3169 {
3170 return *advance(n);
3171 }
3172
3173 SwigPyIterator& operator -= (ptrdiff_t n)
3174 {
3175 return *advance(-n);
3176 }
3177
3178 SwigPyIterator* operator + (ptrdiff_t n) const
3179 {
3180 return copy()->advance(n);
3181 }
3182
3183 SwigPyIterator* operator - (ptrdiff_t n) const
3184 {
3185 return copy()->advance(-n);
3186 }
3187
3188 ptrdiff_t operator - (const SwigPyIterator& x) const
3189 {
3190 return x.distance(*this);
3191 }
3192
3193 static swig_type_info* descriptor() {
3194 static int init = 0;
3195 static swig_type_info* desc = 0;
3196 if (!init) {
3197 desc = SWIG_TypeQuery("swig::SwigPyIterator *")SWIG_TypeQueryModule(&swig_module, &swig_module, "swig::SwigPyIterator *"
)
;
3198 init = 1;
3199 }
3200 return desc;
3201 }
3202 };
3203
3204#if defined(SWIGPYTHON_BUILTIN)
3205 inline PyObject* make_output_iterator_builtin (PyObject *pyself)
3206 {
3207 Py_INCREF(pyself)( ((PyObject*)(pyself))->ob_refcnt++);
3208 return pyself;
3209 }
3210#endif
3211}
3212
3213
3214SWIGINTERNstatic __attribute__ ((__unused__)) int
3215SWIG_AsVal_double (PyObject *obj, double *val)
3216{
3217 int res = SWIG_TypeError-5;
3218 if (PyFloat_Check(obj)((((PyObject*)(obj))->ob_type) == (&PyFloat_Type) || PyType_IsSubtype
((((PyObject*)(obj))->ob_type), (&PyFloat_Type)))
) {
3219 if (val) *val = PyFloat_AsDouble(obj);
3220 return SWIG_OK(0);
3221 } else if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3222 if (val) *val = PyInt_AsLong(obj);
3223 return SWIG_OK(0);
3224 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3225 double v = PyLong_AsDouble(obj);
3226 if (!PyErr_Occurred()) {
3227 if (val) *val = v;
3228 return SWIG_OK(0);
3229 } else {
3230 PyErr_Clear();
3231 }
3232 }
3233#ifdef SWIG_PYTHON_CAST_MODE
3234 {
3235 int dispatch = 0;
3236 double d = PyFloat_AsDouble(obj);
3237 if (!PyErr_Occurred()) {
3238 if (val) *val = d;
3239 return SWIG_AddCast(SWIG_OK)((0));
3240 } else {
3241 PyErr_Clear();
3242 }
3243 if (!dispatch) {
3244 long v = PyLong_AsLong(obj);
3245 if (!PyErr_Occurred()) {
3246 if (val) *val = v;
3247 return SWIG_AddCast(SWIG_AddCast(SWIG_OK))(((0)));
3248 } else {
3249 PyErr_Clear();
3250 }
3251 }
3252 }
3253#endif
3254 return res;
3255}
3256
3257
3258#include <float.h>
3259
3260
3261#include <math.h>
3262
3263
3264SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3265SWIG_CanCastAsInteger(double *d, double min, double max) {
3266 double x = *d;
3267 if ((min <= x && x <= max)) {
3268 double fx = floor(x);
3269 double cx = ceil(x);
3270 double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
3271 if ((errno(*__error()) == EDOM33) || (errno(*__error()) == ERANGE34)) {
3272 errno(*__error()) = 0;
3273 } else {
3274 double summ, reps, diff;
3275 if (rd < x) {
3276 diff = x - rd;
3277 } else if (rd > x) {
3278 diff = rd - x;
3279 } else {
3280 return 1;
3281 }
3282 summ = rd + x;
3283 reps = diff/summ;
3284 if (reps < 8*DBL_EPSILON2.2204460492503131e-16) {
3285 *d = rd;
3286 return 1;
3287 }
3288 }
3289 }
3290 return 0;
3291}
3292
3293
3294SWIGINTERNstatic __attribute__ ((__unused__)) int
3295SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
3296{
3297#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x03000000
3298 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3299 long v = PyInt_AsLong(obj);
3300 if (v >= 0) {
3301 if (val) *val = v;
3302 return SWIG_OK(0);
3303 } else {
3304 return SWIG_OverflowError-7;
3305 }
3306 } else
3307#endif
3308 if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3309 unsigned long v = PyLong_AsUnsignedLong(obj);
3310 if (!PyErr_Occurred()) {
3311 if (val) *val = v;
3312 return SWIG_OK(0);
3313 } else {
3314 PyErr_Clear();
3315#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3316 {
3317 long v = PyLong_AsLong(obj);
3318 if (!PyErr_Occurred()) {
3319 if (v < 0) {
3320 return SWIG_OverflowError-7;
3321 }
3322 } else {
3323 PyErr_Clear();
3324 }
3325 }
3326#endif
3327 }
3328 }
3329#ifdef SWIG_PYTHON_CAST_MODE
3330 {
3331 int dispatch = 0;
3332 unsigned long v = PyLong_AsUnsignedLong(obj);
3333 if (!PyErr_Occurred()) {
3334 if (val) *val = v;
3335 return SWIG_AddCast(SWIG_OK)((0));
3336 } else {
3337 PyErr_Clear();
3338 }
3339 if (!dispatch) {
3340 double d;
3341 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3342 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX(9223372036854775807L *2UL+1UL))) {
3343 if (val) *val = (unsigned long)(d);
3344 return res;
3345 }
3346 }
3347 }
3348#endif
3349 return SWIG_TypeError-5;
3350}
3351
3352
3353SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3354SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3355{
3356 unsigned long v;
3357 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3358 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< size_t >(v);
3359 return res;
3360}
3361
3362
3363 #define SWIG_From_longPyLong_FromLong PyLong_FromLong
3364
3365
3366SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3367SWIG_From_ptrdiff_t (ptrdiff_t value)
3368{
3369 return SWIG_From_longPyLong_FromLong (static_cast< long >(value));
3370}
3371
3372
3373SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3374 SWIG_From_bool (bool value)
3375{
3376 return PyBool_FromLong(value ? 1 : 0);
3377}
3378
3379
3380SWIGINTERNstatic __attribute__ ((__unused__)) int
3381SWIG_AsVal_long (PyObject *obj, long* val)
3382{
3383 if (PyInt_Check(obj)((((obj)->ob_type)->tp_flags & ((1L<<23))) !=
0)
) {
3384 if (val) *val = PyInt_AsLong(obj);
3385 return SWIG_OK(0);
3386 } else if (PyLong_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
24))) != 0)
) {
3387 long v = PyLong_AsLong(obj);
3388 if (!PyErr_Occurred()) {
3389 if (val) *val = v;
3390 return SWIG_OK(0);
3391 } else {
3392 PyErr_Clear();
3393 }
3394 }
3395#ifdef SWIG_PYTHON_CAST_MODE
3396 {
3397 int dispatch = 0;
3398 long v = PyInt_AsLong(obj);
3399 if (!PyErr_Occurred()) {
3400 if (val) *val = v;
3401 return SWIG_AddCast(SWIG_OK)((0));
3402 } else {
3403 PyErr_Clear();
3404 }
3405 if (!dispatch) {
3406 double d;
3407 int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d))(SWIG_AsVal_double (obj,&d));
3408 if (SWIG_IsOK(res)(res >= 0) && SWIG_CanCastAsInteger(&d, LONG_MIN(-9223372036854775807L -1L), LONG_MAX9223372036854775807L)) {
3409 if (val) *val = (long)(d);
3410 return res;
3411 }
3412 }
3413 }
3414#endif
3415 return SWIG_TypeError-5;
3416}
3417
3418
3419SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline int
3420SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
3421{
3422 long v;
3423 int res = SWIG_AsVal_long (obj, val ? &v : 0);
3424 if (SWIG_IsOK(res)(res >= 0) && val) *val = static_cast< ptrdiff_t >(v);
3425 return res;
3426}
3427
3428
3429#include <stdexcept>
3430
3431
3432#include <algorithm>
3433
3434
3435#include <vector>
3436
3437
3438#include <utility>
3439
3440
3441#include <map>
3442#include <algorithm>
3443#include <stdexcept>
3444
3445
3446/* Put headers and other declarations here that are needed for compilation */
3447#include "GXml.hpp"
3448#include "GTools.hpp"
3449
3450
3451SWIGINTERNstatic __attribute__ ((__unused__)) swig_type_info*
3452SWIG_pchar_descriptor(void)
3453{
3454 static int init = 0;
3455 static swig_type_info* info = 0;
3456 if (!init) {
3457 info = SWIG_TypeQuery("_p_char")SWIG_TypeQueryModule(&swig_module, &swig_module, "_p_char"
)
;
3458 init = 1;
3459 }
3460 return info;
3461}
3462
3463
3464SWIGINTERNstatic __attribute__ ((__unused__)) int
3465SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
3466{
3467#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3468 if (PyUnicode_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
28))) != 0)
)
3469#else
3470 if (PyString_Check(obj)((((((PyObject*)(obj))->ob_type))->tp_flags & ((1L<<
27))) != 0)
)
3471#endif
3472 {
3473 char *cstr; Py_ssize_t len;
3474#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3475 if (!alloc && cptr) {
3476 /* We can't allow converting without allocation, since the internal
3477 representation of string in Python 3 is UCS-2/UCS-4 but we require
3478 a UTF-8 representation.
3479 TODO(bhy) More detailed explanation */
3480 return SWIG_RuntimeError-3;
3481 }
3482 obj = PyUnicode_AsUTF8StringPyUnicodeUCS2_AsUTF8String(obj);
3483 PyBytes_AsStringAndSizePyString_AsStringAndSize(obj, &cstr, &len);
3484 if(alloc) *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3485#else
3486 PyString_AsStringAndSize(obj, &cstr, &len);
3487#endif
3488 if (cptr) {
3489 if (alloc) {
3490 /*
3491 In python the user should not be able to modify the inner
3492 string representation. To warranty that, if you define
3493 SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
3494 buffer is always returned.
3495
3496 The default behavior is just to return the pointer value,
3497 so, be careful.
3498 */
3499#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
3500 if (*alloc != SWIG_OLDOBJ((0)))
3501#else
3502 if (*alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1)))
3503#endif
3504 {
3505 *cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
3506 *alloc = SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3507 }
3508 else {
3509 *cptr = cstr;
3510 *alloc = SWIG_OLDOBJ((0));
3511 }
3512 } else {
3513 #if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3514 assert(0)((void)0); /* Should never reach here in Python 3 */
3515 #endif
3516 *cptr = SWIG_Python_str_AsChar(obj);
3517 }
3518 }
3519 if (psize) *psize = len + 1;
3520#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>=0x03000000
3521 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)
;
3522#endif
3523 return SWIG_OK(0);
3524 } else {
3525 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3526 if (pchar_descriptor) {
3527 void* vptr = 0;
3528 if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, &vptr, pchar_descriptor
, 0, 0)
== SWIG_OK(0)) {
3529 if (cptr) *cptr = (char *) vptr;
3530 if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
3531 if (alloc) *alloc = SWIG_OLDOBJ((0));
3532 return SWIG_OK(0);
3533 }
3534 }
3535 }
3536 return SWIG_TypeError-5;
3537}
3538
3539
3540SWIGINTERNstatic __attribute__ ((__unused__)) int
3541SWIG_AsPtr_std_string (PyObject * obj, std::string **val)
3542{
3543 char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ((0));
3544 if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)
) >= 0)
) {
3545 if (buf) {
3546 if (val) *val = new std::string(buf, size - 1);
3547 if (alloc == SWIG_NEWOBJ((0) | ((1 << 8) << 1))) delete[] buf;
3548 return SWIG_NEWOBJ((0) | ((1 << 8) << 1));
3549 } else {
3550 if (val) *val = 0;
3551 return SWIG_OLDOBJ((0));
3552 }
3553 } else {
3554 static int init = 0;
3555 static swig_type_info* descriptor = 0;
3556 if (!init) {
3557 descriptor = SWIG_TypeQuery("std::string" " *")SWIG_TypeQueryModule(&swig_module, &swig_module, "std::string"
" *")
;
3558 init = 1;
3559 }
3560 if (descriptor) {
3561 std::string *vptr;
3562 int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0)SWIG_Python_ConvertPtrAndOwn(obj, (void**)&vptr, descriptor
, 0, 0)
;
3563 if (SWIG_IsOK(res)(res >= 0) && val) *val = vptr;
3564 return res;
3565 }
3566 }
3567 return SWIG_ERROR(-1);
3568}
3569
3570
3571SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject*
3572 SWIG_From_int (int value)
3573{
3574 return PyInt_FromLong((long) value);
3575}
3576
3577
3578#include <limits.h>
3579#if !defined(SWIG_NO_LLONG_MAX)
3580# if !defined(LLONG_MAX0x7fffffffffffffffLL) && defined(__GNUC__4) && defined (__LONG_LONG_MAX__9223372036854775807LL)
3581# define LLONG_MAX0x7fffffffffffffffLL __LONG_LONG_MAX__9223372036854775807LL
3582# define LLONG_MIN(-0x7fffffffffffffffLL-1) (-LLONG_MAX0x7fffffffffffffffLL - 1LL)
3583# define ULLONG_MAX0xffffffffffffffffULL (LLONG_MAX0x7fffffffffffffffLL * 2ULL + 1ULL)
3584# endif
3585#endif
3586
3587
3588SWIGINTERNstatic __attribute__ ((__unused__)) int
3589SWIG_AsVal_int (PyObject * obj, int *val)
3590{
3591 long v;
3592 int res = SWIG_AsVal_long (obj, &v);
3593 if (SWIG_IsOK(res)(res >= 0)) {
3594 if ((v < INT_MIN(-2147483647 -1) || v > INT_MAX2147483647)) {
3595 return SWIG_OverflowError-7;
3596 } else {
3597 if (val) *val = static_cast< int >(v);
3598 }
3599 }
3600 return res;
3601}
3602
3603SWIGINTERNstatic __attribute__ ((__unused__)) GXmlNode *GXml___getitem__(GXml *self,int const &index){
3604 if (index >= 0 && index < self->size()) {
3605 return (*self)[index];
3606 }
3607 else {
3608 throw GException::out_of_range("__getitem__(int)", index,
3609 0, self->size()-1);
3610 }
3611 }
3612SWIGINTERNstatic __attribute__ ((__unused__)) void GXml___setitem__(GXml *self,int const &index,GXmlNode const &node){
3613 if (index >= 0 && index < self->size()) {
3614 self->set(index, node);
3615 return;
3616 }
3617 else {
3618 throw GException::out_of_range("__setitem__(int)", index,
3619 0, self->size()-1);
3620 }
3621 }
3622SWIGINTERNstatic __attribute__ ((__unused__)) int GXml___len__(GXml *self){
3623 return (self->size());
3624 }
3625SWIGINTERNstatic __attribute__ ((__unused__)) GXml GXml_copy(GXml *self){
3626 return (*self);
3627 }
3628
3629/* Put headers and other declarations here that are needed for compilation */
3630#include "GXmlNode.hpp"
3631#include "GXmlElement.hpp"
3632#include "GXmlComment.hpp"
3633#include "GXmlDocument.hpp"
3634#include "GXmlPI.hpp"
3635#include "GXmlText.hpp"
3636#include "GTypemaps.hpp"
3637
3638SWIGINTERNstatic __attribute__ ((__unused__)) char *GXmlNode___str__(GXmlNode *self){
3639 return gammalib::tochar(self->print(NORMAL, 0));
3640 }
3641
3642SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3643SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3644{
3645 if (carray) {
3646 if (size > INT_MAX2147483647) {
3647 swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3648 return pchar_descriptor ?
3649 SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0)SWIG_Python_NewPointerObj(__null, const_cast< char * >(
carray), pchar_descriptor, 0)
: SWIG_Py_Void();
3650 } else {
3651#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
3652 return PyUnicode_FromStringAndSizePyUnicodeUCS2_FromStringAndSize(carray, static_cast< int >(size));
3653#else
3654 return PyString_FromStringAndSize(carray, static_cast< int >(size));
3655#endif
3656 }
3657 } else {
3658 return SWIG_Py_Void();
3659 }
3660}
3661
3662
3663SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3664SWIG_FromCharPtr(const char *cptr)
3665{
3666 return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3667}
3668
3669SWIGINTERNstatic __attribute__ ((__unused__)) GXmlNode *GXmlNode___getitem__(GXmlNode *self,int const &index){
3670 if (index >= 0 && index < self->size()) {
3671 return (*self)[index];
3672 }
3673 else {
3674 throw GException::out_of_range("__getitem__(int)", index,
3675 0, self->size()-1);
3676 }
3677 }
3678SWIGINTERNstatic __attribute__ ((__unused__)) void GXmlNode___setitem__(GXmlNode *self,int const &index,GXmlNode const &node){
3679 if (index >= 0 && index < self->size()) {
3680 self->set(index, node);
3681 return;
3682 }
3683 else {
3684 throw GException::out_of_range("__setitem__(int)", index,
3685 0, self->size()-1);
3686 }
3687 }
3688SWIGINTERNstatic __attribute__ ((__unused__)) int GXmlNode___len__(GXmlNode *self){
3689 return (self->size());
3690 }
3691
3692/* Put headers and other declarations here that are needed for compilation */
3693#include "GXmlDocument.hpp"
3694#include "GTools.hpp"
3695
3696
3697SWIGINTERNINLINEstatic __attribute__ ((__unused__)) inline PyObject *
3698SWIG_From_std_string (const std::string& s)
3699{
3700 return SWIG_FromCharPtrAndSize(s.data(), s.size());
3701}
3702
3703SWIGINTERNstatic __attribute__ ((__unused__)) GXmlDocument GXmlDocument_copy(GXmlDocument *self){
3704 return (*self);
3705 }
3706
3707/* Put headers and other declarations here that are needed for compilation */
3708#include "GXmlText.hpp"
3709#include "GTools.hpp"
3710
3711SWIGINTERNstatic __attribute__ ((__unused__)) GXmlText GXmlText_copy(GXmlText *self){
3712 return (*self);
3713 }
3714
3715/* Put headers and other declarations here that are needed for compilation */
3716#include "GXmlElement.hpp"
3717#include "GTools.hpp"
3718
3719SWIGINTERNstatic __attribute__ ((__unused__)) GXmlElement GXmlElement_copy(GXmlElement *self){
3720 return (*self);
3721 }
3722
3723/* Put headers and other declarations here that are needed for compilation */
3724#include "GXmlComment.hpp"
3725#include "GTools.hpp"
3726
3727SWIGINTERNstatic __attribute__ ((__unused__)) GXmlComment GXmlComment_copy(GXmlComment *self){
3728 return (*self);
3729 }
3730
3731/* Put headers and other declarations here that are needed for compilation */
3732#include "GXmlAttribute.hpp"
3733#include "GTools.hpp"
3734
3735
3736/* Put headers and other declarations here that are needed for compilation */
3737#include "GXmlPI.hpp"
3738#include "GTools.hpp"
3739
3740SWIGINTERNstatic __attribute__ ((__unused__)) GXmlPI GXmlPI_copy(GXmlPI *self){
3741 return (*self);
3742 }
3743#ifdef __cplusplus199711L
3744extern "C" {
3745#endif
3746SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3747 PyObject *resultobj = 0;
3748 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3749 void *argp1 = 0 ;
3750 int res1 = 0 ;
3751 PyObject * obj0 = 0 ;
3752
3753 if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_failgoto fail;
3754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0x1 | 0, 0)
;
3755 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3756 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)
;
3757 }
3758 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3759 delete arg1;
3760 resultobj = SWIG_Py_Void();
3761 return resultobj;
3762fail:
3763 return NULL__null;
3764}
3765
3766
3767SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3768 PyObject *resultobj = 0;
3769 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3770 void *argp1 = 0 ;
3771 int res1 = 0 ;
3772 PyObject * obj0 = 0 ;
3773 PyObject *result = 0 ;
3774
3775 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_failgoto fail;
3776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
3777 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3778 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)
;
3779 }
3780 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3781 try {
3782 result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
3783 }
3784 catch(swig::stop_iteration &_e) {
3785 {
3786 (void)_e;
3787 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3788 SWIG_failgoto fail;
3789 }
3790 }
3791
3792 resultobj = result;
3793 return resultobj;
3794fail:
3795 return NULL__null;
3796}
3797
3798
3799SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3800 PyObject *resultobj = 0;
3801 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3802 size_t arg2 ;
3803 void *argp1 = 0 ;
3804 int res1 = 0 ;
3805 size_t val2 ;
3806 int ecode2 = 0 ;
3807 PyObject * obj0 = 0 ;
3808 PyObject * obj1 = 0 ;
3809 swig::SwigPyIterator *result = 0 ;
3810
3811 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_failgoto fail;
3812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
3813 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3814 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)
;
3815 }
3816 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3817 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3818 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3819 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)
;
3820 }
3821 arg2 = static_cast< size_t >(val2);
3822 try {
3823 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
3824 }
3825 catch(swig::stop_iteration &_e) {
3826 {
3827 (void)_e;
3828 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3829 SWIG_failgoto fail;
3830 }
3831 }
3832
3833 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[13], 0
| 0)
;
3834 return resultobj;
3835fail:
3836 return NULL__null;
3837}
3838
3839
3840SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3841 PyObject *resultobj = 0;
3842 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3843 void *argp1 = 0 ;
3844 int res1 = 0 ;
3845 PyObject * obj0 = 0 ;
3846 swig::SwigPyIterator *result = 0 ;
3847
3848 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_failgoto fail;
3849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
3850 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3851 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)
;
3852 }
3853 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3854 try {
3855 result = (swig::SwigPyIterator *)(arg1)->incr();
3856 }
3857 catch(swig::stop_iteration &_e) {
3858 {
3859 (void)_e;
3860 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3861 SWIG_failgoto fail;
3862 }
3863 }
3864
3865 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[13], 0
| 0)
;
3866 return resultobj;
3867fail:
3868 return NULL__null;
3869}
3870
3871
3872SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
3873 int argc;
3874 PyObject *argv[3];
3875 int ii;
3876
3877 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3878 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3879 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3880 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3881 }
3882 if (argc == 1) {
3883 int _v;
3884 void *vptr = 0;
3885 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
3886 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3887 if (_v) {
3888 return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
3889 }
3890 }
3891 if (argc == 2) {
3892 int _v;
3893 void *vptr = 0;
3894 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
3895 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3896 if (_v) {
3897 {
3898 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
3899 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
3900 }
3901 if (_v) {
3902 return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
3903 }
3904 }
3905 }
3906
3907fail:
3908 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
3909 " Possible C/C++ prototypes are:\n"
3910 " swig::SwigPyIterator::incr(size_t)\n"
3911 " swig::SwigPyIterator::incr()\n");
3912 return 0;
3913}
3914
3915
3916SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3917 PyObject *resultobj = 0;
3918 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3919 size_t arg2 ;
3920 void *argp1 = 0 ;
3921 int res1 = 0 ;
3922 size_t val2 ;
3923 int ecode2 = 0 ;
3924 PyObject * obj0 = 0 ;
3925 PyObject * obj1 = 0 ;
3926 swig::SwigPyIterator *result = 0 ;
3927
3928 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_failgoto fail;
3929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
3930 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3931 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)
;
3932 }
3933 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3934 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
3935 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
3936 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)
;
3937 }
3938 arg2 = static_cast< size_t >(val2);
3939 try {
3940 result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
3941 }
3942 catch(swig::stop_iteration &_e) {
3943 {
3944 (void)_e;
3945 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3946 SWIG_failgoto fail;
3947 }
3948 }
3949
3950 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[13], 0
| 0)
;
3951 return resultobj;
3952fail:
3953 return NULL__null;
3954}
3955
3956
3957SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3958 PyObject *resultobj = 0;
3959 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
3960 void *argp1 = 0 ;
3961 int res1 = 0 ;
3962 PyObject * obj0 = 0 ;
3963 swig::SwigPyIterator *result = 0 ;
3964
3965 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_failgoto fail;
3966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
3967 if (!SWIG_IsOK(res1)(res1 >= 0)) {
3968 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)
;
3969 }
3970 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
3971 try {
3972 result = (swig::SwigPyIterator *)(arg1)->decr();
3973 }
3974 catch(swig::stop_iteration &_e) {
3975 {
3976 (void)_e;
3977 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
3978 SWIG_failgoto fail;
3979 }
3980 }
3981
3982 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[13], 0
| 0)
;
3983 return resultobj;
3984fail:
3985 return NULL__null;
3986}
3987
3988
3989SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
3990 int argc;
3991 PyObject *argv[3];
3992 int ii;
3993
3994 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
3995 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
3996 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
3997 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
3998 }
3999 if (argc == 1) {
4000 int _v;
4001 void *vptr = 0;
4002 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
4003 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4004 if (_v) {
4005 return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
4006 }
4007 }
4008 if (argc == 2) {
4009 int _v;
4010 void *vptr = 0;
4011 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
4012 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4013 if (_v) {
4014 {
4015 int res = SWIG_AsVal_size_t(argv[1], NULL__null);
4016 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4017 }
4018 if (_v) {
4019 return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
4020 }
4021 }
4022 }
4023
4024fail:
4025 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
4026 " Possible C/C++ prototypes are:\n"
4027 " swig::SwigPyIterator::decr(size_t)\n"
4028 " swig::SwigPyIterator::decr()\n");
4029 return 0;
4030}
4031
4032
4033SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4034 PyObject *resultobj = 0;
4035 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4036 swig::SwigPyIterator *arg2 = 0 ;
4037 void *argp1 = 0 ;
4038 int res1 = 0 ;
4039 void *argp2 = 0 ;
4040 int res2 = 0 ;
4041 PyObject * obj0 = 0 ;
4042 PyObject * obj1 = 0 ;
4043 ptrdiff_t result;
4044
4045 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_failgoto fail;
4046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4047 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4048 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)
;
4049 }
4050 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4051 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0 | 0, 0)
;
4052 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4053 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)
;
4054 }
4055 if (!argp2) {
4056 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
)
;
4057 }
4058 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4059 try {
4060 result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
4061 }
4062 catch(std::invalid_argument &_e) {
4063 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[
12]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[12], 0x1))
; SWIG_failgoto fail;
4064 }
4065
4066 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4067 return resultobj;
4068fail:
4069 return NULL__null;
4070}
4071
4072
4073SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4074 PyObject *resultobj = 0;
4075 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4076 swig::SwigPyIterator *arg2 = 0 ;
4077 void *argp1 = 0 ;
4078 int res1 = 0 ;
4079 void *argp2 = 0 ;
4080 int res2 = 0 ;
4081 PyObject * obj0 = 0 ;
4082 PyObject * obj1 = 0 ;
4083 bool result;
4084
4085 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_failgoto fail;
4086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4087 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4088 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)
;
4089 }
4090 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4091 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0 | 0, 0)
;
4092 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4093 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)
;
4094 }
4095 if (!argp2) {
4096 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
)
;
4097 }
4098 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4099 try {
4100 result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
4101 }
4102 catch(std::invalid_argument &_e) {
4103 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[
12]), SWIG_Python_NewPointerObj(__null, (new std::invalid_argument
(static_cast< const std::invalid_argument& >(_e))),
swig_types[12], 0x1))
; SWIG_failgoto fail;
4104 }
4105
4106 resultobj = SWIG_From_bool(static_cast< bool >(result));
4107 return resultobj;
4108fail:
4109 return NULL__null;
4110}
4111
4112
4113SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4114 PyObject *resultobj = 0;
4115 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4116 void *argp1 = 0 ;
4117 int res1 = 0 ;
4118 PyObject * obj0 = 0 ;
4119 swig::SwigPyIterator *result = 0 ;
4120
4121 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_failgoto fail;
4122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4123 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4124 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)
;
4125 }
4126 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4127 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
4128 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[13], 0x1
| 0)
;
4129 return resultobj;
4130fail:
4131 return NULL__null;
4132}
4133
4134
4135SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4136 PyObject *resultobj = 0;
4137 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4138 void *argp1 = 0 ;
4139 int res1 = 0 ;
4140 PyObject * obj0 = 0 ;
4141 PyObject *result = 0 ;
4142
4143 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_failgoto fail;
4144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4145 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4146 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)
;
4147 }
4148 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4149 try {
4150 result = (PyObject *)(arg1)->next();
4151 }
4152 catch(swig::stop_iteration &_e) {
4153 {
4154 (void)_e;
4155 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4156 SWIG_failgoto fail;
4157 }
4158 }
4159
4160 resultobj = result;
4161 return resultobj;
4162fail:
4163 return NULL__null;
4164}
4165
4166
4167SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4168 PyObject *resultobj = 0;
4169 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4170 void *argp1 = 0 ;
4171 int res1 = 0 ;
4172 PyObject * obj0 = 0 ;
4173 PyObject *result = 0 ;
4174
4175 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_failgoto fail;
4176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4177 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4178 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)
;
4179 }
4180 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4181 try {
4182 result = (PyObject *)(arg1)->__next__();
4183 }
4184 catch(swig::stop_iteration &_e) {
4185 {
4186 (void)_e;
4187 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4188 SWIG_failgoto fail;
4189 }
4190 }
4191
4192 resultobj = result;
4193 return resultobj;
4194fail:
4195 return NULL__null;
4196}
4197
4198
4199SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4200 PyObject *resultobj = 0;
4201 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4202 void *argp1 = 0 ;
4203 int res1 = 0 ;
4204 PyObject * obj0 = 0 ;
4205 PyObject *result = 0 ;
4206
4207 if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_failgoto fail;
4208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4209 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4210 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)
;
4211 }
4212 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4213 try {
4214 result = (PyObject *)(arg1)->previous();
4215 }
4216 catch(swig::stop_iteration &_e) {
4217 {
4218 (void)_e;
4219 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4220 SWIG_failgoto fail;
4221 }
4222 }
4223
4224 resultobj = result;
4225 return resultobj;
4226fail:
4227 return NULL__null;
4228}
4229
4230
4231SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4232 PyObject *resultobj = 0;
4233 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4234 ptrdiff_t arg2 ;
4235 void *argp1 = 0 ;
4236 int res1 = 0 ;
4237 ptrdiff_t val2 ;
4238 int ecode2 = 0 ;
4239 PyObject * obj0 = 0 ;
4240 PyObject * obj1 = 0 ;
4241 swig::SwigPyIterator *result = 0 ;
4242
4243 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_failgoto fail;
4244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4245 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4246 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)
;
4247 }
4248 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4249 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4250 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4251 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)
;
4252 }
4253 arg2 = static_cast< ptrdiff_t >(val2);
4254 try {
4255 result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
4256 }
4257 catch(swig::stop_iteration &_e) {
4258 {
4259 (void)_e;
4260 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4261 SWIG_failgoto fail;
4262 }
4263 }
4264
4265 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[13], 0
| 0)
;
4266 return resultobj;
4267fail:
4268 return NULL__null;
4269}
4270
4271
4272SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4273 PyObject *resultobj = 0;
4274 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4275 swig::SwigPyIterator *arg2 = 0 ;
4276 void *argp1 = 0 ;
4277 int res1 = 0 ;
4278 void *argp2 = 0 ;
4279 int res2 = 0 ;
4280 PyObject * obj0 = 0 ;
4281 PyObject * obj1 = 0 ;
4282 bool result;
4283
4284 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_failgoto fail;
4285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4286 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4287 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)
;
4288 }
4289 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0 | 0, 0)
;
4291 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4292 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)
;
4293 }
4294 if (!argp2) {
4295 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
)
;
4296 }
4297 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4298 result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
4299 resultobj = SWIG_From_bool(static_cast< bool >(result));
4300 return resultobj;
4301fail:
4302 return NULL__null;
4303}
4304
4305
4306SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4307 PyObject *resultobj = 0;
4308 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4309 swig::SwigPyIterator *arg2 = 0 ;
4310 void *argp1 = 0 ;
4311 int res1 = 0 ;
4312 void *argp2 = 0 ;
4313 int res2 = 0 ;
4314 PyObject * obj0 = 0 ;
4315 PyObject * obj1 = 0 ;
4316 bool result;
4317
4318 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_failgoto fail;
4319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4320 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4321 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)
;
4322 }
4323 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0 | 0, 0)
;
4325 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4326 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)
;
4327 }
4328 if (!argp2) {
4329 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
)
;
4330 }
4331 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4332 result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
4333 resultobj = SWIG_From_bool(static_cast< bool >(result));
4334 return resultobj;
4335fail:
4336 return NULL__null;
4337}
4338
4339
4340SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4341 PyObject *resultobj = 0;
4342 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4343 ptrdiff_t arg2 ;
4344 void *argp1 = 0 ;
4345 int res1 = 0 ;
4346 ptrdiff_t val2 ;
4347 int ecode2 = 0 ;
4348 PyObject * obj0 = 0 ;
4349 PyObject * obj1 = 0 ;
4350 swig::SwigPyIterator *result = 0 ;
4351
4352 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_failgoto fail;
4353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0x1 | 0, 0)
;
4354 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4355 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)
;
4356 }
4357 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4358 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4359 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4360 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)
;
4361 }
4362 arg2 = static_cast< ptrdiff_t >(val2);
4363 try {
4364 result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
4365 }
4366 catch(swig::stop_iteration &_e) {
4367 {
4368 (void)_e;
4369 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4370 SWIG_failgoto fail;
4371 }
4372 }
4373
4374 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[13], 0x1
| 0)
;
4375 return resultobj;
4376fail:
4377 return NULL__null;
4378}
4379
4380
4381SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4382 PyObject *resultobj = 0;
4383 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4384 ptrdiff_t arg2 ;
4385 void *argp1 = 0 ;
4386 int res1 = 0 ;
4387 ptrdiff_t val2 ;
4388 int ecode2 = 0 ;
4389 PyObject * obj0 = 0 ;
4390 PyObject * obj1 = 0 ;
4391 swig::SwigPyIterator *result = 0 ;
4392
4393 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_failgoto fail;
4394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0x1 | 0, 0)
;
4395 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4396 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)
;
4397 }
4398 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4399 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4400 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4401 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)
;
4402 }
4403 arg2 = static_cast< ptrdiff_t >(val2);
4404 try {
4405 result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
4406 }
4407 catch(swig::stop_iteration &_e) {
4408 {
4409 (void)_e;
4410 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4411 SWIG_failgoto fail;
4412 }
4413 }
4414
4415 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[13], 0x1
| 0)
;
4416 return resultobj;
4417fail:
4418 return NULL__null;
4419}
4420
4421
4422SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4423 PyObject *resultobj = 0;
4424 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4425 ptrdiff_t arg2 ;
4426 void *argp1 = 0 ;
4427 int res1 = 0 ;
4428 ptrdiff_t val2 ;
4429 int ecode2 = 0 ;
4430 PyObject * obj0 = 0 ;
4431 PyObject * obj1 = 0 ;
4432 swig::SwigPyIterator *result = 0 ;
4433
4434 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_failgoto fail;
4435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4436 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4437 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)
;
4438 }
4439 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4440 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4441 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4442 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)
;
4443 }
4444 arg2 = static_cast< ptrdiff_t >(val2);
4445 try {
4446 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
4447 }
4448 catch(swig::stop_iteration &_e) {
4449 {
4450 (void)_e;
4451 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4452 SWIG_failgoto fail;
4453 }
4454 }
4455
4456 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[13], 0x1
| 0)
;
4457 return resultobj;
4458fail:
4459 return NULL__null;
4460}
4461
4462
4463SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4464 PyObject *resultobj = 0;
4465 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4466 ptrdiff_t arg2 ;
4467 void *argp1 = 0 ;
4468 int res1 = 0 ;
4469 ptrdiff_t val2 ;
4470 int ecode2 = 0 ;
4471 PyObject * obj0 = 0 ;
4472 PyObject * obj1 = 0 ;
4473 swig::SwigPyIterator *result = 0 ;
4474
4475 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4477 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4478 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)
;
4479 }
4480 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4481 ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
4482 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4483 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)
;
4484 }
4485 arg2 = static_cast< ptrdiff_t >(val2);
4486 try {
4487 result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
4488 }
4489 catch(swig::stop_iteration &_e) {
4490 {
4491 (void)_e;
4492 SWIG_SetErrorObjSWIG_Python_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
4493 SWIG_failgoto fail;
4494 }
4495 }
4496
4497 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[13], 0x1
| 0)
;
4498 return resultobj;
4499fail:
4500 return NULL__null;
4501}
4502
4503
4504SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4505 PyObject *resultobj = 0;
4506 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
4507 swig::SwigPyIterator *arg2 = 0 ;
4508 void *argp1 = 0 ;
4509 int res1 = 0 ;
4510 void *argp2 = 0 ;
4511 int res2 = 0 ;
4512 PyObject * obj0 = 0 ;
4513 PyObject * obj1 = 0 ;
4514 ptrdiff_t result;
4515
4516 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_failgoto fail;
4517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[13]
, 0 | 0, 0)
;
4518 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4519 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)
;
4520 }
4521 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
4522 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[13]
, 0 | 0, 0)
;
4523 if (!SWIG_IsOK(res2)(res2 >= 0)) {
4524 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)
;
4525 }
4526 if (!argp2) {
4527 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
)
;
4528 }
4529 arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
4530 result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
4531 resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
4532 return resultobj;
4533fail:
4534 return NULL__null;
4535}
4536
4537
4538SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
4539 int argc;
4540 PyObject *argv[3];
4541 int ii;
4542
4543 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4544 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4545 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
4546 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4547 }
4548 if (argc == 2) {
4549 int _v;
4550 void *vptr = 0;
4551 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
4552 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4553 if (_v) {
4554 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[13], 0, 0
)
;
4555 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4556 if (_v) {
4557 return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
4558 }
4559 }
4560 }
4561 if (argc == 2) {
4562 int _v;
4563 void *vptr = 0;
4564 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[13
], 0, 0)
;
4565 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4566 if (_v) {
4567 {
4568 int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL__null);
4569 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4570 }
4571 if (_v) {
4572 return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
4573 }
4574 }
4575 }
4576
4577fail:
4578 Py_INCREF(Py_NotImplemented)( ((PyObject*)((&_Py_NotImplementedStruct)))->ob_refcnt
++)
;
4579 return Py_NotImplemented(&_Py_NotImplementedStruct);
4580}
4581
4582
4583SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4584 PyObject *obj;
4585 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
4586 SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIteratorswig_types[13], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
4587 return SWIG_Py_Void();
4588}
4589
4590SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXml__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4591 PyObject *resultobj = 0;
4592 GXml *result = 0 ;
4593
4594 if (!PyArg_ParseTuple(args,(char *)":new_GXml")) SWIG_failgoto fail;
4595 {
4596 try {
4597 result = (GXml *)new GXml();
4598 }
4599 catch (const GException::out_of_range& e) {
4600 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4601 }
4602 catch (const GExceptionHandler& e) {
4603 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4604 }
4605 catch (const std::exception& e) {
4606 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4607 }
4608 }
4609 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXml, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
4610 return resultobj;
4611fail:
4612 return NULL__null;
4613}
4614
4615
4616SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXml__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4617 PyObject *resultobj = 0;
4618 GXml *arg1 = 0 ;
4619 void *argp1 = 0 ;
4620 int res1 = 0 ;
4621 PyObject * obj0 = 0 ;
4622 GXml *result = 0 ;
4623
4624 if (!PyArg_ParseTuple(args,(char *)"O:new_GXml",&obj0)) SWIG_failgoto fail;
4625 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXml, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4626 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXml" "', argument " "1"" of type '" "GXml const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXml" "', argument " "1"
" of type '" "GXml const &""'"); goto fail; } while(0)
;
4628 }
4629 if (!argp1) {
4630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXml" "', argument " "1"" of type '" "GXml const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXml" "', argument " "1"" of type '" "GXml const &"
"'"); goto fail; } while(0)
;
4631 }
4632 arg1 = reinterpret_cast< GXml * >(argp1);
4633 {
4634 try {
4635 result = (GXml *)new GXml((GXml const &)*arg1);
4636 }
4637 catch (const GException::out_of_range& e) {
4638 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4639 }
4640 catch (const GExceptionHandler& e) {
4641 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4642 }
4643 catch (const std::exception& e) {
4644 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4645 }
4646 }
4647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXml, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
4648 return resultobj;
4649fail:
4650 return NULL__null;
4651}
4652
4653
4654SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXml__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4655 PyObject *resultobj = 0;
4656 std::string *arg1 = 0 ;
4657 int res1 = SWIG_OLDOBJ((0)) ;
4658 PyObject * obj0 = 0 ;
4659 GXml *result = 0 ;
4660
4661 if (!PyArg_ParseTuple(args,(char *)"O:new_GXml",&obj0)) SWIG_failgoto fail;
4662 {
4663 std::string *ptr = (std::string *)0;
4664 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
4665 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXml" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXml" "', argument " "1"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
4667 }
4668 if (!ptr) {
4669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXml" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXml" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
4670 }
4671 arg1 = ptr;
4672 }
4673 {
4674 try {
4675 result = (GXml *)new GXml((std::string const &)*arg1);
4676 }
4677 catch (const GException::out_of_range& e) {
4678 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4679 }
4680 catch (const GExceptionHandler& e) {
4681 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4682 }
4683 catch (const std::exception& e) {
4684 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4685 }
4686 }
4687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXml, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], ((
0x1 << 1) | 0x1) | 0)
;
4688 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4689 return resultobj;
4690fail:
4691 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
4692 return NULL__null;
4693}
4694
4695
4696SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXml(PyObject *self, PyObject *args) {
4697 int argc;
4698 PyObject *argv[2];
4699 int ii;
4700
4701 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
4702 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
4703 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
4704 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
4705 }
4706 if (argc == 0) {
4707 return _wrap_new_GXml__SWIG_0(self, args);
4708 }
4709 if (argc == 1) {
4710 int _v;
4711 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[3], 0, 0);
4712 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4713 if (_v) {
4714 return _wrap_new_GXml__SWIG_1(self, args);
4715 }
4716 }
4717 if (argc == 1) {
4718 int _v;
4719 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
4720 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
4721 if (_v) {
4722 return _wrap_new_GXml__SWIG_2(self, args);
4723 }
4724 }
4725
4726fail:
4727 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GXml'.\n"
4728 " Possible C/C++ prototypes are:\n"
4729 " GXml::GXml()\n"
4730 " GXml::GXml(GXml const &)\n"
4731 " GXml::GXml(std::string const &)\n");
4732 return 0;
4733}
4734
4735
4736SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXml(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4737 PyObject *resultobj = 0;
4738 GXml *arg1 = (GXml *) 0 ;
4739 void *argp1 = 0 ;
4740 int res1 = 0 ;
4741 PyObject * obj0 = 0 ;
4742
4743 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXml",&obj0)) SWIG_failgoto fail;
4744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0x1 | 0, 0)
;
4745 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXml" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXml" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
4747 }
4748 arg1 = reinterpret_cast< GXml * >(argp1);
4749 {
4750 try {
4751 delete arg1;
4752 }
4753 catch (const GException::out_of_range& e) {
4754 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4755 }
4756 catch (const GExceptionHandler& e) {
4757 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4758 }
4759 catch (const std::exception& e) {
4760 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4761 }
4762 }
4763 resultobj = SWIG_Py_Void();
4764 return resultobj;
4765fail:
4766 return NULL__null;
4767}
4768
4769
4770SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4771 PyObject *resultobj = 0;
4772 GXml *arg1 = (GXml *) 0 ;
4773 void *argp1 = 0 ;
4774 int res1 = 0 ;
4775 PyObject * obj0 = 0 ;
4776
4777 if (!PyArg_ParseTuple(args,(char *)"O:GXml_clear",&obj0)) SWIG_failgoto fail;
4778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4779 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_clear" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_clear" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
4781 }
4782 arg1 = reinterpret_cast< GXml * >(argp1);
4783 {
4784 try {
4785 (arg1)->clear();
4786 }
4787 catch (const GException::out_of_range& e) {
4788 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4789 }
4790 catch (const GExceptionHandler& e) {
4791 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4792 }
4793 catch (const std::exception& e) {
4794 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4795 }
4796 }
4797 resultobj = SWIG_Py_Void();
4798 return resultobj;
4799fail:
4800 return NULL__null;
4801}
4802
4803
4804SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4805 PyObject *resultobj = 0;
4806 GXml *arg1 = (GXml *) 0 ;
4807 void *argp1 = 0 ;
4808 int res1 = 0 ;
4809 PyObject * obj0 = 0 ;
4810 GXml *result = 0 ;
4811
4812 if (!PyArg_ParseTuple(args,(char *)"O:GXml_clone",&obj0)) SWIG_failgoto fail;
4813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4814 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_clone" "', argument " "1"" of type '" "GXml const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_clone" "', argument "
"1"" of type '" "GXml const *""'"); goto fail; } while(0)
;
4816 }
4817 arg1 = reinterpret_cast< GXml * >(argp1);
4818 {
4819 try {
4820 result = (GXml *)((GXml const *)arg1)->clone();
4821 }
4822 catch (const GException::out_of_range& e) {
4823 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4824 }
4825 catch (const GExceptionHandler& e) {
4826 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4827 }
4828 catch (const std::exception& e) {
4829 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4830 }
4831 }
4832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[3], 0 |
0)
;
4833 return resultobj;
4834fail:
4835 return NULL__null;
4836}
4837
4838
4839SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4840 PyObject *resultobj = 0;
4841 GXml *arg1 = (GXml *) 0 ;
4842 void *argp1 = 0 ;
4843 int res1 = 0 ;
4844 PyObject * obj0 = 0 ;
4845 int result;
4846
4847 if (!PyArg_ParseTuple(args,(char *)"O:GXml_size",&obj0)) SWIG_failgoto fail;
4848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4849 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_size" "', argument " "1"" of type '" "GXml const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_size" "', argument " "1"
" of type '" "GXml const *""'"); goto fail; } while(0)
;
4851 }
4852 arg1 = reinterpret_cast< GXml * >(argp1);
4853 {
4854 try {
4855 result = (int)((GXml const *)arg1)->size();
4856 }
4857 catch (const GException::out_of_range& e) {
4858 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4859 }
4860 catch (const GExceptionHandler& e) {
4861 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4862 }
4863 catch (const std::exception& e) {
4864 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4865 }
4866 }
4867 resultobj = SWIG_From_int(static_cast< int >(result));
4868 return resultobj;
4869fail:
4870 return NULL__null;
4871}
4872
4873
4874SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4875 PyObject *resultobj = 0;
4876 GXml *arg1 = (GXml *) 0 ;
4877 void *argp1 = 0 ;
4878 int res1 = 0 ;
4879 PyObject * obj0 = 0 ;
4880 bool result;
4881
4882 if (!PyArg_ParseTuple(args,(char *)"O:GXml_isempty",&obj0)) SWIG_failgoto fail;
4883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4884 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_isempty" "', argument " "1"" of type '" "GXml const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_isempty" "', argument "
"1"" of type '" "GXml const *""'"); goto fail; } while(0)
;
4886 }
4887 arg1 = reinterpret_cast< GXml * >(argp1);
4888 {
4889 try {
4890 result = (bool)((GXml const *)arg1)->isempty();
4891 }
4892 catch (const GException::out_of_range& e) {
4893 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4894 }
4895 catch (const GExceptionHandler& e) {
4896 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4897 }
4898 catch (const std::exception& e) {
4899 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4900 }
4901 }
4902 resultobj = SWIG_From_bool(static_cast< bool >(result));
4903 return resultobj;
4904fail:
4905 return NULL__null;
4906}
4907
4908
4909SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4910 PyObject *resultobj = 0;
4911 GXml *arg1 = (GXml *) 0 ;
4912 int *arg2 = 0 ;
4913 GXmlNode *arg3 = 0 ;
4914 void *argp1 = 0 ;
4915 int res1 = 0 ;
4916 int temp2 ;
4917 int val2 ;
4918 int ecode2 = 0 ;
4919 void *argp3 = 0 ;
4920 int res3 = 0 ;
4921 PyObject * obj0 = 0 ;
4922 PyObject * obj1 = 0 ;
4923 PyObject * obj2 = 0 ;
4924 GXmlNode *result = 0 ;
4925
4926 if (!PyArg_ParseTuple(args,(char *)"OOO:GXml_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
4927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
4928 if (!SWIG_IsOK(res1)(res1 >= 0)) {
4929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_set" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_set" "', argument " "1"
" of type '" "GXml *""'"); goto fail; } while(0)
;
4930 }
4931 arg1 = reinterpret_cast< GXml * >(argp1);
4932 ecode2 = SWIG_AsVal_int(obj1, &val2);
4933 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
4934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXml_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXml_set" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
4935 }
4936 temp2 = static_cast< int >(val2);
4937 arg2 = &temp2;
4938 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
4939 if (!SWIG_IsOK(res3)(res3 >= 0)) {
4940 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GXml_set" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GXml_set" "', argument " "3"
" of type '" "GXmlNode const &""'"); goto fail; } while(0
)
;
4941 }
4942 if (!argp3) {
4943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_set" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_set" "', argument " "3"" of type '" "GXmlNode const &"
"'"); goto fail; } while(0)
;
4944 }
4945 arg3 = reinterpret_cast< GXmlNode * >(argp3);
4946 {
4947 try {
4948 result = (GXmlNode *)(arg1)->set((int const &)*arg2,(GXmlNode const &)*arg3);
4949 }
4950 catch (const GException::out_of_range& e) {
4951 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
4952 }
4953 catch (const GExceptionHandler& e) {
4954 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4955 }
4956 catch (const std::exception& e) {
4957 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
4958 }
4959 }
4960 {
4961 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
4962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
4963 }
4964 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
4965 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
4966 }
4967 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
4968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
4969 }
4970 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
4971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
4972 }
4973 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
4974 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
4975 }
4976 else {
4977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
4978 }
4979 }
4980 return resultobj;
4981fail:
4982 return NULL__null;
4983}
4984
4985
4986SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_append__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4987 PyObject *resultobj = 0;
4988 GXml *arg1 = (GXml *) 0 ;
4989 GXmlNode *arg2 = 0 ;
4990 void *argp1 = 0 ;
4991 int res1 = 0 ;
4992 void *argp2 = 0 ;
4993 int res2 = 0 ;
4994 PyObject * obj0 = 0 ;
4995 PyObject * obj1 = 0 ;
4996 GXmlNode *result = 0 ;
4997
4998 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_append",&obj0,&obj1)) SWIG_failgoto fail;
4999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5000 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_append" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_append" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5002 }
5003 arg1 = reinterpret_cast< GXml * >(argp1);
5004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8],
0 | 0, 0)
;
5005 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_append" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_append" "', argument "
"2"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
5007 }
5008 if (!argp2) {
5009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_append" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_append" "', argument " "2"" of type '" "GXmlNode const &"
"'"); goto fail; } while(0)
;
5010 }
5011 arg2 = reinterpret_cast< GXmlNode * >(argp2);
5012 {
5013 try {
5014 result = (GXmlNode *)(arg1)->append((GXmlNode const &)*arg2);
5015 }
5016 catch (const GException::out_of_range& e) {
5017 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5018 }
5019 catch (const GExceptionHandler& e) {
5020 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5021 }
5022 catch (const std::exception& e) {
5023 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5024 }
5025 }
5026 {
5027 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
5028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5029 }
5030 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
5031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
5032 }
5033 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
5034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
5035 }
5036 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
5037 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
5038 }
5039 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
5040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
5041 }
5042 else {
5043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
5044 }
5045 }
5046 return resultobj;
5047fail:
5048 return NULL__null;
5049}
5050
5051
5052SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_append__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5053 PyObject *resultobj = 0;
5054 GXml *arg1 = (GXml *) 0 ;
5055 std::string *arg2 = 0 ;
5056 void *argp1 = 0 ;
5057 int res1 = 0 ;
5058 int res2 = SWIG_OLDOBJ((0)) ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 GXmlElement *result = 0 ;
5062
5063 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_append",&obj0,&obj1)) SWIG_failgoto fail;
5064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5065 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_append" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_append" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5067 }
5068 arg1 = reinterpret_cast< GXml * >(argp1);
5069 {
5070 std::string *ptr = (std::string *)0;
5071 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5072 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_append" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_append" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5074 }
5075 if (!ptr) {
5076 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_append" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_append" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5077 }
5078 arg2 = ptr;
5079 }
5080 {
5081 try {
5082 result = (GXmlElement *)(arg1)->append((std::string const &)*arg2);
5083 }
5084 catch (const GException::out_of_range& e) {
5085 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5086 }
5087 catch (const GExceptionHandler& e) {
5088 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5089 }
5090 catch (const std::exception& e) {
5091 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5092 }
5093 }
5094 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5095 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5096 return resultobj;
5097fail:
5098 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5099 return NULL__null;
5100}
5101
5102
5103SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_append(PyObject *self, PyObject *args) {
5104 int argc;
5105 PyObject *argv[3];
5106 int ii;
5107
5108 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5109 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5110 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5111 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5112 }
5113 if (argc == 2) {
5114 int _v;
5115 void *vptr = 0;
5116 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5117 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5118 if (_v) {
5119 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[8], 0, 0);
5120 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5121 if (_v) {
5122 return _wrap_GXml_append__SWIG_0(self, args);
5123 }
5124 }
5125 }
5126 if (argc == 2) {
5127 int _v;
5128 void *vptr = 0;
5129 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5130 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5131 if (_v) {
5132 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5133 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5134 if (_v) {
5135 return _wrap_GXml_append__SWIG_1(self, args);
5136 }
5137 }
5138 }
5139
5140fail:
5141 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXml_append'.\n"
5142 " Possible C/C++ prototypes are:\n"
5143 " GXml::append(GXmlNode const &)\n"
5144 " GXml::append(std::string const &)\n");
5145 return 0;
5146}
5147
5148
5149SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5150 PyObject *resultobj = 0;
5151 GXml *arg1 = (GXml *) 0 ;
5152 int *arg2 = 0 ;
5153 GXmlNode *arg3 = 0 ;
5154 void *argp1 = 0 ;
5155 int res1 = 0 ;
5156 int temp2 ;
5157 int val2 ;
5158 int ecode2 = 0 ;
5159 void *argp3 = 0 ;
5160 int res3 = 0 ;
5161 PyObject * obj0 = 0 ;
5162 PyObject * obj1 = 0 ;
5163 PyObject * obj2 = 0 ;
5164 GXmlNode *result = 0 ;
5165
5166 if (!PyArg_ParseTuple(args,(char *)"OOO:GXml_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5167 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5168 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_insert" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_insert" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5170 }
5171 arg1 = reinterpret_cast< GXml * >(argp1);
5172 ecode2 = SWIG_AsVal_int(obj1, &val2);
5173 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5174 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXml_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXml_insert" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5175 }
5176 temp2 = static_cast< int >(val2);
5177 arg2 = &temp2;
5178 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
5179 if (!SWIG_IsOK(res3)(res3 >= 0)) {
5180 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GXml_insert" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GXml_insert" "', argument "
"3"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
5181 }
5182 if (!argp3) {
5183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_insert" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_insert" "', argument " "3"" of type '" "GXmlNode const &"
"'"); goto fail; } while(0)
;
5184 }
5185 arg3 = reinterpret_cast< GXmlNode * >(argp3);
5186 {
5187 try {
5188 result = (GXmlNode *)(arg1)->insert((int const &)*arg2,(GXmlNode const &)*arg3);
5189 }
5190 catch (const GException::out_of_range& e) {
5191 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5192 }
5193 catch (const GExceptionHandler& e) {
5194 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5195 }
5196 catch (const std::exception& e) {
5197 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5198 }
5199 }
5200 {
5201 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
5202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5203 }
5204 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
5205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
5206 }
5207 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
5208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
5209 }
5210 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
5211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
5212 }
5213 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
5214 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
5215 }
5216 else {
5217 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
5218 }
5219 }
5220 return resultobj;
5221fail:
5222 return NULL__null;
5223}
5224
5225
5226SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5227 PyObject *resultobj = 0;
5228 GXml *arg1 = (GXml *) 0 ;
5229 int *arg2 = 0 ;
5230 void *argp1 = 0 ;
5231 int res1 = 0 ;
5232 int temp2 ;
5233 int val2 ;
5234 int ecode2 = 0 ;
5235 PyObject * obj0 = 0 ;
5236 PyObject * obj1 = 0 ;
5237
5238 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_remove",&obj0,&obj1)) SWIG_failgoto fail;
5239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5240 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_remove" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_remove" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5242 }
5243 arg1 = reinterpret_cast< GXml * >(argp1);
5244 ecode2 = SWIG_AsVal_int(obj1, &val2);
5245 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXml_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXml_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5247 }
5248 temp2 = static_cast< int >(val2);
5249 arg2 = &temp2;
5250 {
5251 try {
5252 (arg1)->remove((int const &)*arg2);
5253 }
5254 catch (const GException::out_of_range& e) {
5255 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5256 }
5257 catch (const GExceptionHandler& e) {
5258 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5259 }
5260 catch (const std::exception& e) {
5261 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5262 }
5263 }
5264 resultobj = SWIG_Py_Void();
5265 return resultobj;
5266fail:
5267 return NULL__null;
5268}
5269
5270
5271SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5272 PyObject *resultobj = 0;
5273 GXml *arg1 = (GXml *) 0 ;
5274 int *arg2 = 0 ;
5275 void *argp1 = 0 ;
5276 int res1 = 0 ;
5277 int temp2 ;
5278 int val2 ;
5279 int ecode2 = 0 ;
5280 PyObject * obj0 = 0 ;
5281 PyObject * obj1 = 0 ;
5282
5283 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_reserve",&obj0,&obj1)) SWIG_failgoto fail;
5284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5285 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_reserve" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_reserve" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5287 }
5288 arg1 = reinterpret_cast< GXml * >(argp1);
5289 ecode2 = SWIG_AsVal_int(obj1, &val2);
5290 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXml_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXml_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5292 }
5293 temp2 = static_cast< int >(val2);
5294 arg2 = &temp2;
5295 {
5296 try {
5297 (arg1)->reserve((int const &)*arg2);
5298 }
5299 catch (const GException::out_of_range& e) {
5300 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5301 }
5302 catch (const GExceptionHandler& e) {
5303 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5304 }
5305 catch (const std::exception& e) {
5306 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5307 }
5308 }
5309 resultobj = SWIG_Py_Void();
5310 return resultobj;
5311fail:
5312 return NULL__null;
5313}
5314
5315
5316SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5317 PyObject *resultobj = 0;
5318 GXml *arg1 = (GXml *) 0 ;
5319 GXmlNode *arg2 = 0 ;
5320 void *argp1 = 0 ;
5321 int res1 = 0 ;
5322 void *argp2 = 0 ;
5323 int res2 = 0 ;
5324 PyObject * obj0 = 0 ;
5325 PyObject * obj1 = 0 ;
5326
5327 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_extend",&obj0,&obj1)) SWIG_failgoto fail;
5328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5329 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_extend" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_extend" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5331 }
5332 arg1 = reinterpret_cast< GXml * >(argp1);
5333 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8],
0 | 0, 0)
;
5334 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5335 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_extend" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_extend" "', argument "
"2"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
5336 }
5337 if (!argp2) {
5338 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_extend" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_extend" "', argument " "2"" of type '" "GXmlNode const &"
"'"); goto fail; } while(0)
;
5339 }
5340 arg2 = reinterpret_cast< GXmlNode * >(argp2);
5341 {
5342 try {
5343 (arg1)->extend((GXmlNode const &)*arg2);
5344 }
5345 catch (const GException::out_of_range& e) {
5346 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5347 }
5348 catch (const GExceptionHandler& e) {
5349 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5350 }
5351 catch (const std::exception& e) {
5352 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5353 }
5354 }
5355 resultobj = SWIG_Py_Void();
5356 return resultobj;
5357fail:
5358 return NULL__null;
5359}
5360
5361
5362SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_elements__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5363 PyObject *resultobj = 0;
5364 GXml *arg1 = (GXml *) 0 ;
5365 void *argp1 = 0 ;
5366 int res1 = 0 ;
5367 PyObject * obj0 = 0 ;
5368 int result;
5369
5370 if (!PyArg_ParseTuple(args,(char *)"O:GXml_elements",&obj0)) SWIG_failgoto fail;
5371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5372 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_elements" "', argument " "1"" of type '" "GXml const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_elements" "', argument "
"1"" of type '" "GXml const *""'"); goto fail; } while(0)
;
5374 }
5375 arg1 = reinterpret_cast< GXml * >(argp1);
5376 {
5377 try {
5378 result = (int)((GXml const *)arg1)->elements();
5379 }
5380 catch (const GException::out_of_range& e) {
5381 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5382 }
5383 catch (const GExceptionHandler& e) {
5384 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5385 }
5386 catch (const std::exception& e) {
5387 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5388 }
5389 }
5390 resultobj = SWIG_From_int(static_cast< int >(result));
5391 return resultobj;
5392fail:
5393 return NULL__null;
5394}
5395
5396
5397SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_elements__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5398 PyObject *resultobj = 0;
5399 GXml *arg1 = (GXml *) 0 ;
5400 std::string *arg2 = 0 ;
5401 void *argp1 = 0 ;
5402 int res1 = 0 ;
5403 int res2 = SWIG_OLDOBJ((0)) ;
5404 PyObject * obj0 = 0 ;
5405 PyObject * obj1 = 0 ;
5406 int result;
5407
5408 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_elements",&obj0,&obj1)) SWIG_failgoto fail;
5409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5410 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_elements" "', argument " "1"" of type '" "GXml const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_elements" "', argument "
"1"" of type '" "GXml const *""'"); goto fail; } while(0)
;
5412 }
5413 arg1 = reinterpret_cast< GXml * >(argp1);
5414 {
5415 std::string *ptr = (std::string *)0;
5416 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5417 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_elements" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_elements" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5419 }
5420 if (!ptr) {
5421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_elements" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_elements" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
5422 }
5423 arg2 = ptr;
5424 }
5425 {
5426 try {
5427 result = (int)((GXml const *)arg1)->elements((std::string const &)*arg2);
5428 }
5429 catch (const GException::out_of_range& e) {
5430 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5431 }
5432 catch (const GExceptionHandler& e) {
5433 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5434 }
5435 catch (const std::exception& e) {
5436 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5437 }
5438 }
5439 resultobj = SWIG_From_int(static_cast< int >(result));
5440 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5441 return resultobj;
5442fail:
5443 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5444 return NULL__null;
5445}
5446
5447
5448SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_elements(PyObject *self, PyObject *args) {
5449 int argc;
5450 PyObject *argv[3];
5451 int ii;
5452
5453 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5454 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5455 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
5456 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5457 }
5458 if (argc == 1) {
5459 int _v;
5460 void *vptr = 0;
5461 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5462 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5463 if (_v) {
5464 return _wrap_GXml_elements__SWIG_0(self, args);
5465 }
5466 }
5467 if (argc == 2) {
5468 int _v;
5469 void *vptr = 0;
5470 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5471 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5472 if (_v) {
5473 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5474 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5475 if (_v) {
5476 return _wrap_GXml_elements__SWIG_1(self, args);
5477 }
5478 }
5479 }
5480
5481fail:
5482 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXml_elements'.\n"
5483 " Possible C/C++ prototypes are:\n"
5484 " GXml::elements() const\n"
5485 " GXml::elements(std::string const &) const\n");
5486 return 0;
5487}
5488
5489
5490SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_element__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5491 PyObject *resultobj = 0;
5492 GXml *arg1 = (GXml *) 0 ;
5493 int *arg2 = 0 ;
5494 void *argp1 = 0 ;
5495 int res1 = 0 ;
5496 int temp2 ;
5497 int val2 ;
5498 int ecode2 = 0 ;
5499 PyObject * obj0 = 0 ;
5500 PyObject * obj1 = 0 ;
5501 GXmlElement *result = 0 ;
5502
5503 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_element",&obj0,&obj1)) SWIG_failgoto fail;
5504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5505 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_element" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_element" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5507 }
5508 arg1 = reinterpret_cast< GXml * >(argp1);
5509 ecode2 = SWIG_AsVal_int(obj1, &val2);
5510 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5511 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXml_element" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXml_element" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5512 }
5513 temp2 = static_cast< int >(val2);
5514 arg2 = &temp2;
5515 {
5516 try {
5517 result = (GXmlElement *)(arg1)->element((int const &)*arg2);
5518 }
5519 catch (const GException::out_of_range& e) {
5520 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5521 }
5522 catch (const GExceptionHandler& e) {
5523 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5524 }
5525 catch (const std::exception& e) {
5526 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5527 }
5528 }
5529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5530 return resultobj;
5531fail:
5532 return NULL__null;
5533}
5534
5535
5536SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_element__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5537 PyObject *resultobj = 0;
5538 GXml *arg1 = (GXml *) 0 ;
5539 std::string *arg2 = 0 ;
5540 int *arg3 = 0 ;
5541 void *argp1 = 0 ;
5542 int res1 = 0 ;
5543 int res2 = SWIG_OLDOBJ((0)) ;
5544 int temp3 ;
5545 int val3 ;
5546 int ecode3 = 0 ;
5547 PyObject * obj0 = 0 ;
5548 PyObject * obj1 = 0 ;
5549 PyObject * obj2 = 0 ;
5550 GXmlElement *result = 0 ;
5551
5552 if (!PyArg_ParseTuple(args,(char *)"OOO:GXml_element",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5554 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_element" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_element" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5556 }
5557 arg1 = reinterpret_cast< GXml * >(argp1);
5558 {
5559 std::string *ptr = (std::string *)0;
5560 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5561 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5562 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_element" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_element" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5563 }
5564 if (!ptr) {
5565 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_element" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_element" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5566 }
5567 arg2 = ptr;
5568 }
5569 ecode3 = SWIG_AsVal_int(obj2, &val3);
5570 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXml_element" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXml_element" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
5572 }
5573 temp3 = static_cast< int >(val3);
5574 arg3 = &temp3;
5575 {
5576 try {
5577 result = (GXmlElement *)(arg1)->element((std::string const &)*arg2,(int const &)*arg3);
5578 }
5579 catch (const GException::out_of_range& e) {
5580 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5581 }
5582 catch (const GExceptionHandler& e) {
5583 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5584 }
5585 catch (const std::exception& e) {
5586 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5587 }
5588 }
5589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5590 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5591 return resultobj;
5592fail:
5593 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5594 return NULL__null;
5595}
5596
5597
5598SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_element(PyObject *self, PyObject *args) {
5599 int argc;
5600 PyObject *argv[4];
5601 int ii;
5602
5603 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5604 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5605 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5606 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5607 }
5608 if (argc == 2) {
5609 int _v;
5610 void *vptr = 0;
5611 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5612 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5613 if (_v) {
5614 {
5615 int res = SWIG_AsVal_int(argv[1], NULL__null);
5616 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5617 }
5618 if (_v) {
5619 return _wrap_GXml_element__SWIG_0(self, args);
5620 }
5621 }
5622 }
5623 if (argc == 3) {
5624 int _v;
5625 void *vptr = 0;
5626 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5627 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5628 if (_v) {
5629 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
5630 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5631 if (_v) {
5632 {
5633 int res = SWIG_AsVal_int(argv[2], NULL__null);
5634 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5635 }
5636 if (_v) {
5637 return _wrap_GXml_element__SWIG_1(self, args);
5638 }
5639 }
5640 }
5641 }
5642
5643fail:
5644 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXml_element'.\n"
5645 " Possible C/C++ prototypes are:\n"
5646 " GXml::element(int const &)\n"
5647 " GXml::element(std::string const &,int const &)\n");
5648 return 0;
5649}
5650
5651
5652SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_load(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5653 PyObject *resultobj = 0;
5654 GXml *arg1 = (GXml *) 0 ;
5655 std::string *arg2 = 0 ;
5656 void *argp1 = 0 ;
5657 int res1 = 0 ;
5658 int res2 = SWIG_OLDOBJ((0)) ;
5659 PyObject * obj0 = 0 ;
5660 PyObject * obj1 = 0 ;
5661
5662 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_load",&obj0,&obj1)) SWIG_failgoto fail;
5663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5664 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_load" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_load" "', argument " "1"
" of type '" "GXml *""'"); goto fail; } while(0)
;
5666 }
5667 arg1 = reinterpret_cast< GXml * >(argp1);
5668 {
5669 std::string *ptr = (std::string *)0;
5670 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5671 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_load" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5673 }
5674 if (!ptr) {
5675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_load" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_load" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5676 }
5677 arg2 = ptr;
5678 }
5679 {
5680 try {
5681 (arg1)->load((std::string const &)*arg2);
5682 }
5683 catch (const GException::out_of_range& e) {
5684 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5685 }
5686 catch (const GExceptionHandler& e) {
5687 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5688 }
5689 catch (const std::exception& e) {
5690 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5691 }
5692 }
5693 resultobj = SWIG_Py_Void();
5694 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5695 return resultobj;
5696fail:
5697 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5698 return NULL__null;
5699}
5700
5701
5702SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_save(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5703 PyObject *resultobj = 0;
5704 GXml *arg1 = (GXml *) 0 ;
5705 std::string *arg2 = 0 ;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 int res2 = SWIG_OLDOBJ((0)) ;
5709 PyObject * obj0 = 0 ;
5710 PyObject * obj1 = 0 ;
5711
5712 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_save",&obj0,&obj1)) SWIG_failgoto fail;
5713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5714 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_save" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_save" "', argument " "1"
" of type '" "GXml *""'"); goto fail; } while(0)
;
5716 }
5717 arg1 = reinterpret_cast< GXml * >(argp1);
5718 {
5719 std::string *ptr = (std::string *)0;
5720 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
5721 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_save" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
5723 }
5724 if (!ptr) {
5725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_save" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_save" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
5726 }
5727 arg2 = ptr;
5728 }
5729 {
5730 try {
5731 (arg1)->save((std::string const &)*arg2);
5732 }
5733 catch (const GException::out_of_range& e) {
5734 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5735 }
5736 catch (const GExceptionHandler& e) {
5737 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5738 }
5739 catch (const std::exception& e) {
5740 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5741 }
5742 }
5743 resultobj = SWIG_Py_Void();
5744 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5745 return resultobj;
5746fail:
5747 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
5748 return NULL__null;
5749}
5750
5751
5752SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5753 PyObject *resultobj = 0;
5754 GXml *arg1 = (GXml *) 0 ;
5755 GUrl *arg2 = 0 ;
5756 void *argp1 = 0 ;
5757 int res1 = 0 ;
5758 void *argp2 = 0 ;
5759 int res2 = 0 ;
5760 PyObject * obj0 = 0 ;
5761 PyObject * obj1 = 0 ;
5762
5763 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_read",&obj0,&obj1)) SWIG_failgoto fail;
5764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5765 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_read" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_read" "', argument " "1"
" of type '" "GXml *""'"); goto fail; } while(0)
;
5767 }
5768 arg1 = reinterpret_cast< GXml * >(argp1);
5769 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0 | 0, 0)
;
5770 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_read" "', argument " "2"" of type '" "GUrl const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_read" "', argument " "2"
" of type '" "GUrl const &""'"); goto fail; } while(0)
;
5772 }
5773 if (!argp2) {
5774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_read" "', argument " "2"" of type '" "GUrl const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_read" "', argument " "2"" of type '" "GUrl const &"
"'"); goto fail; } while(0)
;
5775 }
5776 arg2 = reinterpret_cast< GUrl * >(argp2);
5777 {
5778 try {
5779 (arg1)->read((GUrl const &)*arg2);
5780 }
5781 catch (const GException::out_of_range& e) {
5782 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5783 }
5784 catch (const GExceptionHandler& e) {
5785 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5786 }
5787 catch (const std::exception& e) {
5788 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5789 }
5790 }
5791 resultobj = SWIG_Py_Void();
5792 return resultobj;
5793fail:
5794 return NULL__null;
5795}
5796
5797
5798SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5799 PyObject *resultobj = 0;
5800 GXml *arg1 = (GXml *) 0 ;
5801 GUrl *arg2 = 0 ;
5802 int *arg3 = 0 ;
5803 void *argp1 = 0 ;
5804 int res1 = 0 ;
5805 void *argp2 = 0 ;
5806 int res2 = 0 ;
5807 int temp3 ;
5808 int val3 ;
5809 int ecode3 = 0 ;
5810 PyObject * obj0 = 0 ;
5811 PyObject * obj1 = 0 ;
5812 PyObject * obj2 = 0 ;
5813
5814 if (!PyArg_ParseTuple(args,(char *)"OOO:GXml_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
5815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5816 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_write" "', argument " "1"" of type '" "GXml const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_write" "', argument "
"1"" of type '" "GXml const *""'"); goto fail; } while(0)
;
5818 }
5819 arg1 = reinterpret_cast< GXml * >(argp1);
5820 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
5821 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5822 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
5823 }
5824 if (!argp2) {
5825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_write" "', argument " "2"" of type '" "GUrl &"
"'"); goto fail; } while(0)
;
5826 }
5827 arg2 = reinterpret_cast< GUrl * >(argp2);
5828 ecode3 = SWIG_AsVal_int(obj2, &val3);
5829 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
5830 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXml_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXml_write" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
5831 }
5832 temp3 = static_cast< int >(val3);
5833 arg3 = &temp3;
5834 {
5835 try {
5836 ((GXml const *)arg1)->write(*arg2,(int const &)*arg3);
5837 }
5838 catch (const GException::out_of_range& e) {
5839 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5840 }
5841 catch (const GExceptionHandler& e) {
5842 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5843 }
5844 catch (const std::exception& e) {
5845 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5846 }
5847 }
5848 resultobj = SWIG_Py_Void();
5849 return resultobj;
5850fail:
5851 return NULL__null;
5852}
5853
5854
5855SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5856 PyObject *resultobj = 0;
5857 GXml *arg1 = (GXml *) 0 ;
5858 GUrl *arg2 = 0 ;
5859 void *argp1 = 0 ;
5860 int res1 = 0 ;
5861 void *argp2 = 0 ;
5862 int res2 = 0 ;
5863 PyObject * obj0 = 0 ;
5864 PyObject * obj1 = 0 ;
5865
5866 if (!PyArg_ParseTuple(args,(char *)"OO:GXml_write",&obj0,&obj1)) SWIG_failgoto fail;
5867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5868 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_write" "', argument " "1"" of type '" "GXml const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_write" "', argument "
"1"" of type '" "GXml const *""'"); goto fail; } while(0)
;
5870 }
5871 arg1 = reinterpret_cast< GXml * >(argp1);
5872 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
5873 if (!SWIG_IsOK(res2)(res2 >= 0)) {
5874 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXml_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXml_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
5875 }
5876 if (!argp2) {
5877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml_write" "', argument " "2"" of type '" "GUrl &"
"'"); goto fail; } while(0)
;
5878 }
5879 arg2 = reinterpret_cast< GUrl * >(argp2);
5880 {
5881 try {
5882 ((GXml const *)arg1)->write(*arg2);
5883 }
5884 catch (const GException::out_of_range& e) {
5885 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5886 }
5887 catch (const GExceptionHandler& e) {
5888 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5889 }
5890 catch (const std::exception& e) {
5891 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5892 }
5893 }
5894 resultobj = SWIG_Py_Void();
5895 return resultobj;
5896fail:
5897 return NULL__null;
5898}
5899
5900
5901SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_write(PyObject *self, PyObject *args) {
5902 int argc;
5903 PyObject *argv[4];
5904 int ii;
5905
5906 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
5907 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
5908 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
5909 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
5910 }
5911 if (argc == 2) {
5912 int _v;
5913 void *vptr = 0;
5914 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5915 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5916 if (_v) {
5917 void *vptr = 0;
5918 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
5919 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5920 if (_v) {
5921 return _wrap_GXml_write__SWIG_1(self, args);
5922 }
5923 }
5924 }
5925 if (argc == 3) {
5926 int _v;
5927 void *vptr = 0;
5928 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXml, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[3
], 0, 0)
;
5929 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5930 if (_v) {
5931 void *vptr = 0;
5932 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
5933 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5934 if (_v) {
5935 {
5936 int res = SWIG_AsVal_int(argv[2], NULL__null);
5937 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
5938 }
5939 if (_v) {
5940 return _wrap_GXml_write__SWIG_0(self, args);
5941 }
5942 }
5943 }
5944 }
5945
5946fail:
5947 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXml_write'.\n"
5948 " Possible C/C++ prototypes are:\n"
5949 " GXml::write(GUrl &,int const &) const\n"
5950 " GXml::write(GUrl &) const\n");
5951 return 0;
5952}
5953
5954
5955SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5956 PyObject *resultobj = 0;
5957 GXml *arg1 = (GXml *) 0 ;
5958 int *arg2 = 0 ;
5959 void *argp1 = 0 ;
5960 int res1 = 0 ;
5961 int temp2 ;
5962 int val2 ;
5963 int ecode2 = 0 ;
5964 PyObject * obj0 = 0 ;
5965 PyObject * obj1 = 0 ;
5966 GXmlNode *result = 0 ;
5967
5968 if (!PyArg_ParseTuple(args,(char *)"OO:GXml___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
5969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
5970 if (!SWIG_IsOK(res1)(res1 >= 0)) {
5971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml___getitem__" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml___getitem__" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
5972 }
5973 arg1 = reinterpret_cast< GXml * >(argp1);
5974 ecode2 = SWIG_AsVal_int(obj1, &val2);
5975 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
5976 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXml___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXml___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
5977 }
5978 temp2 = static_cast< int >(val2);
5979 arg2 = &temp2;
5980 {
5981 try {
5982 result = (GXmlNode *)GXml___getitem__(arg1,(int const &)*arg2);
5983 }
5984 catch (const GException::out_of_range& e) {
5985 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
5986 }
5987 catch (const GExceptionHandler& e) {
5988 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5989 }
5990 catch (const std::exception& e) {
5991 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
5992 }
5993 }
5994 {
5995 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
5996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
5997 }
5998 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
5999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6000 }
6001 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
6002 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
6003 }
6004 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
6005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
6006 }
6007 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
6008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6009 }
6010 else {
6011 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
6012 }
6013 }
6014 return resultobj;
6015fail:
6016 return NULL__null;
6017}
6018
6019
6020SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6021 PyObject *resultobj = 0;
6022 GXml *arg1 = (GXml *) 0 ;
6023 int *arg2 = 0 ;
6024 GXmlNode *arg3 = 0 ;
6025 void *argp1 = 0 ;
6026 int res1 = 0 ;
6027 int temp2 ;
6028 int val2 ;
6029 int ecode2 = 0 ;
6030 void *argp3 = 0 ;
6031 int res3 = 0 ;
6032 PyObject * obj0 = 0 ;
6033 PyObject * obj1 = 0 ;
6034 PyObject * obj2 = 0 ;
6035
6036 if (!PyArg_ParseTuple(args,(char *)"OOO:GXml___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6038 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml___setitem__" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml___setitem__" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
6040 }
6041 arg1 = reinterpret_cast< GXml * >(argp1);
6042 ecode2 = SWIG_AsVal_int(obj1, &val2);
6043 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXml___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXml___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6045 }
6046 temp2 = static_cast< int >(val2);
6047 arg2 = &temp2;
6048 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
6049 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6050 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GXml___setitem__" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GXml___setitem__" "', argument "
"3"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
6051 }
6052 if (!argp3) {
6053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXml___setitem__" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXml___setitem__" "', argument " "3"" of type '"
"GXmlNode const &""'"); goto fail; } while(0)
;
6054 }
6055 arg3 = reinterpret_cast< GXmlNode * >(argp3);
6056 {
6057 try {
6058 GXml___setitem__(arg1,(int const &)*arg2,(GXmlNode const &)*arg3);
6059 }
6060 catch (const GException::out_of_range& e) {
6061 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6062 }
6063 catch (const GExceptionHandler& e) {
6064 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6065 }
6066 catch (const std::exception& e) {
6067 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6068 }
6069 }
6070 resultobj = SWIG_Py_Void();
6071 return resultobj;
6072fail:
6073 return NULL__null;
6074}
6075
6076
6077SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6078 PyObject *resultobj = 0;
6079 GXml *arg1 = (GXml *) 0 ;
6080 void *argp1 = 0 ;
6081 int res1 = 0 ;
6082 PyObject * obj0 = 0 ;
6083 int result;
6084
6085 if (!PyArg_ParseTuple(args,(char *)"O:GXml___len__",&obj0)) SWIG_failgoto fail;
6086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6087 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml___len__" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml___len__" "', argument "
"1"" of type '" "GXml *""'"); goto fail; } while(0)
;
6089 }
6090 arg1 = reinterpret_cast< GXml * >(argp1);
6091 {
6092 try {
6093 result = (int)GXml___len__(arg1);
6094 }
6095 catch (const GException::out_of_range& e) {
6096 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6097 }
6098 catch (const GExceptionHandler& e) {
6099 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6100 }
6101 catch (const std::exception& e) {
6102 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6103 }
6104 }
6105 resultobj = SWIG_From_int(static_cast< int >(result));
6106 return resultobj;
6107fail:
6108 return NULL__null;
6109}
6110
6111
6112SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXml_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6113 PyObject *resultobj = 0;
6114 GXml *arg1 = (GXml *) 0 ;
6115 void *argp1 = 0 ;
6116 int res1 = 0 ;
6117 PyObject * obj0 = 0 ;
6118 GXml result;
6119
6120 if (!PyArg_ParseTuple(args,(char *)"O:GXml_copy",&obj0)) SWIG_failgoto fail;
6121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXml, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[3],
0 | 0, 0)
;
6122 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXml_copy" "', argument " "1"" of type '" "GXml *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXml_copy" "', argument " "1"
" of type '" "GXml *""'"); goto fail; } while(0)
;
6124 }
6125 arg1 = reinterpret_cast< GXml * >(argp1);
6126 {
6127 try {
6128 result = GXml_copy(arg1);
6129 }
6130 catch (const GException::out_of_range& e) {
6131 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6132 }
6133 catch (const GExceptionHandler& e) {
6134 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6135 }
6136 catch (const std::exception& e) {
6137 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6138 }
6139 }
6140 resultobj = SWIG_NewPointerObj((new GXml(static_cast< const GXml& >(result))), SWIGTYPE_p_GXml, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GXml(static_cast< const
GXml& >(result))), swig_types[3], 0x1 | 0)
;
6141 return resultobj;
6142fail:
6143 return NULL__null;
6144}
6145
6146
6147SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXml_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6148 PyObject *obj;
6149 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
6150 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlswig_types[3], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
6151 return SWIG_Py_Void();
6152}
6153
6154SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXmlNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6155 PyObject *resultobj = 0;
6156 GXmlNode *arg1 = (GXmlNode *) 0 ;
6157 void *argp1 = 0 ;
6158 int res1 = 0 ;
6159 PyObject * obj0 = 0 ;
6160
6161 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXmlNode",&obj0)) SWIG_failgoto fail;
6162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0x1 | 0, 0)
;
6163 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXmlNode" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXmlNode" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6165 }
6166 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6167 {
6168 try {
6169 delete arg1;
6170 }
6171 catch (const GException::out_of_range& e) {
6172 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6173 }
6174 catch (const GExceptionHandler& e) {
6175 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6176 }
6177 catch (const std::exception& e) {
6178 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6179 }
6180 }
6181 resultobj = SWIG_Py_Void();
6182 return resultobj;
6183fail:
6184 return NULL__null;
6185}
6186
6187
6188SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6189 PyObject *resultobj = 0;
6190 GXmlNode *arg1 = (GXmlNode *) 0 ;
6191 void *argp1 = 0 ;
6192 int res1 = 0 ;
6193 PyObject * obj0 = 0 ;
6194
6195 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode_clear",&obj0)) SWIG_failgoto fail;
6196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6197 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_clear" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_clear" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6199 }
6200 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6201 {
6202 try {
6203 (arg1)->clear();
6204 }
6205 catch (const GException::out_of_range& e) {
6206 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6207 }
6208 catch (const GExceptionHandler& e) {
6209 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6210 }
6211 catch (const std::exception& e) {
6212 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6213 }
6214 }
6215 resultobj = SWIG_Py_Void();
6216 return resultobj;
6217fail:
6218 return NULL__null;
6219}
6220
6221
6222SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6223 PyObject *resultobj = 0;
6224 GXmlNode *arg1 = (GXmlNode *) 0 ;
6225 void *argp1 = 0 ;
6226 int res1 = 0 ;
6227 PyObject * obj0 = 0 ;
6228 GXmlNode *result = 0 ;
6229
6230 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode_clone",&obj0)) SWIG_failgoto fail;
6231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6232 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_clone" "', argument " "1"" of type '" "GXmlNode const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_clone" "', argument "
"1"" of type '" "GXmlNode const *""'"); goto fail; } while(0
)
;
6234 }
6235 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6236 {
6237 try {
6238 result = (GXmlNode *)((GXmlNode const *)arg1)->clone();
6239 }
6240 catch (const GException::out_of_range& e) {
6241 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6242 }
6243 catch (const GExceptionHandler& e) {
6244 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6245 }
6246 catch (const std::exception& e) {
6247 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6248 }
6249 }
6250 {
6251 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
6252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6253 }
6254 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
6255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
6256 }
6257 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
6258 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6259 }
6260 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
6261 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
6262 }
6263 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
6264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6265 }
6266 else {
6267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
6268 }
6269 }
6270 return resultobj;
6271fail:
6272 return NULL__null;
6273}
6274
6275
6276SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6277 PyObject *resultobj = 0;
6278 GXmlNode *arg1 = (GXmlNode *) 0 ;
6279 void *argp1 = 0 ;
6280 int res1 = 0 ;
6281 PyObject * obj0 = 0 ;
6282 int result;
6283
6284 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode_size",&obj0)) SWIG_failgoto fail;
6285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6286 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_size" "', argument " "1"" of type '" "GXmlNode const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_size" "', argument "
"1"" of type '" "GXmlNode const *""'"); goto fail; } while(0
)
;
6288 }
6289 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6290 {
6291 try {
6292 result = (int)((GXmlNode const *)arg1)->size();
6293 }
6294 catch (const GException::out_of_range& e) {
6295 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6296 }
6297 catch (const GExceptionHandler& e) {
6298 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6299 }
6300 catch (const std::exception& e) {
6301 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6302 }
6303 }
6304 resultobj = SWIG_From_int(static_cast< int >(result));
6305 return resultobj;
6306fail:
6307 return NULL__null;
6308}
6309
6310
6311SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_isempty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6312 PyObject *resultobj = 0;
6313 GXmlNode *arg1 = (GXmlNode *) 0 ;
6314 void *argp1 = 0 ;
6315 int res1 = 0 ;
6316 PyObject * obj0 = 0 ;
6317 bool result;
6318
6319 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode_isempty",&obj0)) SWIG_failgoto fail;
6320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6321 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_isempty" "', argument " "1"" of type '" "GXmlNode const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_isempty" "', argument "
"1"" of type '" "GXmlNode const *""'"); goto fail; } while(0
)
;
6323 }
6324 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6325 {
6326 try {
6327 result = (bool)((GXmlNode const *)arg1)->isempty();
6328 }
6329 catch (const GException::out_of_range& e) {
6330 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6331 }
6332 catch (const GExceptionHandler& e) {
6333 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6334 }
6335 catch (const std::exception& e) {
6336 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6337 }
6338 }
6339 resultobj = SWIG_From_bool(static_cast< bool >(result));
6340 return resultobj;
6341fail:
6342 return NULL__null;
6343}
6344
6345
6346SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6347 PyObject *resultobj = 0;
6348 GXmlNode *arg1 = (GXmlNode *) 0 ;
6349 int *arg2 = 0 ;
6350 GXmlNode *arg3 = 0 ;
6351 void *argp1 = 0 ;
6352 int res1 = 0 ;
6353 int temp2 ;
6354 int val2 ;
6355 int ecode2 = 0 ;
6356 void *argp3 = 0 ;
6357 int res3 = 0 ;
6358 PyObject * obj0 = 0 ;
6359 PyObject * obj1 = 0 ;
6360 PyObject * obj2 = 0 ;
6361 GXmlNode *result = 0 ;
6362
6363 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlNode_set",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6365 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_set" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_set" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6367 }
6368 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6369 ecode2 = SWIG_AsVal_int(obj1, &val2);
6370 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6371 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXmlNode_set" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXmlNode_set" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6372 }
6373 temp2 = static_cast< int >(val2);
6374 arg2 = &temp2;
6375 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
6376 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6377 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GXmlNode_set" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GXmlNode_set" "', argument "
"3"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
6378 }
6379 if (!argp3) {
6380 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_set" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_set" "', argument " "3"" of type '" "GXmlNode const &"
"'"); goto fail; } while(0)
;
6381 }
6382 arg3 = reinterpret_cast< GXmlNode * >(argp3);
6383 {
6384 try {
6385 result = (GXmlNode *)(arg1)->set((int const &)*arg2,(GXmlNode const &)*arg3);
6386 }
6387 catch (const GException::out_of_range& e) {
6388 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6389 }
6390 catch (const GExceptionHandler& e) {
6391 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6392 }
6393 catch (const std::exception& e) {
6394 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6395 }
6396 }
6397 {
6398 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
6399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6400 }
6401 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
6402 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
6403 }
6404 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
6405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6406 }
6407 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
6408 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
6409 }
6410 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
6411 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6412 }
6413 else {
6414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
6415 }
6416 }
6417 return resultobj;
6418fail:
6419 return NULL__null;
6420}
6421
6422
6423SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_append__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6424 PyObject *resultobj = 0;
6425 GXmlNode *arg1 = (GXmlNode *) 0 ;
6426 GXmlNode *arg2 = 0 ;
6427 void *argp1 = 0 ;
6428 int res1 = 0 ;
6429 void *argp2 = 0 ;
6430 int res2 = 0 ;
6431 PyObject * obj0 = 0 ;
6432 PyObject * obj1 = 0 ;
6433 GXmlNode *result = 0 ;
6434
6435 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode_append",&obj0,&obj1)) SWIG_failgoto fail;
6436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6437 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_append" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_append" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6439 }
6440 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6441 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8],
0 | 0, 0)
;
6442 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlNode_append" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlNode_append" "', argument "
"2"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
6444 }
6445 if (!argp2) {
6446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_append" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_append" "', argument " "2"" of type '"
"GXmlNode const &""'"); goto fail; } while(0)
;
6447 }
6448 arg2 = reinterpret_cast< GXmlNode * >(argp2);
6449 {
6450 try {
6451 result = (GXmlNode *)(arg1)->append((GXmlNode const &)*arg2);
6452 }
6453 catch (const GException::out_of_range& e) {
6454 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6455 }
6456 catch (const GExceptionHandler& e) {
6457 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6458 }
6459 catch (const std::exception& e) {
6460 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6461 }
6462 }
6463 {
6464 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
6465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6466 }
6467 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
6468 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
6469 }
6470 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
6471 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6472 }
6473 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
6474 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
6475 }
6476 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
6477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6478 }
6479 else {
6480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
6481 }
6482 }
6483 return resultobj;
6484fail:
6485 return NULL__null;
6486}
6487
6488
6489SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_append__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6490 PyObject *resultobj = 0;
6491 GXmlNode *arg1 = (GXmlNode *) 0 ;
6492 std::string *arg2 = 0 ;
6493 void *argp1 = 0 ;
6494 int res1 = 0 ;
6495 int res2 = SWIG_OLDOBJ((0)) ;
6496 PyObject * obj0 = 0 ;
6497 PyObject * obj1 = 0 ;
6498 GXmlElement *result = 0 ;
6499
6500 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode_append",&obj0,&obj1)) SWIG_failgoto fail;
6501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6502 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_append" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_append" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6504 }
6505 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6506 {
6507 std::string *ptr = (std::string *)0;
6508 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6509 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6510 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlNode_append" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlNode_append" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6511 }
6512 if (!ptr) {
6513 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_append" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_append" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6514 }
6515 arg2 = ptr;
6516 }
6517 {
6518 try {
6519 result = (GXmlElement *)(arg1)->append((std::string const &)*arg2);
6520 }
6521 catch (const GException::out_of_range& e) {
6522 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6523 }
6524 catch (const GExceptionHandler& e) {
6525 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6526 }
6527 catch (const std::exception& e) {
6528 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6529 }
6530 }
6531 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6532 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6533 return resultobj;
6534fail:
6535 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6536 return NULL__null;
6537}
6538
6539
6540SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_append(PyObject *self, PyObject *args) {
6541 int argc;
6542 PyObject *argv[3];
6543 int ii;
6544
6545 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6546 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6547 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6548 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6549 }
6550 if (argc == 2) {
6551 int _v;
6552 void *vptr = 0;
6553 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
6554 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6555 if (_v) {
6556 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], 0, swig_types[8], 0, 0);
6557 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6558 if (_v) {
6559 return _wrap_GXmlNode_append__SWIG_0(self, args);
6560 }
6561 }
6562 }
6563 if (argc == 2) {
6564 int _v;
6565 void *vptr = 0;
6566 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
6567 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6568 if (_v) {
6569 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6570 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6571 if (_v) {
6572 return _wrap_GXmlNode_append__SWIG_1(self, args);
6573 }
6574 }
6575 }
6576
6577fail:
6578 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlNode_append'.\n"
6579 " Possible C/C++ prototypes are:\n"
6580 " GXmlNode::append(GXmlNode const &)\n"
6581 " GXmlNode::append(std::string const &)\n");
6582 return 0;
6583}
6584
6585
6586SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6587 PyObject *resultobj = 0;
6588 GXmlNode *arg1 = (GXmlNode *) 0 ;
6589 int *arg2 = 0 ;
6590 GXmlNode *arg3 = 0 ;
6591 void *argp1 = 0 ;
6592 int res1 = 0 ;
6593 int temp2 ;
6594 int val2 ;
6595 int ecode2 = 0 ;
6596 void *argp3 = 0 ;
6597 int res3 = 0 ;
6598 PyObject * obj0 = 0 ;
6599 PyObject * obj1 = 0 ;
6600 PyObject * obj2 = 0 ;
6601 GXmlNode *result = 0 ;
6602
6603 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlNode_insert",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6605 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_insert" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_insert" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6607 }
6608 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6609 ecode2 = SWIG_AsVal_int(obj1, &val2);
6610 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6611 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXmlNode_insert" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXmlNode_insert" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6612 }
6613 temp2 = static_cast< int >(val2);
6614 arg2 = &temp2;
6615 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
6616 if (!SWIG_IsOK(res3)(res3 >= 0)) {
6617 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GXmlNode_insert" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GXmlNode_insert" "', argument "
"3"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
6618 }
6619 if (!argp3) {
6620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_insert" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_insert" "', argument " "3"" of type '"
"GXmlNode const &""'"); goto fail; } while(0)
;
6621 }
6622 arg3 = reinterpret_cast< GXmlNode * >(argp3);
6623 {
6624 try {
6625 result = (GXmlNode *)(arg1)->insert((int const &)*arg2,(GXmlNode const &)*arg3);
6626 }
6627 catch (const GException::out_of_range& e) {
6628 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6629 }
6630 catch (const GExceptionHandler& e) {
6631 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6632 }
6633 catch (const std::exception& e) {
6634 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6635 }
6636 }
6637 {
6638 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
6639 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6640 }
6641 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
6642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
6643 }
6644 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
6645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
6646 }
6647 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
6648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
6649 }
6650 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
6651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
6652 }
6653 else {
6654 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
6655 }
6656 }
6657 return resultobj;
6658fail:
6659 return NULL__null;
6660}
6661
6662
6663SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6664 PyObject *resultobj = 0;
6665 GXmlNode *arg1 = (GXmlNode *) 0 ;
6666 int *arg2 = 0 ;
6667 void *argp1 = 0 ;
6668 int res1 = 0 ;
6669 int temp2 ;
6670 int val2 ;
6671 int ecode2 = 0 ;
6672 PyObject * obj0 = 0 ;
6673 PyObject * obj1 = 0 ;
6674
6675 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode_remove",&obj0,&obj1)) SWIG_failgoto fail;
6676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6677 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_remove" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_remove" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6679 }
6680 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6681 ecode2 = SWIG_AsVal_int(obj1, &val2);
6682 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXmlNode_remove" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXmlNode_remove" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6684 }
6685 temp2 = static_cast< int >(val2);
6686 arg2 = &temp2;
6687 {
6688 try {
6689 (arg1)->remove((int const &)*arg2);
6690 }
6691 catch (const GException::out_of_range& e) {
6692 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6693 }
6694 catch (const GExceptionHandler& e) {
6695 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6696 }
6697 catch (const std::exception& e) {
6698 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6699 }
6700 }
6701 resultobj = SWIG_Py_Void();
6702 return resultobj;
6703fail:
6704 return NULL__null;
6705}
6706
6707
6708SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6709 PyObject *resultobj = 0;
6710 GXmlNode *arg1 = (GXmlNode *) 0 ;
6711 int *arg2 = 0 ;
6712 void *argp1 = 0 ;
6713 int res1 = 0 ;
6714 int temp2 ;
6715 int val2 ;
6716 int ecode2 = 0 ;
6717 PyObject * obj0 = 0 ;
6718 PyObject * obj1 = 0 ;
6719
6720 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode_reserve",&obj0,&obj1)) SWIG_failgoto fail;
6721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6722 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_reserve" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_reserve" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6724 }
6725 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6726 ecode2 = SWIG_AsVal_int(obj1, &val2);
6727 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXmlNode_reserve" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXmlNode_reserve" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6729 }
6730 temp2 = static_cast< int >(val2);
6731 arg2 = &temp2;
6732 {
6733 try {
6734 (arg1)->reserve((int const &)*arg2);
6735 }
6736 catch (const GException::out_of_range& e) {
6737 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6738 }
6739 catch (const GExceptionHandler& e) {
6740 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6741 }
6742 catch (const std::exception& e) {
6743 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6744 }
6745 }
6746 resultobj = SWIG_Py_Void();
6747 return resultobj;
6748fail:
6749 return NULL__null;
6750}
6751
6752
6753SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_extend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6754 PyObject *resultobj = 0;
6755 GXmlNode *arg1 = (GXmlNode *) 0 ;
6756 GXmlNode *arg2 = 0 ;
6757 void *argp1 = 0 ;
6758 int res1 = 0 ;
6759 void *argp2 = 0 ;
6760 int res2 = 0 ;
6761 PyObject * obj0 = 0 ;
6762 PyObject * obj1 = 0 ;
6763
6764 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode_extend",&obj0,&obj1)) SWIG_failgoto fail;
6765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6766 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_extend" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_extend" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6768 }
6769 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6770 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8],
0 | 0, 0)
;
6771 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6772 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlNode_extend" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlNode_extend" "', argument "
"2"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
6773 }
6774 if (!argp2) {
6775 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_extend" "', argument " "2"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_extend" "', argument " "2"" of type '"
"GXmlNode const &""'"); goto fail; } while(0)
;
6776 }
6777 arg2 = reinterpret_cast< GXmlNode * >(argp2);
6778 {
6779 try {
6780 (arg1)->extend((GXmlNode const &)*arg2);
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_Py_Void();
6793 return resultobj;
6794fail:
6795 return NULL__null;
6796}
6797
6798
6799SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_elements__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6800 PyObject *resultobj = 0;
6801 GXmlNode *arg1 = (GXmlNode *) 0 ;
6802 void *argp1 = 0 ;
6803 int res1 = 0 ;
6804 PyObject * obj0 = 0 ;
6805 int result;
6806
6807 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode_elements",&obj0)) SWIG_failgoto fail;
6808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6809 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_elements" "', argument " "1"" of type '" "GXmlNode const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_elements" "', argument "
"1"" of type '" "GXmlNode const *""'"); goto fail; } while(0
)
;
6811 }
6812 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6813 {
6814 try {
6815 result = (int)((GXmlNode const *)arg1)->elements();
6816 }
6817 catch (const GException::out_of_range& e) {
6818 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6819 }
6820 catch (const GExceptionHandler& e) {
6821 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6822 }
6823 catch (const std::exception& e) {
6824 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6825 }
6826 }
6827 resultobj = SWIG_From_int(static_cast< int >(result));
6828 return resultobj;
6829fail:
6830 return NULL__null;
6831}
6832
6833
6834SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_elements__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6835 PyObject *resultobj = 0;
6836 GXmlNode *arg1 = (GXmlNode *) 0 ;
6837 std::string *arg2 = 0 ;
6838 void *argp1 = 0 ;
6839 int res1 = 0 ;
6840 int res2 = SWIG_OLDOBJ((0)) ;
6841 PyObject * obj0 = 0 ;
6842 PyObject * obj1 = 0 ;
6843 int result;
6844
6845 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode_elements",&obj0,&obj1)) SWIG_failgoto fail;
6846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6847 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_elements" "', argument " "1"" of type '" "GXmlNode const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_elements" "', argument "
"1"" of type '" "GXmlNode const *""'"); goto fail; } while(0
)
;
6849 }
6850 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6851 {
6852 std::string *ptr = (std::string *)0;
6853 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6854 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6855 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlNode_elements" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlNode_elements" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
6856 }
6857 if (!ptr) {
6858 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_elements" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_elements" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
6859 }
6860 arg2 = ptr;
6861 }
6862 {
6863 try {
6864 result = (int)((GXmlNode const *)arg1)->elements((std::string const &)*arg2);
6865 }
6866 catch (const GException::out_of_range& e) {
6867 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6868 }
6869 catch (const GExceptionHandler& e) {
6870 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6871 }
6872 catch (const std::exception& e) {
6873 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6874 }
6875 }
6876 resultobj = SWIG_From_int(static_cast< int >(result));
6877 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6878 return resultobj;
6879fail:
6880 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
6881 return NULL__null;
6882}
6883
6884
6885SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_elements(PyObject *self, PyObject *args) {
6886 int argc;
6887 PyObject *argv[3];
6888 int ii;
6889
6890 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
6891 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
6892 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
6893 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
6894 }
6895 if (argc == 1) {
6896 int _v;
6897 void *vptr = 0;
6898 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
6899 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6900 if (_v) {
6901 return _wrap_GXmlNode_elements__SWIG_0(self, args);
6902 }
6903 }
6904 if (argc == 2) {
6905 int _v;
6906 void *vptr = 0;
6907 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
6908 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6909 if (_v) {
6910 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
6911 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
6912 if (_v) {
6913 return _wrap_GXmlNode_elements__SWIG_1(self, args);
6914 }
6915 }
6916 }
6917
6918fail:
6919 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlNode_elements'.\n"
6920 " Possible C/C++ prototypes are:\n"
6921 " GXmlNode::elements() const\n"
6922 " GXmlNode::elements(std::string const &) const\n");
6923 return 0;
6924}
6925
6926
6927SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_element__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6928 PyObject *resultobj = 0;
6929 GXmlNode *arg1 = (GXmlNode *) 0 ;
6930 int *arg2 = 0 ;
6931 void *argp1 = 0 ;
6932 int res1 = 0 ;
6933 int temp2 ;
6934 int val2 ;
6935 int ecode2 = 0 ;
6936 PyObject * obj0 = 0 ;
6937 PyObject * obj1 = 0 ;
6938 GXmlElement *result = 0 ;
6939
6940 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode_element",&obj0,&obj1)) SWIG_failgoto fail;
6941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6942 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_element" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_element" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6944 }
6945 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6946 ecode2 = SWIG_AsVal_int(obj1, &val2);
6947 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
6948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXmlNode_element" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXmlNode_element" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
6949 }
6950 temp2 = static_cast< int >(val2);
6951 arg2 = &temp2;
6952 {
6953 try {
6954 result = (GXmlElement *)(arg1)->element((int const &)*arg2);
6955 }
6956 catch (const GException::out_of_range& e) {
6957 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
6958 }
6959 catch (const GExceptionHandler& e) {
6960 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6961 }
6962 catch (const std::exception& e) {
6963 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
6964 }
6965 }
6966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
6967 return resultobj;
6968fail:
6969 return NULL__null;
6970}
6971
6972
6973SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_element__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6974 PyObject *resultobj = 0;
6975 GXmlNode *arg1 = (GXmlNode *) 0 ;
6976 std::string *arg2 = 0 ;
6977 int *arg3 = 0 ;
6978 void *argp1 = 0 ;
6979 int res1 = 0 ;
6980 int res2 = SWIG_OLDOBJ((0)) ;
6981 int temp3 ;
6982 int val3 ;
6983 int ecode3 = 0 ;
6984 PyObject * obj0 = 0 ;
6985 PyObject * obj1 = 0 ;
6986 PyObject * obj2 = 0 ;
6987 GXmlElement *result = 0 ;
6988
6989 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlNode_element",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
6990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
6991 if (!SWIG_IsOK(res1)(res1 >= 0)) {
6992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_element" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_element" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
6993 }
6994 arg1 = reinterpret_cast< GXmlNode * >(argp1);
6995 {
6996 std::string *ptr = (std::string *)0;
6997 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
6998 if (!SWIG_IsOK(res2)(res2 >= 0)) {
6999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlNode_element" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlNode_element" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7000 }
7001 if (!ptr) {
7002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_element" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_element" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7003 }
7004 arg2 = ptr;
7005 }
7006 ecode3 = SWIG_AsVal_int(obj2, &val3);
7007 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7008 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXmlNode_element" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXmlNode_element" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
7009 }
7010 temp3 = static_cast< int >(val3);
7011 arg3 = &temp3;
7012 {
7013 try {
7014 result = (GXmlElement *)(arg1)->element((std::string const &)*arg2,(int const &)*arg3);
7015 }
7016 catch (const GException::out_of_range& e) {
7017 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7018 }
7019 catch (const GExceptionHandler& e) {
7020 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7021 }
7022 catch (const std::exception& e) {
7023 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7024 }
7025 }
7026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
7027 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7028 return resultobj;
7029fail:
7030 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7031 return NULL__null;
7032}
7033
7034
7035SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_element(PyObject *self, PyObject *args) {
7036 int argc;
7037 PyObject *argv[4];
7038 int ii;
7039
7040 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7041 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7042 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7043 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7044 }
7045 if (argc == 2) {
7046 int _v;
7047 void *vptr = 0;
7048 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7049 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7050 if (_v) {
7051 {
7052 int res = SWIG_AsVal_int(argv[1], NULL__null);
7053 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7054 }
7055 if (_v) {
7056 return _wrap_GXmlNode_element__SWIG_0(self, args);
7057 }
7058 }
7059 }
7060 if (argc == 3) {
7061 int _v;
7062 void *vptr = 0;
7063 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[8
], 0, 0)
;
7064 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7065 if (_v) {
7066 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7067 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7068 if (_v) {
7069 {
7070 int res = SWIG_AsVal_int(argv[2], NULL__null);
7071 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7072 }
7073 if (_v) {
7074 return _wrap_GXmlNode_element__SWIG_1(self, args);
7075 }
7076 }
7077 }
7078 }
7079
7080fail:
7081 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlNode_element'.\n"
7082 " Possible C/C++ prototypes are:\n"
7083 " GXmlNode::element(int const &)\n"
7084 " GXmlNode::element(std::string const &,int const &)\n");
7085 return 0;
7086}
7087
7088
7089SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7090 PyObject *resultobj = 0;
7091 GXmlNode *arg1 = (GXmlNode *) 0 ;
7092 GUrl *arg2 = 0 ;
7093 int *arg3 = 0 ;
7094 void *argp1 = 0 ;
7095 int res1 = 0 ;
7096 void *argp2 = 0 ;
7097 int res2 = 0 ;
7098 int temp3 ;
7099 int val3 ;
7100 int ecode3 = 0 ;
7101 PyObject * obj0 = 0 ;
7102 PyObject * obj1 = 0 ;
7103 PyObject * obj2 = 0 ;
7104
7105 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlNode_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7107 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_write" "', argument " "1"" of type '" "GXmlNode const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_write" "', argument "
"1"" of type '" "GXmlNode const *""'"); goto fail; } while(0
)
;
7109 }
7110 arg1 = reinterpret_cast< GXmlNode * >(argp1);
7111 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
7112 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7113 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlNode_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlNode_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
7114 }
7115 if (!argp2) {
7116 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
7117 }
7118 arg2 = reinterpret_cast< GUrl * >(argp2);
7119 ecode3 = SWIG_AsVal_int(obj2, &val3);
7120 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXmlNode_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXmlNode_write" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
7122 }
7123 temp3 = static_cast< int >(val3);
7124 arg3 = &temp3;
7125 {
7126 try {
7127 ((GXmlNode const *)arg1)->write(*arg2,(int const &)*arg3);
7128 }
7129 catch (const GException::out_of_range& e) {
7130 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7131 }
7132 catch (const GExceptionHandler& e) {
7133 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7134 }
7135 catch (const std::exception& e) {
7136 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7137 }
7138 }
7139 resultobj = SWIG_Py_Void();
7140 return resultobj;
7141fail:
7142 return NULL__null;
7143}
7144
7145
7146SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7147 PyObject *resultobj = 0;
7148 GXmlNode *arg1 = (GXmlNode *) 0 ;
7149 void *argp1 = 0 ;
7150 int res1 = 0 ;
7151 PyObject * obj0 = 0 ;
7152 GXmlNode::NodeType result;
7153
7154 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode_type",&obj0)) SWIG_failgoto fail;
7155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7156 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode_type" "', argument " "1"" of type '" "GXmlNode const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode_type" "', argument "
"1"" of type '" "GXmlNode const *""'"); goto fail; } while(0
)
;
7158 }
7159 arg1 = reinterpret_cast< GXmlNode * >(argp1);
7160 {
7161 try {
7162 result = (GXmlNode::NodeType)((GXmlNode const *)arg1)->type();
7163 }
7164 catch (const GException::out_of_range& e) {
7165 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7166 }
7167 catch (const GExceptionHandler& e) {
7168 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7169 }
7170 catch (const std::exception& e) {
7171 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7172 }
7173 }
7174 resultobj = SWIG_From_int(static_cast< int >(result));
7175 return resultobj;
7176fail:
7177 return NULL__null;
7178}
7179
7180
7181SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7182 PyObject *resultobj = 0;
7183 GXmlNode *arg1 = (GXmlNode *) 0 ;
7184 void *argp1 = 0 ;
7185 int res1 = 0 ;
7186 PyObject * obj0 = 0 ;
7187 char *result = 0 ;
7188
7189 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode___str__",&obj0)) SWIG_failgoto fail;
7190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7191 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode___str__" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode___str__" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
7193 }
7194 arg1 = reinterpret_cast< GXmlNode * >(argp1);
7195 {
7196 try {
7197 result = (char *)GXmlNode___str__(arg1);
7198 }
7199 catch (const GException::out_of_range& e) {
7200 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7201 }
7202 catch (const GExceptionHandler& e) {
7203 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7204 }
7205 catch (const std::exception& e) {
7206 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7207 }
7208 }
7209 resultobj = SWIG_FromCharPtr((const char *)result);
7210 return resultobj;
7211fail:
7212 return NULL__null;
7213}
7214
7215
7216SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7217 PyObject *resultobj = 0;
7218 GXmlNode *arg1 = (GXmlNode *) 0 ;
7219 int *arg2 = 0 ;
7220 void *argp1 = 0 ;
7221 int res1 = 0 ;
7222 int temp2 ;
7223 int val2 ;
7224 int ecode2 = 0 ;
7225 PyObject * obj0 = 0 ;
7226 PyObject * obj1 = 0 ;
7227 GXmlNode *result = 0 ;
7228
7229 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlNode___getitem__",&obj0,&obj1)) SWIG_failgoto fail;
7230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7231 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode___getitem__" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode___getitem__" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
7233 }
7234 arg1 = reinterpret_cast< GXmlNode * >(argp1);
7235 ecode2 = SWIG_AsVal_int(obj1, &val2);
7236 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXmlNode___getitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXmlNode___getitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7238 }
7239 temp2 = static_cast< int >(val2);
7240 arg2 = &temp2;
7241 {
7242 try {
7243 result = (GXmlNode *)GXmlNode___getitem__(arg1,(int const &)*arg2);
7244 }
7245 catch (const GException::out_of_range& e) {
7246 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7247 }
7248 catch (const GExceptionHandler& e) {
7249 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7250 }
7251 catch (const std::exception& e) {
7252 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7253 }
7254 }
7255 {
7256 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
7257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
7258 }
7259 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
7260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
7261 }
7262 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
7263 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
7264 }
7265 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
7266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
7267 }
7268 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
7269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
7270 }
7271 else {
7272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
7273 }
7274 }
7275 return resultobj;
7276fail:
7277 return NULL__null;
7278}
7279
7280
7281SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7282 PyObject *resultobj = 0;
7283 GXmlNode *arg1 = (GXmlNode *) 0 ;
7284 int *arg2 = 0 ;
7285 GXmlNode *arg3 = 0 ;
7286 void *argp1 = 0 ;
7287 int res1 = 0 ;
7288 int temp2 ;
7289 int val2 ;
7290 int ecode2 = 0 ;
7291 void *argp3 = 0 ;
7292 int res3 = 0 ;
7293 PyObject * obj0 = 0 ;
7294 PyObject * obj1 = 0 ;
7295 PyObject * obj2 = 0 ;
7296
7297 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlNode___setitem__",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7299 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode___setitem__" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode___setitem__" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
7301 }
7302 arg1 = reinterpret_cast< GXmlNode * >(argp1);
7303 ecode2 = SWIG_AsVal_int(obj1, &val2);
7304 if (!SWIG_IsOK(ecode2)(ecode2 >= 0)) {
7305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GXmlNode___setitem__" "', argument " "2"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode2 !=
(-1)) ? ecode2 : -5)), "in method '" "GXmlNode___setitem__" "', argument "
"2"" of type '" "int""'"); goto fail; } while(0)
;
7306 }
7307 temp2 = static_cast< int >(val2);
7308 arg2 = &temp2;
7309 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_GXmlNode, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj2, &argp3, swig_types[8],
0 | 0, 0)
;
7310 if (!SWIG_IsOK(res3)(res3 >= 0)) {
7311 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GXmlNode___setitem__" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GXmlNode___setitem__" "', argument "
"3"" of type '" "GXmlNode const &""'"); goto fail; } while
(0)
;
7312 }
7313 if (!argp3) {
7314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlNode___setitem__" "', argument " "3"" of type '" "GXmlNode const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlNode___setitem__" "', argument " "3"" of type '"
"GXmlNode const &""'"); goto fail; } while(0)
;
7315 }
7316 arg3 = reinterpret_cast< GXmlNode * >(argp3);
7317 {
7318 try {
7319 GXmlNode___setitem__(arg1,(int const &)*arg2,(GXmlNode const &)*arg3);
7320 }
7321 catch (const GException::out_of_range& e) {
7322 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7323 }
7324 catch (const GExceptionHandler& e) {
7325 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7326 }
7327 catch (const std::exception& e) {
7328 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7329 }
7330 }
7331 resultobj = SWIG_Py_Void();
7332 return resultobj;
7333fail:
7334 return NULL__null;
7335}
7336
7337
7338SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlNode___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7339 PyObject *resultobj = 0;
7340 GXmlNode *arg1 = (GXmlNode *) 0 ;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 PyObject * obj0 = 0 ;
7344 int result;
7345
7346 if (!PyArg_ParseTuple(args,(char *)"O:GXmlNode___len__",&obj0)) SWIG_failgoto fail;
7347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[8],
0 | 0, 0)
;
7348 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlNode___len__" "', argument " "1"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlNode___len__" "', argument "
"1"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
7350 }
7351 arg1 = reinterpret_cast< GXmlNode * >(argp1);
7352 {
7353 try {
7354 result = (int)GXmlNode___len__(arg1);
7355 }
7356 catch (const GException::out_of_range& e) {
7357 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7358 }
7359 catch (const GExceptionHandler& e) {
7360 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7361 }
7362 catch (const std::exception& e) {
7363 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7364 }
7365 }
7366 resultobj = SWIG_From_int(static_cast< int >(result));
7367 return resultobj;
7368fail:
7369 return NULL__null;
7370}
7371
7372
7373SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXmlNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7374 PyObject *obj;
7375 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
7376 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlNodeswig_types[8], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
7377 return SWIG_Py_Void();
7378}
7379
7380SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlDocument__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7381 PyObject *resultobj = 0;
7382 GXmlDocument *result = 0 ;
7383
7384 if (!PyArg_ParseTuple(args,(char *)":new_GXmlDocument")) SWIG_failgoto fail;
7385 {
7386 try {
7387 result = (GXmlDocument *)new GXmlDocument();
7388 }
7389 catch (const GException::out_of_range& e) {
7390 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7391 }
7392 catch (const GExceptionHandler& e) {
7393 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7394 }
7395 catch (const std::exception& e) {
7396 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7397 }
7398 }
7399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], ((
0x1 << 1) | 0x1) | 0)
;
7400 return resultobj;
7401fail:
7402 return NULL__null;
7403}
7404
7405
7406SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlDocument__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7407 PyObject *resultobj = 0;
7408 GXmlDocument *arg1 = 0 ;
7409 void *argp1 = 0 ;
7410 int res1 = 0 ;
7411 PyObject * obj0 = 0 ;
7412 GXmlDocument *result = 0 ;
7413
7414 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlDocument",&obj0)) SWIG_failgoto fail;
7415 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlDocument, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7416 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlDocument" "', argument " "1"" of type '" "GXmlDocument const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlDocument" "', argument "
"1"" of type '" "GXmlDocument const &""'"); goto fail; }
while(0)
;
7418 }
7419 if (!argp1) {
7420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlDocument" "', argument " "1"" of type '" "GXmlDocument const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlDocument" "', argument " "1"" of type '"
"GXmlDocument const &""'"); goto fail; } while(0)
;
7421 }
7422 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7423 {
7424 try {
7425 result = (GXmlDocument *)new GXmlDocument((GXmlDocument const &)*arg1);
7426 }
7427 catch (const GException::out_of_range& e) {
7428 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7429 }
7430 catch (const GExceptionHandler& e) {
7431 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7432 }
7433 catch (const std::exception& e) {
7434 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7435 }
7436 }
7437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], ((
0x1 << 1) | 0x1) | 0)
;
7438 return resultobj;
7439fail:
7440 return NULL__null;
7441}
7442
7443
7444SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlDocument(PyObject *self, PyObject *args) {
7445 int argc;
7446 PyObject *argv[2];
7447 int ii;
7448
7449 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7450 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7451 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
7452 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7453 }
7454 if (argc == 0) {
7455 return _wrap_new_GXmlDocument__SWIG_0(self, args);
7456 }
7457 if (argc == 1) {
7458 int _v;
7459 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[6], 0, 0);
7460 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7461 if (_v) {
7462 return _wrap_new_GXmlDocument__SWIG_1(self, args);
7463 }
7464 }
7465
7466fail:
7467 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GXmlDocument'.\n"
7468 " Possible C/C++ prototypes are:\n"
7469 " GXmlDocument::GXmlDocument()\n"
7470 " GXmlDocument::GXmlDocument(GXmlDocument const &)\n");
7471 return 0;
7472}
7473
7474
7475SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXmlDocument(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7476 PyObject *resultobj = 0;
7477 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7478 void *argp1 = 0 ;
7479 int res1 = 0 ;
7480 PyObject * obj0 = 0 ;
7481
7482 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXmlDocument",&obj0)) SWIG_failgoto fail;
7483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0x1 | 0, 0)
;
7484 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXmlDocument" "', argument " "1"" of type '" "GXmlDocument *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXmlDocument" "', argument "
"1"" of type '" "GXmlDocument *""'"); goto fail; } while(0)
;
7486 }
7487 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7488 {
7489 try {
7490 delete arg1;
7491 }
7492 catch (const GException::out_of_range& e) {
7493 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7494 }
7495 catch (const GExceptionHandler& e) {
7496 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7497 }
7498 catch (const std::exception& e) {
7499 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7500 }
7501 }
7502 resultobj = SWIG_Py_Void();
7503 return resultobj;
7504fail:
7505 return NULL__null;
7506}
7507
7508
7509SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7510 PyObject *resultobj = 0;
7511 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7512 void *argp1 = 0 ;
7513 int res1 = 0 ;
7514 PyObject * obj0 = 0 ;
7515
7516 if (!PyArg_ParseTuple(args,(char *)"O:GXmlDocument_clear",&obj0)) SWIG_failgoto fail;
7517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7518 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_clear" "', argument " "1"" of type '" "GXmlDocument *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_clear" "', argument "
"1"" of type '" "GXmlDocument *""'"); goto fail; } while(0)
;
7520 }
7521 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7522 {
7523 try {
7524 (arg1)->clear();
7525 }
7526 catch (const GException::out_of_range& e) {
7527 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7528 }
7529 catch (const GExceptionHandler& e) {
7530 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7531 }
7532 catch (const std::exception& e) {
7533 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7534 }
7535 }
7536 resultobj = SWIG_Py_Void();
7537 return resultobj;
7538fail:
7539 return NULL__null;
7540}
7541
7542
7543SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7544 PyObject *resultobj = 0;
7545 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7546 void *argp1 = 0 ;
7547 int res1 = 0 ;
7548 PyObject * obj0 = 0 ;
7549 GXmlDocument *result = 0 ;
7550
7551 if (!PyArg_ParseTuple(args,(char *)"O:GXmlDocument_clone",&obj0)) SWIG_failgoto fail;
7552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7553 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_clone" "', argument " "1"" of type '" "GXmlDocument const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_clone" "', argument "
"1"" of type '" "GXmlDocument const *""'"); goto fail; } while
(0)
;
7555 }
7556 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7557 {
7558 try {
7559 result = (GXmlDocument *)((GXmlDocument const *)arg1)->clone();
7560 }
7561 catch (const GException::out_of_range& e) {
7562 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7563 }
7564 catch (const GExceptionHandler& e) {
7565 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7566 }
7567 catch (const std::exception& e) {
7568 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7569 }
7570 }
7571 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
7572 return resultobj;
7573fail:
7574 return NULL__null;
7575}
7576
7577
7578SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7579 PyObject *resultobj = 0;
7580 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7581 GUrl *arg2 = 0 ;
7582 int *arg3 = 0 ;
7583 void *argp1 = 0 ;
7584 int res1 = 0 ;
7585 void *argp2 = 0 ;
7586 int res2 = 0 ;
7587 int temp3 ;
7588 int val3 ;
7589 int ecode3 = 0 ;
7590 PyObject * obj0 = 0 ;
7591 PyObject * obj1 = 0 ;
7592 PyObject * obj2 = 0 ;
7593
7594 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlDocument_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
7595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7596 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_write" "', argument " "1"" of type '" "GXmlDocument const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_write" "', argument "
"1"" of type '" "GXmlDocument const *""'"); goto fail; } while
(0)
;
7598 }
7599 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7600 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
7601 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7602 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlDocument_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlDocument_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
7603 }
7604 if (!argp2) {
7605 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlDocument_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlDocument_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
7606 }
7607 arg2 = reinterpret_cast< GUrl * >(argp2);
7608 ecode3 = SWIG_AsVal_int(obj2, &val3);
7609 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
7610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXmlDocument_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXmlDocument_write" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
7611 }
7612 temp3 = static_cast< int >(val3);
7613 arg3 = &temp3;
7614 {
7615 try {
7616 ((GXmlDocument const *)arg1)->write(*arg2,(int const &)*arg3);
7617 }
7618 catch (const GException::out_of_range& e) {
7619 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7620 }
7621 catch (const GExceptionHandler& e) {
7622 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7623 }
7624 catch (const std::exception& e) {
7625 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7626 }
7627 }
7628 resultobj = SWIG_Py_Void();
7629 return resultobj;
7630fail:
7631 return NULL__null;
7632}
7633
7634
7635SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7636 PyObject *resultobj = 0;
7637 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7638 GUrl *arg2 = 0 ;
7639 void *argp1 = 0 ;
7640 int res1 = 0 ;
7641 void *argp2 = 0 ;
7642 int res2 = 0 ;
7643 PyObject * obj0 = 0 ;
7644 PyObject * obj1 = 0 ;
7645
7646 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlDocument_write",&obj0,&obj1)) SWIG_failgoto fail;
7647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7648 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_write" "', argument " "1"" of type '" "GXmlDocument const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_write" "', argument "
"1"" of type '" "GXmlDocument const *""'"); goto fail; } while
(0)
;
7650 }
7651 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
7653 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlDocument_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlDocument_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
7655 }
7656 if (!argp2) {
7657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlDocument_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlDocument_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
7658 }
7659 arg2 = reinterpret_cast< GUrl * >(argp2);
7660 {
7661 try {
7662 ((GXmlDocument const *)arg1)->write(*arg2);
7663 }
7664 catch (const GException::out_of_range& e) {
7665 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7666 }
7667 catch (const GExceptionHandler& e) {
7668 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7669 }
7670 catch (const std::exception& e) {
7671 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7672 }
7673 }
7674 resultobj = SWIG_Py_Void();
7675 return resultobj;
7676fail:
7677 return NULL__null;
7678}
7679
7680
7681SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_write(PyObject *self, PyObject *args) {
7682 int argc;
7683 PyObject *argv[4];
7684 int ii;
7685
7686 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7687 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7688 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
7689 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7690 }
7691 if (argc == 2) {
7692 int _v;
7693 void *vptr = 0;
7694 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
7695 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7696 if (_v) {
7697 void *vptr = 0;
7698 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
7699 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7700 if (_v) {
7701 return _wrap_GXmlDocument_write__SWIG_1(self, args);
7702 }
7703 }
7704 }
7705 if (argc == 3) {
7706 int _v;
7707 void *vptr = 0;
7708 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
7709 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7710 if (_v) {
7711 void *vptr = 0;
7712 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
7713 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7714 if (_v) {
7715 {
7716 int res = SWIG_AsVal_int(argv[2], NULL__null);
7717 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7718 }
7719 if (_v) {
7720 return _wrap_GXmlDocument_write__SWIG_0(self, args);
7721 }
7722 }
7723 }
7724 }
7725
7726fail:
7727 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlDocument_write'.\n"
7728 " Possible C/C++ prototypes are:\n"
7729 " GXmlDocument::write(GUrl &,int const &) const\n"
7730 " GXmlDocument::write(GUrl &) const\n");
7731 return 0;
7732}
7733
7734
7735SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7736 PyObject *resultobj = 0;
7737 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740 PyObject * obj0 = 0 ;
7741 GXmlNode::NodeType result;
7742
7743 if (!PyArg_ParseTuple(args,(char *)"O:GXmlDocument_type",&obj0)) SWIG_failgoto fail;
7744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7745 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_type" "', argument " "1"" of type '" "GXmlDocument const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_type" "', argument "
"1"" of type '" "GXmlDocument const *""'"); goto fail; } while
(0)
;
7747 }
7748 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7749 {
7750 try {
7751 result = (GXmlNode::NodeType)((GXmlDocument const *)arg1)->type();
7752 }
7753 catch (const GException::out_of_range& e) {
7754 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7755 }
7756 catch (const GExceptionHandler& e) {
7757 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7758 }
7759 catch (const std::exception& e) {
7760 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7761 }
7762 }
7763 resultobj = SWIG_From_int(static_cast< int >(result));
7764 return resultobj;
7765fail:
7766 return NULL__null;
7767}
7768
7769
7770SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_version__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7771 PyObject *resultobj = 0;
7772 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7773 void *argp1 = 0 ;
7774 int res1 = 0 ;
7775 PyObject * obj0 = 0 ;
7776 std::string result;
7777
7778 if (!PyArg_ParseTuple(args,(char *)"O:GXmlDocument_version",&obj0)) SWIG_failgoto fail;
7779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7780 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_version" "', argument " "1"" of type '" "GXmlDocument const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_version" "', argument "
"1"" of type '" "GXmlDocument const *""'"); goto fail; } while
(0)
;
7782 }
7783 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7784 {
7785 try {
7786 result = ((GXmlDocument const *)arg1)->version();
7787 }
7788 catch (const GException::out_of_range& e) {
7789 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7790 }
7791 catch (const GExceptionHandler& e) {
7792 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7793 }
7794 catch (const std::exception& e) {
7795 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7796 }
7797 }
7798 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
7799 return resultobj;
7800fail:
7801 return NULL__null;
7802}
7803
7804
7805SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_encoding__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7806 PyObject *resultobj = 0;
7807 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 PyObject * obj0 = 0 ;
7811 std::string result;
7812
7813 if (!PyArg_ParseTuple(args,(char *)"O:GXmlDocument_encoding",&obj0)) SWIG_failgoto fail;
7814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7815 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_encoding" "', argument " "1"" of type '" "GXmlDocument const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_encoding" "', argument "
"1"" of type '" "GXmlDocument const *""'"); goto fail; } while
(0)
;
7817 }
7818 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7819 {
7820 try {
7821 result = ((GXmlDocument const *)arg1)->encoding();
7822 }
7823 catch (const GException::out_of_range& e) {
7824 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7825 }
7826 catch (const GExceptionHandler& e) {
7827 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7828 }
7829 catch (const std::exception& e) {
7830 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7831 }
7832 }
7833 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
7834 return resultobj;
7835fail:
7836 return NULL__null;
7837}
7838
7839
7840SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_standalone__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7841 PyObject *resultobj = 0;
7842 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7843 void *argp1 = 0 ;
7844 int res1 = 0 ;
7845 PyObject * obj0 = 0 ;
7846 std::string result;
7847
7848 if (!PyArg_ParseTuple(args,(char *)"O:GXmlDocument_standalone",&obj0)) SWIG_failgoto fail;
7849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7850 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_standalone" "', argument " "1"" of type '" "GXmlDocument const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_standalone" "', argument "
"1"" of type '" "GXmlDocument const *""'"); goto fail; } while
(0)
;
7852 }
7853 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7854 {
7855 try {
7856 result = ((GXmlDocument const *)arg1)->standalone();
7857 }
7858 catch (const GException::out_of_range& e) {
7859 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7860 }
7861 catch (const GExceptionHandler& e) {
7862 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7863 }
7864 catch (const std::exception& e) {
7865 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7866 }
7867 }
7868 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
7869 return resultobj;
7870fail:
7871 return NULL__null;
7872}
7873
7874
7875SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_version__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7876 PyObject *resultobj = 0;
7877 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7878 std::string *arg2 = 0 ;
7879 void *argp1 = 0 ;
7880 int res1 = 0 ;
7881 int res2 = SWIG_OLDOBJ((0)) ;
7882 PyObject * obj0 = 0 ;
7883 PyObject * obj1 = 0 ;
7884
7885 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlDocument_version",&obj0,&obj1)) SWIG_failgoto fail;
7886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7887 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_version" "', argument " "1"" of type '" "GXmlDocument *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_version" "', argument "
"1"" of type '" "GXmlDocument *""'"); goto fail; } while(0)
;
7889 }
7890 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7891 {
7892 std::string *ptr = (std::string *)0;
7893 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7894 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7895 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlDocument_version" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlDocument_version" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7896 }
7897 if (!ptr) {
7898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlDocument_version" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlDocument_version" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7899 }
7900 arg2 = ptr;
7901 }
7902 {
7903 try {
7904 (arg1)->version((std::string const &)*arg2);
7905 }
7906 catch (const GException::out_of_range& e) {
7907 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
7908 }
7909 catch (const GExceptionHandler& e) {
7910 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7911 }
7912 catch (const std::exception& e) {
7913 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
7914 }
7915 }
7916 resultobj = SWIG_Py_Void();
7917 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7918 return resultobj;
7919fail:
7920 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
7921 return NULL__null;
7922}
7923
7924
7925SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_version(PyObject *self, PyObject *args) {
7926 int argc;
7927 PyObject *argv[3];
7928 int ii;
7929
7930 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
7931 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
7932 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
7933 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
7934 }
7935 if (argc == 1) {
7936 int _v;
7937 void *vptr = 0;
7938 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
7939 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7940 if (_v) {
7941 return _wrap_GXmlDocument_version__SWIG_0(self, args);
7942 }
7943 }
7944 if (argc == 2) {
7945 int _v;
7946 void *vptr = 0;
7947 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
7948 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7949 if (_v) {
7950 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
7951 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
7952 if (_v) {
7953 return _wrap_GXmlDocument_version__SWIG_1(self, args);
7954 }
7955 }
7956 }
7957
7958fail:
7959 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlDocument_version'.\n"
7960 " Possible C/C++ prototypes are:\n"
7961 " GXmlDocument::version() const\n"
7962 " GXmlDocument::version(std::string const &)\n");
7963 return 0;
7964}
7965
7966
7967SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_encoding__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7968 PyObject *resultobj = 0;
7969 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
7970 std::string *arg2 = 0 ;
7971 void *argp1 = 0 ;
7972 int res1 = 0 ;
7973 int res2 = SWIG_OLDOBJ((0)) ;
7974 PyObject * obj0 = 0 ;
7975 PyObject * obj1 = 0 ;
7976
7977 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlDocument_encoding",&obj0,&obj1)) SWIG_failgoto fail;
7978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
7979 if (!SWIG_IsOK(res1)(res1 >= 0)) {
7980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_encoding" "', argument " "1"" of type '" "GXmlDocument *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_encoding" "', argument "
"1"" of type '" "GXmlDocument *""'"); goto fail; } while(0)
;
7981 }
7982 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
7983 {
7984 std::string *ptr = (std::string *)0;
7985 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
7986 if (!SWIG_IsOK(res2)(res2 >= 0)) {
7987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlDocument_encoding" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlDocument_encoding" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
7988 }
7989 if (!ptr) {
7990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlDocument_encoding" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlDocument_encoding" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
7991 }
7992 arg2 = ptr;
7993 }
7994 {
7995 try {
7996 (arg1)->encoding((std::string const &)*arg2);
7997 }
7998 catch (const GException::out_of_range& e) {
7999 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8000 }
8001 catch (const GExceptionHandler& e) {
8002 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8003 }
8004 catch (const std::exception& e) {
8005 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8006 }
8007 }
8008 resultobj = SWIG_Py_Void();
8009 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8010 return resultobj;
8011fail:
8012 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8013 return NULL__null;
8014}
8015
8016
8017SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_encoding(PyObject *self, PyObject *args) {
8018 int argc;
8019 PyObject *argv[3];
8020 int ii;
8021
8022 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8023 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8024 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8025 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8026 }
8027 if (argc == 1) {
8028 int _v;
8029 void *vptr = 0;
8030 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8031 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8032 if (_v) {
8033 return _wrap_GXmlDocument_encoding__SWIG_0(self, args);
8034 }
8035 }
8036 if (argc == 2) {
8037 int _v;
8038 void *vptr = 0;
8039 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8040 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8041 if (_v) {
8042 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8043 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8044 if (_v) {
8045 return _wrap_GXmlDocument_encoding__SWIG_1(self, args);
8046 }
8047 }
8048 }
8049
8050fail:
8051 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlDocument_encoding'.\n"
8052 " Possible C/C++ prototypes are:\n"
8053 " GXmlDocument::encoding() const\n"
8054 " GXmlDocument::encoding(std::string const &)\n");
8055 return 0;
8056}
8057
8058
8059SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_standalone__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8060 PyObject *resultobj = 0;
8061 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
8062 std::string *arg2 = 0 ;
8063 void *argp1 = 0 ;
8064 int res1 = 0 ;
8065 int res2 = SWIG_OLDOBJ((0)) ;
8066 PyObject * obj0 = 0 ;
8067 PyObject * obj1 = 0 ;
8068
8069 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlDocument_standalone",&obj0,&obj1)) SWIG_failgoto fail;
8070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8071 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_standalone" "', argument " "1"" of type '" "GXmlDocument *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_standalone" "', argument "
"1"" of type '" "GXmlDocument *""'"); goto fail; } while(0)
;
8073 }
8074 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
8075 {
8076 std::string *ptr = (std::string *)0;
8077 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8078 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlDocument_standalone" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlDocument_standalone" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8080 }
8081 if (!ptr) {
8082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlDocument_standalone" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlDocument_standalone" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8083 }
8084 arg2 = ptr;
8085 }
8086 {
8087 try {
8088 (arg1)->standalone((std::string const &)*arg2);
8089 }
8090 catch (const GException::out_of_range& e) {
8091 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8092 }
8093 catch (const GExceptionHandler& e) {
8094 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8095 }
8096 catch (const std::exception& e) {
8097 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8098 }
8099 }
8100 resultobj = SWIG_Py_Void();
8101 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8102 return resultobj;
8103fail:
8104 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8105 return NULL__null;
8106}
8107
8108
8109SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_standalone(PyObject *self, PyObject *args) {
8110 int argc;
8111 PyObject *argv[3];
8112 int ii;
8113
8114 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8115 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8116 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8117 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8118 }
8119 if (argc == 1) {
8120 int _v;
8121 void *vptr = 0;
8122 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8123 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8124 if (_v) {
8125 return _wrap_GXmlDocument_standalone__SWIG_0(self, args);
8126 }
8127 }
8128 if (argc == 2) {
8129 int _v;
8130 void *vptr = 0;
8131 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlDocument, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[6
], 0, 0)
;
8132 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8133 if (_v) {
8134 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8135 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8136 if (_v) {
8137 return _wrap_GXmlDocument_standalone__SWIG_1(self, args);
8138 }
8139 }
8140 }
8141
8142fail:
8143 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlDocument_standalone'.\n"
8144 " Possible C/C++ prototypes are:\n"
8145 " GXmlDocument::standalone() const\n"
8146 " GXmlDocument::standalone(std::string const &)\n");
8147 return 0;
8148}
8149
8150
8151SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlDocument_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8152 PyObject *resultobj = 0;
8153 GXmlDocument *arg1 = (GXmlDocument *) 0 ;
8154 void *argp1 = 0 ;
8155 int res1 = 0 ;
8156 PyObject * obj0 = 0 ;
8157 GXmlDocument result;
8158
8159 if (!PyArg_ParseTuple(args,(char *)"O:GXmlDocument_copy",&obj0)) SWIG_failgoto fail;
8160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[6],
0 | 0, 0)
;
8161 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlDocument_copy" "', argument " "1"" of type '" "GXmlDocument *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlDocument_copy" "', argument "
"1"" of type '" "GXmlDocument *""'"); goto fail; } while(0)
;
8163 }
8164 arg1 = reinterpret_cast< GXmlDocument * >(argp1);
8165 {
8166 try {
8167 result = GXmlDocument_copy(arg1);
8168 }
8169 catch (const GException::out_of_range& e) {
8170 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8171 }
8172 catch (const GExceptionHandler& e) {
8173 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8174 }
8175 catch (const std::exception& e) {
8176 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8177 }
8178 }
8179 resultobj = SWIG_NewPointerObj((new GXmlDocument(static_cast< const GXmlDocument& >(result))), SWIGTYPE_p_GXmlDocument, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GXmlDocument(static_cast
< const GXmlDocument& >(result))), swig_types[6], 0x1
| 0)
;
8180 return resultobj;
8181fail:
8182 return NULL__null;
8183}
8184
8185
8186SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXmlDocument_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8187 PyObject *obj;
8188 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
8189 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlDocumentswig_types[6], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
8190 return SWIG_Py_Void();
8191}
8192
8193SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlText__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8194 PyObject *resultobj = 0;
8195 GXmlText *result = 0 ;
8196
8197 if (!PyArg_ParseTuple(args,(char *)":new_GXmlText")) SWIG_failgoto fail;
8198 {
8199 try {
8200 result = (GXmlText *)new GXmlText();
8201 }
8202 catch (const GException::out_of_range& e) {
8203 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8204 }
8205 catch (const GExceptionHandler& e) {
8206 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8207 }
8208 catch (const std::exception& e) {
8209 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8210 }
8211 }
8212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
8213 return resultobj;
8214fail:
8215 return NULL__null;
8216}
8217
8218
8219SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlText__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8220 PyObject *resultobj = 0;
8221 GXmlText *arg1 = 0 ;
8222 void *argp1 = 0 ;
8223 int res1 = 0 ;
8224 PyObject * obj0 = 0 ;
8225 GXmlText *result = 0 ;
8226
8227 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlText",&obj0)) SWIG_failgoto fail;
8228 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlText, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8229 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlText" "', argument " "1"" of type '" "GXmlText const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlText" "', argument "
"1"" of type '" "GXmlText const &""'"); goto fail; } while
(0)
;
8231 }
8232 if (!argp1) {
8233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlText" "', argument " "1"" of type '" "GXmlText const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlText" "', argument " "1"" of type '" "GXmlText const &"
"'"); goto fail; } while(0)
;
8234 }
8235 arg1 = reinterpret_cast< GXmlText * >(argp1);
8236 {
8237 try {
8238 result = (GXmlText *)new GXmlText((GXmlText const &)*arg1);
8239 }
8240 catch (const GException::out_of_range& e) {
8241 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8242 }
8243 catch (const GExceptionHandler& e) {
8244 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8245 }
8246 catch (const std::exception& e) {
8247 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8248 }
8249 }
8250 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
8251 return resultobj;
8252fail:
8253 return NULL__null;
8254}
8255
8256
8257SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlText__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8258 PyObject *resultobj = 0;
8259 std::string *arg1 = 0 ;
8260 int res1 = SWIG_OLDOBJ((0)) ;
8261 PyObject * obj0 = 0 ;
8262 GXmlText *result = 0 ;
8263
8264 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlText",&obj0)) SWIG_failgoto fail;
8265 {
8266 std::string *ptr = (std::string *)0;
8267 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
8268 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlText" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlText" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8270 }
8271 if (!ptr) {
8272 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlText" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlText" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
8273 }
8274 arg1 = ptr;
8275 }
8276 {
8277 try {
8278 result = (GXmlText *)new GXmlText((std::string const &)*arg1);
8279 }
8280 catch (const GException::out_of_range& e) {
8281 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8282 }
8283 catch (const GExceptionHandler& e) {
8284 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8285 }
8286 catch (const std::exception& e) {
8287 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8288 }
8289 }
8290 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], (
(0x1 << 1) | 0x1) | 0)
;
8291 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
8292 return resultobj;
8293fail:
8294 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
8295 return NULL__null;
8296}
8297
8298
8299SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlText(PyObject *self, PyObject *args) {
8300 int argc;
8301 PyObject *argv[2];
8302 int ii;
8303
8304 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8305 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8306 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
8307 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8308 }
8309 if (argc == 0) {
8310 return _wrap_new_GXmlText__SWIG_0(self, args);
8311 }
8312 if (argc == 1) {
8313 int _v;
8314 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlText, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[10], 0, 0
)
;
8315 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8316 if (_v) {
8317 return _wrap_new_GXmlText__SWIG_1(self, args);
8318 }
8319 }
8320 if (argc == 1) {
8321 int _v;
8322 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
8323 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8324 if (_v) {
8325 return _wrap_new_GXmlText__SWIG_2(self, args);
8326 }
8327 }
8328
8329fail:
8330 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GXmlText'.\n"
8331 " Possible C/C++ prototypes are:\n"
8332 " GXmlText::GXmlText()\n"
8333 " GXmlText::GXmlText(GXmlText const &)\n"
8334 " GXmlText::GXmlText(std::string const &)\n");
8335 return 0;
8336}
8337
8338
8339SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXmlText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8340 PyObject *resultobj = 0;
8341 GXmlText *arg1 = (GXmlText *) 0 ;
8342 void *argp1 = 0 ;
8343 int res1 = 0 ;
8344 PyObject * obj0 = 0 ;
8345
8346 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXmlText",&obj0)) SWIG_failgoto fail;
8347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0x1 | 0, 0)
;
8348 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXmlText" "', argument " "1"" of type '" "GXmlText *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXmlText" "', argument "
"1"" of type '" "GXmlText *""'"); goto fail; } while(0)
;
8350 }
8351 arg1 = reinterpret_cast< GXmlText * >(argp1);
8352 {
8353 try {
8354 delete arg1;
8355 }
8356 catch (const GException::out_of_range& e) {
8357 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8358 }
8359 catch (const GExceptionHandler& e) {
8360 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8361 }
8362 catch (const std::exception& e) {
8363 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8364 }
8365 }
8366 resultobj = SWIG_Py_Void();
8367 return resultobj;
8368fail:
8369 return NULL__null;
8370}
8371
8372
8373SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8374 PyObject *resultobj = 0;
8375 GXmlText *arg1 = (GXmlText *) 0 ;
8376 void *argp1 = 0 ;
8377 int res1 = 0 ;
8378 PyObject * obj0 = 0 ;
8379
8380 if (!PyArg_ParseTuple(args,(char *)"O:GXmlText_clear",&obj0)) SWIG_failgoto fail;
8381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8382 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_clear" "', argument " "1"" of type '" "GXmlText *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_clear" "', argument "
"1"" of type '" "GXmlText *""'"); goto fail; } while(0)
;
8384 }
8385 arg1 = reinterpret_cast< GXmlText * >(argp1);
8386 {
8387 try {
8388 (arg1)->clear();
8389 }
8390 catch (const GException::out_of_range& e) {
8391 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8392 }
8393 catch (const GExceptionHandler& e) {
8394 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8395 }
8396 catch (const std::exception& e) {
8397 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8398 }
8399 }
8400 resultobj = SWIG_Py_Void();
8401 return resultobj;
8402fail:
8403 return NULL__null;
8404}
8405
8406
8407SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8408 PyObject *resultobj = 0;
8409 GXmlText *arg1 = (GXmlText *) 0 ;
8410 void *argp1 = 0 ;
8411 int res1 = 0 ;
8412 PyObject * obj0 = 0 ;
8413 GXmlText *result = 0 ;
8414
8415 if (!PyArg_ParseTuple(args,(char *)"O:GXmlText_clone",&obj0)) SWIG_failgoto fail;
8416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8417 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_clone" "', argument " "1"" of type '" "GXmlText const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_clone" "', argument "
"1"" of type '" "GXmlText const *""'"); goto fail; } while(0
)
;
8419 }
8420 arg1 = reinterpret_cast< GXmlText * >(argp1);
8421 {
8422 try {
8423 result = (GXmlText *)((GXmlText const *)arg1)->clone();
8424 }
8425 catch (const GException::out_of_range& e) {
8426 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8427 }
8428 catch (const GExceptionHandler& e) {
8429 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8430 }
8431 catch (const std::exception& e) {
8432 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8433 }
8434 }
8435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
8436 return resultobj;
8437fail:
8438 return NULL__null;
8439}
8440
8441
8442SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8443 PyObject *resultobj = 0;
8444 GXmlText *arg1 = (GXmlText *) 0 ;
8445 GUrl *arg2 = 0 ;
8446 int *arg3 = 0 ;
8447 void *argp1 = 0 ;
8448 int res1 = 0 ;
8449 void *argp2 = 0 ;
8450 int res2 = 0 ;
8451 int temp3 ;
8452 int val3 ;
8453 int ecode3 = 0 ;
8454 PyObject * obj0 = 0 ;
8455 PyObject * obj1 = 0 ;
8456 PyObject * obj2 = 0 ;
8457
8458 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlText_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
8459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8460 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_write" "', argument " "1"" of type '" "GXmlText const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_write" "', argument "
"1"" of type '" "GXmlText const *""'"); goto fail; } while(0
)
;
8462 }
8463 arg1 = reinterpret_cast< GXmlText * >(argp1);
8464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
8465 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlText_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlText_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
8467 }
8468 if (!argp2) {
8469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlText_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlText_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
8470 }
8471 arg2 = reinterpret_cast< GUrl * >(argp2);
8472 ecode3 = SWIG_AsVal_int(obj2, &val3);
8473 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
8474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXmlText_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXmlText_write" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
8475 }
8476 temp3 = static_cast< int >(val3);
8477 arg3 = &temp3;
8478 {
8479 try {
8480 ((GXmlText const *)arg1)->write(*arg2,(int const &)*arg3);
8481 }
8482 catch (const GException::out_of_range& e) {
8483 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8484 }
8485 catch (const GExceptionHandler& e) {
8486 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8487 }
8488 catch (const std::exception& e) {
8489 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8490 }
8491 }
8492 resultobj = SWIG_Py_Void();
8493 return resultobj;
8494fail:
8495 return NULL__null;
8496}
8497
8498
8499SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8500 PyObject *resultobj = 0;
8501 GXmlText *arg1 = (GXmlText *) 0 ;
8502 GUrl *arg2 = 0 ;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 void *argp2 = 0 ;
8506 int res2 = 0 ;
8507 PyObject * obj0 = 0 ;
8508 PyObject * obj1 = 0 ;
8509
8510 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlText_write",&obj0,&obj1)) SWIG_failgoto fail;
8511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8512 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_write" "', argument " "1"" of type '" "GXmlText const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_write" "', argument "
"1"" of type '" "GXmlText const *""'"); goto fail; } while(0
)
;
8514 }
8515 arg1 = reinterpret_cast< GXmlText * >(argp1);
8516 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
8517 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlText_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlText_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
8519 }
8520 if (!argp2) {
8521 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlText_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlText_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
8522 }
8523 arg2 = reinterpret_cast< GUrl * >(argp2);
8524 {
8525 try {
8526 ((GXmlText const *)arg1)->write(*arg2);
8527 }
8528 catch (const GException::out_of_range& e) {
8529 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8530 }
8531 catch (const GExceptionHandler& e) {
8532 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8533 }
8534 catch (const std::exception& e) {
8535 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8536 }
8537 }
8538 resultobj = SWIG_Py_Void();
8539 return resultobj;
8540fail:
8541 return NULL__null;
8542}
8543
8544
8545SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_write(PyObject *self, PyObject *args) {
8546 int argc;
8547 PyObject *argv[4];
8548 int ii;
8549
8550 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8551 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8552 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
8553 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8554 }
8555 if (argc == 2) {
8556 int _v;
8557 void *vptr = 0;
8558 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlText, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
8559 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8560 if (_v) {
8561 void *vptr = 0;
8562 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
8563 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8564 if (_v) {
8565 return _wrap_GXmlText_write__SWIG_1(self, args);
8566 }
8567 }
8568 }
8569 if (argc == 3) {
8570 int _v;
8571 void *vptr = 0;
8572 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlText, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
8573 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8574 if (_v) {
8575 void *vptr = 0;
8576 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
8577 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8578 if (_v) {
8579 {
8580 int res = SWIG_AsVal_int(argv[2], NULL__null);
8581 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8582 }
8583 if (_v) {
8584 return _wrap_GXmlText_write__SWIG_0(self, args);
8585 }
8586 }
8587 }
8588 }
8589
8590fail:
8591 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlText_write'.\n"
8592 " Possible C/C++ prototypes are:\n"
8593 " GXmlText::write(GUrl &,int const &) const\n"
8594 " GXmlText::write(GUrl &) const\n");
8595 return 0;
8596}
8597
8598
8599SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8600 PyObject *resultobj = 0;
8601 GXmlText *arg1 = (GXmlText *) 0 ;
8602 void *argp1 = 0 ;
8603 int res1 = 0 ;
8604 PyObject * obj0 = 0 ;
8605 GXmlNode::NodeType result;
8606
8607 if (!PyArg_ParseTuple(args,(char *)"O:GXmlText_type",&obj0)) SWIG_failgoto fail;
8608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8609 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_type" "', argument " "1"" of type '" "GXmlText const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_type" "', argument "
"1"" of type '" "GXmlText const *""'"); goto fail; } while(0
)
;
8611 }
8612 arg1 = reinterpret_cast< GXmlText * >(argp1);
8613 {
8614 try {
8615 result = (GXmlNode::NodeType)((GXmlText const *)arg1)->type();
8616 }
8617 catch (const GException::out_of_range& e) {
8618 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8619 }
8620 catch (const GExceptionHandler& e) {
8621 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8622 }
8623 catch (const std::exception& e) {
8624 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8625 }
8626 }
8627 resultobj = SWIG_From_int(static_cast< int >(result));
8628 return resultobj;
8629fail:
8630 return NULL__null;
8631}
8632
8633
8634SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_text__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8635 PyObject *resultobj = 0;
8636 GXmlText *arg1 = (GXmlText *) 0 ;
8637 void *argp1 = 0 ;
8638 int res1 = 0 ;
8639 PyObject * obj0 = 0 ;
8640 std::string *result = 0 ;
8641
8642 if (!PyArg_ParseTuple(args,(char *)"O:GXmlText_text",&obj0)) SWIG_failgoto fail;
8643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8644 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_text" "', argument " "1"" of type '" "GXmlText const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_text" "', argument "
"1"" of type '" "GXmlText const *""'"); goto fail; } while(0
)
;
8646 }
8647 arg1 = reinterpret_cast< GXmlText * >(argp1);
8648 {
8649 try {
8650 result = (std::string *) &((GXmlText const *)arg1)->text();
8651 }
8652 catch (const GException::out_of_range& e) {
8653 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8654 }
8655 catch (const GExceptionHandler& e) {
8656 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8657 }
8658 catch (const std::exception& e) {
8659 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8660 }
8661 }
8662 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
8663 return resultobj;
8664fail:
8665 return NULL__null;
8666}
8667
8668
8669SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_text__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8670 PyObject *resultobj = 0;
8671 GXmlText *arg1 = (GXmlText *) 0 ;
8672 std::string *arg2 = 0 ;
8673 void *argp1 = 0 ;
8674 int res1 = 0 ;
8675 int res2 = SWIG_OLDOBJ((0)) ;
8676 PyObject * obj0 = 0 ;
8677 PyObject * obj1 = 0 ;
8678
8679 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlText_text",&obj0,&obj1)) SWIG_failgoto fail;
8680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8681 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_text" "', argument " "1"" of type '" "GXmlText *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_text" "', argument "
"1"" of type '" "GXmlText *""'"); goto fail; } while(0)
;
8683 }
8684 arg1 = reinterpret_cast< GXmlText * >(argp1);
8685 {
8686 std::string *ptr = (std::string *)0;
8687 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
8688 if (!SWIG_IsOK(res2)(res2 >= 0)) {
8689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlText_text" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlText_text" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8690 }
8691 if (!ptr) {
8692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlText_text" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlText_text" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8693 }
8694 arg2 = ptr;
8695 }
8696 {
8697 try {
8698 (arg1)->text((std::string const &)*arg2);
8699 }
8700 catch (const GException::out_of_range& e) {
8701 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8702 }
8703 catch (const GExceptionHandler& e) {
8704 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8705 }
8706 catch (const std::exception& e) {
8707 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8708 }
8709 }
8710 resultobj = SWIG_Py_Void();
8711 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8712 return resultobj;
8713fail:
8714 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
8715 return NULL__null;
8716}
8717
8718
8719SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_text(PyObject *self, PyObject *args) {
8720 int argc;
8721 PyObject *argv[3];
8722 int ii;
8723
8724 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8725 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8726 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
8727 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8728 }
8729 if (argc == 1) {
8730 int _v;
8731 void *vptr = 0;
8732 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlText, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
8733 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8734 if (_v) {
8735 return _wrap_GXmlText_text__SWIG_0(self, args);
8736 }
8737 }
8738 if (argc == 2) {
8739 int _v;
8740 void *vptr = 0;
8741 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlText, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[10
], 0, 0)
;
8742 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8743 if (_v) {
8744 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
8745 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8746 if (_v) {
8747 return _wrap_GXmlText_text__SWIG_1(self, args);
8748 }
8749 }
8750 }
8751
8752fail:
8753 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlText_text'.\n"
8754 " Possible C/C++ prototypes are:\n"
8755 " GXmlText::text() const\n"
8756 " GXmlText::text(std::string const &)\n");
8757 return 0;
8758}
8759
8760
8761SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlText_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8762 PyObject *resultobj = 0;
8763 GXmlText *arg1 = (GXmlText *) 0 ;
8764 void *argp1 = 0 ;
8765 int res1 = 0 ;
8766 PyObject * obj0 = 0 ;
8767 GXmlText result;
8768
8769 if (!PyArg_ParseTuple(args,(char *)"O:GXmlText_copy",&obj0)) SWIG_failgoto fail;
8770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[10]
, 0 | 0, 0)
;
8771 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlText_copy" "', argument " "1"" of type '" "GXmlText *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlText_copy" "', argument "
"1"" of type '" "GXmlText *""'"); goto fail; } while(0)
;
8773 }
8774 arg1 = reinterpret_cast< GXmlText * >(argp1);
8775 {
8776 try {
8777 result = GXmlText_copy(arg1);
8778 }
8779 catch (const GException::out_of_range& e) {
8780 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8781 }
8782 catch (const GExceptionHandler& e) {
8783 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8784 }
8785 catch (const std::exception& e) {
8786 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8787 }
8788 }
8789 resultobj = SWIG_NewPointerObj((new GXmlText(static_cast< const GXmlText& >(result))), SWIGTYPE_p_GXmlText, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GXmlText(static_cast<
const GXmlText& >(result))), swig_types[10], 0x1 | 0)
;
8790 return resultobj;
8791fail:
8792 return NULL__null;
8793}
8794
8795
8796SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXmlText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8797 PyObject *obj;
8798 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
8799 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlTextswig_types[10], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
8800 return SWIG_Py_Void();
8801}
8802
8803SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlElement__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8804 PyObject *resultobj = 0;
8805 GXmlElement *result = 0 ;
8806
8807 if (!PyArg_ParseTuple(args,(char *)":new_GXmlElement")) SWIG_failgoto fail;
8808 {
8809 try {
8810 result = (GXmlElement *)new GXmlElement();
8811 }
8812 catch (const GException::out_of_range& e) {
8813 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8814 }
8815 catch (const GExceptionHandler& e) {
8816 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8817 }
8818 catch (const std::exception& e) {
8819 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8820 }
8821 }
8822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], ((
0x1 << 1) | 0x1) | 0)
;
8823 return resultobj;
8824fail:
8825 return NULL__null;
8826}
8827
8828
8829SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlElement__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8830 PyObject *resultobj = 0;
8831 GXmlElement *arg1 = 0 ;
8832 void *argp1 = 0 ;
8833 int res1 = 0 ;
8834 PyObject * obj0 = 0 ;
8835 GXmlElement *result = 0 ;
8836
8837 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlElement",&obj0)) SWIG_failgoto fail;
8838 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlElement, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
8839 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlElement" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlElement" "', argument "
"1"" of type '" "GXmlElement const &""'"); goto fail; } while
(0)
;
8841 }
8842 if (!argp1) {
8843 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlElement" "', argument " "1"" of type '" "GXmlElement const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlElement" "', argument " "1"" of type '"
"GXmlElement const &""'"); goto fail; } while(0)
;
8844 }
8845 arg1 = reinterpret_cast< GXmlElement * >(argp1);
8846 {
8847 try {
8848 result = (GXmlElement *)new GXmlElement((GXmlElement const &)*arg1);
8849 }
8850 catch (const GException::out_of_range& e) {
8851 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8852 }
8853 catch (const GExceptionHandler& e) {
8854 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8855 }
8856 catch (const std::exception& e) {
8857 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8858 }
8859 }
8860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], ((
0x1 << 1) | 0x1) | 0)
;
8861 return resultobj;
8862fail:
8863 return NULL__null;
8864}
8865
8866
8867SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlElement__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8868 PyObject *resultobj = 0;
8869 std::string *arg1 = 0 ;
8870 int res1 = SWIG_OLDOBJ((0)) ;
8871 PyObject * obj0 = 0 ;
8872 GXmlElement *result = 0 ;
8873
8874 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlElement",&obj0)) SWIG_failgoto fail;
8875 {
8876 std::string *ptr = (std::string *)0;
8877 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
8878 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlElement" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlElement" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
8880 }
8881 if (!ptr) {
8882 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlElement" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlElement" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
8883 }
8884 arg1 = ptr;
8885 }
8886 {
8887 try {
8888 result = (GXmlElement *)new GXmlElement((std::string const &)*arg1);
8889 }
8890 catch (const GException::out_of_range& e) {
8891 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8892 }
8893 catch (const GExceptionHandler& e) {
8894 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8895 }
8896 catch (const std::exception& e) {
8897 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8898 }
8899 }
8900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], ((
0x1 << 1) | 0x1) | 0)
;
8901 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
8902 return resultobj;
8903fail:
8904 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
8905 return NULL__null;
8906}
8907
8908
8909SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlElement(PyObject *self, PyObject *args) {
8910 int argc;
8911 PyObject *argv[2];
8912 int ii;
8913
8914 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
8915 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
8916 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
8917 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
8918 }
8919 if (argc == 0) {
8920 return _wrap_new_GXmlElement__SWIG_0(self, args);
8921 }
8922 if (argc == 1) {
8923 int _v;
8924 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[7], 0, 0);
8925 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8926 if (_v) {
8927 return _wrap_new_GXmlElement__SWIG_1(self, args);
8928 }
8929 }
8930 if (argc == 1) {
8931 int _v;
8932 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
8933 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
8934 if (_v) {
8935 return _wrap_new_GXmlElement__SWIG_2(self, args);
8936 }
8937 }
8938
8939fail:
8940 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GXmlElement'.\n"
8941 " Possible C/C++ prototypes are:\n"
8942 " GXmlElement::GXmlElement()\n"
8943 " GXmlElement::GXmlElement(GXmlElement const &)\n"
8944 " GXmlElement::GXmlElement(std::string const &)\n");
8945 return 0;
8946}
8947
8948
8949SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXmlElement(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8950 PyObject *resultobj = 0;
8951 GXmlElement *arg1 = (GXmlElement *) 0 ;
8952 void *argp1 = 0 ;
8953 int res1 = 0 ;
8954 PyObject * obj0 = 0 ;
8955
8956 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXmlElement",&obj0)) SWIG_failgoto fail;
8957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0x1 | 0, 0)
;
8958 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXmlElement" "', argument " "1"" of type '" "GXmlElement *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXmlElement" "', argument "
"1"" of type '" "GXmlElement *""'"); goto fail; } while(0)
;
8960 }
8961 arg1 = reinterpret_cast< GXmlElement * >(argp1);
8962 {
8963 try {
8964 delete arg1;
8965 }
8966 catch (const GException::out_of_range& e) {
8967 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
8968 }
8969 catch (const GExceptionHandler& e) {
8970 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8971 }
8972 catch (const std::exception& e) {
8973 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
8974 }
8975 }
8976 resultobj = SWIG_Py_Void();
8977 return resultobj;
8978fail:
8979 return NULL__null;
8980}
8981
8982
8983SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8984 PyObject *resultobj = 0;
8985 GXmlElement *arg1 = (GXmlElement *) 0 ;
8986 void *argp1 = 0 ;
8987 int res1 = 0 ;
8988 PyObject * obj0 = 0 ;
8989
8990 if (!PyArg_ParseTuple(args,(char *)"O:GXmlElement_clear",&obj0)) SWIG_failgoto fail;
8991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
8992 if (!SWIG_IsOK(res1)(res1 >= 0)) {
8993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_clear" "', argument " "1"" of type '" "GXmlElement *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_clear" "', argument "
"1"" of type '" "GXmlElement *""'"); goto fail; } while(0)
;
8994 }
8995 arg1 = reinterpret_cast< GXmlElement * >(argp1);
8996 {
8997 try {
8998 (arg1)->clear();
8999 }
9000 catch (const GException::out_of_range& e) {
9001 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9002 }
9003 catch (const GExceptionHandler& e) {
9004 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9005 }
9006 catch (const std::exception& e) {
9007 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9008 }
9009 }
9010 resultobj = SWIG_Py_Void();
9011 return resultobj;
9012fail:
9013 return NULL__null;
9014}
9015
9016
9017SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9018 PyObject *resultobj = 0;
9019 GXmlElement *arg1 = (GXmlElement *) 0 ;
9020 void *argp1 = 0 ;
9021 int res1 = 0 ;
9022 PyObject * obj0 = 0 ;
9023 GXmlElement *result = 0 ;
9024
9025 if (!PyArg_ParseTuple(args,(char *)"O:GXmlElement_clone",&obj0)) SWIG_failgoto fail;
9026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9027 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_clone" "', argument " "1"" of type '" "GXmlElement const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_clone" "', argument "
"1"" of type '" "GXmlElement const *""'"); goto fail; } while
(0)
;
9029 }
9030 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9031 {
9032 try {
9033 result = (GXmlElement *)((GXmlElement const *)arg1)->clone();
9034 }
9035 catch (const GException::out_of_range& e) {
9036 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9037 }
9038 catch (const GExceptionHandler& e) {
9039 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9040 }
9041 catch (const std::exception& e) {
9042 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9043 }
9044 }
9045 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
9046 return resultobj;
9047fail:
9048 return NULL__null;
9049}
9050
9051
9052SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9053 PyObject *resultobj = 0;
9054 GXmlElement *arg1 = (GXmlElement *) 0 ;
9055 void *argp1 = 0 ;
9056 int res1 = 0 ;
9057 PyObject * obj0 = 0 ;
9058 std::string *result = 0 ;
9059
9060 if (!PyArg_ParseTuple(args,(char *)"O:GXmlElement_name",&obj0)) SWIG_failgoto fail;
9061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9062 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_name" "', argument " "1"" of type '" "GXmlElement const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_name" "', argument "
"1"" of type '" "GXmlElement const *""'"); goto fail; } while
(0)
;
9064 }
9065 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9066 {
9067 try {
9068 result = (std::string *) &((GXmlElement const *)arg1)->name();
9069 }
9070 catch (const GException::out_of_range& e) {
9071 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9072 }
9073 catch (const GExceptionHandler& e) {
9074 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9075 }
9076 catch (const std::exception& e) {
9077 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9078 }
9079 }
9080 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
9081 return resultobj;
9082fail:
9083 return NULL__null;
9084}
9085
9086
9087SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9088 PyObject *resultobj = 0;
9089 GXmlElement *arg1 = (GXmlElement *) 0 ;
9090 std::string *arg2 = 0 ;
9091 void *argp1 = 0 ;
9092 int res1 = 0 ;
9093 int res2 = SWIG_OLDOBJ((0)) ;
9094 PyObject * obj0 = 0 ;
9095 PyObject * obj1 = 0 ;
9096
9097 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlElement_name",&obj0,&obj1)) SWIG_failgoto fail;
9098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9099 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_name" "', argument " "1"" of type '" "GXmlElement *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_name" "', argument "
"1"" of type '" "GXmlElement *""'"); goto fail; } while(0)
;
9101 }
9102 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9103 {
9104 std::string *ptr = (std::string *)0;
9105 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
9106 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlElement_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlElement_name" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
9108 }
9109 if (!ptr) {
9110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlElement_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlElement_name" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
9111 }
9112 arg2 = ptr;
9113 }
9114 {
9115 try {
9116 (arg1)->name((std::string const &)*arg2);
9117 }
9118 catch (const GException::out_of_range& e) {
9119 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9120 }
9121 catch (const GExceptionHandler& e) {
9122 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9123 }
9124 catch (const std::exception& e) {
9125 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9126 }
9127 }
9128 resultobj = SWIG_Py_Void();
9129 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9130 return resultobj;
9131fail:
9132 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9133 return NULL__null;
9134}
9135
9136
9137SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_name(PyObject *self, PyObject *args) {
9138 int argc;
9139 PyObject *argv[3];
9140 int ii;
9141
9142 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9143 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9144 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9145 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9146 }
9147 if (argc == 1) {
9148 int _v;
9149 void *vptr = 0;
9150 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9151 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9152 if (_v) {
9153 return _wrap_GXmlElement_name__SWIG_0(self, args);
9154 }
9155 }
9156 if (argc == 2) {
9157 int _v;
9158 void *vptr = 0;
9159 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9160 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9161 if (_v) {
9162 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
9163 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9164 if (_v) {
9165 return _wrap_GXmlElement_name__SWIG_1(self, args);
9166 }
9167 }
9168 }
9169
9170fail:
9171 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlElement_name'.\n"
9172 " Possible C/C++ prototypes are:\n"
9173 " GXmlElement::name() const\n"
9174 " GXmlElement::name(std::string const &)\n");
9175 return 0;
9176}
9177
9178
9179SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_attribute__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9180 PyObject *resultobj = 0;
9181 GXmlElement *arg1 = (GXmlElement *) 0 ;
9182 std::string *arg2 = 0 ;
9183 void *argp1 = 0 ;
9184 int res1 = 0 ;
9185 int res2 = SWIG_OLDOBJ((0)) ;
9186 PyObject * obj0 = 0 ;
9187 PyObject * obj1 = 0 ;
9188 std::string result;
9189
9190 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlElement_attribute",&obj0,&obj1)) SWIG_failgoto fail;
9191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9192 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_attribute" "', argument " "1"" of type '" "GXmlElement const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_attribute" "', argument "
"1"" of type '" "GXmlElement const *""'"); goto fail; } while
(0)
;
9194 }
9195 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9196 {
9197 std::string *ptr = (std::string *)0;
9198 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
9199 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlElement_attribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlElement_attribute" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
9201 }
9202 if (!ptr) {
9203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlElement_attribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlElement_attribute" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
9204 }
9205 arg2 = ptr;
9206 }
9207 {
9208 try {
9209 result = ((GXmlElement const *)arg1)->attribute((std::string const &)*arg2);
9210 }
9211 catch (const GException::out_of_range& e) {
9212 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9213 }
9214 catch (const GExceptionHandler& e) {
9215 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9216 }
9217 catch (const std::exception& e) {
9218 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9219 }
9220 }
9221 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
9222 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9223 return resultobj;
9224fail:
9225 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9226 return NULL__null;
9227}
9228
9229
9230SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_attribute__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9231 PyObject *resultobj = 0;
9232 GXmlElement *arg1 = (GXmlElement *) 0 ;
9233 std::string *arg2 = 0 ;
9234 std::string *arg3 = 0 ;
9235 void *argp1 = 0 ;
9236 int res1 = 0 ;
9237 int res2 = SWIG_OLDOBJ((0)) ;
9238 int res3 = SWIG_OLDOBJ((0)) ;
9239 PyObject * obj0 = 0 ;
9240 PyObject * obj1 = 0 ;
9241 PyObject * obj2 = 0 ;
9242
9243 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlElement_attribute",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9245 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_attribute" "', argument " "1"" of type '" "GXmlElement *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_attribute" "', argument "
"1"" of type '" "GXmlElement *""'"); goto fail; } while(0)
;
9247 }
9248 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9249 {
9250 std::string *ptr = (std::string *)0;
9251 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
9252 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlElement_attribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlElement_attribute" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
9254 }
9255 if (!ptr) {
9256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlElement_attribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlElement_attribute" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
9257 }
9258 arg2 = ptr;
9259 }
9260 {
9261 std::string *ptr = (std::string *)0;
9262 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
9263 if (!SWIG_IsOK(res3)(res3 >= 0)) {
9264 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GXmlElement_attribute" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res3 != (
-1)) ? res3 : -5)), "in method '" "GXmlElement_attribute" "', argument "
"3"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
9265 }
9266 if (!ptr) {
9267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlElement_attribute" "', argument " "3"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlElement_attribute" "', argument " "3"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
9268 }
9269 arg3 = ptr;
9270 }
9271 {
9272 try {
9273 (arg1)->attribute((std::string const &)*arg2,(std::string const &)*arg3);
9274 }
9275 catch (const GException::out_of_range& e) {
9276 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9277 }
9278 catch (const GExceptionHandler& e) {
9279 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9280 }
9281 catch (const std::exception& e) {
9282 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9283 }
9284 }
9285 resultobj = SWIG_Py_Void();
9286 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9287 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
9288 return resultobj;
9289fail:
9290 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9291 if (SWIG_IsNewObj(res3)((res3 >= 0) && (res3 & ((1 << 8) <<
1)))
) delete arg3;
9292 return NULL__null;
9293}
9294
9295
9296SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_attribute(PyObject *self, PyObject *args) {
9297 int argc;
9298 PyObject *argv[4];
9299 int ii;
9300
9301 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9302 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9303 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
9304 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9305 }
9306 if (argc == 2) {
9307 int _v;
9308 void *vptr = 0;
9309 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9310 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9311 if (_v) {
9312 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
9313 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9314 if (_v) {
9315 return _wrap_GXmlElement_attribute__SWIG_0(self, args);
9316 }
9317 }
9318 }
9319 if (argc == 3) {
9320 int _v;
9321 void *vptr = 0;
9322 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9323 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9324 if (_v) {
9325 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
9326 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9327 if (_v) {
9328 int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
9329 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9330 if (_v) {
9331 return _wrap_GXmlElement_attribute__SWIG_1(self, args);
9332 }
9333 }
9334 }
9335 }
9336
9337fail:
9338 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlElement_attribute'.\n"
9339 " Possible C/C++ prototypes are:\n"
9340 " GXmlElement::attribute(std::string const &) const\n"
9341 " GXmlElement::attribute(std::string const &,std::string const &)\n");
9342 return 0;
9343}
9344
9345
9346SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_remove_attribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9347 PyObject *resultobj = 0;
9348 GXmlElement *arg1 = (GXmlElement *) 0 ;
9349 std::string *arg2 = 0 ;
9350 void *argp1 = 0 ;
9351 int res1 = 0 ;
9352 int res2 = SWIG_OLDOBJ((0)) ;
9353 PyObject * obj0 = 0 ;
9354 PyObject * obj1 = 0 ;
9355
9356 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlElement_remove_attribute",&obj0,&obj1)) SWIG_failgoto fail;
9357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9358 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_remove_attribute" "', argument " "1"" of type '" "GXmlElement *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_remove_attribute"
"', argument " "1"" of type '" "GXmlElement *""'"); goto fail
; } while(0)
;
9360 }
9361 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9362 {
9363 std::string *ptr = (std::string *)0;
9364 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
9365 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9366 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlElement_remove_attribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlElement_remove_attribute"
"', argument " "2"" of type '" "std::string const &""'")
; goto fail; } while(0)
;
9367 }
9368 if (!ptr) {
9369 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlElement_remove_attribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlElement_remove_attribute" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
9370 }
9371 arg2 = ptr;
9372 }
9373 {
9374 try {
9375 (arg1)->remove_attribute((std::string const &)*arg2);
9376 }
9377 catch (const GException::out_of_range& e) {
9378 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9379 }
9380 catch (const GExceptionHandler& e) {
9381 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9382 }
9383 catch (const std::exception& e) {
9384 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9385 }
9386 }
9387 resultobj = SWIG_Py_Void();
9388 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9389 return resultobj;
9390fail:
9391 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
9392 return NULL__null;
9393}
9394
9395
9396SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_parent__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9397 PyObject *resultobj = 0;
9398 GXmlElement *arg1 = (GXmlElement *) 0 ;
9399 void *argp1 = 0 ;
9400 int res1 = 0 ;
9401 PyObject * obj0 = 0 ;
9402 GXmlNode *result = 0 ;
9403
9404 if (!PyArg_ParseTuple(args,(char *)"O:GXmlElement_parent",&obj0)) SWIG_failgoto fail;
9405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9406 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_parent" "', argument " "1"" of type '" "GXmlElement const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_parent" "', argument "
"1"" of type '" "GXmlElement const *""'"); goto fail; } while
(0)
;
9408 }
9409 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9410 {
9411 try {
9412 result = (GXmlNode *)((GXmlElement const *)arg1)->parent();
9413 }
9414 catch (const GException::out_of_range& e) {
9415 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9416 }
9417 catch (const GExceptionHandler& e) {
9418 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9419 }
9420 catch (const std::exception& e) {
9421 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9422 }
9423 }
9424 {
9425 if (dynamic_cast<GXmlElement*>(result) != NULL__null) {
9426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[7], 0 |
0)
;
9427 }
9428 else if (dynamic_cast<GXmlComment*>(result) != NULL__null) {
9429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
9430 }
9431 else if (dynamic_cast<GXmlDocument*>(result) != NULL__null) {
9432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlDocument, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[6], 0 |
0)
;
9433 }
9434 else if (dynamic_cast<GXmlPI*>(result) != NULL__null) {
9435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
9436 }
9437 else if (dynamic_cast<GXmlText*>(result) != NULL__null) {
9438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlText, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[10], 0
| 0)
;
9439 }
9440 else {
9441 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[8], 0 |
0)
;
9442 }
9443 }
9444 return resultobj;
9445fail:
9446 return NULL__null;
9447}
9448
9449
9450SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_parent__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9451 PyObject *resultobj = 0;
9452 GXmlElement *arg1 = (GXmlElement *) 0 ;
9453 GXmlNode *arg2 = (GXmlNode *) 0 ;
9454 void *argp1 = 0 ;
9455 int res1 = 0 ;
9456 void *argp2 = 0 ;
9457 int res2 = 0 ;
9458 PyObject * obj0 = 0 ;
9459 PyObject * obj1 = 0 ;
9460
9461 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlElement_parent",&obj0,&obj1)) SWIG_failgoto fail;
9462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9463 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_parent" "', argument " "1"" of type '" "GXmlElement *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_parent" "', argument "
"1"" of type '" "GXmlElement *""'"); goto fail; } while(0)
;
9465 }
9466 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9467 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_GXmlNode, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[8],
0 | 0, 0)
;
9468 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlElement_parent" "', argument " "2"" of type '" "GXmlNode *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlElement_parent" "', argument "
"2"" of type '" "GXmlNode *""'"); goto fail; } while(0)
;
9470 }
9471 arg2 = reinterpret_cast< GXmlNode * >(argp2);
9472 {
9473 try {
9474 (arg1)->parent(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_Py_Void();
9487 return resultobj;
9488fail:
9489 return NULL__null;
9490}
9491
9492
9493SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_parent(PyObject *self, PyObject *args) {
9494 int argc;
9495 PyObject *argv[3];
9496 int ii;
9497
9498 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9499 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9500 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
9501 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9502 }
9503 if (argc == 1) {
9504 int _v;
9505 void *vptr = 0;
9506 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9507 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9508 if (_v) {
9509 return _wrap_GXmlElement_parent__SWIG_0(self, args);
9510 }
9511 }
9512 if (argc == 2) {
9513 int _v;
9514 void *vptr = 0;
9515 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9516 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9517 if (_v) {
9518 void *vptr = 0;
9519 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GXmlNode, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[8
], 0, 0)
;
9520 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9521 if (_v) {
9522 return _wrap_GXmlElement_parent__SWIG_1(self, args);
9523 }
9524 }
9525 }
9526
9527fail:
9528 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlElement_parent'.\n"
9529 " Possible C/C++ prototypes are:\n"
9530 " GXmlElement::parent() const\n"
9531 " GXmlElement::parent(GXmlNode *)\n");
9532 return 0;
9533}
9534
9535
9536SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9537 PyObject *resultobj = 0;
9538 GXmlElement *arg1 = (GXmlElement *) 0 ;
9539 GUrl *arg2 = 0 ;
9540 int *arg3 = 0 ;
9541 void *argp1 = 0 ;
9542 int res1 = 0 ;
9543 void *argp2 = 0 ;
9544 int res2 = 0 ;
9545 int temp3 ;
9546 int val3 ;
9547 int ecode3 = 0 ;
9548 PyObject * obj0 = 0 ;
9549 PyObject * obj1 = 0 ;
9550 PyObject * obj2 = 0 ;
9551
9552 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlElement_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
9553 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9554 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_write" "', argument " "1"" of type '" "GXmlElement const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_write" "', argument "
"1"" of type '" "GXmlElement const *""'"); goto fail; } while
(0)
;
9556 }
9557 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9558 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
9559 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9560 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlElement_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlElement_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
9561 }
9562 if (!argp2) {
9563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlElement_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlElement_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
9564 }
9565 arg2 = reinterpret_cast< GUrl * >(argp2);
9566 ecode3 = SWIG_AsVal_int(obj2, &val3);
9567 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
9568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXmlElement_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXmlElement_write" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
9569 }
9570 temp3 = static_cast< int >(val3);
9571 arg3 = &temp3;
9572 {
9573 try {
9574 ((GXmlElement const *)arg1)->write(*arg2,(int const &)*arg3);
9575 }
9576 catch (const GException::out_of_range& e) {
9577 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9578 }
9579 catch (const GExceptionHandler& e) {
9580 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9581 }
9582 catch (const std::exception& e) {
9583 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9584 }
9585 }
9586 resultobj = SWIG_Py_Void();
9587 return resultobj;
9588fail:
9589 return NULL__null;
9590}
9591
9592
9593SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9594 PyObject *resultobj = 0;
9595 GXmlElement *arg1 = (GXmlElement *) 0 ;
9596 GUrl *arg2 = 0 ;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 void *argp2 = 0 ;
9600 int res2 = 0 ;
9601 PyObject * obj0 = 0 ;
9602 PyObject * obj1 = 0 ;
9603
9604 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlElement_write",&obj0,&obj1)) SWIG_failgoto fail;
9605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9606 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_write" "', argument " "1"" of type '" "GXmlElement const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_write" "', argument "
"1"" of type '" "GXmlElement const *""'"); goto fail; } while
(0)
;
9608 }
9609 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
9611 if (!SWIG_IsOK(res2)(res2 >= 0)) {
9612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlElement_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlElement_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
9613 }
9614 if (!argp2) {
9615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlElement_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlElement_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
9616 }
9617 arg2 = reinterpret_cast< GUrl * >(argp2);
9618 {
9619 try {
9620 ((GXmlElement const *)arg1)->write(*arg2);
9621 }
9622 catch (const GException::out_of_range& e) {
9623 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9624 }
9625 catch (const GExceptionHandler& e) {
9626 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9627 }
9628 catch (const std::exception& e) {
9629 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9630 }
9631 }
9632 resultobj = SWIG_Py_Void();
9633 return resultobj;
9634fail:
9635 return NULL__null;
9636}
9637
9638
9639SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_write(PyObject *self, PyObject *args) {
9640 int argc;
9641 PyObject *argv[4];
9642 int ii;
9643
9644 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9645 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9646 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
9647 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9648 }
9649 if (argc == 2) {
9650 int _v;
9651 void *vptr = 0;
9652 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9653 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9654 if (_v) {
9655 void *vptr = 0;
9656 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
9657 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9658 if (_v) {
9659 return _wrap_GXmlElement_write__SWIG_1(self, args);
9660 }
9661 }
9662 }
9663 if (argc == 3) {
9664 int _v;
9665 void *vptr = 0;
9666 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlElement, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[7
], 0, 0)
;
9667 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9668 if (_v) {
9669 void *vptr = 0;
9670 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
9671 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9672 if (_v) {
9673 {
9674 int res = SWIG_AsVal_int(argv[2], NULL__null);
9675 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9676 }
9677 if (_v) {
9678 return _wrap_GXmlElement_write__SWIG_0(self, args);
9679 }
9680 }
9681 }
9682 }
9683
9684fail:
9685 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlElement_write'.\n"
9686 " Possible C/C++ prototypes are:\n"
9687 " GXmlElement::write(GUrl &,int const &) const\n"
9688 " GXmlElement::write(GUrl &) const\n");
9689 return 0;
9690}
9691
9692
9693SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9694 PyObject *resultobj = 0;
9695 GXmlElement *arg1 = (GXmlElement *) 0 ;
9696 void *argp1 = 0 ;
9697 int res1 = 0 ;
9698 PyObject * obj0 = 0 ;
9699 GXmlNode::NodeType result;
9700
9701 if (!PyArg_ParseTuple(args,(char *)"O:GXmlElement_type",&obj0)) SWIG_failgoto fail;
9702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9703 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_type" "', argument " "1"" of type '" "GXmlElement const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_type" "', argument "
"1"" of type '" "GXmlElement const *""'"); goto fail; } while
(0)
;
9705 }
9706 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9707 {
9708 try {
9709 result = (GXmlNode::NodeType)((GXmlElement const *)arg1)->type();
9710 }
9711 catch (const GException::out_of_range& e) {
9712 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9713 }
9714 catch (const GExceptionHandler& e) {
9715 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9716 }
9717 catch (const std::exception& e) {
9718 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9719 }
9720 }
9721 resultobj = SWIG_From_int(static_cast< int >(result));
9722 return resultobj;
9723fail:
9724 return NULL__null;
9725}
9726
9727
9728SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlElement_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9729 PyObject *resultobj = 0;
9730 GXmlElement *arg1 = (GXmlElement *) 0 ;
9731 void *argp1 = 0 ;
9732 int res1 = 0 ;
9733 PyObject * obj0 = 0 ;
9734 GXmlElement result;
9735
9736 if (!PyArg_ParseTuple(args,(char *)"O:GXmlElement_copy",&obj0)) SWIG_failgoto fail;
9737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlElement, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[7],
0 | 0, 0)
;
9738 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlElement_copy" "', argument " "1"" of type '" "GXmlElement *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlElement_copy" "', argument "
"1"" of type '" "GXmlElement *""'"); goto fail; } while(0)
;
9740 }
9741 arg1 = reinterpret_cast< GXmlElement * >(argp1);
9742 {
9743 try {
9744 result = GXmlElement_copy(arg1);
9745 }
9746 catch (const GException::out_of_range& e) {
9747 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9748 }
9749 catch (const GExceptionHandler& e) {
9750 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9751 }
9752 catch (const std::exception& e) {
9753 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9754 }
9755 }
9756 resultobj = SWIG_NewPointerObj((new GXmlElement(static_cast< const GXmlElement& >(result))), SWIGTYPE_p_GXmlElement, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GXmlElement(static_cast
< const GXmlElement& >(result))), swig_types[7], 0x1
| 0)
;
9757 return resultobj;
9758fail:
9759 return NULL__null;
9760}
9761
9762
9763SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXmlElement_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9764 PyObject *obj;
9765 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
9766 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlElementswig_types[7], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
9767 return SWIG_Py_Void();
9768}
9769
9770SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlComment__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9771 PyObject *resultobj = 0;
9772 GXmlComment *result = 0 ;
9773
9774 if (!PyArg_ParseTuple(args,(char *)":new_GXmlComment")) SWIG_failgoto fail;
9775 {
9776 try {
9777 result = (GXmlComment *)new GXmlComment();
9778 }
9779 catch (const GException::out_of_range& e) {
9780 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9781 }
9782 catch (const GExceptionHandler& e) {
9783 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9784 }
9785 catch (const std::exception& e) {
9786 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9787 }
9788 }
9789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
9790 return resultobj;
9791fail:
9792 return NULL__null;
9793}
9794
9795
9796SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlComment__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9797 PyObject *resultobj = 0;
9798 GXmlComment *arg1 = 0 ;
9799 void *argp1 = 0 ;
9800 int res1 = 0 ;
9801 PyObject * obj0 = 0 ;
9802 GXmlComment *result = 0 ;
9803
9804 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlComment",&obj0)) SWIG_failgoto fail;
9805 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlComment, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
9806 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlComment" "', argument " "1"" of type '" "GXmlComment const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlComment" "', argument "
"1"" of type '" "GXmlComment const &""'"); goto fail; } while
(0)
;
9808 }
9809 if (!argp1) {
9810 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlComment" "', argument " "1"" of type '" "GXmlComment const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlComment" "', argument " "1"" of type '"
"GXmlComment const &""'"); goto fail; } while(0)
;
9811 }
9812 arg1 = reinterpret_cast< GXmlComment * >(argp1);
9813 {
9814 try {
9815 result = (GXmlComment *)new GXmlComment((GXmlComment const &)*arg1);
9816 }
9817 catch (const GException::out_of_range& e) {
9818 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9819 }
9820 catch (const GExceptionHandler& e) {
9821 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9822 }
9823 catch (const std::exception& e) {
9824 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9825 }
9826 }
9827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
9828 return resultobj;
9829fail:
9830 return NULL__null;
9831}
9832
9833
9834SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlComment__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9835 PyObject *resultobj = 0;
9836 std::string *arg1 = 0 ;
9837 int res1 = SWIG_OLDOBJ((0)) ;
9838 PyObject * obj0 = 0 ;
9839 GXmlComment *result = 0 ;
9840
9841 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlComment",&obj0)) SWIG_failgoto fail;
9842 {
9843 std::string *ptr = (std::string *)0;
9844 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
9845 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlComment" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlComment" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
9847 }
9848 if (!ptr) {
9849 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlComment" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlComment" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
9850 }
9851 arg1 = ptr;
9852 }
9853 {
9854 try {
9855 result = (GXmlComment *)new GXmlComment((std::string const &)*arg1);
9856 }
9857 catch (const GException::out_of_range& e) {
9858 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9859 }
9860 catch (const GExceptionHandler& e) {
9861 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9862 }
9863 catch (const std::exception& e) {
9864 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9865 }
9866 }
9867 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], ((
0x1 << 1) | 0x1) | 0)
;
9868 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
9869 return resultobj;
9870fail:
9871 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
9872 return NULL__null;
9873}
9874
9875
9876SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlComment(PyObject *self, PyObject *args) {
9877 int argc;
9878 PyObject *argv[2];
9879 int ii;
9880
9881 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
9882 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
9883 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
9884 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
9885 }
9886 if (argc == 0) {
9887 return _wrap_new_GXmlComment__SWIG_0(self, args);
9888 }
9889 if (argc == 1) {
9890 int _v;
9891 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlComment, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[5], 0, 0);
9892 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9893 if (_v) {
9894 return _wrap_new_GXmlComment__SWIG_1(self, args);
9895 }
9896 }
9897 if (argc == 1) {
9898 int _v;
9899 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
9900 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
9901 if (_v) {
9902 return _wrap_new_GXmlComment__SWIG_2(self, args);
9903 }
9904 }
9905
9906fail:
9907 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GXmlComment'.\n"
9908 " Possible C/C++ prototypes are:\n"
9909 " GXmlComment::GXmlComment()\n"
9910 " GXmlComment::GXmlComment(GXmlComment const &)\n"
9911 " GXmlComment::GXmlComment(std::string const &)\n");
9912 return 0;
9913}
9914
9915
9916SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXmlComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9917 PyObject *resultobj = 0;
9918 GXmlComment *arg1 = (GXmlComment *) 0 ;
9919 void *argp1 = 0 ;
9920 int res1 = 0 ;
9921 PyObject * obj0 = 0 ;
9922
9923 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXmlComment",&obj0)) SWIG_failgoto fail;
9924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0x1 | 0, 0)
;
9925 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXmlComment" "', argument " "1"" of type '" "GXmlComment *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXmlComment" "', argument "
"1"" of type '" "GXmlComment *""'"); goto fail; } while(0)
;
9927 }
9928 arg1 = reinterpret_cast< GXmlComment * >(argp1);
9929 {
9930 try {
9931 delete arg1;
9932 }
9933 catch (const GException::out_of_range& e) {
9934 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9935 }
9936 catch (const GExceptionHandler& e) {
9937 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9938 }
9939 catch (const std::exception& e) {
9940 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9941 }
9942 }
9943 resultobj = SWIG_Py_Void();
9944 return resultobj;
9945fail:
9946 return NULL__null;
9947}
9948
9949
9950SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9951 PyObject *resultobj = 0;
9952 GXmlComment *arg1 = (GXmlComment *) 0 ;
9953 void *argp1 = 0 ;
9954 int res1 = 0 ;
9955 PyObject * obj0 = 0 ;
9956
9957 if (!PyArg_ParseTuple(args,(char *)"O:GXmlComment_clear",&obj0)) SWIG_failgoto fail;
9958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
9959 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_clear" "', argument " "1"" of type '" "GXmlComment *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_clear" "', argument "
"1"" of type '" "GXmlComment *""'"); goto fail; } while(0)
;
9961 }
9962 arg1 = reinterpret_cast< GXmlComment * >(argp1);
9963 {
9964 try {
9965 (arg1)->clear();
9966 }
9967 catch (const GException::out_of_range& e) {
9968 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
9969 }
9970 catch (const GExceptionHandler& e) {
9971 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9972 }
9973 catch (const std::exception& e) {
9974 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
9975 }
9976 }
9977 resultobj = SWIG_Py_Void();
9978 return resultobj;
9979fail:
9980 return NULL__null;
9981}
9982
9983
9984SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9985 PyObject *resultobj = 0;
9986 GXmlComment *arg1 = (GXmlComment *) 0 ;
9987 void *argp1 = 0 ;
9988 int res1 = 0 ;
9989 PyObject * obj0 = 0 ;
9990 GXmlComment *result = 0 ;
9991
9992 if (!PyArg_ParseTuple(args,(char *)"O:GXmlComment_clone",&obj0)) SWIG_failgoto fail;
9993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
9994 if (!SWIG_IsOK(res1)(res1 >= 0)) {
9995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_clone" "', argument " "1"" of type '" "GXmlComment const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_clone" "', argument "
"1"" of type '" "GXmlComment const *""'"); goto fail; } while
(0)
;
9996 }
9997 arg1 = reinterpret_cast< GXmlComment * >(argp1);
9998 {
9999 try {
10000 result = (GXmlComment *)((GXmlComment const *)arg1)->clone();
10001 }
10002 catch (const GException::out_of_range& e) {
10003 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10004 }
10005 catch (const GExceptionHandler& e) {
10006 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10007 }
10008 catch (const std::exception& e) {
10009 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10010 }
10011 }
10012 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[5], 0 |
0)
;
10013 return resultobj;
10014fail:
10015 return NULL__null;
10016}
10017
10018
10019SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10020 PyObject *resultobj = 0;
10021 GXmlComment *arg1 = (GXmlComment *) 0 ;
10022 GUrl *arg2 = 0 ;
10023 int *arg3 = 0 ;
10024 void *argp1 = 0 ;
10025 int res1 = 0 ;
10026 void *argp2 = 0 ;
10027 int res2 = 0 ;
10028 int temp3 ;
10029 int val3 ;
10030 int ecode3 = 0 ;
10031 PyObject * obj0 = 0 ;
10032 PyObject * obj1 = 0 ;
10033 PyObject * obj2 = 0 ;
10034
10035 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlComment_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
10036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
10037 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_write" "', argument " "1"" of type '" "GXmlComment const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_write" "', argument "
"1"" of type '" "GXmlComment const *""'"); goto fail; } while
(0)
;
10039 }
10040 arg1 = reinterpret_cast< GXmlComment * >(argp1);
10041 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
10042 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10043 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlComment_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlComment_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
10044 }
10045 if (!argp2) {
10046 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlComment_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlComment_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
10047 }
10048 arg2 = reinterpret_cast< GUrl * >(argp2);
10049 ecode3 = SWIG_AsVal_int(obj2, &val3);
10050 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
10051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXmlComment_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXmlComment_write" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
10052 }
10053 temp3 = static_cast< int >(val3);
10054 arg3 = &temp3;
10055 {
10056 try {
10057 ((GXmlComment const *)arg1)->write(*arg2,(int const &)*arg3);
10058 }
10059 catch (const GException::out_of_range& e) {
10060 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10061 }
10062 catch (const GExceptionHandler& e) {
10063 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10064 }
10065 catch (const std::exception& e) {
10066 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10067 }
10068 }
10069 resultobj = SWIG_Py_Void();
10070 return resultobj;
10071fail:
10072 return NULL__null;
10073}
10074
10075
10076SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10077 PyObject *resultobj = 0;
10078 GXmlComment *arg1 = (GXmlComment *) 0 ;
10079 GUrl *arg2 = 0 ;
10080 void *argp1 = 0 ;
10081 int res1 = 0 ;
10082 void *argp2 = 0 ;
10083 int res2 = 0 ;
10084 PyObject * obj0 = 0 ;
10085 PyObject * obj1 = 0 ;
10086
10087 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlComment_write",&obj0,&obj1)) SWIG_failgoto fail;
10088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
10089 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_write" "', argument " "1"" of type '" "GXmlComment const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_write" "', argument "
"1"" of type '" "GXmlComment const *""'"); goto fail; } while
(0)
;
10091 }
10092 arg1 = reinterpret_cast< GXmlComment * >(argp1);
10093 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
10094 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10095 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlComment_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlComment_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
10096 }
10097 if (!argp2) {
10098 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlComment_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlComment_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
10099 }
10100 arg2 = reinterpret_cast< GUrl * >(argp2);
10101 {
10102 try {
10103 ((GXmlComment const *)arg1)->write(*arg2);
10104 }
10105 catch (const GException::out_of_range& e) {
10106 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10107 }
10108 catch (const GExceptionHandler& e) {
10109 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10110 }
10111 catch (const std::exception& e) {
10112 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10113 }
10114 }
10115 resultobj = SWIG_Py_Void();
10116 return resultobj;
10117fail:
10118 return NULL__null;
10119}
10120
10121
10122SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_write(PyObject *self, PyObject *args) {
10123 int argc;
10124 PyObject *argv[4];
10125 int ii;
10126
10127 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10128 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10129 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
10130 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10131 }
10132 if (argc == 2) {
10133 int _v;
10134 void *vptr = 0;
10135 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlComment, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
10136 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10137 if (_v) {
10138 void *vptr = 0;
10139 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
10140 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10141 if (_v) {
10142 return _wrap_GXmlComment_write__SWIG_1(self, args);
10143 }
10144 }
10145 }
10146 if (argc == 3) {
10147 int _v;
10148 void *vptr = 0;
10149 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlComment, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
10150 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10151 if (_v) {
10152 void *vptr = 0;
10153 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
10154 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10155 if (_v) {
10156 {
10157 int res = SWIG_AsVal_int(argv[2], NULL__null);
10158 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10159 }
10160 if (_v) {
10161 return _wrap_GXmlComment_write__SWIG_0(self, args);
10162 }
10163 }
10164 }
10165 }
10166
10167fail:
10168 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlComment_write'.\n"
10169 " Possible C/C++ prototypes are:\n"
10170 " GXmlComment::write(GUrl &,int const &) const\n"
10171 " GXmlComment::write(GUrl &) const\n");
10172 return 0;
10173}
10174
10175
10176SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10177 PyObject *resultobj = 0;
10178 GXmlComment *arg1 = (GXmlComment *) 0 ;
10179 void *argp1 = 0 ;
10180 int res1 = 0 ;
10181 PyObject * obj0 = 0 ;
10182 GXmlNode::NodeType result;
10183
10184 if (!PyArg_ParseTuple(args,(char *)"O:GXmlComment_type",&obj0)) SWIG_failgoto fail;
10185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
10186 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_type" "', argument " "1"" of type '" "GXmlComment const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_type" "', argument "
"1"" of type '" "GXmlComment const *""'"); goto fail; } while
(0)
;
10188 }
10189 arg1 = reinterpret_cast< GXmlComment * >(argp1);
10190 {
10191 try {
10192 result = (GXmlNode::NodeType)((GXmlComment const *)arg1)->type();
10193 }
10194 catch (const GException::out_of_range& e) {
10195 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10196 }
10197 catch (const GExceptionHandler& e) {
10198 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10199 }
10200 catch (const std::exception& e) {
10201 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10202 }
10203 }
10204 resultobj = SWIG_From_int(static_cast< int >(result));
10205 return resultobj;
10206fail:
10207 return NULL__null;
10208}
10209
10210
10211SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_comment__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10212 PyObject *resultobj = 0;
10213 GXmlComment *arg1 = (GXmlComment *) 0 ;
10214 void *argp1 = 0 ;
10215 int res1 = 0 ;
10216 PyObject * obj0 = 0 ;
10217 std::string *result = 0 ;
10218
10219 if (!PyArg_ParseTuple(args,(char *)"O:GXmlComment_comment",&obj0)) SWIG_failgoto fail;
10220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
10221 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_comment" "', argument " "1"" of type '" "GXmlComment const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_comment" "', argument "
"1"" of type '" "GXmlComment const *""'"); goto fail; } while
(0)
;
10223 }
10224 arg1 = reinterpret_cast< GXmlComment * >(argp1);
10225 {
10226 try {
10227 result = (std::string *) &((GXmlComment const *)arg1)->comment();
10228 }
10229 catch (const GException::out_of_range& e) {
10230 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10231 }
10232 catch (const GExceptionHandler& e) {
10233 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10234 }
10235 catch (const std::exception& e) {
10236 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10237 }
10238 }
10239 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
10240 return resultobj;
10241fail:
10242 return NULL__null;
10243}
10244
10245
10246SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_comment__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10247 PyObject *resultobj = 0;
10248 GXmlComment *arg1 = (GXmlComment *) 0 ;
10249 std::string *arg2 = 0 ;
10250 void *argp1 = 0 ;
10251 int res1 = 0 ;
10252 int res2 = SWIG_OLDOBJ((0)) ;
10253 PyObject * obj0 = 0 ;
10254 PyObject * obj1 = 0 ;
10255
10256 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlComment_comment",&obj0,&obj1)) SWIG_failgoto fail;
10257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
10258 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_comment" "', argument " "1"" of type '" "GXmlComment *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_comment" "', argument "
"1"" of type '" "GXmlComment *""'"); goto fail; } while(0)
;
10260 }
10261 arg1 = reinterpret_cast< GXmlComment * >(argp1);
10262 {
10263 std::string *ptr = (std::string *)0;
10264 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
10265 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlComment_comment" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlComment_comment" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10267 }
10268 if (!ptr) {
10269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlComment_comment" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlComment_comment" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10270 }
10271 arg2 = ptr;
10272 }
10273 {
10274 try {
10275 (arg1)->comment((std::string const &)*arg2);
10276 }
10277 catch (const GException::out_of_range& e) {
10278 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10279 }
10280 catch (const GExceptionHandler& e) {
10281 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10282 }
10283 catch (const std::exception& e) {
10284 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10285 }
10286 }
10287 resultobj = SWIG_Py_Void();
10288 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10289 return resultobj;
10290fail:
10291 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10292 return NULL__null;
10293}
10294
10295
10296SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_comment(PyObject *self, PyObject *args) {
10297 int argc;
10298 PyObject *argv[3];
10299 int ii;
10300
10301 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10302 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10303 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10304 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10305 }
10306 if (argc == 1) {
10307 int _v;
10308 void *vptr = 0;
10309 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlComment, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
10310 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10311 if (_v) {
10312 return _wrap_GXmlComment_comment__SWIG_0(self, args);
10313 }
10314 }
10315 if (argc == 2) {
10316 int _v;
10317 void *vptr = 0;
10318 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlComment, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[5
], 0, 0)
;
10319 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10320 if (_v) {
10321 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
10322 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10323 if (_v) {
10324 return _wrap_GXmlComment_comment__SWIG_1(self, args);
10325 }
10326 }
10327 }
10328
10329fail:
10330 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlComment_comment'.\n"
10331 " Possible C/C++ prototypes are:\n"
10332 " GXmlComment::comment() const\n"
10333 " GXmlComment::comment(std::string const &)\n");
10334 return 0;
10335}
10336
10337
10338SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlComment_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10339 PyObject *resultobj = 0;
10340 GXmlComment *arg1 = (GXmlComment *) 0 ;
10341 void *argp1 = 0 ;
10342 int res1 = 0 ;
10343 PyObject * obj0 = 0 ;
10344 GXmlComment result;
10345
10346 if (!PyArg_ParseTuple(args,(char *)"O:GXmlComment_copy",&obj0)) SWIG_failgoto fail;
10347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlComment, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[5],
0 | 0, 0)
;
10348 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlComment_copy" "', argument " "1"" of type '" "GXmlComment *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlComment_copy" "', argument "
"1"" of type '" "GXmlComment *""'"); goto fail; } while(0)
;
10350 }
10351 arg1 = reinterpret_cast< GXmlComment * >(argp1);
10352 {
10353 try {
10354 result = GXmlComment_copy(arg1);
10355 }
10356 catch (const GException::out_of_range& e) {
10357 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10358 }
10359 catch (const GExceptionHandler& e) {
10360 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10361 }
10362 catch (const std::exception& e) {
10363 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10364 }
10365 }
10366 resultobj = SWIG_NewPointerObj((new GXmlComment(static_cast< const GXmlComment& >(result))), SWIGTYPE_p_GXmlComment, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GXmlComment(static_cast
< const GXmlComment& >(result))), swig_types[5], 0x1
| 0)
;
10367 return resultobj;
10368fail:
10369 return NULL__null;
10370}
10371
10372
10373SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXmlComment_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10374 PyObject *obj;
10375 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
10376 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlCommentswig_types[5], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
10377 return SWIG_Py_Void();
10378}
10379
10380SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlAttribute__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10381 PyObject *resultobj = 0;
10382 GXmlAttribute *result = 0 ;
10383
10384 if (!PyArg_ParseTuple(args,(char *)":new_GXmlAttribute")) SWIG_failgoto fail;
10385 {
10386 try {
10387 result = (GXmlAttribute *)new GXmlAttribute();
10388 }
10389 catch (const GException::out_of_range& e) {
10390 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10391 }
10392 catch (const GExceptionHandler& e) {
10393 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10394 }
10395 catch (const std::exception& e) {
10396 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10397 }
10398 }
10399 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlAttribute, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
10400 return resultobj;
10401fail:
10402 return NULL__null;
10403}
10404
10405
10406SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlAttribute__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10407 PyObject *resultobj = 0;
10408 GXmlAttribute *arg1 = 0 ;
10409 void *argp1 = 0 ;
10410 int res1 = 0 ;
10411 PyObject * obj0 = 0 ;
10412 GXmlAttribute *result = 0 ;
10413
10414 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlAttribute",&obj0)) SWIG_failgoto fail;
10415 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlAttribute, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10416 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlAttribute" "', argument " "1"" of type '" "GXmlAttribute const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlAttribute" "', argument "
"1"" of type '" "GXmlAttribute const &""'"); goto fail; }
while(0)
;
10418 }
10419 if (!argp1) {
10420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlAttribute" "', argument " "1"" of type '" "GXmlAttribute const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlAttribute" "', argument " "1"" of type '"
"GXmlAttribute const &""'"); goto fail; } while(0)
;
10421 }
10422 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10423 {
10424 try {
10425 result = (GXmlAttribute *)new GXmlAttribute((GXmlAttribute const &)*arg1);
10426 }
10427 catch (const GException::out_of_range& e) {
10428 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10429 }
10430 catch (const GExceptionHandler& e) {
10431 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10432 }
10433 catch (const std::exception& e) {
10434 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10435 }
10436 }
10437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlAttribute, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
10438 return resultobj;
10439fail:
10440 return NULL__null;
10441}
10442
10443
10444SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlAttribute__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10445 PyObject *resultobj = 0;
10446 std::string *arg1 = 0 ;
10447 std::string *arg2 = 0 ;
10448 int res1 = SWIG_OLDOBJ((0)) ;
10449 int res2 = SWIG_OLDOBJ((0)) ;
10450 PyObject * obj0 = 0 ;
10451 PyObject * obj1 = 0 ;
10452 GXmlAttribute *result = 0 ;
10453
10454 if (!PyArg_ParseTuple(args,(char *)"OO:new_GXmlAttribute",&obj0,&obj1)) SWIG_failgoto fail;
10455 {
10456 std::string *ptr = (std::string *)0;
10457 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
10458 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlAttribute" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlAttribute" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10460 }
10461 if (!ptr) {
10462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlAttribute" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlAttribute" "', argument " "1"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10463 }
10464 arg1 = ptr;
10465 }
10466 {
10467 std::string *ptr = (std::string *)0;
10468 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
10469 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10470 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_GXmlAttribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "new_GXmlAttribute" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10471 }
10472 if (!ptr) {
10473 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlAttribute" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlAttribute" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10474 }
10475 arg2 = ptr;
10476 }
10477 {
10478 try {
10479 result = (GXmlAttribute *)new GXmlAttribute((std::string const &)*arg1,(std::string const &)*arg2);
10480 }
10481 catch (const GException::out_of_range& e) {
10482 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10483 }
10484 catch (const GExceptionHandler& e) {
10485 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10486 }
10487 catch (const std::exception& e) {
10488 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10489 }
10490 }
10491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlAttribute, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], ((
0x1 << 1) | 0x1) | 0)
;
10492 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
10493 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10494 return resultobj;
10495fail:
10496 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
10497 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10498 return NULL__null;
10499}
10500
10501
10502SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlAttribute(PyObject *self, PyObject *args) {
10503 int argc;
10504 PyObject *argv[3];
10505 int ii;
10506
10507 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10508 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10509 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10510 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10511 }
10512 if (argc == 0) {
10513 return _wrap_new_GXmlAttribute__SWIG_0(self, args);
10514 }
10515 if (argc == 1) {
10516 int _v;
10517 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlAttribute, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[4], 0, 0);
10518 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10519 if (_v) {
10520 return _wrap_new_GXmlAttribute__SWIG_1(self, args);
10521 }
10522 }
10523 if (argc == 2) {
10524 int _v;
10525 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
10526 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10527 if (_v) {
10528 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
10529 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10530 if (_v) {
10531 return _wrap_new_GXmlAttribute__SWIG_2(self, args);
10532 }
10533 }
10534 }
10535
10536fail:
10537 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GXmlAttribute'.\n"
10538 " Possible C/C++ prototypes are:\n"
10539 " GXmlAttribute::GXmlAttribute()\n"
10540 " GXmlAttribute::GXmlAttribute(GXmlAttribute const &)\n"
10541 " GXmlAttribute::GXmlAttribute(std::string const &,std::string const &)\n");
10542 return 0;
10543}
10544
10545
10546SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXmlAttribute(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10547 PyObject *resultobj = 0;
10548 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10549 void *argp1 = 0 ;
10550 int res1 = 0 ;
10551 PyObject * obj0 = 0 ;
10552
10553 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXmlAttribute",&obj0)) SWIG_failgoto fail;
10554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0x1 | 0, 0)
;
10555 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXmlAttribute" "', argument " "1"" of type '" "GXmlAttribute *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXmlAttribute" "', argument "
"1"" of type '" "GXmlAttribute *""'"); goto fail; } while(0)
;
10557 }
10558 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10559 {
10560 try {
10561 delete arg1;
10562 }
10563 catch (const GException::out_of_range& e) {
10564 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10565 }
10566 catch (const GExceptionHandler& e) {
10567 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10568 }
10569 catch (const std::exception& e) {
10570 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10571 }
10572 }
10573 resultobj = SWIG_Py_Void();
10574 return resultobj;
10575fail:
10576 return NULL__null;
10577}
10578
10579
10580SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10581 PyObject *resultobj = 0;
10582 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10583 void *argp1 = 0 ;
10584 int res1 = 0 ;
10585 PyObject * obj0 = 0 ;
10586
10587 if (!PyArg_ParseTuple(args,(char *)"O:GXmlAttribute_clear",&obj0)) SWIG_failgoto fail;
10588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10589 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlAttribute_clear" "', argument " "1"" of type '" "GXmlAttribute *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlAttribute_clear" "', argument "
"1"" of type '" "GXmlAttribute *""'"); goto fail; } while(0)
;
10591 }
10592 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10593 {
10594 try {
10595 (arg1)->clear();
10596 }
10597 catch (const GException::out_of_range& e) {
10598 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10599 }
10600 catch (const GExceptionHandler& e) {
10601 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10602 }
10603 catch (const std::exception& e) {
10604 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10605 }
10606 }
10607 resultobj = SWIG_Py_Void();
10608 return resultobj;
10609fail:
10610 return NULL__null;
10611}
10612
10613
10614SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10615 PyObject *resultobj = 0;
10616 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10617 void *argp1 = 0 ;
10618 int res1 = 0 ;
10619 PyObject * obj0 = 0 ;
10620 GXmlAttribute *result = 0 ;
10621
10622 if (!PyArg_ParseTuple(args,(char *)"O:GXmlAttribute_clone",&obj0)) SWIG_failgoto fail;
10623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10624 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlAttribute_clone" "', argument " "1"" of type '" "GXmlAttribute const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlAttribute_clone" "', argument "
"1"" of type '" "GXmlAttribute const *""'"); goto fail; } while
(0)
;
10626 }
10627 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10628 {
10629 try {
10630 result = (GXmlAttribute *)((GXmlAttribute const *)arg1)->clone();
10631 }
10632 catch (const GException::out_of_range& e) {
10633 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10634 }
10635 catch (const GExceptionHandler& e) {
10636 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10637 }
10638 catch (const std::exception& e) {
10639 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10640 }
10641 }
10642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[4], 0 |
0)
;
10643 return resultobj;
10644fail:
10645 return NULL__null;
10646}
10647
10648
10649SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10650 PyObject *resultobj = 0;
10651 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10652 GUrl *arg2 = 0 ;
10653 void *argp1 = 0 ;
10654 int res1 = 0 ;
10655 void *argp2 = 0 ;
10656 int res2 = 0 ;
10657 PyObject * obj0 = 0 ;
10658 PyObject * obj1 = 0 ;
10659
10660 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlAttribute_write",&obj0,&obj1)) SWIG_failgoto fail;
10661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10662 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlAttribute_write" "', argument " "1"" of type '" "GXmlAttribute const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlAttribute_write" "', argument "
"1"" of type '" "GXmlAttribute const *""'"); goto fail; } while
(0)
;
10664 }
10665 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
10667 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlAttribute_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlAttribute_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
10669 }
10670 if (!argp2) {
10671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlAttribute_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlAttribute_write" "', argument " "2"" of type '"
"GUrl &""'"); goto fail; } while(0)
;
10672 }
10673 arg2 = reinterpret_cast< GUrl * >(argp2);
10674 {
10675 try {
10676 ((GXmlAttribute const *)arg1)->write(*arg2);
10677 }
10678 catch (const GException::out_of_range& e) {
10679 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10680 }
10681 catch (const GExceptionHandler& e) {
10682 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10683 }
10684 catch (const std::exception& e) {
10685 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10686 }
10687 }
10688 resultobj = SWIG_Py_Void();
10689 return resultobj;
10690fail:
10691 return NULL__null;
10692}
10693
10694
10695SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_name__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10696 PyObject *resultobj = 0;
10697 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10698 void *argp1 = 0 ;
10699 int res1 = 0 ;
10700 PyObject * obj0 = 0 ;
10701 std::string *result = 0 ;
10702
10703 if (!PyArg_ParseTuple(args,(char *)"O:GXmlAttribute_name",&obj0)) SWIG_failgoto fail;
10704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10705 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlAttribute_name" "', argument " "1"" of type '" "GXmlAttribute const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlAttribute_name" "', argument "
"1"" of type '" "GXmlAttribute const *""'"); goto fail; } while
(0)
;
10707 }
10708 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10709 {
10710 try {
10711 result = (std::string *) &((GXmlAttribute const *)arg1)->name();
10712 }
10713 catch (const GException::out_of_range& e) {
10714 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10715 }
10716 catch (const GExceptionHandler& e) {
10717 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10718 }
10719 catch (const std::exception& e) {
10720 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10721 }
10722 }
10723 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
10724 return resultobj;
10725fail:
10726 return NULL__null;
10727}
10728
10729
10730SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_value__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10731 PyObject *resultobj = 0;
10732 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10733 void *argp1 = 0 ;
10734 int res1 = 0 ;
10735 PyObject * obj0 = 0 ;
10736 std::string result;
10737
10738 if (!PyArg_ParseTuple(args,(char *)"O:GXmlAttribute_value",&obj0)) SWIG_failgoto fail;
10739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10740 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlAttribute_value" "', argument " "1"" of type '" "GXmlAttribute const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlAttribute_value" "', argument "
"1"" of type '" "GXmlAttribute const *""'"); goto fail; } while
(0)
;
10742 }
10743 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10744 {
10745 try {
10746 result = ((GXmlAttribute const *)arg1)->value();
10747 }
10748 catch (const GException::out_of_range& e) {
10749 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10750 }
10751 catch (const GExceptionHandler& e) {
10752 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10753 }
10754 catch (const std::exception& e) {
10755 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10756 }
10757 }
10758 resultobj = SWIG_From_std_string(static_cast< std::string >(result));
10759 return resultobj;
10760fail:
10761 return NULL__null;
10762}
10763
10764
10765SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_name__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10766 PyObject *resultobj = 0;
10767 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10768 std::string *arg2 = 0 ;
10769 void *argp1 = 0 ;
10770 int res1 = 0 ;
10771 int res2 = SWIG_OLDOBJ((0)) ;
10772 PyObject * obj0 = 0 ;
10773 PyObject * obj1 = 0 ;
10774
10775 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlAttribute_name",&obj0,&obj1)) SWIG_failgoto fail;
10776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10777 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlAttribute_name" "', argument " "1"" of type '" "GXmlAttribute *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlAttribute_name" "', argument "
"1"" of type '" "GXmlAttribute *""'"); goto fail; } while(0)
;
10779 }
10780 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10781 {
10782 std::string *ptr = (std::string *)0;
10783 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
10784 if (!SWIG_IsOK(res2)(res2 >= 0)) {
10785 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlAttribute_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlAttribute_name" "', argument "
"2"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
10786 }
10787 if (!ptr) {
10788 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlAttribute_name" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlAttribute_name" "', argument " "2"" of type '"
"std::string const &""'"); goto fail; } while(0)
;
10789 }
10790 arg2 = ptr;
10791 }
10792 {
10793 try {
10794 (arg1)->name((std::string const &)*arg2);
10795 }
10796 catch (const GException::out_of_range& e) {
10797 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10798 }
10799 catch (const GExceptionHandler& e) {
10800 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10801 }
10802 catch (const std::exception& e) {
10803 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10804 }
10805 }
10806 resultobj = SWIG_Py_Void();
10807 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10808 return resultobj;
10809fail:
10810 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
10811 return NULL__null;
10812}
10813
10814
10815SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_name(PyObject *self, PyObject *args) {
10816 int argc;
10817 PyObject *argv[3];
10818 int ii;
10819
10820 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10821 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10822 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10823 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10824 }
10825 if (argc == 1) {
10826 int _v;
10827 void *vptr = 0;
10828 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlAttribute, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
10829 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10830 if (_v) {
10831 return _wrap_GXmlAttribute_name__SWIG_0(self, args);
10832 }
10833 }
10834 if (argc == 2) {
10835 int _v;
10836 void *vptr = 0;
10837 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlAttribute, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
10838 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10839 if (_v) {
10840 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
10841 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10842 if (_v) {
10843 return _wrap_GXmlAttribute_name__SWIG_1(self, args);
10844 }
10845 }
10846 }
10847
10848fail:
10849 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlAttribute_name'.\n"
10850 " Possible C/C++ prototypes are:\n"
10851 " GXmlAttribute::name() const\n"
10852 " GXmlAttribute::name(std::string const &)\n");
10853 return 0;
10854}
10855
10856
10857SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_value__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10858 PyObject *resultobj = 0;
10859 GXmlAttribute *arg1 = (GXmlAttribute *) 0 ;
10860 std::string arg2 ;
10861 void *argp1 = 0 ;
10862 int res1 = 0 ;
10863 PyObject * obj0 = 0 ;
10864 PyObject * obj1 = 0 ;
10865
10866 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlAttribute_value",&obj0,&obj1)) SWIG_failgoto fail;
10867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlAttribute, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[4],
0 | 0, 0)
;
10868 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlAttribute_value" "', argument " "1"" of type '" "GXmlAttribute *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlAttribute_value" "', argument "
"1"" of type '" "GXmlAttribute *""'"); goto fail; } while(0)
;
10870 }
10871 arg1 = reinterpret_cast< GXmlAttribute * >(argp1);
10872 {
10873 std::string *ptr = (std::string *)0;
10874 int res = SWIG_AsPtr_std_string(obj1, &ptr);
10875 if (!SWIG_IsOK(res)(res >= 0) || !ptr) {
10876 SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "GXmlAttribute_value" "', argument " "2"" of type '" "std::string""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType((((ptr ? res
: -5) != (-1)) ? (ptr ? res : -5) : -5)), "in method '" "GXmlAttribute_value"
"', argument " "2"" of type '" "std::string""'"); goto fail;
} while(0)
;
10877 }
10878 arg2 = *ptr;
10879 if (SWIG_IsNewObj(res)((res >= 0) && (res & ((1 << 8) <<
1)))
) delete ptr;
10880 }
10881 {
10882 try {
10883 (arg1)->value(arg2);
10884 }
10885 catch (const GException::out_of_range& e) {
10886 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10887 }
10888 catch (const GExceptionHandler& e) {
10889 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10890 }
10891 catch (const std::exception& e) {
10892 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10893 }
10894 }
10895 resultobj = SWIG_Py_Void();
10896 return resultobj;
10897fail:
10898 return NULL__null;
10899}
10900
10901
10902SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlAttribute_value(PyObject *self, PyObject *args) {
10903 int argc;
10904 PyObject *argv[3];
10905 int ii;
10906
10907 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
10908 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
10909 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
10910 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
10911 }
10912 if (argc == 1) {
10913 int _v;
10914 void *vptr = 0;
10915 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlAttribute, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
10916 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10917 if (_v) {
10918 return _wrap_GXmlAttribute_value__SWIG_0(self, args);
10919 }
10920 }
10921 if (argc == 2) {
10922 int _v;
10923 void *vptr = 0;
10924 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlAttribute, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[4
], 0, 0)
;
10925 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10926 if (_v) {
10927 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
10928 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
10929 if (_v) {
10930 return _wrap_GXmlAttribute_value__SWIG_1(self, args);
10931 }
10932 }
10933 }
10934
10935fail:
10936 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlAttribute_value'.\n"
10937 " Possible C/C++ prototypes are:\n"
10938 " GXmlAttribute::value() const\n"
10939 " GXmlAttribute::value(std::string)\n");
10940 return 0;
10941}
10942
10943
10944SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXmlAttribute_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10945 PyObject *obj;
10946 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
10947 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlAttributeswig_types[4], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
10948 return SWIG_Py_Void();
10949}
10950
10951SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlPI__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10952 PyObject *resultobj = 0;
10953 GXmlPI *result = 0 ;
10954
10955 if (!PyArg_ParseTuple(args,(char *)":new_GXmlPI")) SWIG_failgoto fail;
10956 {
10957 try {
10958 result = (GXmlPI *)new GXmlPI();
10959 }
10960 catch (const GException::out_of_range& e) {
10961 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
10962 }
10963 catch (const GExceptionHandler& e) {
10964 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10965 }
10966 catch (const std::exception& e) {
10967 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
10968 }
10969 }
10970 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
10971 return resultobj;
10972fail:
10973 return NULL__null;
10974}
10975
10976
10977SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlPI__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10978 PyObject *resultobj = 0;
10979 GXmlPI *arg1 = 0 ;
10980 void *argp1 = 0 ;
10981 int res1 = 0 ;
10982 PyObject * obj0 = 0 ;
10983 GXmlPI *result = 0 ;
10984
10985 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlPI",&obj0)) SWIG_failgoto fail;
10986 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_GXmlPI, 0 | 0)SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
10987 if (!SWIG_IsOK(res1)(res1 >= 0)) {
10988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlPI" "', argument " "1"" of type '" "GXmlPI const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlPI" "', argument "
"1"" of type '" "GXmlPI const &""'"); goto fail; } while
(0)
;
10989 }
10990 if (!argp1) {
10991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlPI" "', argument " "1"" of type '" "GXmlPI const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlPI" "', argument " "1"" of type '" "GXmlPI const &"
"'"); goto fail; } while(0)
;
10992 }
10993 arg1 = reinterpret_cast< GXmlPI * >(argp1);
10994 {
10995 try {
10996 result = (GXmlPI *)new GXmlPI((GXmlPI const &)*arg1);
10997 }
10998 catch (const GException::out_of_range& e) {
10999 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11000 }
11001 catch (const GExceptionHandler& e) {
11002 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11003 }
11004 catch (const std::exception& e) {
11005 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11006 }
11007 }
11008 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
11009 return resultobj;
11010fail:
11011 return NULL__null;
11012}
11013
11014
11015SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlPI__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11016 PyObject *resultobj = 0;
11017 std::string *arg1 = 0 ;
11018 int res1 = SWIG_OLDOBJ((0)) ;
11019 PyObject * obj0 = 0 ;
11020 GXmlPI *result = 0 ;
11021
11022 if (!PyArg_ParseTuple(args,(char *)"O:new_GXmlPI",&obj0)) SWIG_failgoto fail;
11023 {
11024 std::string *ptr = (std::string *)0;
11025 res1 = SWIG_AsPtr_std_string(obj0, &ptr);
11026 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GXmlPI" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "new_GXmlPI" "', argument "
"1"" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11028 }
11029 if (!ptr) {
11030 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GXmlPI" "', argument " "1"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "new_GXmlPI" "', argument " "1"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
11031 }
11032 arg1 = ptr;
11033 }
11034 {
11035 try {
11036 result = (GXmlPI *)new GXmlPI((std::string const &)*arg1);
11037 }
11038 catch (const GException::out_of_range& e) {
11039 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11040 }
11041 catch (const GExceptionHandler& e) {
11042 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11043 }
11044 catch (const std::exception& e) {
11045 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11046 }
11047 }
11048 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, SWIG_POINTER_NEW | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], ((
0x1 << 1) | 0x1) | 0)
;
11049 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
11050 return resultobj;
11051fail:
11052 if (SWIG_IsNewObj(res1)((res1 >= 0) && (res1 & ((1 << 8) <<
1)))
) delete arg1;
11053 return NULL__null;
11054}
11055
11056
11057SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_new_GXmlPI(PyObject *self, PyObject *args) {
11058 int argc;
11059 PyObject *argv[2];
11060 int ii;
11061
11062 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11063 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11064 for (ii = 0; (ii < 1) && (ii < argc); ii++) {
11065 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11066 }
11067 if (argc == 0) {
11068 return _wrap_new_GXmlPI__SWIG_0(self, args);
11069 }
11070 if (argc == 1) {
11071 int _v;
11072 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_GXmlPI, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], 0, swig_types[9], 0, 0);
11073 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11074 if (_v) {
11075 return _wrap_new_GXmlPI__SWIG_1(self, args);
11076 }
11077 }
11078 if (argc == 1) {
11079 int _v;
11080 int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
11081 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11082 if (_v) {
11083 return _wrap_new_GXmlPI__SWIG_2(self, args);
11084 }
11085 }
11086
11087fail:
11088 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'new_GXmlPI'.\n"
11089 " Possible C/C++ prototypes are:\n"
11090 " GXmlPI::GXmlPI()\n"
11091 " GXmlPI::GXmlPI(GXmlPI const &)\n"
11092 " GXmlPI::GXmlPI(std::string const &)\n");
11093 return 0;
11094}
11095
11096
11097SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_delete_GXmlPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11098 PyObject *resultobj = 0;
11099 GXmlPI *arg1 = (GXmlPI *) 0 ;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 PyObject * obj0 = 0 ;
11103
11104 if (!PyArg_ParseTuple(args,(char *)"O:delete_GXmlPI",&obj0)) SWIG_failgoto fail;
11105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, SWIG_POINTER_DISOWN | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0x1 | 0, 0)
;
11106 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GXmlPI" "', argument " "1"" of type '" "GXmlPI *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "delete_GXmlPI" "', argument "
"1"" of type '" "GXmlPI *""'"); goto fail; } while(0)
;
11108 }
11109 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11110 {
11111 try {
11112 delete arg1;
11113 }
11114 catch (const GException::out_of_range& e) {
11115 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11116 }
11117 catch (const GExceptionHandler& e) {
11118 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11119 }
11120 catch (const std::exception& e) {
11121 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11122 }
11123 }
11124 resultobj = SWIG_Py_Void();
11125 return resultobj;
11126fail:
11127 return NULL__null;
11128}
11129
11130
11131SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11132 PyObject *resultobj = 0;
11133 GXmlPI *arg1 = (GXmlPI *) 0 ;
11134 void *argp1 = 0 ;
11135 int res1 = 0 ;
11136 PyObject * obj0 = 0 ;
11137
11138 if (!PyArg_ParseTuple(args,(char *)"O:GXmlPI_clear",&obj0)) SWIG_failgoto fail;
11139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11140 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_clear" "', argument " "1"" of type '" "GXmlPI *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_clear" "', argument "
"1"" of type '" "GXmlPI *""'"); goto fail; } while(0)
;
11142 }
11143 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11144 {
11145 try {
11146 (arg1)->clear();
11147 }
11148 catch (const GException::out_of_range& e) {
11149 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11150 }
11151 catch (const GExceptionHandler& e) {
11152 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11153 }
11154 catch (const std::exception& e) {
11155 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11156 }
11157 }
11158 resultobj = SWIG_Py_Void();
11159 return resultobj;
11160fail:
11161 return NULL__null;
11162}
11163
11164
11165SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11166 PyObject *resultobj = 0;
11167 GXmlPI *arg1 = (GXmlPI *) 0 ;
11168 void *argp1 = 0 ;
11169 int res1 = 0 ;
11170 PyObject * obj0 = 0 ;
11171 GXmlPI *result = 0 ;
11172
11173 if (!PyArg_ParseTuple(args,(char *)"O:GXmlPI_clone",&obj0)) SWIG_failgoto fail;
11174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11175 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_clone" "', argument " "1"" of type '" "GXmlPI const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_clone" "', argument "
"1"" of type '" "GXmlPI const *""'"); goto fail; } while(0)
;
11177 }
11178 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11179 {
11180 try {
11181 result = (GXmlPI *)((GXmlPI const *)arg1)->clone();
11182 }
11183 catch (const GException::out_of_range& e) {
11184 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11185 }
11186 catch (const GExceptionHandler& e) {
11187 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11188 }
11189 catch (const std::exception& e) {
11190 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11191 }
11192 }
11193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_NewPointerObj(__null, const_cast< void * >(
static_cast< const void * >(result)), swig_types[9], 0 |
0)
;
11194 return resultobj;
11195fail:
11196 return NULL__null;
11197}
11198
11199
11200SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_write__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11201 PyObject *resultobj = 0;
11202 GXmlPI *arg1 = (GXmlPI *) 0 ;
11203 GUrl *arg2 = 0 ;
11204 int *arg3 = 0 ;
11205 void *argp1 = 0 ;
11206 int res1 = 0 ;
11207 void *argp2 = 0 ;
11208 int res2 = 0 ;
11209 int temp3 ;
11210 int val3 ;
11211 int ecode3 = 0 ;
11212 PyObject * obj0 = 0 ;
11213 PyObject * obj1 = 0 ;
11214 PyObject * obj2 = 0 ;
11215
11216 if (!PyArg_ParseTuple(args,(char *)"OOO:GXmlPI_write",&obj0,&obj1,&obj2)) SWIG_failgoto fail;
11217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11218 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_write" "', argument " "1"" of type '" "GXmlPI const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_write" "', argument "
"1"" of type '" "GXmlPI const *""'"); goto fail; } while(0)
;
11220 }
11221 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
11223 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlPI_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlPI_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
11225 }
11226 if (!argp2) {
11227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlPI_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlPI_write" "', argument " "2"" of type '" "GUrl &"
"'"); goto fail; } while(0)
;
11228 }
11229 arg2 = reinterpret_cast< GUrl * >(argp2);
11230 ecode3 = SWIG_AsVal_int(obj2, &val3);
11231 if (!SWIG_IsOK(ecode3)(ecode3 >= 0)) {
11232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GXmlPI_write" "', argument " "3"" of type '" "int""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((ecode3 !=
(-1)) ? ecode3 : -5)), "in method '" "GXmlPI_write" "', argument "
"3"" of type '" "int""'"); goto fail; } while(0)
;
11233 }
11234 temp3 = static_cast< int >(val3);
11235 arg3 = &temp3;
11236 {
11237 try {
11238 ((GXmlPI const *)arg1)->write(*arg2,(int const &)*arg3);
11239 }
11240 catch (const GException::out_of_range& e) {
11241 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11242 }
11243 catch (const GExceptionHandler& e) {
11244 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11245 }
11246 catch (const std::exception& e) {
11247 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11248 }
11249 }
11250 resultobj = SWIG_Py_Void();
11251 return resultobj;
11252fail:
11253 return NULL__null;
11254}
11255
11256
11257SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_write__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11258 PyObject *resultobj = 0;
11259 GXmlPI *arg1 = (GXmlPI *) 0 ;
11260 GUrl *arg2 = 0 ;
11261 void *argp1 = 0 ;
11262 int res1 = 0 ;
11263 void *argp2 = 0 ;
11264 int res2 = 0 ;
11265 PyObject * obj0 = 0 ;
11266 PyObject * obj1 = 0 ;
11267
11268 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlPI_write",&obj0,&obj1)) SWIG_failgoto fail;
11269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11270 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_write" "', argument " "1"" of type '" "GXmlPI const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_write" "', argument "
"1"" of type '" "GXmlPI const *""'"); goto fail; } while(0)
;
11272 }
11273 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11274 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_GUrl, 0 )SWIG_Python_ConvertPtrAndOwn(obj1, &argp2, swig_types[2],
0, 0)
;
11275 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11276 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlPI_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlPI_write" "', argument "
"2"" of type '" "GUrl &""'"); goto fail; } while(0)
;
11277 }
11278 if (!argp2) {
11279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlPI_write" "', argument " "2"" of type '" "GUrl &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlPI_write" "', argument " "2"" of type '" "GUrl &"
"'"); goto fail; } while(0)
;
11280 }
11281 arg2 = reinterpret_cast< GUrl * >(argp2);
11282 {
11283 try {
11284 ((GXmlPI const *)arg1)->write(*arg2);
11285 }
11286 catch (const GException::out_of_range& e) {
11287 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11288 }
11289 catch (const GExceptionHandler& e) {
11290 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11291 }
11292 catch (const std::exception& e) {
11293 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11294 }
11295 }
11296 resultobj = SWIG_Py_Void();
11297 return resultobj;
11298fail:
11299 return NULL__null;
11300}
11301
11302
11303SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_write(PyObject *self, PyObject *args) {
11304 int argc;
11305 PyObject *argv[4];
11306 int ii;
11307
11308 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11309 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11310 for (ii = 0; (ii < 3) && (ii < argc); ii++) {
11311 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11312 }
11313 if (argc == 2) {
11314 int _v;
11315 void *vptr = 0;
11316 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlPI, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
11317 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11318 if (_v) {
11319 void *vptr = 0;
11320 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
11321 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11322 if (_v) {
11323 return _wrap_GXmlPI_write__SWIG_1(self, args);
11324 }
11325 }
11326 }
11327 if (argc == 3) {
11328 int _v;
11329 void *vptr = 0;
11330 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlPI, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
11331 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11332 if (_v) {
11333 void *vptr = 0;
11334 int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_GUrl, 0)SWIG_Python_ConvertPtrAndOwn(argv[1], &vptr, swig_types[2
], 0, 0)
;
11335 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11336 if (_v) {
11337 {
11338 int res = SWIG_AsVal_int(argv[2], NULL__null);
11339 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11340 }
11341 if (_v) {
11342 return _wrap_GXmlPI_write__SWIG_0(self, args);
11343 }
11344 }
11345 }
11346 }
11347
11348fail:
11349 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlPI_write'.\n"
11350 " Possible C/C++ prototypes are:\n"
11351 " GXmlPI::write(GUrl &,int const &) const\n"
11352 " GXmlPI::write(GUrl &) const\n");
11353 return 0;
11354}
11355
11356
11357SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11358 PyObject *resultobj = 0;
11359 GXmlPI *arg1 = (GXmlPI *) 0 ;
11360 void *argp1 = 0 ;
11361 int res1 = 0 ;
11362 PyObject * obj0 = 0 ;
11363 GXmlNode::NodeType result;
11364
11365 if (!PyArg_ParseTuple(args,(char *)"O:GXmlPI_type",&obj0)) SWIG_failgoto fail;
11366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11367 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_type" "', argument " "1"" of type '" "GXmlPI const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_type" "', argument "
"1"" of type '" "GXmlPI const *""'"); goto fail; } while(0)
;
11369 }
11370 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11371 {
11372 try {
11373 result = (GXmlNode::NodeType)((GXmlPI const *)arg1)->type();
11374 }
11375 catch (const GException::out_of_range& e) {
11376 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11377 }
11378 catch (const GExceptionHandler& e) {
11379 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11380 }
11381 catch (const std::exception& e) {
11382 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11383 }
11384 }
11385 resultobj = SWIG_From_int(static_cast< int >(result));
11386 return resultobj;
11387fail:
11388 return NULL__null;
11389}
11390
11391
11392SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_pi__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11393 PyObject *resultobj = 0;
11394 GXmlPI *arg1 = (GXmlPI *) 0 ;
11395 void *argp1 = 0 ;
11396 int res1 = 0 ;
11397 PyObject * obj0 = 0 ;
11398 std::string *result = 0 ;
11399
11400 if (!PyArg_ParseTuple(args,(char *)"O:GXmlPI_pi",&obj0)) SWIG_failgoto fail;
11401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11402 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_pi" "', argument " "1"" of type '" "GXmlPI const *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_pi" "', argument " "1"
" of type '" "GXmlPI const *""'"); goto fail; } while(0)
;
11404 }
11405 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11406 {
11407 try {
11408 result = (std::string *) &((GXmlPI const *)arg1)->pi();
11409 }
11410 catch (const GException::out_of_range& e) {
11411 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11412 }
11413 catch (const GExceptionHandler& e) {
11414 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11415 }
11416 catch (const std::exception& e) {
11417 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11418 }
11419 }
11420 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
11421 return resultobj;
11422fail:
11423 return NULL__null;
11424}
11425
11426
11427SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_pi__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11428 PyObject *resultobj = 0;
11429 GXmlPI *arg1 = (GXmlPI *) 0 ;
11430 std::string *arg2 = 0 ;
11431 void *argp1 = 0 ;
11432 int res1 = 0 ;
11433 int res2 = SWIG_OLDOBJ((0)) ;
11434 PyObject * obj0 = 0 ;
11435 PyObject * obj1 = 0 ;
11436
11437 if (!PyArg_ParseTuple(args,(char *)"OO:GXmlPI_pi",&obj0,&obj1)) SWIG_failgoto fail;
11438 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11439 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_pi" "', argument " "1"" of type '" "GXmlPI *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_pi" "', argument " "1"
" of type '" "GXmlPI *""'"); goto fail; } while(0)
;
11441 }
11442 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11443 {
11444 std::string *ptr = (std::string *)0;
11445 res2 = SWIG_AsPtr_std_string(obj1, &ptr);
11446 if (!SWIG_IsOK(res2)(res2 >= 0)) {
11447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GXmlPI_pi" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res2 != (
-1)) ? res2 : -5)), "in method '" "GXmlPI_pi" "', argument " "2"
" of type '" "std::string const &""'"); goto fail; } while
(0)
;
11448 }
11449 if (!ptr) {
11450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GXmlPI_pi" "', argument " "2"" of type '" "std::string const &""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-9), "invalid null reference "
"in method '" "GXmlPI_pi" "', argument " "2"" of type '" "std::string const &"
"'"); goto fail; } while(0)
;
11451 }
11452 arg2 = ptr;
11453 }
11454 {
11455 try {
11456 (arg1)->pi((std::string const &)*arg2);
11457 }
11458 catch (const GException::out_of_range& e) {
11459 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11460 }
11461 catch (const GExceptionHandler& e) {
11462 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11463 }
11464 catch (const std::exception& e) {
11465 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11466 }
11467 }
11468 resultobj = SWIG_Py_Void();
11469 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
11470 return resultobj;
11471fail:
11472 if (SWIG_IsNewObj(res2)((res2 >= 0) && (res2 & ((1 << 8) <<
1)))
) delete arg2;
11473 return NULL__null;
11474}
11475
11476
11477SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_pi(PyObject *self, PyObject *args) {
11478 int argc;
11479 PyObject *argv[3];
11480 int ii;
11481
11482 if (!PyTuple_Check(args)((((((PyObject*)(args))->ob_type))->tp_flags & ((1L
<<26))) != 0)
) SWIG_failgoto fail;
11483 argc = args ? (int)PyObject_LengthPyObject_Size(args) : 0;
11484 for (ii = 0; (ii < 2) && (ii < argc); ii++) {
11485 argv[ii] = PyTuple_GET_ITEM(args,ii)(((PyTupleObject *)(args))->ob_item[ii]);
11486 }
11487 if (argc == 1) {
11488 int _v;
11489 void *vptr = 0;
11490 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlPI, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
11491 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11492 if (_v) {
11493 return _wrap_GXmlPI_pi__SWIG_0(self, args);
11494 }
11495 }
11496 if (argc == 2) {
11497 int _v;
11498 void *vptr = 0;
11499 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_GXmlPI, 0)SWIG_Python_ConvertPtrAndOwn(argv[0], &vptr, swig_types[9
], 0, 0)
;
11500 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11501 if (_v) {
11502 int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
11503 _v = SWIG_CheckState(res)((res >= 0) ? 1 : 0);
11504 if (_v) {
11505 return _wrap_GXmlPI_pi__SWIG_1(self, args);
11506 }
11507 }
11508 }
11509
11510fail:
11511 SWIG_SetErrorMsgSWIG_Python_SetErrorMsg(PyExc_NotImplementedError,"Wrong number or type of arguments for overloaded function 'GXmlPI_pi'.\n"
11512 " Possible C/C++ prototypes are:\n"
11513 " GXmlPI::pi() const\n"
11514 " GXmlPI::pi(std::string const &)\n");
11515 return 0;
11516}
11517
11518
11519SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *_wrap_GXmlPI_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11520 PyObject *resultobj = 0;
11521 GXmlPI *arg1 = (GXmlPI *) 0 ;
11522 void *argp1 = 0 ;
11523 int res1 = 0 ;
11524 PyObject * obj0 = 0 ;
11525 GXmlPI result;
11526
11527 if (!PyArg_ParseTuple(args,(char *)"O:GXmlPI_copy",&obj0)) SWIG_failgoto fail;
11528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_GXmlPI, 0 | 0 )SWIG_Python_ConvertPtrAndOwn(obj0, &argp1, swig_types[9],
0 | 0, 0)
;
11529 if (!SWIG_IsOK(res1)(res1 >= 0)) {
11530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GXmlPI_copy" "', argument " "1"" of type '" "GXmlPI *""'")do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(((res1 != (
-1)) ? res1 : -5)), "in method '" "GXmlPI_copy" "', argument "
"1"" of type '" "GXmlPI *""'"); goto fail; } while(0)
;
11531 }
11532 arg1 = reinterpret_cast< GXmlPI * >(argp1);
11533 {
11534 try {
11535 result = GXmlPI_copy(arg1);
11536 }
11537 catch (const GException::out_of_range& e) {
11538 SWIG_exception(SWIG_IndexError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-4), e.what
()); goto fail;; } while(0)
;
11539 }
11540 catch (const GExceptionHandler& e) {
11541 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11542 }
11543 catch (const std::exception& e) {
11544 SWIG_exception(SWIG_RuntimeError, e.what())do { SWIG_Python_SetErrorMsg(SWIG_Python_ErrorType(-3), e.what
()); goto fail;; } while(0)
;
11545 }
11546 }
11547 resultobj = SWIG_NewPointerObj((new GXmlPI(static_cast< const GXmlPI& >(result))), SWIGTYPE_p_GXmlPI, SWIG_POINTER_OWN | 0 )SWIG_Python_NewPointerObj(__null, (new GXmlPI(static_cast<
const GXmlPI& >(result))), swig_types[9], 0x1 | 0)
;
11548 return resultobj;
11549fail:
11550 return NULL__null;
11551}
11552
11553
11554SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *GXmlPI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11555 PyObject *obj;
11556 if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL__null;
11557 SWIG_TypeNewClientData(SWIGTYPE_p_GXmlPIswig_types[9], SWIG_NewClientData(obj)SwigPyClientData_New(obj));
11558 return SWIG_Py_Void();
11559}
11560
11561static PyMethodDef SwigMethods[] = {
11562 { (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O0x0008, NULL__null},
11563 { (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS0x0001, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
11564 { (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS0x0001, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject *"},
11565 { (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS0x0001, (char *)"\n"
11566 "incr(size_t n=1) -> SwigPyIterator\n"
11567 "SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
11568 ""},
11569 { (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS0x0001, (char *)"\n"
11570 "decr(size_t n=1) -> SwigPyIterator\n"
11571 "SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
11572 ""},
11573 { (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS0x0001, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
11574 { (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS0x0001, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
11575 { (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS0x0001, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
11576 { (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS0x0001, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject *"},
11577 { (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS0x0001, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject *"},
11578 { (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS0x0001, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject *"},
11579 { (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS0x0001, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
11580 { (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS0x0001, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
11581 { (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS0x0001, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
11582 { (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS0x0001, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
11583 { (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS0x0001, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
11584 { (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS0x0001, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
11585 { (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS0x0001, (char *)"\n"
11586 "__sub__(ptrdiff_t n) -> SwigPyIterator\n"
11587 "SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
11588 ""},
11589 { (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS0x0001, NULL__null},
11590 { (char *)"new_GXml", _wrap_new_GXml, METH_VARARGS0x0001, (char *)"\n"
11591 "GXml()\n"
11592 "GXml(GXml xml)\n"
11593 "new_GXml(std::string const & filename) -> GXml\n"
11594 ""},
11595 { (char *)"delete_GXml", _wrap_delete_GXml, METH_VARARGS0x0001, (char *)"delete_GXml(GXml self)"},
11596 { (char *)"GXml_clear", _wrap_GXml_clear, METH_VARARGS0x0001, (char *)"GXml_clear(GXml self)"},
11597 { (char *)"GXml_clone", _wrap_GXml_clone, METH_VARARGS0x0001, (char *)"GXml_clone(GXml self) -> GXml"},
11598 { (char *)"GXml_size", _wrap_GXml_size, METH_VARARGS0x0001, (char *)"GXml_size(GXml self) -> int"},
11599 { (char *)"GXml_isempty", _wrap_GXml_isempty, METH_VARARGS0x0001, (char *)"GXml_isempty(GXml self) -> bool"},
11600 { (char *)"GXml_set", _wrap_GXml_set, METH_VARARGS0x0001, (char *)"GXml_set(GXml self, int const & index, GXmlNode node) -> GXmlNode"},
11601 { (char *)"GXml_append", _wrap_GXml_append, METH_VARARGS0x0001, (char *)"\n"
11602 "append(GXmlNode node) -> GXmlNode\n"
11603 "GXml_append(GXml self, std::string const & segment) -> GXmlElement\n"
11604 ""},
11605 { (char *)"GXml_insert", _wrap_GXml_insert, METH_VARARGS0x0001, (char *)"GXml_insert(GXml self, int const & index, GXmlNode node) -> GXmlNode"},
11606 { (char *)"GXml_remove", _wrap_GXml_remove, METH_VARARGS0x0001, (char *)"GXml_remove(GXml self, int const & index)"},
11607 { (char *)"GXml_reserve", _wrap_GXml_reserve, METH_VARARGS0x0001, (char *)"GXml_reserve(GXml self, int const & num)"},
11608 { (char *)"GXml_extend", _wrap_GXml_extend, METH_VARARGS0x0001, (char *)"GXml_extend(GXml self, GXmlNode node)"},
11609 { (char *)"GXml_elements", _wrap_GXml_elements, METH_VARARGS0x0001, (char *)"\n"
11610 "elements() -> int\n"
11611 "GXml_elements(GXml self, std::string const & name) -> int\n"
11612 ""},
11613 { (char *)"GXml_element", _wrap_GXml_element, METH_VARARGS0x0001, (char *)"\n"
11614 "element(int const & index) -> GXmlElement\n"
11615 "GXml_element(GXml self, std::string const & name, int const & index) -> GXmlElement\n"
11616 ""},
11617 { (char *)"GXml_load", _wrap_GXml_load, METH_VARARGS0x0001, (char *)"GXml_load(GXml self, std::string const & filename)"},
11618 { (char *)"GXml_save", _wrap_GXml_save, METH_VARARGS0x0001, (char *)"GXml_save(GXml self, std::string const & filename)"},
11619 { (char *)"GXml_read", _wrap_GXml_read, METH_VARARGS0x0001, (char *)"GXml_read(GXml self, GUrl const & url)"},
11620 { (char *)"GXml_write", _wrap_GXml_write, METH_VARARGS0x0001, (char *)"\n"
11621 "write(GUrl & url, int const & indent=0)\n"
11622 "GXml_write(GXml self, GUrl & url)\n"
11623 ""},
11624 { (char *)"GXml___getitem__", _wrap_GXml___getitem__, METH_VARARGS0x0001, (char *)"GXml___getitem__(GXml self, int const & index) -> GXmlNode"},
11625 { (char *)"GXml___setitem__", _wrap_GXml___setitem__, METH_VARARGS0x0001, (char *)"GXml___setitem__(GXml self, int const & index, GXmlNode node)"},
11626 { (char *)"GXml___len__", _wrap_GXml___len__, METH_VARARGS0x0001, (char *)"GXml___len__(GXml self) -> int"},
11627 { (char *)"GXml_copy", _wrap_GXml_copy, METH_VARARGS0x0001, (char *)"GXml_copy(GXml self) -> GXml"},
11628 { (char *)"GXml_swigregister", GXml_swigregister, METH_VARARGS0x0001, NULL__null},
11629 { (char *)"delete_GXmlNode", _wrap_delete_GXmlNode, METH_VARARGS0x0001, (char *)"delete_GXmlNode(GXmlNode self)"},
11630 { (char *)"GXmlNode_clear", _wrap_GXmlNode_clear, METH_VARARGS0x0001, (char *)"GXmlNode_clear(GXmlNode self)"},
11631 { (char *)"GXmlNode_clone", _wrap_GXmlNode_clone, METH_VARARGS0x0001, (char *)"GXmlNode_clone(GXmlNode self) -> GXmlNode"},
11632 { (char *)"GXmlNode_size", _wrap_GXmlNode_size, METH_VARARGS0x0001, (char *)"GXmlNode_size(GXmlNode self) -> int"},
11633 { (char *)"GXmlNode_isempty", _wrap_GXmlNode_isempty, METH_VARARGS0x0001, (char *)"GXmlNode_isempty(GXmlNode self) -> bool"},
11634 { (char *)"GXmlNode_set", _wrap_GXmlNode_set, METH_VARARGS0x0001, (char *)"GXmlNode_set(GXmlNode self, int const & index, GXmlNode node) -> GXmlNode"},
11635 { (char *)"GXmlNode_append", _wrap_GXmlNode_append, METH_VARARGS0x0001, (char *)"\n"
11636 "append(GXmlNode node) -> GXmlNode\n"
11637 "GXmlNode_append(GXmlNode self, std::string const & segment) -> GXmlElement\n"
11638 ""},
11639 { (char *)"GXmlNode_insert", _wrap_GXmlNode_insert, METH_VARARGS0x0001, (char *)"GXmlNode_insert(GXmlNode self, int const & index, GXmlNode node) -> GXmlNode"},
11640 { (char *)"GXmlNode_remove", _wrap_GXmlNode_remove, METH_VARARGS0x0001, (char *)"GXmlNode_remove(GXmlNode self, int const & index)"},
11641 { (char *)"GXmlNode_reserve", _wrap_GXmlNode_reserve, METH_VARARGS0x0001, (char *)"GXmlNode_reserve(GXmlNode self, int const & num)"},
11642 { (char *)"GXmlNode_extend", _wrap_GXmlNode_extend, METH_VARARGS0x0001, (char *)"GXmlNode_extend(GXmlNode self, GXmlNode node)"},
11643 { (char *)"GXmlNode_elements", _wrap_GXmlNode_elements, METH_VARARGS0x0001, (char *)"\n"
11644 "elements() -> int\n"
11645 "GXmlNode_elements(GXmlNode self, std::string const & name) -> int\n"
11646 ""},
11647 { (char *)"GXmlNode_element", _wrap_GXmlNode_element, METH_VARARGS0x0001, (char *)"\n"
11648 "element(int const & index) -> GXmlElement\n"
11649 "GXmlNode_element(GXmlNode self, std::string const & name, int const & index) -> GXmlElement\n"
11650 ""},
11651 { (char *)"GXmlNode_write", _wrap_GXmlNode_write, METH_VARARGS0x0001, (char *)"GXmlNode_write(GXmlNode self, GUrl & url, int const & indent)"},
11652 { (char *)"GXmlNode_type", _wrap_GXmlNode_type, METH_VARARGS0x0001, (char *)"GXmlNode_type(GXmlNode self) -> GXmlNode::NodeType"},
11653 { (char *)"GXmlNode___str__", _wrap_GXmlNode___str__, METH_VARARGS0x0001, (char *)"GXmlNode___str__(GXmlNode self) -> char *"},
11654 { (char *)"GXmlNode___getitem__", _wrap_GXmlNode___getitem__, METH_VARARGS0x0001, (char *)"GXmlNode___getitem__(GXmlNode self, int const & index) -> GXmlNode"},
11655 { (char *)"GXmlNode___setitem__", _wrap_GXmlNode___setitem__, METH_VARARGS0x0001, (char *)"GXmlNode___setitem__(GXmlNode self, int const & index, GXmlNode node)"},
11656 { (char *)"GXmlNode___len__", _wrap_GXmlNode___len__, METH_VARARGS0x0001, (char *)"GXmlNode___len__(GXmlNode self) -> int"},
11657 { (char *)"GXmlNode_swigregister", GXmlNode_swigregister, METH_VARARGS0x0001, NULL__null},
11658 { (char *)"new_GXmlDocument", _wrap_new_GXmlDocument, METH_VARARGS0x0001, (char *)"\n"
11659 "GXmlDocument()\n"
11660 "new_GXmlDocument(GXmlDocument node) -> GXmlDocument\n"
11661 ""},
11662 { (char *)"delete_GXmlDocument", _wrap_delete_GXmlDocument, METH_VARARGS0x0001, (char *)"delete_GXmlDocument(GXmlDocument self)"},
11663 { (char *)"GXmlDocument_clear", _wrap_GXmlDocument_clear, METH_VARARGS0x0001, (char *)"GXmlDocument_clear(GXmlDocument self)"},
11664 { (char *)"GXmlDocument_clone", _wrap_GXmlDocument_clone, METH_VARARGS0x0001, (char *)"GXmlDocument_clone(GXmlDocument self) -> GXmlDocument"},
11665 { (char *)"GXmlDocument_write", _wrap_GXmlDocument_write, METH_VARARGS0x0001, (char *)"\n"
11666 "write(GUrl & url, int const & indent=0)\n"
11667 "GXmlDocument_write(GXmlDocument self, GUrl & url)\n"
11668 ""},
11669 { (char *)"GXmlDocument_type", _wrap_GXmlDocument_type, METH_VARARGS0x0001, (char *)"GXmlDocument_type(GXmlDocument self) -> GXmlNode::NodeType"},
11670 { (char *)"GXmlDocument_version", _wrap_GXmlDocument_version, METH_VARARGS0x0001, (char *)"\n"
11671 "version() -> std::string\n"
11672 "GXmlDocument_version(GXmlDocument self, std::string const & version)\n"
11673 ""},
11674 { (char *)"GXmlDocument_encoding", _wrap_GXmlDocument_encoding, METH_VARARGS0x0001, (char *)"\n"
11675 "encoding() -> std::string\n"
11676 "GXmlDocument_encoding(GXmlDocument self, std::string const & encoding)\n"
11677 ""},
11678 { (char *)"GXmlDocument_standalone", _wrap_GXmlDocument_standalone, METH_VARARGS0x0001, (char *)"\n"
11679 "standalone() -> std::string\n"
11680 "GXmlDocument_standalone(GXmlDocument self, std::string const & standalone)\n"
11681 ""},
11682 { (char *)"GXmlDocument_copy", _wrap_GXmlDocument_copy, METH_VARARGS0x0001, (char *)"GXmlDocument_copy(GXmlDocument self) -> GXmlDocument"},
11683 { (char *)"GXmlDocument_swigregister", GXmlDocument_swigregister, METH_VARARGS0x0001, NULL__null},
11684 { (char *)"new_GXmlText", _wrap_new_GXmlText, METH_VARARGS0x0001, (char *)"\n"
11685 "GXmlText()\n"
11686 "GXmlText(GXmlText node)\n"
11687 "new_GXmlText(std::string const & text) -> GXmlText\n"
11688 ""},
11689 { (char *)"delete_GXmlText", _wrap_delete_GXmlText, METH_VARARGS0x0001, (char *)"delete_GXmlText(GXmlText self)"},
11690 { (char *)"GXmlText_clear", _wrap_GXmlText_clear, METH_VARARGS0x0001, (char *)"GXmlText_clear(GXmlText self)"},
11691 { (char *)"GXmlText_clone", _wrap_GXmlText_clone, METH_VARARGS0x0001, (char *)"GXmlText_clone(GXmlText self) -> GXmlText"},
11692 { (char *)"GXmlText_write", _wrap_GXmlText_write, METH_VARARGS0x0001, (char *)"\n"
11693 "write(GUrl & url, int const & indent=0)\n"
11694 "GXmlText_write(GXmlText self, GUrl & url)\n"
11695 ""},
11696 { (char *)"GXmlText_type", _wrap_GXmlText_type, METH_VARARGS0x0001, (char *)"GXmlText_type(GXmlText self) -> GXmlNode::NodeType"},
11697 { (char *)"GXmlText_text", _wrap_GXmlText_text, METH_VARARGS0x0001, (char *)"\n"
11698 "text() -> std::string const\n"
11699 "GXmlText_text(GXmlText self, std::string const & text)\n"
11700 ""},
11701 { (char *)"GXmlText_copy", _wrap_GXmlText_copy, METH_VARARGS0x0001, (char *)"GXmlText_copy(GXmlText self) -> GXmlText"},
11702 { (char *)"GXmlText_swigregister", GXmlText_swigregister, METH_VARARGS0x0001, NULL__null},
11703 { (char *)"new_GXmlElement", _wrap_new_GXmlElement, METH_VARARGS0x0001, (char *)"\n"
11704 "GXmlElement()\n"
11705 "GXmlElement(GXmlElement node)\n"
11706 "new_GXmlElement(std::string const & segment) -> GXmlElement\n"
11707 ""},
11708 { (char *)"delete_GXmlElement", _wrap_delete_GXmlElement, METH_VARARGS0x0001, (char *)"delete_GXmlElement(GXmlElement self)"},
11709 { (char *)"GXmlElement_clear", _wrap_GXmlElement_clear, METH_VARARGS0x0001, (char *)"GXmlElement_clear(GXmlElement self)"},
11710 { (char *)"GXmlElement_clone", _wrap_GXmlElement_clone, METH_VARARGS0x0001, (char *)"GXmlElement_clone(GXmlElement self) -> GXmlElement"},
11711 { (char *)"GXmlElement_name", _wrap_GXmlElement_name, METH_VARARGS0x0001, (char *)"\n"
11712 "name() -> std::string const\n"
11713 "GXmlElement_name(GXmlElement self, std::string const & name)\n"
11714 ""},
11715 { (char *)"GXmlElement_attribute", _wrap_GXmlElement_attribute, METH_VARARGS0x0001, (char *)"\n"
11716 "attribute(std::string const & name) -> std::string\n"
11717 "GXmlElement_attribute(GXmlElement self, std::string const & name, std::string const & value)\n"
11718 ""},
11719 { (char *)"GXmlElement_remove_attribute", _wrap_GXmlElement_remove_attribute, METH_VARARGS0x0001, (char *)"GXmlElement_remove_attribute(GXmlElement self, std::string const & name)"},
11720 { (char *)"GXmlElement_parent", _wrap_GXmlElement_parent, METH_VARARGS0x0001, (char *)"\n"
11721 "parent() -> GXmlNode\n"
11722 "GXmlElement_parent(GXmlElement self, GXmlNode node)\n"
11723 ""},
11724 { (char *)"GXmlElement_write", _wrap_GXmlElement_write, METH_VARARGS0x0001, (char *)"\n"
11725 "write(GUrl & url, int const & indent=0)\n"
11726 "GXmlElement_write(GXmlElement self, GUrl & url)\n"
11727 ""},
11728 { (char *)"GXmlElement_type", _wrap_GXmlElement_type, METH_VARARGS0x0001, (char *)"GXmlElement_type(GXmlElement self) -> GXmlNode::NodeType"},
11729 { (char *)"GXmlElement_copy", _wrap_GXmlElement_copy, METH_VARARGS0x0001, (char *)"GXmlElement_copy(GXmlElement self) -> GXmlElement"},
11730 { (char *)"GXmlElement_swigregister", GXmlElement_swigregister, METH_VARARGS0x0001, NULL__null},
11731 { (char *)"new_GXmlComment", _wrap_new_GXmlComment, METH_VARARGS0x0001, (char *)"\n"
11732 "GXmlComment()\n"
11733 "GXmlComment(GXmlComment node)\n"
11734 "new_GXmlComment(std::string const & segment) -> GXmlComment\n"
11735 ""},
11736 { (char *)"delete_GXmlComment", _wrap_delete_GXmlComment, METH_VARARGS0x0001, (char *)"delete_GXmlComment(GXmlComment self)"},
11737 { (char *)"GXmlComment_clear", _wrap_GXmlComment_clear, METH_VARARGS0x0001, (char *)"GXmlComment_clear(GXmlComment self)"},
11738 { (char *)"GXmlComment_clone", _wrap_GXmlComment_clone, METH_VARARGS0x0001, (char *)"GXmlComment_clone(GXmlComment self) -> GXmlComment"},
11739 { (char *)"GXmlComment_write", _wrap_GXmlComment_write, METH_VARARGS0x0001, (char *)"\n"
11740 "write(GUrl & url, int const & indent=0)\n"
11741 "GXmlComment_write(GXmlComment self, GUrl & url)\n"
11742 ""},
11743 { (char *)"GXmlComment_type", _wrap_GXmlComment_type, METH_VARARGS0x0001, (char *)"GXmlComment_type(GXmlComment self) -> GXmlNode::NodeType"},
11744 { (char *)"GXmlComment_comment", _wrap_GXmlComment_comment, METH_VARARGS0x0001, (char *)"\n"
11745 "comment() -> std::string const\n"
11746 "GXmlComment_comment(GXmlComment self, std::string const & comment)\n"
11747 ""},
11748 { (char *)"GXmlComment_copy", _wrap_GXmlComment_copy, METH_VARARGS0x0001, (char *)"GXmlComment_copy(GXmlComment self) -> GXmlComment"},
11749 { (char *)"GXmlComment_swigregister", GXmlComment_swigregister, METH_VARARGS0x0001, NULL__null},
11750 { (char *)"new_GXmlAttribute", _wrap_new_GXmlAttribute, METH_VARARGS0x0001, (char *)"\n"
11751 "GXmlAttribute()\n"
11752 "GXmlAttribute(GXmlAttribute attr)\n"
11753 "new_GXmlAttribute(std::string const & name, std::string const & value) -> GXmlAttribute\n"
11754 ""},
11755 { (char *)"delete_GXmlAttribute", _wrap_delete_GXmlAttribute, METH_VARARGS0x0001, (char *)"delete_GXmlAttribute(GXmlAttribute self)"},
11756 { (char *)"GXmlAttribute_clear", _wrap_GXmlAttribute_clear, METH_VARARGS0x0001, (char *)"GXmlAttribute_clear(GXmlAttribute self)"},
11757 { (char *)"GXmlAttribute_clone", _wrap_GXmlAttribute_clone, METH_VARARGS0x0001, (char *)"GXmlAttribute_clone(GXmlAttribute self) -> GXmlAttribute"},
11758 { (char *)"GXmlAttribute_write", _wrap_GXmlAttribute_write, METH_VARARGS0x0001, (char *)"GXmlAttribute_write(GXmlAttribute self, GUrl & url)"},
11759 { (char *)"GXmlAttribute_name", _wrap_GXmlAttribute_name, METH_VARARGS0x0001, (char *)"\n"
11760 "name() -> std::string const\n"
11761 "GXmlAttribute_name(GXmlAttribute self, std::string const & name)\n"
11762 ""},
11763 { (char *)"GXmlAttribute_value", _wrap_GXmlAttribute_value, METH_VARARGS0x0001, (char *)"\n"
11764 "value() -> std::string\n"
11765 "GXmlAttribute_value(GXmlAttribute self, std::string value)\n"
11766 ""},
11767 { (char *)"GXmlAttribute_swigregister", GXmlAttribute_swigregister, METH_VARARGS0x0001, NULL__null},
11768 { (char *)"new_GXmlPI", _wrap_new_GXmlPI, METH_VARARGS0x0001, (char *)"\n"
11769 "GXmlPI()\n"
11770 "GXmlPI(GXmlPI node)\n"
11771 "new_GXmlPI(std::string const & segment) -> GXmlPI\n"
11772 ""},
11773 { (char *)"delete_GXmlPI", _wrap_delete_GXmlPI, METH_VARARGS0x0001, (char *)"delete_GXmlPI(GXmlPI self)"},
11774 { (char *)"GXmlPI_clear", _wrap_GXmlPI_clear, METH_VARARGS0x0001, (char *)"GXmlPI_clear(GXmlPI self)"},
11775 { (char *)"GXmlPI_clone", _wrap_GXmlPI_clone, METH_VARARGS0x0001, (char *)"GXmlPI_clone(GXmlPI self) -> GXmlPI"},
11776 { (char *)"GXmlPI_write", _wrap_GXmlPI_write, METH_VARARGS0x0001, (char *)"\n"
11777 "write(GUrl & url, int const & indent=0)\n"
11778 "GXmlPI_write(GXmlPI self, GUrl & url)\n"
11779 ""},
11780 { (char *)"GXmlPI_type", _wrap_GXmlPI_type, METH_VARARGS0x0001, (char *)"GXmlPI_type(GXmlPI self) -> GXmlNode::NodeType"},
11781 { (char *)"GXmlPI_pi", _wrap_GXmlPI_pi, METH_VARARGS0x0001, (char *)"\n"
11782 "pi() -> std::string const\n"
11783 "GXmlPI_pi(GXmlPI self, std::string const & pi)\n"
11784 ""},
11785 { (char *)"GXmlPI_copy", _wrap_GXmlPI_copy, METH_VARARGS0x0001, (char *)"GXmlPI_copy(GXmlPI self) -> GXmlPI"},
11786 { (char *)"GXmlPI_swigregister", GXmlPI_swigregister, METH_VARARGS0x0001, NULL__null},
11787 { NULL__null, NULL__null, 0, NULL__null }
11788};
11789
11790
11791/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
11792
11793static void *_p_GXmlTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11794 return (void *)((GBase *) (GContainer *) ((GXml *) x));
11795}
11796static void *_p_GXmlNodeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11797 return (void *)((GBase *) ((GXmlNode *) x));
11798}
11799static void *_p_GXmlElementTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11800 return (void *)((GBase *) (GXmlNode *) ((GXmlElement *) x));
11801}
11802static void *_p_GXmlCommentTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11803 return (void *)((GBase *) (GXmlNode *) ((GXmlComment *) x));
11804}
11805static void *_p_GXmlAttributeTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11806 return (void *)((GBase *) ((GXmlAttribute *) x));
11807}
11808static void *_p_GXmlDocumentTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11809 return (void *)((GBase *) (GXmlNode *) ((GXmlDocument *) x));
11810}
11811static void *_p_GXmlTextTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11812 return (void *)((GBase *) (GXmlNode *) ((GXmlText *) x));
11813}
11814static void *_p_GContainerTo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11815 return (void *)((GBase *) ((GContainer *) x));
11816}
11817static void *_p_GXmlPITo_p_GBase(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11818 return (void *)((GBase *) (GXmlNode *) ((GXmlPI *) x));
11819}
11820static void *_p_GXmlElementTo_p_GXmlNode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11821 return (void *)((GXmlNode *) ((GXmlElement *) x));
11822}
11823static void *_p_GXmlCommentTo_p_GXmlNode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11824 return (void *)((GXmlNode *) ((GXmlComment *) x));
11825}
11826static void *_p_GXmlDocumentTo_p_GXmlNode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11827 return (void *)((GXmlNode *) ((GXmlDocument *) x));
11828}
11829static void *_p_GXmlTextTo_p_GXmlNode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11830 return (void *)((GXmlNode *) ((GXmlText *) x));
11831}
11832static void *_p_GXmlPITo_p_GXmlNode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11833 return (void *)((GXmlNode *) ((GXmlPI *) x));
11834}
11835static void *_p_GXmlTo_p_GContainer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
11836 return (void *)((GContainer *) ((GXml *) x));
11837}
11838static swig_type_info _swigt__p_GBase = {"_p_GBase", "GBase *", 0, 0, (void*)0, 0};
11839static swig_type_info _swigt__p_GContainer = {"_p_GContainer", "GContainer *", 0, 0, (void*)0, 0};
11840static swig_type_info _swigt__p_GUrl = {"_p_GUrl", "GUrl *", 0, 0, (void*)0, 0};
11841static swig_type_info _swigt__p_GXml = {"_p_GXml", "GXml *", 0, 0, (void*)0, 0};
11842static swig_type_info _swigt__p_GXmlAttribute = {"_p_GXmlAttribute", "GXmlAttribute *", 0, 0, (void*)0, 0};
11843static swig_type_info _swigt__p_GXmlComment = {"_p_GXmlComment", "GXmlComment *", 0, 0, (void*)0, 0};
11844static swig_type_info _swigt__p_GXmlDocument = {"_p_GXmlDocument", "GXmlDocument *", 0, 0, (void*)0, 0};
11845static swig_type_info _swigt__p_GXmlElement = {"_p_GXmlElement", "GXmlElement *", 0, 0, (void*)0, 0};
11846static swig_type_info _swigt__p_GXmlNode = {"_p_GXmlNode", "GXmlNode *", 0, 0, (void*)0, 0};
11847static swig_type_info _swigt__p_GXmlPI = {"_p_GXmlPI", "GXmlPI *", 0, 0, (void*)0, 0};
11848static swig_type_info _swigt__p_GXmlText = {"_p_GXmlText", "GXmlText *", 0, 0, (void*)0, 0};
11849static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
11850static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
11851static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
11852
11853static swig_type_info *swig_type_initial[] = {
11854 &_swigt__p_GBase,
11855 &_swigt__p_GContainer,
11856 &_swigt__p_GUrl,
11857 &_swigt__p_GXml,
11858 &_swigt__p_GXmlAttribute,
11859 &_swigt__p_GXmlComment,
11860 &_swigt__p_GXmlDocument,
11861 &_swigt__p_GXmlElement,
11862 &_swigt__p_GXmlNode,
11863 &_swigt__p_GXmlPI,
11864 &_swigt__p_GXmlText,
11865 &_swigt__p_char,
11866 &_swigt__p_std__invalid_argument,
11867 &_swigt__p_swig__SwigPyIterator,
11868};
11869
11870static swig_cast_info _swigc__p_GBase[] = { {&_swigt__p_GXmlNode, _p_GXmlNodeTo_p_GBase, 0, 0}, {&_swigt__p_GXmlElement, _p_GXmlElementTo_p_GBase, 0, 0}, {&_swigt__p_GXmlPI, _p_GXmlPITo_p_GBase, 0, 0}, {&_swigt__p_GXmlComment, _p_GXmlCommentTo_p_GBase, 0, 0}, {&_swigt__p_GXmlAttribute, _p_GXmlAttributeTo_p_GBase, 0, 0}, {&_swigt__p_GXmlDocument, _p_GXmlDocumentTo_p_GBase, 0, 0}, {&_swigt__p_GXmlText, _p_GXmlTextTo_p_GBase, 0, 0}, {&_swigt__p_GBase, 0, 0, 0}, {&_swigt__p_GContainer, _p_GContainerTo_p_GBase, 0, 0}, {&_swigt__p_GXml, _p_GXmlTo_p_GBase, 0, 0},{0, 0, 0, 0}};
11871static swig_cast_info _swigc__p_GContainer[] = { {&_swigt__p_GContainer, 0, 0, 0}, {&_swigt__p_GXml, _p_GXmlTo_p_GContainer, 0, 0},{0, 0, 0, 0}};
11872static swig_cast_info _swigc__p_GUrl[] = { {&_swigt__p_GUrl, 0, 0, 0},{0, 0, 0, 0}};
11873static swig_cast_info _swigc__p_GXml[] = { {&_swigt__p_GXml, 0, 0, 0},{0, 0, 0, 0}};
11874static swig_cast_info _swigc__p_GXmlAttribute[] = { {&_swigt__p_GXmlAttribute, 0, 0, 0},{0, 0, 0, 0}};
11875static swig_cast_info _swigc__p_GXmlComment[] = { {&_swigt__p_GXmlComment, 0, 0, 0},{0, 0, 0, 0}};
11876static swig_cast_info _swigc__p_GXmlDocument[] = { {&_swigt__p_GXmlDocument, 0, 0, 0},{0, 0, 0, 0}};
11877static swig_cast_info _swigc__p_GXmlElement[] = { {&_swigt__p_GXmlElement, 0, 0, 0},{0, 0, 0, 0}};
11878static swig_cast_info _swigc__p_GXmlNode[] = { {&_swigt__p_GXmlNode, 0, 0, 0}, {&_swigt__p_GXmlElement, _p_GXmlElementTo_p_GXmlNode, 0, 0}, {&_swigt__p_GXmlPI, _p_GXmlPITo_p_GXmlNode, 0, 0}, {&_swigt__p_GXmlComment, _p_GXmlCommentTo_p_GXmlNode, 0, 0}, {&_swigt__p_GXmlDocument, _p_GXmlDocumentTo_p_GXmlNode, 0, 0}, {&_swigt__p_GXmlText, _p_GXmlTextTo_p_GXmlNode, 0, 0},{0, 0, 0, 0}};
11879static swig_cast_info _swigc__p_GXmlPI[] = { {&_swigt__p_GXmlPI, 0, 0, 0},{0, 0, 0, 0}};
11880static swig_cast_info _swigc__p_GXmlText[] = { {&_swigt__p_GXmlText, 0, 0, 0},{0, 0, 0, 0}};
11881static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
11882static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
11883static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
11884
11885static swig_cast_info *swig_cast_initial[] = {
11886 _swigc__p_GBase,
11887 _swigc__p_GContainer,
11888 _swigc__p_GUrl,
11889 _swigc__p_GXml,
11890 _swigc__p_GXmlAttribute,
11891 _swigc__p_GXmlComment,
11892 _swigc__p_GXmlDocument,
11893 _swigc__p_GXmlElement,
11894 _swigc__p_GXmlNode,
11895 _swigc__p_GXmlPI,
11896 _swigc__p_GXmlText,
11897 _swigc__p_char,
11898 _swigc__p_std__invalid_argument,
11899 _swigc__p_swig__SwigPyIterator,
11900};
11901
11902
11903/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
11904
11905static swig_const_info swig_const_table[] = {
11906{0, 0, 0, 0.0, 0, 0}};
11907
11908#ifdef __cplusplus199711L
11909}
11910#endif
11911/* -----------------------------------------------------------------------------
11912 * Type initialization:
11913 * This problem is tough by the requirement that no dynamic
11914 * memory is used. Also, since swig_type_info structures store pointers to
11915 * swig_cast_info structures and swig_cast_info structures store pointers back
11916 * to swig_type_info structures, we need some lookup code at initialization.
11917 * The idea is that swig generates all the structures that are needed.
11918 * The runtime then collects these partially filled structures.
11919 * The SWIG_InitializeModule function takes these initial arrays out of
11920 * swig_module, and does all the lookup, filling in the swig_module.types
11921 * array with the correct data and linking the correct swig_cast_info
11922 * structures together.
11923 *
11924 * The generated swig_type_info structures are assigned staticly to an initial
11925 * array. We just loop through that array, and handle each type individually.
11926 * First we lookup if this type has been already loaded, and if so, use the
11927 * loaded structure instead of the generated one. Then we have to fill in the
11928 * cast linked list. The cast data is initially stored in something like a
11929 * two-dimensional array. Each row corresponds to a type (there are the same
11930 * number of rows as there are in the swig_type_initial array). Each entry in
11931 * a column is one of the swig_cast_info structures for that type.
11932 * The cast_initial array is actually an array of arrays, because each row has
11933 * a variable number of columns. So to actually build the cast linked list,
11934 * we find the array of casts associated with the type, and loop through it
11935 * adding the casts to the list. The one last trick we need to do is making
11936 * sure the type pointer in the swig_cast_info struct is correct.
11937 *
11938 * First off, we lookup the cast->type name to see if it is already loaded.
11939 * There are three cases to handle:
11940 * 1) If the cast->type has already been loaded AND the type we are adding
11941 * casting info to has not been loaded (it is in this module), THEN we
11942 * replace the cast->type pointer with the type pointer that has already
11943 * been loaded.
11944 * 2) If BOTH types (the one we are adding casting info to, and the
11945 * cast->type) are loaded, THEN the cast info has already been loaded by
11946 * the previous module so we just ignore it.
11947 * 3) Finally, if cast->type has not already been loaded, then we add that
11948 * swig_cast_info to the linked list (because the cast->type) pointer will
11949 * be correct.
11950 * ----------------------------------------------------------------------------- */
11951
11952#ifdef __cplusplus199711L
11953extern "C" {
11954#if 0
11955} /* c-mode */
11956#endif
11957#endif
11958
11959#if 0
11960#define SWIGRUNTIME_DEBUG
11961#endif
11962
11963
11964SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
11965SWIG_InitializeModule(void *clientdata) {
11966 size_t i;
11967 swig_module_info *module_head, *iter;
11968 int found, init;
11969
11970 /* check to see if the circular list has been setup, if not, set it up */
11971 if (swig_module.next==0) {
11972 /* Initialize the swig_module */
11973 swig_module.type_initial = swig_type_initial;
11974 swig_module.cast_initial = swig_cast_initial;
11975 swig_module.next = &swig_module;
11976 init = 1;
11977 } else {
11978 init = 0;
11979 }
11980
11981 /* Try and load any already created modules */
11982 module_head = SWIG_GetModule(clientdata)SWIG_Python_GetModule(clientdata);
11983 if (!module_head) {
11984 /* This is the first module loaded for this interpreter */
11985 /* so set the swig module into the interpreter */
11986 SWIG_SetModule(clientdata, &swig_module)SWIG_Python_SetModule(&swig_module);
11987 module_head = &swig_module;
Value stored to 'module_head' is never read
11988 } else {
11989 /* the interpreter has loaded a SWIG module, but has it loaded this one? */
11990 found=0;
11991 iter=module_head;
11992 do {
11993 if (iter==&swig_module) {
11994 found=1;
11995 break;
11996 }
11997 iter=iter->next;
11998 } while (iter!= module_head);
11999
12000 /* if the is found in the list, then all is done and we may leave */
12001 if (found) return;
12002 /* otherwise we must add out module into the list */
12003 swig_module.next = module_head->next;
12004 module_head->next = &swig_module;
12005 }
12006
12007 /* When multiple interpreters are used, a module could have already been initialized in
12008 a different interpreter, but not yet have a pointer in this interpreter.
12009 In this case, we do not want to continue adding types... everything should be
12010 set up already */
12011 if (init == 0) return;
12012
12013 /* Now work on filling in swig_module.types */
12014#ifdef SWIGRUNTIME_DEBUG
12015 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
12016#endif
12017 for (i = 0; i < swig_module.size; ++i) {
12018 swig_type_info *type = 0;
12019 swig_type_info *ret;
12020 swig_cast_info *cast;
12021
12022#ifdef SWIGRUNTIME_DEBUG
12023 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
12024#endif
12025
12026 /* if there is another module already loaded */
12027 if (swig_module.next != &swig_module) {
12028 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
12029 }
12030 if (type) {
12031 /* Overwrite clientdata field */
12032#ifdef SWIGRUNTIME_DEBUG
12033 printf("SWIG_InitializeModule: found type %s\n", type->name);
12034#endif
12035 if (swig_module.type_initial[i]->clientdata) {
12036 type->clientdata = swig_module.type_initial[i]->clientdata;
12037#ifdef SWIGRUNTIME_DEBUG
12038 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
12039#endif
12040 }
12041 } else {
12042 type = swig_module.type_initial[i];
12043 }
12044
12045 /* Insert casting types */
12046 cast = swig_module.cast_initial[i];
12047 while (cast->type) {
12048 /* Don't need to add information already in the list */
12049 ret = 0;
12050#ifdef SWIGRUNTIME_DEBUG
12051 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
12052#endif
12053 if (swig_module.next != &swig_module) {
12054 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
12055#ifdef SWIGRUNTIME_DEBUG
12056 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
12057#endif
12058 }
12059 if (ret) {
12060 if (type == swig_module.type_initial[i]) {
12061#ifdef SWIGRUNTIME_DEBUG
12062 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
12063#endif
12064 cast->type = ret;
12065 ret = 0;
12066 } else {
12067 /* Check for casting already in the list */
12068 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
12069#ifdef SWIGRUNTIME_DEBUG
12070 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
12071#endif
12072 if (!ocast) ret = 0;
12073 }
12074 }
12075
12076 if (!ret) {
12077#ifdef SWIGRUNTIME_DEBUG
12078 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
12079#endif
12080 if (type->cast) {
12081 type->cast->prev = cast;
12082 cast->next = type->cast;
12083 }
12084 type->cast = cast;
12085 }
12086 cast++;
12087 }
12088 /* Set entry in modules->types array equal to the type */
12089 swig_module.types[i] = type;
12090 }
12091 swig_module.types[i] = 0;
12092
12093#ifdef SWIGRUNTIME_DEBUG
12094 printf("**** SWIG_InitializeModule: Cast List ******\n");
12095 for (i = 0; i < swig_module.size; ++i) {
12096 int j = 0;
12097 swig_cast_info *cast = swig_module.cast_initial[i];
12098 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
12099 while (cast->type) {
12100 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
12101 cast++;
12102 ++j;
12103 }
12104 printf("---- Total casts: %d\n",j);
12105 }
12106 printf("**** SWIG_InitializeModule: Cast List ******\n");
12107#endif
12108}
12109
12110/* This function will propagate the clientdata field of type to
12111* any new swig_type_info structures that have been added into the list
12112* of equivalent types. It is like calling
12113* SWIG_TypeClientData(type, clientdata) a second time.
12114*/
12115SWIGRUNTIMEstatic __attribute__ ((__unused__)) void
12116SWIG_PropagateClientData(void) {
12117 size_t i;
12118 swig_cast_info *equiv;
12119 static int init_run = 0;
12120
12121 if (init_run) return;
12122 init_run = 1;
12123
12124 for (i = 0; i < swig_module.size; i++) {
12125 if (swig_module.types[i]->clientdata) {
12126 equiv = swig_module.types[i]->cast;
12127 while (equiv) {
12128 if (!equiv->converter) {
12129 if (equiv->type && !equiv->type->clientdata)
12130 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
12131 }
12132 equiv = equiv->next;
12133 }
12134 }
12135 }
12136}
12137
12138#ifdef __cplusplus199711L
12139#if 0
12140{
12141 /* c-mode */
12142#endif
12143}
12144#endif
12145
12146
12147
12148#ifdef __cplusplus199711L
12149extern "C" {
12150#endif
12151
12152 /* Python-specific SWIG API */
12153#define SWIG_newvarlink()SWIG_Python_newvarlink() SWIG_Python_newvarlink()
12154#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)
12155#define SWIG_InstallConstants(d, constants)SWIG_Python_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
12156
12157 /* -----------------------------------------------------------------------------
12158 * global variable support code.
12159 * ----------------------------------------------------------------------------- */
12160
12161 typedef struct swig_globalvar {
12162 char *name; /* Name of global variable */
12163 PyObject *(*get_attr)(void); /* Return the current value */
12164 int (*set_attr)(PyObject *); /* Set the value */
12165 struct swig_globalvar *next;
12166 } swig_globalvar;
12167
12168 typedef struct swig_varlinkobject {
12169 PyObject_HEADPy_ssize_t ob_refcnt; struct _typeobject *ob_type;
12170 swig_globalvar *vars;
12171 } swig_varlinkobject;
12172
12173 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
12174 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
12175#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12176 return PyUnicode_InternFromString("<Swig global variables>");
12177#else
12178 return PyString_FromString("<Swig global variables>");
12179#endif
12180 }
12181
12182 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
12183 swig_varlink_str(swig_varlinkobject *v) {
12184#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12185 PyObject *str = PyUnicode_InternFromString("(");
12186 PyObject *tail;
12187 PyObject *joined;
12188 swig_globalvar *var;
12189 for (var = v->vars; var; var=var->next) {
12190 tail = PyUnicode_FromStringPyUnicodeUCS2_FromString(var->name);
12191 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
12192 Py_DecRef(str);
12193 Py_DecRef(tail);
12194 str = joined;
12195 if (var->next) {
12196 tail = PyUnicode_InternFromString(", ");
12197 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
12198 Py_DecRef(str);
12199 Py_DecRef(tail);
12200 str = joined;
12201 }
12202 }
12203 tail = PyUnicode_InternFromString(")");
12204 joined = PyUnicode_ConcatPyUnicodeUCS2_Concat(str, tail);
12205 Py_DecRef(str);
12206 Py_DecRef(tail);
12207 str = joined;
12208#else
12209 PyObject *str = PyString_FromString("(");
12210 swig_globalvar *var;
12211 for (var = v->vars; var; var=var->next) {
12212 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
12213 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
12214 }
12215 PyString_ConcatAndDel(&str,PyString_FromString(")"));
12216#endif
12217 return str;
12218 }
12219
12220 SWIGINTERNstatic __attribute__ ((__unused__)) int
12221 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
12222 char *tmp;
12223 PyObject *str = swig_varlink_str(v);
12224 fprintf(fp,"Swig global variables ");
12225 fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
12226 SWIG_Python_str_DelForPy3(tmp);
12227 Py_DECREF(str)do { if ( --((PyObject*)(str))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(str)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(str)))); } while (0)
;
12228 return 0;
12229 }
12230
12231 SWIGINTERNstatic __attribute__ ((__unused__)) void
12232 swig_varlink_dealloc(swig_varlinkobject *v) {
12233 swig_globalvar *var = v->vars;
12234 while (var) {
12235 swig_globalvar *n = var->next;
12236 free(var->name);
12237 free(var);
12238 var = n;
12239 }
12240 }
12241
12242 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
12243 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
12244 PyObject *res = NULL__null;
12245 swig_globalvar *var = v->vars;
12246 while (var) {
12247 if (strcmp(var->name,n) == 0) {
12248 res = (*var->get_attr)();
12249 break;
12250 }
12251 var = var->next;
12252 }
12253 if (res == NULL__null && !PyErr_Occurred()) {
12254 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
12255 }
12256 return res;
12257 }
12258
12259 SWIGINTERNstatic __attribute__ ((__unused__)) int
12260 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
12261 int res = 1;
12262 swig_globalvar *var = v->vars;
12263 while (var) {
12264 if (strcmp(var->name,n) == 0) {
12265 res = (*var->set_attr)(p);
12266 break;
12267 }
12268 var = var->next;
12269 }
12270 if (res == 1 && !PyErr_Occurred()) {
12271 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
12272 }
12273 return res;
12274 }
12275
12276 SWIGINTERNstatic __attribute__ ((__unused__)) PyTypeObject*
12277 swig_varlink_type(void) {
12278 static char varlink__doc__[] = "Swig var link object";
12279 static PyTypeObject varlink_type;
12280 static int type_init = 0;
12281 if (!type_init) {
12282 const PyTypeObject tmp = {
12283 /* PyObject header changed in Python 3 */
12284#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12285 PyVarObject_HEAD_INIT(NULL, 0)1, __null, 0,
12286#else
12287 PyObject_HEAD_INIT(NULL)1, __null,
12288 0, /* ob_size */
12289#endif
12290 (char *)"swigvarlink", /* tp_name */
12291 sizeof(swig_varlinkobject), /* tp_basicsize */
12292 0, /* tp_itemsize */
12293 (destructor) swig_varlink_dealloc, /* tp_dealloc */
12294 (printfunc) swig_varlink_print, /* tp_print */
12295 (getattrfunc) swig_varlink_getattr, /* tp_getattr */
12296 (setattrfunc) swig_varlink_setattr, /* tp_setattr */
12297 0, /* tp_compare */
12298 (reprfunc) swig_varlink_repr, /* tp_repr */
12299 0, /* tp_as_number */
12300 0, /* tp_as_sequence */
12301 0, /* tp_as_mapping */
12302 0, /* tp_hash */
12303 0, /* tp_call */
12304 (reprfunc) swig_varlink_str, /* tp_str */
12305 0, /* tp_getattro */
12306 0, /* tp_setattro */
12307 0, /* tp_as_buffer */
12308 0, /* tp_flags */
12309 varlink__doc__, /* tp_doc */
12310 0, /* tp_traverse */
12311 0, /* tp_clear */
12312 0, /* tp_richcompare */
12313 0, /* tp_weaklistoffset */
12314#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02020000
12315 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
12316#endif
12317#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02030000
12318 0, /* tp_del */
12319#endif
12320#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x02060000
12321 0, /* tp_version */
12322#endif
12323#ifdef COUNT_ALLOCS
12324 0,0,0,0 /* tp_alloc -> tp_next */
12325#endif
12326 };
12327 varlink_type = tmp;
12328 type_init = 1;
12329#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
< 0x02020000
12330 varlink_type.ob_type = &PyType_Type;
12331#else
12332 if (PyType_Ready(&varlink_type) < 0)
12333 return NULL__null;
12334#endif
12335 }
12336 return &varlink_type;
12337 }
12338
12339 /* Create a variable linking object for use later */
12340 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
12341 SWIG_Python_newvarlink(void) {
12342 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
())) )
;
12343 if (result) {
12344 result->vars = 0;
12345 }
12346 return ((PyObject*) result);
12347 }
12348
12349 SWIGINTERNstatic __attribute__ ((__unused__)) void
12350 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
12351 swig_varlinkobject *v = (swig_varlinkobject *) p;
12352 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
12353 if (gv) {
12354 size_t size = strlen(name)+1;
12355 gv->name = (char *)malloc(size);
12356 if (gv->name) {
12357 strncpy(gv->name,name,size);
12358 gv->get_attr = get_attr;
12359 gv->set_attr = set_attr;
12360 gv->next = v->vars;
12361 }
12362 }
12363 v->vars = gv;
12364 }
12365
12366 SWIGINTERNstatic __attribute__ ((__unused__)) PyObject *
12367 SWIG_globals(void) {
12368 static PyObject *_SWIG_globals = 0;
12369 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink()SWIG_Python_newvarlink();
12370 return _SWIG_globals;
12371 }
12372
12373 /* -----------------------------------------------------------------------------
12374 * constants/methods manipulation
12375 * ----------------------------------------------------------------------------- */
12376
12377 /* Install Constants */
12378 SWIGINTERNstatic __attribute__ ((__unused__)) void
12379 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
12380 PyObject *obj = 0;
12381 size_t i;
12382 for (i = 0; constants[i].type; ++i) {
12383 switch(constants[i].type) {
12384 case SWIG_PY_POINTER4:
12385 obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0)SWIG_Python_NewPointerObj(__null, constants[i].pvalue, *(constants
[i]).ptype, 0)
;
12386 break;
12387 case SWIG_PY_BINARY5:
12388 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype))SWIG_Python_NewPackedObj(constants[i].pvalue, constants[i].lvalue
, *(constants[i].ptype))
;
12389 break;
12390 default:
12391 obj = 0;
12392 break;
12393 }
12394 if (obj) {
12395 PyDict_SetItemString(d, constants[i].name, obj);
12396 Py_DECREF(obj)do { if ( --((PyObject*)(obj))->ob_refcnt != 0) ; else ( (
*(((PyObject*)((PyObject *)(obj)))->ob_type)->tp_dealloc
)((PyObject *)((PyObject *)(obj)))); } while (0)
;
12397 }
12398 }
12399 }
12400
12401 /* -----------------------------------------------------------------------------*/
12402 /* Fix SwigMethods to carry the callback ptrs when needed */
12403 /* -----------------------------------------------------------------------------*/
12404
12405 SWIGINTERNstatic __attribute__ ((__unused__)) void
12406 SWIG_Python_FixMethods(PyMethodDef *methods,
12407 swig_const_info *const_table,
12408 swig_type_info **types,
12409 swig_type_info **types_initial) {
12410 size_t i;
12411 for (i = 0; methods[i].ml_name; ++i) {
12412 const char *c = methods[i].ml_doc;
12413 if (c && (c = strstr(c, "swig_ptr: "))) {
12414 int j;
12415 swig_const_info *ci = 0;
12416 const char *name = c + 10;
12417 for (j = 0; const_table[j].type; ++j) {
12418 if (strncmp(const_table[j].name, name,
12419 strlen(const_table[j].name)) == 0) {
12420 ci = &(const_table[j]);
12421 break;
12422 }
12423 }
12424 if (ci) {
12425 void *ptr = (ci->type == SWIG_PY_POINTER4) ? ci->pvalue : 0;
12426 if (ptr) {
12427 size_t shift = (ci->ptype) - types;
12428 swig_type_info *ty = types_initial[shift];
12429 size_t ldoc = (c - methods[i].ml_doc);
12430 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
12431 char *ndoc = (char*)malloc(ldoc + lptr + 10);
12432 if (ndoc) {
12433 char *buff = ndoc;
12434 strncpy(buff, methods[i].ml_doc, ldoc);
12435 buff += ldoc;
12436 strncpy(buff, "swig_ptr: ", 10);
12437 buff += 10;
12438 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
12439 methods[i].ml_doc = ndoc;
12440 }
12441 }
12442 }
12443 }
12444 }
12445 }
12446
12447#ifdef __cplusplus199711L
12448}
12449#endif
12450
12451/* -----------------------------------------------------------------------------*
12452 * Partial Init method
12453 * -----------------------------------------------------------------------------*/
12454
12455#ifdef __cplusplus199711L
12456extern "C"
12457#endif
12458
12459SWIGEXPORT__attribute__ ((visibility("default")))
12460#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12461PyObject*
12462#else
12463void
12464#endif
12465SWIG_initinit_xml(void) {
12466 PyObject *m, *d, *md;
12467#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12468 static struct PyModuleDef SWIG_module = {
12469# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03020000
12470 PyModuleDef_HEAD_INIT,
12471# else
12472 {
12473 PyObject_HEAD_INIT(NULL)1, __null,
12474 NULL__null, /* m_init */
12475 0, /* m_index */
12476 NULL__null, /* m_copy */
12477 },
12478# endif
12479 (char *) SWIG_name"_xml",
12480 NULL__null,
12481 -1,
12482 SwigMethods,
12483 NULL__null,
12484 NULL__null,
12485 NULL__null,
12486 NULL__null
12487 };
12488#endif
12489
12490#if defined(SWIGPYTHON_BUILTIN)
12491 static SwigPyClientData SwigPyObject_clientdata = {
12492 0, 0, 0, 0, 0, 0, 0
12493 };
12494 static PyGetSetDef this_getset_def = {
12495 (char *)"this", &SwigPyBuiltin_ThisClosure, NULL__null, NULL__null, NULL__null
12496 };
12497 static SwigPyGetSet thisown_getset_closure = {
12498 (PyCFunction) SwigPyObject_own,
12499 (PyCFunction) SwigPyObject_own
12500 };
12501 static PyGetSetDef thisown_getset_def = {
12502 (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL__null, &thisown_getset_closure
12503 };
12504 PyObject *metatype_args;
12505 PyTypeObject *builtin_pytype;
12506 int builtin_base_count;
12507 swig_type_info *builtin_basetype;
12508 PyObject *tuple;
12509 PyGetSetDescrObject *static_getset;
12510 PyTypeObject *metatype;
12511 SwigPyClientData *cd;
12512 PyObject *public_interface, *public_symbol;
12513 PyObject *this_descr;
12514 PyObject *thisown_descr;
12515 int i;
12516
12517 (void)builtin_pytype;
12518 (void)builtin_base_count;
12519 (void)builtin_basetype;
12520 (void)tuple;
12521 (void)static_getset;
12522
12523 /* metatype is used to implement static member variables. */
12524 metatype_args = Py_BuildValue("(s(O){})", "SwigPyObjectType", &PyType_Type);
12525 assert(metatype_args)((void)0);
12526 metatype = (PyTypeObject *) PyType_Type.tp_call((PyObject *) &PyType_Type, metatype_args, NULL__null);
12527 assert(metatype)((void)0);
12528 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)
;
12529 metatype->tp_setattro = (setattrofunc) &SwigPyObjectType_setattro;
12530 assert(PyType_Ready(metatype) >= 0)((void)0);
12531#endif
12532
12533 /* Fix SwigMethods to carry the callback ptrs when needed */
12534 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
12535
12536#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12537 m = PyModule_Create(&SWIG_module);
12538#else
12539 m = Py_InitModule((char *) SWIG_name, SwigMethods)Py_InitModule4_64((char *) "_xml", SwigMethods, (char *)__null
, (PyObject *)__null, 1013)
;
12540#endif
12541 md = d = PyModule_GetDict(m);
12542 (void)md;
12543
12544 SWIG_InitializeModule(0);
12545
12546#ifdef SWIGPYTHON_BUILTIN
12547 SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject")SWIG_MangledTypeQueryModule(&swig_module, &swig_module
, "_p_SwigPyObject")
;
12548 assert(SwigPyObject_stype)((void)0);
12549 cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
12550 if (!cd) {
12551 SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
12552 SwigPyObject_clientdata.pytype = SwigPyObject_TypeOnce();
12553 } else if (SwigPyObject_TypeOnce()->tp_basicsize != cd->pytype->tp_basicsize) {
12554 PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
12555# if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12556 return NULL__null;
12557# else
12558 return;
12559# endif
12560 }
12561
12562 /* All objects have a 'this' attribute */
12563 this_descr = PyDescr_NewGetSet(SwigPyObject_type(), &this_getset_def);
12564 (void)this_descr;
12565
12566 /* All objects have a 'thisown' attribute */
12567 thisown_descr = PyDescr_NewGetSet(SwigPyObject_type(), &thisown_getset_def);
12568 (void)thisown_descr;
12569
12570 public_interface = PyList_New(0);
12571 public_symbol = 0;
12572 (void)public_symbol;
12573
12574 PyDict_SetItemString(md, "__all__", public_interface);
12575 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)
;
12576 for (i = 0; SwigMethods[i].ml_name != NULL__null; ++i)
12577 SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
12578 for (i = 0; swig_const_table[i].name != 0; ++i)
12579 SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
12580#endif
12581
12582 SWIG_InstallConstants(d,swig_const_table)SWIG_Python_InstallConstants(d, swig_const_table);
12583
12584 SWIG_Python_SetConstant(d, "GXmlNode_NT_DOCUMENT",SWIG_From_int(static_cast< int >(GXmlNode::NT_DOCUMENT)));
12585 SWIG_Python_SetConstant(d, "GXmlNode_NT_ELEMENT",SWIG_From_int(static_cast< int >(GXmlNode::NT_ELEMENT)));
12586 SWIG_Python_SetConstant(d, "GXmlNode_NT_COMMENT",SWIG_From_int(static_cast< int >(GXmlNode::NT_COMMENT)));
12587 SWIG_Python_SetConstant(d, "GXmlNode_NT_UNKNOWN",SWIG_From_int(static_cast< int >(GXmlNode::NT_UNKNOWN)));
12588 SWIG_Python_SetConstant(d, "GXmlNode_NT_TEXT",SWIG_From_int(static_cast< int >(GXmlNode::NT_TEXT)));
12589 SWIG_Python_SetConstant(d, "GXmlNode_NT_DECLARATION",SWIG_From_int(static_cast< int >(GXmlNode::NT_DECLARATION)));
12590 SWIG_Python_SetConstant(d, "GXmlNode_NT_PI",SWIG_From_int(static_cast< int >(GXmlNode::NT_PI)));
12591 SWIG_Python_SetConstant(d, "GXmlNode_NT_TYPECOUNT",SWIG_From_int(static_cast< int >(GXmlNode::NT_TYPECOUNT)));
12592#if PY_VERSION_HEX((2 << 24) | (7 << 16) | (6 << 8) | (0xF <<
4) | (0 << 0))
>= 0x03000000
12593 return m;
12594#else
12595 return;
12596#endif
12597}
12598