1 /* ----------------------------------------------------------------------------
2  * This file was automatically generated by SWIG (http://www.swig.org).
3  * Version 3.0.6
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 SWIGRUBY
12 
13 
14 #ifdef __cplusplus
15 /* SwigValueWrapper is described in swig.swg */
16 template<typename T> class SwigValueWrapper {
17   struct SwigMovePointer {
18     T *ptr;
SwigMovePointerSwigValueWrapper::SwigMovePointer19     SwigMovePointer(T *p) : ptr(p) { }
~SwigMovePointerSwigValueWrapper::SwigMovePointer20     ~SwigMovePointer() { delete ptr; }
operator =SwigValueWrapper::SwigMovePointer21     SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
22   } pointer;
23   SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
24   SwigValueWrapper(const SwigValueWrapper<T>& rhs);
25 public:
SwigValueWrapper()26   SwigValueWrapper() : pointer(0) { }
operator =(const T & t)27   SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
operator T&() const28   operator T&() const { return *pointer.ptr; }
operator &()29   T *operator&() { return pointer.ptr; }
30 };
31 
SwigValueInit()32 template <typename T> T SwigValueInit() {
33   return T();
34 }
35 #endif
36 
37 /* -----------------------------------------------------------------------------
38  *  This section contains generic SWIG labels for method/variable
39  *  declarations/attributes, and other compiler dependent labels.
40  * ----------------------------------------------------------------------------- */
41 
42 /* template workaround for compilers that cannot correctly implement the C++ standard */
43 #ifndef SWIGTEMPLATEDISAMBIGUATOR
44 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
45 #  define SWIGTEMPLATEDISAMBIGUATOR template
46 # elif defined(__HP_aCC)
47 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
48 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
49 #  define SWIGTEMPLATEDISAMBIGUATOR template
50 # else
51 #  define SWIGTEMPLATEDISAMBIGUATOR
52 # endif
53 #endif
54 
55 /* inline attribute */
56 #ifndef SWIGINLINE
57 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
58 #   define SWIGINLINE inline
59 # else
60 #   define SWIGINLINE
61 # endif
62 #endif
63 
64 /* attribute recognised by some compilers to avoid 'unused' warnings */
65 #ifndef SWIGUNUSED
66 # if defined(__GNUC__)
67 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
68 #     define SWIGUNUSED __attribute__ ((__unused__))
69 #   else
70 #     define SWIGUNUSED
71 #   endif
72 # elif defined(__ICC)
73 #   define SWIGUNUSED __attribute__ ((__unused__))
74 # else
75 #   define SWIGUNUSED
76 # endif
77 #endif
78 
79 #ifndef SWIG_MSC_UNSUPPRESS_4505
80 # if defined(_MSC_VER)
81 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
82 # endif
83 #endif
84 
85 #ifndef SWIGUNUSEDPARM
86 # ifdef __cplusplus
87 #   define SWIGUNUSEDPARM(p)
88 # else
89 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
90 # endif
91 #endif
92 
93 /* internal SWIG method */
94 #ifndef SWIGINTERN
95 # define SWIGINTERN static SWIGUNUSED
96 #endif
97 
98 /* internal inline SWIG method */
99 #ifndef SWIGINTERNINLINE
100 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
101 #endif
102 
103 /* exporting methods */
104 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
105 #  ifndef GCC_HASCLASSVISIBILITY
106 #    define GCC_HASCLASSVISIBILITY
107 #  endif
108 #endif
109 
110 #ifndef SWIGEXPORT
111 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
112 #   if defined(STATIC_LINKED)
113 #     define SWIGEXPORT
114 #   else
115 #     define SWIGEXPORT __declspec(dllexport)
116 #   endif
117 # else
118 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
119 #     define SWIGEXPORT __attribute__ ((visibility("default")))
120 #   else
121 #     define SWIGEXPORT
122 #   endif
123 # endif
124 #endif
125 
126 /* calling conventions for Windows */
127 #ifndef SWIGSTDCALL
128 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
129 #   define SWIGSTDCALL __stdcall
130 # else
131 #   define SWIGSTDCALL
132 # endif
133 #endif
134 
135 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
136 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
137 # define _CRT_SECURE_NO_DEPRECATE
138 #endif
139 
140 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
141 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
142 # define _SCL_SECURE_NO_DEPRECATE
143 #endif
144 
145 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
146 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
147 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
148 #endif
149 
150 /* Intel's compiler complains if a variable which was never initialised is
151  * cast to void, which is a common idiom which we use to indicate that we
152  * are aware a variable isn't used.  So we just silence that warning.
153  * See: https://github.com/swig/swig/issues/192 for more discussion.
154  */
155 #ifdef __INTEL_COMPILER
156 # pragma warning disable 592
157 #endif
158 
159 /* -----------------------------------------------------------------------------
160  *  This section contains generic SWIG labels for method/variable
161  *  declarations/attributes, and other compiler dependent labels.
162  * ----------------------------------------------------------------------------- */
163 
164 /* template workaround for compilers that cannot correctly implement the C++ standard */
165 #ifndef SWIGTEMPLATEDISAMBIGUATOR
166 # if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
167 #  define SWIGTEMPLATEDISAMBIGUATOR template
168 # elif defined(__HP_aCC)
169 /* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
170 /* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
171 #  define SWIGTEMPLATEDISAMBIGUATOR template
172 # else
173 #  define SWIGTEMPLATEDISAMBIGUATOR
174 # endif
175 #endif
176 
177 /* inline attribute */
178 #ifndef SWIGINLINE
179 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
180 #   define SWIGINLINE inline
181 # else
182 #   define SWIGINLINE
183 # endif
184 #endif
185 
186 /* attribute recognised by some compilers to avoid 'unused' warnings */
187 #ifndef SWIGUNUSED
188 # if defined(__GNUC__)
189 #   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
190 #     define SWIGUNUSED __attribute__ ((__unused__))
191 #   else
192 #     define SWIGUNUSED
193 #   endif
194 # elif defined(__ICC)
195 #   define SWIGUNUSED __attribute__ ((__unused__))
196 # else
197 #   define SWIGUNUSED
198 # endif
199 #endif
200 
201 #ifndef SWIG_MSC_UNSUPPRESS_4505
202 # if defined(_MSC_VER)
203 #   pragma warning(disable : 4505) /* unreferenced local function has been removed */
204 # endif
205 #endif
206 
207 #ifndef SWIGUNUSEDPARM
208 # ifdef __cplusplus
209 #   define SWIGUNUSEDPARM(p)
210 # else
211 #   define SWIGUNUSEDPARM(p) p SWIGUNUSED
212 # endif
213 #endif
214 
215 /* internal SWIG method */
216 #ifndef SWIGINTERN
217 # define SWIGINTERN static SWIGUNUSED
218 #endif
219 
220 /* internal inline SWIG method */
221 #ifndef SWIGINTERNINLINE
222 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
223 #endif
224 
225 /* exporting methods */
226 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
227 #  ifndef GCC_HASCLASSVISIBILITY
228 #    define GCC_HASCLASSVISIBILITY
229 #  endif
230 #endif
231 
232 #ifndef SWIGEXPORT
233 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
234 #   if defined(STATIC_LINKED)
235 #     define SWIGEXPORT
236 #   else
237 #     define SWIGEXPORT __declspec(dllexport)
238 #   endif
239 # else
240 #   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
241 #     define SWIGEXPORT __attribute__ ((visibility("default")))
242 #   else
243 #     define SWIGEXPORT
244 #   endif
245 # endif
246 #endif
247 
248 /* calling conventions for Windows */
249 #ifndef SWIGSTDCALL
250 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
251 #   define SWIGSTDCALL __stdcall
252 # else
253 #   define SWIGSTDCALL
254 # endif
255 #endif
256 
257 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
258 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
259 # define _CRT_SECURE_NO_DEPRECATE
260 #endif
261 
262 /* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
263 #if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
264 # define _SCL_SECURE_NO_DEPRECATE
265 #endif
266 
267 /* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
268 #if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
269 # define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
270 #endif
271 
272 /* Intel's compiler complains if a variable which was never initialised is
273  * cast to void, which is a common idiom which we use to indicate that we
274  * are aware a variable isn't used.  So we just silence that warning.
275  * See: https://github.com/swig/swig/issues/192 for more discussion.
276  */
277 #ifdef __INTEL_COMPILER
278 # pragma warning disable 592
279 #endif
280 
281 /* -----------------------------------------------------------------------------
282  * swigrun.swg
283  *
284  * This file contains generic C API SWIG runtime support for pointer
285  * type checking.
286  * ----------------------------------------------------------------------------- */
287 
288 /* This should only be incremented when either the layout of swig_type_info changes,
289    or for whatever reason, the runtime changes incompatibly */
290 #define SWIG_RUNTIME_VERSION "4"
291 
292 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
293 #ifdef SWIG_TYPE_TABLE
294 # define SWIG_QUOTE_STRING(x) #x
295 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
296 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
297 #else
298 # define SWIG_TYPE_TABLE_NAME
299 #endif
300 
301 /*
302   You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
303   creating a static or dynamic library from the SWIG runtime code.
304   In 99.9% of the cases, SWIG just needs to declare them as 'static'.
305 
306   But only do this if strictly necessary, ie, if you have problems
307   with your compiler or suchlike.
308 */
309 
310 #ifndef SWIGRUNTIME
311 # define SWIGRUNTIME SWIGINTERN
312 #endif
313 
314 #ifndef SWIGRUNTIMEINLINE
315 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
316 #endif
317 
318 /*  Generic buffer size */
319 #ifndef SWIG_BUFFER_SIZE
320 # define SWIG_BUFFER_SIZE 1024
321 #endif
322 
323 /* Flags for pointer conversions */
324 #define SWIG_POINTER_DISOWN        0x1
325 #define SWIG_CAST_NEW_MEMORY       0x2
326 
327 /* Flags for new pointer objects */
328 #define SWIG_POINTER_OWN           0x1
329 
330 
331 /*
332    Flags/methods for returning states.
333 
334    The SWIG conversion methods, as ConvertPtr, return an integer
335    that tells if the conversion was successful or not. And if not,
336    an error code can be returned (see swigerrors.swg for the codes).
337 
338    Use the following macros/flags to set or process the returning
339    states.
340 
341    In old versions of SWIG, code such as the following was usually written:
342 
343      if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
344        // success code
345      } else {
346        //fail code
347      }
348 
349    Now you can be more explicit:
350 
351     int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
352     if (SWIG_IsOK(res)) {
353       // success code
354     } else {
355       // fail code
356     }
357 
358    which is the same really, but now you can also do
359 
360     Type *ptr;
361     int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
362     if (SWIG_IsOK(res)) {
363       // success code
364       if (SWIG_IsNewObj(res) {
365         ...
366 	delete *ptr;
367       } else {
368         ...
369       }
370     } else {
371       // fail code
372     }
373 
374    I.e., now SWIG_ConvertPtr can return new objects and you can
375    identify the case and take care of the deallocation. Of course that
376    also requires SWIG_ConvertPtr to return new result values, such as
377 
378       int SWIG_ConvertPtr(obj, ptr,...) {
379         if (<obj is ok>) {
380           if (<need new object>) {
381             *ptr = <ptr to new allocated object>;
382             return SWIG_NEWOBJ;
383           } else {
384             *ptr = <ptr to old object>;
385             return SWIG_OLDOBJ;
386           }
387         } else {
388           return SWIG_BADOBJ;
389         }
390       }
391 
392    Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
393    more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
394    SWIG errors code.
395 
396    Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
397    allows to return the 'cast rank', for example, if you have this
398 
399        int food(double)
400        int fooi(int);
401 
402    and you call
403 
404       food(1)   // cast rank '1'  (1 -> 1.0)
405       fooi(1)   // cast rank '0'
406 
407    just use the SWIG_AddCast()/SWIG_CheckState()
408 */
409 
410 #define SWIG_OK                    (0)
411 #define SWIG_ERROR                 (-1)
412 #define SWIG_IsOK(r)               (r >= 0)
413 #define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)
414 
415 /* The CastRankLimit says how many bits are used for the cast rank */
416 #define SWIG_CASTRANKLIMIT         (1 << 8)
417 /* The NewMask denotes the object was created (using new/malloc) */
418 #define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
419 /* The TmpMask is for in/out typemaps that use temporal objects */
420 #define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
421 /* Simple returning values */
422 #define SWIG_BADOBJ                (SWIG_ERROR)
423 #define SWIG_OLDOBJ                (SWIG_OK)
424 #define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
425 #define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
426 /* Check, add and del mask methods */
427 #define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
428 #define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
429 #define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
430 #define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
431 #define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
432 #define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
433 
434 /* Cast-Rank Mode */
435 #if defined(SWIG_CASTRANK_MODE)
436 #  ifndef SWIG_TypeRank
437 #    define SWIG_TypeRank             unsigned long
438 #  endif
439 #  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
440 #    define SWIG_MAXCASTRANK          (2)
441 #  endif
442 #  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
443 #  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIG_AddCast(int r)444 SWIGINTERNINLINE int SWIG_AddCast(int r) {
445   return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
446 }
SWIG_CheckState(int r)447 SWIGINTERNINLINE int SWIG_CheckState(int r) {
448   return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
449 }
450 #else /* no cast-rank mode */
451 #  define SWIG_AddCast(r) (r)
452 #  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
453 #endif
454 
455 
456 #include <string.h>
457 
458 #ifdef __cplusplus
459 extern "C" {
460 #endif
461 
462 typedef void *(*swig_converter_func)(void *, int *);
463 typedef struct swig_type_info *(*swig_dycast_func)(void **);
464 
465 /* Structure to store information on one type */
466 typedef struct swig_type_info {
467   const char             *name;			/* mangled name of this type */
468   const char             *str;			/* human readable name of this type */
469   swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
470   struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
471   void                   *clientdata;		/* language specific type data */
472   int                    owndata;		/* flag if the structure owns the clientdata */
473 } swig_type_info;
474 
475 /* Structure to store a type and conversion function used for casting */
476 typedef struct swig_cast_info {
477   swig_type_info         *type;			/* pointer to type that is equivalent to this type */
478   swig_converter_func     converter;		/* function to cast the void pointers */
479   struct swig_cast_info  *next;			/* pointer to next cast in linked list */
480   struct swig_cast_info  *prev;			/* pointer to the previous cast */
481 } swig_cast_info;
482 
483 /* Structure used to store module information
484  * Each module generates one structure like this, and the runtime collects
485  * all of these structures and stores them in a circularly linked list.*/
486 typedef struct swig_module_info {
487   swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
488   size_t                 size;		        /* Number of types in this module */
489   struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
490   swig_type_info         **type_initial;	/* Array of initially generated type structures */
491   swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
492   void                    *clientdata;		/* Language specific module data */
493 } swig_module_info;
494 
495 /*
496   Compare two type names skipping the space characters, therefore
497   "char*" == "char *" and "Class<int>" == "Class<int >", etc.
498 
499   Return 0 when the two name types are equivalent, as in
500   strncmp, but skipping ' '.
501 */
502 SWIGRUNTIME int
SWIG_TypeNameComp(const char * f1,const char * l1,const char * f2,const char * l2)503 SWIG_TypeNameComp(const char *f1, const char *l1,
504 		  const char *f2, const char *l2) {
505   for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
506     while ((*f1 == ' ') && (f1 != l1)) ++f1;
507     while ((*f2 == ' ') && (f2 != l2)) ++f2;
508     if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
509   }
510   return (int)((l1 - f1) - (l2 - f2));
511 }
512 
513 /*
514   Check type equivalence in a name list like <name1>|<name2>|...
515   Return 0 if equal, -1 if nb < tb, 1 if nb > tb
516 */
517 SWIGRUNTIME int
SWIG_TypeCmp(const char * nb,const char * tb)518 SWIG_TypeCmp(const char *nb, const char *tb) {
519   int equiv = 1;
520   const char* te = tb + strlen(tb);
521   const char* ne = nb;
522   while (equiv != 0 && *ne) {
523     for (nb = ne; *ne; ++ne) {
524       if (*ne == '|') break;
525     }
526     equiv = SWIG_TypeNameComp(nb, ne, tb, te);
527     if (*ne) ++ne;
528   }
529   return equiv;
530 }
531 
532 /*
533   Check type equivalence in a name list like <name1>|<name2>|...
534   Return 0 if not equal, 1 if equal
535 */
536 SWIGRUNTIME int
SWIG_TypeEquiv(const char * nb,const char * tb)537 SWIG_TypeEquiv(const char *nb, const char *tb) {
538   return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
539 }
540 
541 /*
542   Check the typename
543 */
544 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char * c,swig_type_info * ty)545 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
546   if (ty) {
547     swig_cast_info *iter = ty->cast;
548     while (iter) {
549       if (strcmp(iter->type->name, c) == 0) {
550         if (iter == ty->cast)
551           return iter;
552         /* Move iter to the top of the linked list */
553         iter->prev->next = iter->next;
554         if (iter->next)
555           iter->next->prev = iter->prev;
556         iter->next = ty->cast;
557         iter->prev = 0;
558         if (ty->cast) ty->cast->prev = iter;
559         ty->cast = iter;
560         return iter;
561       }
562       iter = iter->next;
563     }
564   }
565   return 0;
566 }
567 
568 /*
569   Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
570 */
571 SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info * from,swig_type_info * ty)572 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
573   if (ty) {
574     swig_cast_info *iter = ty->cast;
575     while (iter) {
576       if (iter->type == from) {
577         if (iter == ty->cast)
578           return iter;
579         /* Move iter to the top of the linked list */
580         iter->prev->next = iter->next;
581         if (iter->next)
582           iter->next->prev = iter->prev;
583         iter->next = ty->cast;
584         iter->prev = 0;
585         if (ty->cast) ty->cast->prev = iter;
586         ty->cast = iter;
587         return iter;
588       }
589       iter = iter->next;
590     }
591   }
592   return 0;
593 }
594 
595 /*
596   Cast a pointer up an inheritance hierarchy
597 */
598 SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info * ty,void * ptr,int * newmemory)599 SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
600   return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
601 }
602 
603 /*
604    Dynamic pointer casting. Down an inheritance hierarchy
605 */
606 SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info * ty,void ** ptr)607 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
608   swig_type_info *lastty = ty;
609   if (!ty || !ty->dcast) return ty;
610   while (ty && (ty->dcast)) {
611     ty = (*ty->dcast)(ptr);
612     if (ty) lastty = ty;
613   }
614   return lastty;
615 }
616 
617 /*
618   Return the name associated with this type
619 */
620 SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info * ty)621 SWIG_TypeName(const swig_type_info *ty) {
622   return ty->name;
623 }
624 
625 /*
626   Return the pretty name associated with this type,
627   that is an unmangled type name in a form presentable to the user.
628 */
629 SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info * type)630 SWIG_TypePrettyName(const swig_type_info *type) {
631   /* The "str" field contains the equivalent pretty names of the
632      type, separated by vertical-bar characters.  We choose
633      to print the last name, as it is often (?) the most
634      specific. */
635   if (!type) return NULL;
636   if (type->str != NULL) {
637     const char *last_name = type->str;
638     const char *s;
639     for (s = type->str; *s; s++)
640       if (*s == '|') last_name = s+1;
641     return last_name;
642   }
643   else
644     return type->name;
645 }
646 
647 /*
648    Set the clientdata field for a type
649 */
650 SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info * ti,void * clientdata)651 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
652   swig_cast_info *cast = ti->cast;
653   /* if (ti->clientdata == clientdata) return; */
654   ti->clientdata = clientdata;
655 
656   while (cast) {
657     if (!cast->converter) {
658       swig_type_info *tc = cast->type;
659       if (!tc->clientdata) {
660 	SWIG_TypeClientData(tc, clientdata);
661       }
662     }
663     cast = cast->next;
664   }
665 }
666 SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info * ti,void * clientdata)667 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
668   SWIG_TypeClientData(ti, clientdata);
669   ti->owndata = 1;
670 }
671 
672 /*
673   Search for a swig_type_info structure only by mangled name
674   Search is a O(log #types)
675 
676   We start searching at module start, and finish searching when start == end.
677   Note: if start == end at the beginning of the function, we go all the way around
678   the circular list.
679 */
680 SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)681 SWIG_MangledTypeQueryModule(swig_module_info *start,
682                             swig_module_info *end,
683 		            const char *name) {
684   swig_module_info *iter = start;
685   do {
686     if (iter->size) {
687       size_t l = 0;
688       size_t r = iter->size - 1;
689       do {
690 	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
691 	size_t i = (l + r) >> 1;
692 	const char *iname = iter->types[i]->name;
693 	if (iname) {
694 	  int compare = strcmp(name, iname);
695 	  if (compare == 0) {
696 	    return iter->types[i];
697 	  } else if (compare < 0) {
698 	    if (i) {
699 	      r = i - 1;
700 	    } else {
701 	      break;
702 	    }
703 	  } else if (compare > 0) {
704 	    l = i + 1;
705 	  }
706 	} else {
707 	  break; /* should never happen */
708 	}
709       } while (l <= r);
710     }
711     iter = iter->next;
712   } while (iter != end);
713   return 0;
714 }
715 
716 /*
717   Search for a swig_type_info structure for either a mangled name or a human readable name.
718   It first searches the mangled names of the types, which is a O(log #types)
719   If a type is not found it then searches the human readable names, which is O(#types).
720 
721   We start searching at module start, and finish searching when start == end.
722   Note: if start == end at the beginning of the function, we go all the way around
723   the circular list.
724 */
725 SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info * start,swig_module_info * end,const char * name)726 SWIG_TypeQueryModule(swig_module_info *start,
727                      swig_module_info *end,
728 		     const char *name) {
729   /* STEP 1: Search the name field using binary search */
730   swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
731   if (ret) {
732     return ret;
733   } else {
734     /* STEP 2: If the type hasn't been found, do a complete search
735        of the str field (the human readable name) */
736     swig_module_info *iter = start;
737     do {
738       size_t i = 0;
739       for (; i < iter->size; ++i) {
740 	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
741 	  return iter->types[i];
742       }
743       iter = iter->next;
744     } while (iter != end);
745   }
746 
747   /* neither found a match */
748   return 0;
749 }
750 
751 /*
752    Pack binary data into a string
753 */
754 SWIGRUNTIME char *
SWIG_PackData(char * c,void * ptr,size_t sz)755 SWIG_PackData(char *c, void *ptr, size_t sz) {
756   static const char hex[17] = "0123456789abcdef";
757   const unsigned char *u = (unsigned char *) ptr;
758   const unsigned char *eu =  u + sz;
759   for (; u != eu; ++u) {
760     unsigned char uu = *u;
761     *(c++) = hex[(uu & 0xf0) >> 4];
762     *(c++) = hex[uu & 0xf];
763   }
764   return c;
765 }
766 
767 /*
768    Unpack binary data from a string
769 */
770 SWIGRUNTIME const char *
SWIG_UnpackData(const char * c,void * ptr,size_t sz)771 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
772   unsigned char *u = (unsigned char *) ptr;
773   const unsigned char *eu = u + sz;
774   for (; u != eu; ++u) {
775     char d = *(c++);
776     unsigned char uu;
777     if ((d >= '0') && (d <= '9'))
778       uu = ((d - '0') << 4);
779     else if ((d >= 'a') && (d <= 'f'))
780       uu = ((d - ('a'-10)) << 4);
781     else
782       return (char *) 0;
783     d = *(c++);
784     if ((d >= '0') && (d <= '9'))
785       uu |= (d - '0');
786     else if ((d >= 'a') && (d <= 'f'))
787       uu |= (d - ('a'-10));
788     else
789       return (char *) 0;
790     *u = uu;
791   }
792   return c;
793 }
794 
795 /*
796    Pack 'void *' into a string buffer.
797 */
798 SWIGRUNTIME char *
SWIG_PackVoidPtr(char * buff,void * ptr,const char * name,size_t bsz)799 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
800   char *r = buff;
801   if ((2*sizeof(void *) + 2) > bsz) return 0;
802   *(r++) = '_';
803   r = SWIG_PackData(r,&ptr,sizeof(void *));
804   if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
805   strcpy(r,name);
806   return buff;
807 }
808 
809 SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char * c,void ** ptr,const char * name)810 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
811   if (*c != '_') {
812     if (strcmp(c,"NULL") == 0) {
813       *ptr = (void *) 0;
814       return name;
815     } else {
816       return 0;
817     }
818   }
819   return SWIG_UnpackData(++c,ptr,sizeof(void *));
820 }
821 
822 SWIGRUNTIME char *
SWIG_PackDataName(char * buff,void * ptr,size_t sz,const char * name,size_t bsz)823 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
824   char *r = buff;
825   size_t lname = (name ? strlen(name) : 0);
826   if ((2*sz + 2 + lname) > bsz) return 0;
827   *(r++) = '_';
828   r = SWIG_PackData(r,ptr,sz);
829   if (lname) {
830     strncpy(r,name,lname+1);
831   } else {
832     *r = 0;
833   }
834   return buff;
835 }
836 
837 SWIGRUNTIME const char *
SWIG_UnpackDataName(const char * c,void * ptr,size_t sz,const char * name)838 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
839   if (*c != '_') {
840     if (strcmp(c,"NULL") == 0) {
841       memset(ptr,0,sz);
842       return name;
843     } else {
844       return 0;
845     }
846   }
847   return SWIG_UnpackData(++c,ptr,sz);
848 }
849 
850 #ifdef __cplusplus
851 }
852 #endif
853 
854 /*  Errors in SWIG */
855 #define  SWIG_UnknownError    	   -1
856 #define  SWIG_IOError        	   -2
857 #define  SWIG_RuntimeError   	   -3
858 #define  SWIG_IndexError     	   -4
859 #define  SWIG_TypeError      	   -5
860 #define  SWIG_DivisionByZero 	   -6
861 #define  SWIG_OverflowError  	   -7
862 #define  SWIG_SyntaxError    	   -8
863 #define  SWIG_ValueError     	   -9
864 #define  SWIG_SystemError    	   -10
865 #define  SWIG_AttributeError 	   -11
866 #define  SWIG_MemoryError    	   -12
867 #define  SWIG_NullReferenceError   -13
868 
869 
870 
871 #include <ruby.h>
872 
873 /* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
874  * breaks using rb_intern as an lvalue, as SWIG does.  We work around this
875  * issue for now by disabling this.
876  * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
877  */
878 #ifdef rb_intern
879 # undef rb_intern
880 #endif
881 
882 /* Remove global macros defined in Ruby's win32.h */
883 #ifdef write
884 # undef write
885 #endif
886 #ifdef read
887 # undef read
888 #endif
889 #ifdef bind
890 # undef bind
891 #endif
892 #ifdef close
893 # undef close
894 #endif
895 #ifdef connect
896 # undef connect
897 #endif
898 
899 
900 /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
901 #ifndef NUM2LL
902 #define NUM2LL(x) NUM2LONG((x))
903 #endif
904 #ifndef LL2NUM
905 #define LL2NUM(x) INT2NUM((long) (x))
906 #endif
907 #ifndef ULL2NUM
908 #define ULL2NUM(x) UINT2NUM((unsigned long) (x))
909 #endif
910 
911 /* Ruby 1.7 doesn't (yet) define NUM2ULL() */
912 #ifndef NUM2ULL
913 #ifdef HAVE_LONG_LONG
914 #define NUM2ULL(x) rb_num2ull((x))
915 #else
916 #define NUM2ULL(x) NUM2ULONG(x)
917 #endif
918 #endif
919 
920 /* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
921 /* Define these for older versions so we can just write code the new way */
922 #ifndef RSTRING_LEN
923 # define RSTRING_LEN(x) RSTRING(x)->len
924 #endif
925 #ifndef RSTRING_PTR
926 # define RSTRING_PTR(x) RSTRING(x)->ptr
927 #endif
928 #ifndef RSTRING_END
929 # define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
930 #endif
931 #ifndef RARRAY_LEN
932 # define RARRAY_LEN(x) RARRAY(x)->len
933 #endif
934 #ifndef RARRAY_PTR
935 # define RARRAY_PTR(x) RARRAY(x)->ptr
936 #endif
937 #ifndef RFLOAT_VALUE
938 # define RFLOAT_VALUE(x) RFLOAT(x)->value
939 #endif
940 #ifndef DOUBLE2NUM
941 # define DOUBLE2NUM(x) rb_float_new(x)
942 #endif
943 #ifndef RHASH_TBL
944 # define RHASH_TBL(x) (RHASH(x)->tbl)
945 #endif
946 #ifndef RHASH_ITER_LEV
947 # define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
948 #endif
949 #ifndef RHASH_IFNONE
950 # define RHASH_IFNONE(x) (RHASH(x)->ifnone)
951 #endif
952 #ifndef RHASH_SIZE
953 # define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
954 #endif
955 #ifndef RHASH_EMPTY_P
956 # define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
957 #endif
958 #ifndef RSTRUCT_LEN
959 # define RSTRUCT_LEN(x) RSTRUCT(x)->len
960 #endif
961 #ifndef RSTRUCT_PTR
962 # define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
963 #endif
964 
965 
966 
967 /*
968  * Need to be very careful about how these macros are defined, especially
969  * when compiling C++ code or C code with an ANSI C compiler.
970  *
971  * VALUEFUNC(f) is a macro used to typecast a C function that implements
972  * a Ruby method so that it can be passed as an argument to API functions
973  * like rb_define_method() and rb_define_singleton_method().
974  *
975  * VOIDFUNC(f) is a macro used to typecast a C function that implements
976  * either the "mark" or "free" stuff for a Ruby Data object, so that it
977  * can be passed as an argument to API functions like Data_Wrap_Struct()
978  * and Data_Make_Struct().
979  */
980 
981 #ifdef __cplusplus
982 #  ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
983 #    define PROTECTFUNC(f) ((VALUE (*)()) f)
984 #    define VALUEFUNC(f) ((VALUE (*)()) f)
985 #    define VOIDFUNC(f)  ((void (*)()) f)
986 #  else
987 #    ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
988 #      define PROTECTFUNC(f) ((VALUE (*)()) f)
989 #      define VALUEFUNC(f) ((VALUE (*)()) f)
990 #      define VOIDFUNC(f)  ((RUBY_DATA_FUNC) f)
991 #    else /* These definitions should work for Ruby 1.7+ */
992 #      define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
993 #      define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
994 #      define VOIDFUNC(f)  ((RUBY_DATA_FUNC) f)
995 #    endif
996 #  endif
997 #else
998 #  define VALUEFUNC(f) (f)
999 #  define VOIDFUNC(f) (f)
1000 #endif
1001 
1002 /* Don't use for expressions have side effect */
1003 #ifndef RB_STRING_VALUE
1004 #define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
1005 #endif
1006 #ifndef StringValue
1007 #define StringValue(s) RB_STRING_VALUE(s)
1008 #endif
1009 #ifndef StringValuePtr
1010 #define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
1011 #endif
1012 #ifndef StringValueLen
1013 #define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
1014 #endif
1015 #ifndef SafeStringValue
1016 #define SafeStringValue(v) do {\
1017     StringValue(v);\
1018     rb_check_safe_str(v);\
1019 } while (0)
1020 #endif
1021 
1022 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
1023 #define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
1024 #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
1025 #endif
1026 
1027 static VALUE _mSWIG = Qnil;
1028 
1029 /* -----------------------------------------------------------------------------
1030  * error manipulation
1031  * ----------------------------------------------------------------------------- */
1032 
1033 
1034 /* Define some additional error types */
1035 #define SWIG_ObjectPreviouslyDeletedError  -100
1036 
1037 
1038 /* Define custom exceptions for errors that do not map to existing Ruby
1039    exceptions.  Note this only works for C++ since a global cannot be
1040    initialized by a function in C.  For C, fallback to rb_eRuntimeError.*/
1041 
1042 SWIGINTERN VALUE
getNullReferenceError(void)1043 getNullReferenceError(void) {
1044   static int init = 0;
1045   static VALUE rb_eNullReferenceError ;
1046   if (!init) {
1047     init = 1;
1048     rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
1049   }
1050   return rb_eNullReferenceError;
1051 }
1052 
1053 SWIGINTERN VALUE
getObjectPreviouslyDeletedError(void)1054 getObjectPreviouslyDeletedError(void) {
1055   static int init = 0;
1056   static VALUE rb_eObjectPreviouslyDeleted ;
1057   if (!init) {
1058     init = 1;
1059     rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
1060   }
1061   return rb_eObjectPreviouslyDeleted;
1062 }
1063 
1064 
1065 SWIGINTERN VALUE
SWIG_Ruby_ErrorType(int SWIG_code)1066 SWIG_Ruby_ErrorType(int SWIG_code) {
1067   VALUE type;
1068   switch (SWIG_code) {
1069   case SWIG_MemoryError:
1070     type = rb_eNoMemError;
1071     break;
1072   case SWIG_IOError:
1073     type = rb_eIOError;
1074     break;
1075   case SWIG_RuntimeError:
1076     type = rb_eRuntimeError;
1077     break;
1078   case SWIG_IndexError:
1079     type = rb_eIndexError;
1080     break;
1081   case SWIG_TypeError:
1082     type = rb_eTypeError;
1083     break;
1084   case SWIG_DivisionByZero:
1085     type = rb_eZeroDivError;
1086     break;
1087   case SWIG_OverflowError:
1088     type = rb_eRangeError;
1089     break;
1090   case SWIG_SyntaxError:
1091     type = rb_eSyntaxError;
1092     break;
1093   case SWIG_ValueError:
1094     type = rb_eArgError;
1095     break;
1096   case SWIG_SystemError:
1097     type = rb_eFatal;
1098     break;
1099   case SWIG_AttributeError:
1100     type = rb_eRuntimeError;
1101     break;
1102   case SWIG_NullReferenceError:
1103     type = getNullReferenceError();
1104     break;
1105   case SWIG_ObjectPreviouslyDeletedError:
1106     type = getObjectPreviouslyDeletedError();
1107     break;
1108   case SWIG_UnknownError:
1109     type = rb_eRuntimeError;
1110     break;
1111   default:
1112     type = rb_eRuntimeError;
1113   }
1114   return type;
1115 }
1116 
1117 
1118 /* This function is called when a user inputs a wrong argument to
1119    a method.
1120  */
1121 SWIGINTERN
Ruby_Format_TypeError(const char * msg,const char * type,const char * name,const int argn,VALUE input)1122 const char* Ruby_Format_TypeError( const char* msg,
1123 				   const char* type,
1124 				   const char* name,
1125 				   const int argn,
1126 				   VALUE input )
1127 {
1128   char buf[128];
1129   VALUE str;
1130   VALUE asStr;
1131   if ( msg && *msg )
1132     {
1133       str = rb_str_new2(msg);
1134     }
1135   else
1136     {
1137       str = rb_str_new(NULL, 0);
1138     }
1139 
1140   str = rb_str_cat2( str, "Expected argument " );
1141   sprintf( buf, "%d of type ", argn-1 );
1142   str = rb_str_cat2( str, buf );
1143   str = rb_str_cat2( str, type );
1144   str = rb_str_cat2( str, ", but got " );
1145   str = rb_str_cat2( str, rb_obj_classname(input) );
1146   str = rb_str_cat2( str, " " );
1147   asStr = rb_inspect(input);
1148   if ( RSTRING_LEN(asStr) > 30 )
1149     {
1150       str = rb_str_cat( str, StringValuePtr(asStr), 30 );
1151       str = rb_str_cat2( str, "..." );
1152     }
1153   else
1154     {
1155       str = rb_str_append( str, asStr );
1156     }
1157 
1158   if ( name )
1159     {
1160       str = rb_str_cat2( str, "\n\tin SWIG method '" );
1161       str = rb_str_cat2( str, name );
1162       str = rb_str_cat2( str, "'" );
1163     }
1164 
1165   return StringValuePtr( str );
1166 }
1167 
1168 /* This function is called when an overloaded method fails */
1169 SWIGINTERN
Ruby_Format_OverloadedError(const int argc,const int maxargs,const char * method,const char * prototypes)1170 void Ruby_Format_OverloadedError(
1171 				 const int argc,
1172 				 const int maxargs,
1173 				 const char* method,
1174 				 const char* prototypes
1175 				 )
1176 {
1177   const char* msg = "Wrong # of arguments";
1178   if ( argc <= maxargs ) msg = "Wrong arguments";
1179   rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"
1180 	   "Possible C/C++ prototypes are:\n%s",
1181 	   msg, method, prototypes);
1182 }
1183 
1184 /* -----------------------------------------------------------------------------
1185  * rubytracking.swg
1186  *
1187  * This file contains support for tracking mappings from
1188  * Ruby objects to C++ objects.  This functionality is needed
1189  * to implement mark functions for Ruby's mark and sweep
1190  * garbage collector.
1191  * ----------------------------------------------------------------------------- */
1192 
1193 #ifdef __cplusplus
1194 extern "C" {
1195 #endif
1196 
1197 /* Ruby 1.8 actually assumes the first case. */
1198 #if SIZEOF_VOIDP == SIZEOF_LONG
1199 #  define SWIG2NUM(v) LONG2NUM((unsigned long)v)
1200 #  define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
1201 #elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
1202 #  define SWIG2NUM(v) LL2NUM((unsigned long long)v)
1203 #  define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
1204 #else
1205 #  error sizeof(void*) is not the same as long or long long
1206 #endif
1207 
1208 
1209 /* Global Ruby hash table to store Trackings from C/C++
1210    structs to Ruby Objects.
1211 */
1212 static VALUE swig_ruby_trackings = Qnil;
1213 
1214 /* Global variable that stores a reference to the ruby
1215    hash table delete function. */
1216 static ID swig_ruby_hash_delete;
1217 
1218 /* Setup a Ruby hash table to store Trackings */
SWIG_RubyInitializeTrackings(void)1219 SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
1220   /* Create a ruby hash table to store Trackings from C++
1221      objects to Ruby objects. */
1222 
1223   /* Try to see if some other .so has already created a
1224      tracking hash table, which we keep hidden in an instance var
1225      in the SWIG module.
1226      This is done to allow multiple DSOs to share the same
1227      tracking table.
1228   */
1229   ID trackings_id = rb_intern( "@__trackings__" );
1230   VALUE verbose = rb_gv_get("VERBOSE");
1231   rb_gv_set("VERBOSE", Qfalse);
1232   swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
1233   rb_gv_set("VERBOSE", verbose);
1234 
1235   /* No, it hasn't.  Create one ourselves */
1236   if ( swig_ruby_trackings == Qnil )
1237     {
1238       swig_ruby_trackings = rb_hash_new();
1239       rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
1240     }
1241 
1242   /* Now store a reference to the hash table delete function
1243      so that we only have to look it up once.*/
1244   swig_ruby_hash_delete = rb_intern("delete");
1245 }
1246 
1247 /* Get a Ruby number to reference a pointer */
SWIG_RubyPtrToReference(void * ptr)1248 SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
1249   /* We cast the pointer to an unsigned long
1250      and then store a reference to it using
1251      a Ruby number object. */
1252 
1253   /* Convert the pointer to a Ruby number */
1254   return SWIG2NUM(ptr);
1255 }
1256 
1257 /* Get a Ruby number to reference an object */
SWIG_RubyObjectToReference(VALUE object)1258 SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
1259   /* We cast the object to an unsigned long
1260      and then store a reference to it using
1261      a Ruby number object. */
1262 
1263   /* Convert the Object to a Ruby number */
1264   return SWIG2NUM(object);
1265 }
1266 
1267 /* Get a Ruby object from a previously stored reference */
SWIG_RubyReferenceToObject(VALUE reference)1268 SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
1269   /* The provided Ruby number object is a reference
1270      to the Ruby object we want.*/
1271 
1272   /* Convert the Ruby number to a Ruby object */
1273   return NUM2SWIG(reference);
1274 }
1275 
1276 /* Add a Tracking from a C/C++ struct to a Ruby object */
SWIG_RubyAddTracking(void * ptr,VALUE object)1277 SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
1278   /* In a Ruby hash table we store the pointer and
1279      the associated Ruby object.  The trick here is
1280      that we cannot store the Ruby object directly - if
1281      we do then it cannot be garbage collected.  So
1282      instead we typecast it as a unsigned long and
1283      convert it to a Ruby number object.*/
1284 
1285   /* Get a reference to the pointer as a Ruby number */
1286   VALUE key = SWIG_RubyPtrToReference(ptr);
1287 
1288   /* Get a reference to the Ruby object as a Ruby number */
1289   VALUE value = SWIG_RubyObjectToReference(object);
1290 
1291   /* Store the mapping to the global hash table. */
1292   rb_hash_aset(swig_ruby_trackings, key, value);
1293 }
1294 
1295 /* Get the Ruby object that owns the specified C/C++ struct */
SWIG_RubyInstanceFor(void * ptr)1296 SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
1297   /* Get a reference to the pointer as a Ruby number */
1298   VALUE key = SWIG_RubyPtrToReference(ptr);
1299 
1300   /* Now lookup the value stored in the global hash table */
1301   VALUE value = rb_hash_aref(swig_ruby_trackings, key);
1302 
1303   if (value == Qnil) {
1304     /* No object exists - return nil. */
1305     return Qnil;
1306   }
1307   else {
1308     /* Convert this value to Ruby object */
1309     return SWIG_RubyReferenceToObject(value);
1310   }
1311 }
1312 
1313 /* Remove a Tracking from a C/C++ struct to a Ruby object.  It
1314    is very important to remove objects once they are destroyed
1315    since the same memory address may be reused later to create
1316    a new object. */
SWIG_RubyRemoveTracking(void * ptr)1317 SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
1318   /* Get a reference to the pointer as a Ruby number */
1319   VALUE key = SWIG_RubyPtrToReference(ptr);
1320 
1321   /* Delete the object from the hash table by calling Ruby's
1322      do this we need to call the Hash.delete method.*/
1323   rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
1324 }
1325 
1326 /* This is a helper method that unlinks a Ruby object from its
1327    underlying C++ object.  This is needed if the lifetime of the
1328    Ruby object is longer than the C++ object */
SWIG_RubyUnlinkObjects(void * ptr)1329 SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
1330   VALUE object = SWIG_RubyInstanceFor(ptr);
1331 
1332   if (object != Qnil) {
1333     DATA_PTR(object) = 0;
1334   }
1335 }
1336 
1337 
1338 #ifdef __cplusplus
1339 }
1340 #endif
1341 
1342 /* -----------------------------------------------------------------------------
1343  * Ruby API portion that goes into the runtime
1344  * ----------------------------------------------------------------------------- */
1345 
1346 #ifdef __cplusplus
1347 extern "C" {
1348 #endif
1349 
1350 SWIGINTERN VALUE
SWIG_Ruby_AppendOutput(VALUE target,VALUE o)1351 SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
1352   if (NIL_P(target)) {
1353     target = o;
1354   } else {
1355     if (TYPE(target) != T_ARRAY) {
1356       VALUE o2 = target;
1357       target = rb_ary_new();
1358       rb_ary_push(target, o2);
1359     }
1360     rb_ary_push(target, o);
1361   }
1362   return target;
1363 }
1364 
1365 /* For ruby1.8.4 and earlier. */
1366 #ifndef RUBY_INIT_STACK
1367    RUBY_EXTERN void Init_stack(VALUE* addr);
1368 #  define RUBY_INIT_STACK \
1369    VALUE variable_in_this_stack_frame; \
1370    Init_stack(&variable_in_this_stack_frame);
1371 #endif
1372 
1373 
1374 #ifdef __cplusplus
1375 }
1376 #endif
1377 
1378 
1379 /* -----------------------------------------------------------------------------
1380  * rubyrun.swg
1381  *
1382  * This file contains the runtime support for Ruby modules
1383  * and includes code for managing global variables and pointer
1384  * type checking.
1385  * ----------------------------------------------------------------------------- */
1386 
1387 /* For backward compatibility only */
1388 #define SWIG_POINTER_EXCEPTION  0
1389 
1390 /* for raw pointers */
1391 #define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
1392 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
1393 #define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Ruby_NewPointerObj(ptr, type, flags)
1394 #define SWIG_AcquirePtr(ptr, own)                       SWIG_Ruby_AcquirePtr(ptr, own)
1395 #define swig_owntype                                    ruby_owntype
1396 
1397 /* for raw packed data */
1398 #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
1399 #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Ruby_NewPackedObj(ptr, sz, type)
1400 
1401 /* for class or struct pointers */
1402 #define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
1403 #define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)
1404 
1405 /* for C or C++ function pointers */
1406 #define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_ConvertPtr(obj, pptr, type, 0)
1407 #define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_NewPointerObj(ptr, type, 0)
1408 
1409 /* for C++ member pointers, ie, member methods */
1410 #define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
1411 #define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Ruby_NewPackedObj(ptr, sz, type)
1412 
1413 
1414 /* Runtime API */
1415 
1416 #define SWIG_GetModule(clientdata)                      SWIG_Ruby_GetModule(clientdata)
1417 #define SWIG_SetModule(clientdata, pointer) 		SWIG_Ruby_SetModule(pointer)
1418 
1419 
1420 /* Error manipulation */
1421 
1422 #define SWIG_ErrorType(code)                            SWIG_Ruby_ErrorType(code)
1423 #define SWIG_Error(code, msg)            		rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
1424 #define SWIG_fail                        		goto fail
1425 
1426 
1427 /* Ruby-specific SWIG API */
1428 
1429 #define SWIG_InitRuntime()                              SWIG_Ruby_InitRuntime()
1430 #define SWIG_define_class(ty)                        	SWIG_Ruby_define_class(ty)
1431 #define SWIG_NewClassInstance(value, ty)             	SWIG_Ruby_NewClassInstance(value, ty)
1432 #define SWIG_MangleStr(value)                        	SWIG_Ruby_MangleStr(value)
1433 #define SWIG_CheckConvert(value, ty)                 	SWIG_Ruby_CheckConvert(value, ty)
1434 
1435 #include "assert.h"
1436 
1437 /* -----------------------------------------------------------------------------
1438  * pointers/data manipulation
1439  * ----------------------------------------------------------------------------- */
1440 
1441 #ifdef __cplusplus
1442 extern "C" {
1443 #endif
1444 
1445 typedef struct {
1446   VALUE klass;
1447   VALUE mImpl;
1448   void  (*mark)(void *);
1449   void  (*destroy)(void *);
1450   int trackObjects;
1451 } swig_class;
1452 
1453 
1454 /* Global pointer used to keep some internal SWIG stuff */
1455 static VALUE _cSWIG_Pointer = Qnil;
1456 static VALUE swig_runtime_data_type_pointer = Qnil;
1457 
1458 /* Global IDs used to keep some internal SWIG stuff */
1459 static ID swig_arity_id = 0;
1460 static ID swig_call_id  = 0;
1461 
1462 /*
1463   If your swig extension is to be run within an embedded ruby and has
1464   director callbacks, you should set -DRUBY_EMBEDDED during compilation.
1465   This will reset ruby's stack frame on each entry point from the main
1466   program the first time a virtual director function is invoked (in a
1467   non-recursive way).
1468   If this is not done, you run the risk of Ruby trashing the stack.
1469 */
1470 
1471 #ifdef RUBY_EMBEDDED
1472 
1473 #  define SWIG_INIT_STACK                            \
1474       if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
1475       ++swig_virtual_calls;
1476 #  define SWIG_RELEASE_STACK --swig_virtual_calls;
1477 #  define Ruby_DirectorTypeMismatchException(x) \
1478           rb_raise( rb_eTypeError, "%s", x ); return c_result;
1479 
1480       static unsigned int swig_virtual_calls = 0;
1481 
1482 #else  /* normal non-embedded extension */
1483 
1484 #  define SWIG_INIT_STACK
1485 #  define SWIG_RELEASE_STACK
1486 #  define Ruby_DirectorTypeMismatchException(x) \
1487           throw Swig::DirectorTypeMismatchException( x );
1488 
1489 #endif  /* RUBY_EMBEDDED */
1490 
1491 
1492 SWIGRUNTIME VALUE
getExceptionClass(void)1493 getExceptionClass(void) {
1494   static int init = 0;
1495   static VALUE rubyExceptionClass ;
1496   if (!init) {
1497     init = 1;
1498     rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
1499   }
1500   return rubyExceptionClass;
1501 }
1502 
1503 /* This code checks to see if the Ruby object being raised as part
1504    of an exception inherits from the Ruby class Exception.  If so,
1505    the object is simply returned.  If not, then a new Ruby exception
1506    object is created and that will be returned to Ruby.*/
1507 SWIGRUNTIME VALUE
SWIG_Ruby_ExceptionType(swig_type_info * desc,VALUE obj)1508 SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
1509   VALUE exceptionClass = getExceptionClass();
1510   if (rb_obj_is_kind_of(obj, exceptionClass)) {
1511     return obj;
1512   }  else {
1513     return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
1514   }
1515 }
1516 
1517 /* Initialize Ruby runtime support */
1518 SWIGRUNTIME void
SWIG_Ruby_InitRuntime(void)1519 SWIG_Ruby_InitRuntime(void)
1520 {
1521   if (_mSWIG == Qnil) {
1522     _mSWIG = rb_define_module("SWIG");
1523     swig_call_id  = rb_intern("call");
1524     swig_arity_id = rb_intern("arity");
1525   }
1526 }
1527 
1528 /* Define Ruby class for C type */
1529 SWIGRUNTIME void
SWIG_Ruby_define_class(swig_type_info * type)1530 SWIG_Ruby_define_class(swig_type_info *type)
1531 {
1532   char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1533   sprintf(klass_name, "TYPE%s", type->name);
1534   if (NIL_P(_cSWIG_Pointer)) {
1535     _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
1536     rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
1537   }
1538   rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
1539   free((void *) klass_name);
1540 }
1541 
1542 /* Create a new pointer object */
1543 SWIGRUNTIME VALUE
SWIG_Ruby_NewPointerObj(void * ptr,swig_type_info * type,int flags)1544 SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
1545 {
1546   int own =  flags & SWIG_POINTER_OWN;
1547   int track;
1548   char *klass_name;
1549   swig_class *sklass;
1550   VALUE klass;
1551   VALUE obj;
1552 
1553   if (!ptr)
1554     return Qnil;
1555 
1556   if (type->clientdata) {
1557     sklass = (swig_class *) type->clientdata;
1558 
1559     /* Are we tracking this class and have we already returned this Ruby object? */
1560     track = sklass->trackObjects;
1561     if (track) {
1562       obj = SWIG_RubyInstanceFor(ptr);
1563 
1564       /* Check the object's type and make sure it has the correct type.
1565         It might not in cases where methods do things like
1566         downcast methods. */
1567       if (obj != Qnil) {
1568         VALUE value = rb_iv_get(obj, "@__swigtype__");
1569         const char* type_name = RSTRING_PTR(value);
1570 
1571         if (strcmp(type->name, type_name) == 0) {
1572           return obj;
1573         }
1574       }
1575     }
1576 
1577     /* Create a new Ruby object */
1578     obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark),
1579 			   ( own ? VOIDFUNC(sklass->destroy) :
1580 			     (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
1581 			     ), ptr);
1582 
1583     /* If tracking is on for this class then track this object. */
1584     if (track) {
1585       SWIG_RubyAddTracking(ptr, obj);
1586     }
1587   } else {
1588     klass_name = (char *) malloc(4 + strlen(type->name) + 1);
1589     sprintf(klass_name, "TYPE%s", type->name);
1590     klass = rb_const_get(_mSWIG, rb_intern(klass_name));
1591     free((void *) klass_name);
1592     obj = Data_Wrap_Struct(klass, 0, 0, ptr);
1593   }
1594   rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1595 
1596   return obj;
1597 }
1598 
1599 /* Create a new class instance (always owned) */
1600 SWIGRUNTIME VALUE
SWIG_Ruby_NewClassInstance(VALUE klass,swig_type_info * type)1601 SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
1602 {
1603   VALUE obj;
1604   swig_class *sklass = (swig_class *) type->clientdata;
1605   obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
1606   rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
1607   return obj;
1608 }
1609 
1610 /* Get type mangle from class name */
1611 SWIGRUNTIMEINLINE char *
SWIG_Ruby_MangleStr(VALUE obj)1612 SWIG_Ruby_MangleStr(VALUE obj)
1613 {
1614   VALUE stype = rb_iv_get(obj, "@__swigtype__");
1615   return StringValuePtr(stype);
1616 }
1617 
1618 /* Acquire a pointer value */
1619 typedef void (*ruby_owntype)(void*);
1620 
1621 SWIGRUNTIME ruby_owntype
SWIG_Ruby_AcquirePtr(VALUE obj,ruby_owntype own)1622 SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
1623   if (obj) {
1624     ruby_owntype oldown = RDATA(obj)->dfree;
1625     RDATA(obj)->dfree = own;
1626     return oldown;
1627   } else {
1628     return 0;
1629   }
1630 }
1631 
1632 /* Convert a pointer value */
1633 SWIGRUNTIME int
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj,void ** ptr,swig_type_info * ty,int flags,ruby_owntype * own)1634 SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
1635 {
1636   char *c;
1637   swig_cast_info *tc;
1638   void *vptr = 0;
1639 
1640   /* Grab the pointer */
1641   if (NIL_P(obj)) {
1642     *ptr = 0;
1643     return SWIG_OK;
1644   } else {
1645     if (TYPE(obj) != T_DATA) {
1646       return SWIG_ERROR;
1647     }
1648     Data_Get_Struct(obj, void, vptr);
1649   }
1650 
1651   if (own) *own = RDATA(obj)->dfree;
1652 
1653   /* Check to see if the input object is giving up ownership
1654      of the underlying C struct or C++ object.  If so then we
1655      need to reset the destructor since the Ruby object no
1656      longer owns the underlying C++ object.*/
1657   if (flags & SWIG_POINTER_DISOWN) {
1658     /* Is tracking on for this class? */
1659     int track = 0;
1660     if (ty && ty->clientdata) {
1661       swig_class *sklass = (swig_class *) ty->clientdata;
1662       track = sklass->trackObjects;
1663     }
1664 
1665     if (track) {
1666       /* We are tracking objects for this class.  Thus we change the destructor
1667        * to SWIG_RubyRemoveTracking.  This allows us to
1668        * remove the mapping from the C++ to Ruby object
1669        * when the Ruby object is garbage collected.  If we don't
1670        * do this, then it is possible we will return a reference
1671        * to a Ruby object that no longer exists thereby crashing Ruby. */
1672       RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
1673     } else {
1674       RDATA(obj)->dfree = 0;
1675     }
1676   }
1677 
1678   /* Do type-checking if type info was provided */
1679   if (ty) {
1680     if (ty->clientdata) {
1681       if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
1682         if (vptr == 0) {
1683           /* The object has already been deleted */
1684           return SWIG_ObjectPreviouslyDeletedError;
1685         }
1686         *ptr = vptr;
1687         return SWIG_OK;
1688       }
1689     }
1690     if ((c = SWIG_MangleStr(obj)) == NULL) {
1691       return SWIG_ERROR;
1692     }
1693     tc = SWIG_TypeCheck(c, ty);
1694     if (!tc) {
1695       return SWIG_ERROR;
1696     } else {
1697       int newmemory = 0;
1698       *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
1699       assert(!newmemory); /* newmemory handling not yet implemented */
1700     }
1701   } else {
1702     *ptr = vptr;
1703   }
1704 
1705   return SWIG_OK;
1706 }
1707 
1708 /* Check convert */
1709 SWIGRUNTIMEINLINE int
SWIG_Ruby_CheckConvert(VALUE obj,swig_type_info * ty)1710 SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
1711 {
1712   char *c = SWIG_MangleStr(obj);
1713   if (!c) return 0;
1714   return SWIG_TypeCheck(c,ty) != 0;
1715 }
1716 
1717 SWIGRUNTIME VALUE
SWIG_Ruby_NewPackedObj(void * ptr,int sz,swig_type_info * type)1718 SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
1719   char result[1024];
1720   char *r = result;
1721   if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
1722   *(r++) = '_';
1723   r = SWIG_PackData(r, ptr, sz);
1724   strcpy(r, type->name);
1725   return rb_str_new2(result);
1726 }
1727 
1728 /* Convert a packed value value */
1729 SWIGRUNTIME int
SWIG_Ruby_ConvertPacked(VALUE obj,void * ptr,int sz,swig_type_info * ty)1730 SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
1731   swig_cast_info *tc;
1732   const char  *c;
1733 
1734   if (TYPE(obj) != T_STRING) goto type_error;
1735   c = StringValuePtr(obj);
1736   /* Pointer values must start with leading underscore */
1737   if (*c != '_') goto type_error;
1738   c++;
1739   c = SWIG_UnpackData(c, ptr, sz);
1740   if (ty) {
1741     tc = SWIG_TypeCheck(c, ty);
1742     if (!tc) goto type_error;
1743   }
1744   return SWIG_OK;
1745 
1746  type_error:
1747   return SWIG_ERROR;
1748 }
1749 
1750 SWIGRUNTIME swig_module_info *
SWIG_Ruby_GetModule(void * SWIGUNUSEDPARM (clientdata))1751 SWIG_Ruby_GetModule(void *SWIGUNUSEDPARM(clientdata))
1752 {
1753   VALUE pointer;
1754   swig_module_info *ret = 0;
1755   VALUE verbose = rb_gv_get("VERBOSE");
1756 
1757  /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
1758   rb_gv_set("VERBOSE", Qfalse);
1759 
1760   /* first check if pointer already created */
1761   pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
1762   if (pointer != Qnil) {
1763     Data_Get_Struct(pointer, swig_module_info, ret);
1764   }
1765 
1766   /* reinstate warnings */
1767   rb_gv_set("VERBOSE", verbose);
1768   return ret;
1769 }
1770 
1771 SWIGRUNTIME void
SWIG_Ruby_SetModule(swig_module_info * pointer)1772 SWIG_Ruby_SetModule(swig_module_info *pointer)
1773 {
1774   /* register a new class */
1775   VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1776   /* create and store the structure pointer to a global variable */
1777   swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1778   rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
1779 }
1780 
1781 /* This function can be used to check whether a proc or method or similarly
1782    callable function has been passed.  Usually used in a %typecheck, like:
1783 
1784    %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
1785         $result = SWIG_Ruby_isCallable( $input );
1786    }
1787  */
1788 SWIGINTERN
SWIG_Ruby_isCallable(VALUE proc)1789 int SWIG_Ruby_isCallable( VALUE proc )
1790 {
1791   if ( rb_respond_to( proc, swig_call_id ) )
1792     return 1;
1793   return 0;
1794 }
1795 
1796 /* This function can be used to check the arity (number of arguments)
1797    a proc or method can take.  Usually used in a %typecheck.
1798    Valid arities will be that equal to minimal or those < 0
1799    which indicate a variable number of parameters at the end.
1800  */
1801 SWIGINTERN
SWIG_Ruby_arity(VALUE proc,int minimal)1802 int SWIG_Ruby_arity( VALUE proc, int minimal )
1803 {
1804   if ( rb_respond_to( proc, swig_arity_id ) )
1805     {
1806       VALUE num = rb_funcall( proc, swig_arity_id, 0 );
1807       int arity = NUM2INT(num);
1808       if ( arity < 0 && (arity+1) < -minimal ) return 1;
1809       if ( arity == minimal ) return 1;
1810       return 1;
1811     }
1812   return 0;
1813 }
1814 
1815 
1816 #ifdef __cplusplus
1817 }
1818 #endif
1819 
1820 
1821 
1822 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
1823 
1824 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
1825 
1826 
1827 
1828   #define SWIG_exception(code, msg) do { SWIG_Error(code, msg);; } while(0)
1829 
1830 
1831 /* -------- TYPES TABLE (BEGIN) -------- */
1832 
1833 #define SWIGTYPE_p_Prelude__Client swig_types[0]
1834 #define SWIGTYPE_p_Prelude__ClientEasy swig_types[1]
1835 #define SWIGTYPE_p_Prelude__ClientProfile swig_types[2]
1836 #define SWIGTYPE_p_Prelude__Connection swig_types[3]
1837 #define SWIGTYPE_p_Prelude__ConnectionPool swig_types[4]
1838 #define SWIGTYPE_p_Prelude__IDMEF swig_types[5]
1839 #define SWIGTYPE_p_Prelude__IDMEFClass swig_types[6]
1840 #define SWIGTYPE_p_Prelude__IDMEFCriteria swig_types[7]
1841 #define SWIGTYPE_p_Prelude__IDMEFCriterion swig_types[8]
1842 #define SWIGTYPE_p_Prelude__IDMEFPath swig_types[9]
1843 #define SWIGTYPE_p_Prelude__IDMEFTime swig_types[10]
1844 #define SWIGTYPE_p_Prelude__IDMEFValue swig_types[11]
1845 #define SWIGTYPE_p_Prelude__PreludeError swig_types[12]
1846 #define SWIGTYPE_p_Prelude__PreludeLog swig_types[13]
1847 #define SWIGTYPE_p_allocator_type swig_types[14]
1848 #define SWIGTYPE_p_char swig_types[15]
1849 #define SWIGTYPE_p_difference_type swig_types[16]
1850 #define SWIGTYPE_p_f_int_p_q_const__char__void swig_types[17]
1851 #define SWIGTYPE_p_idmef_criteria_t swig_types[18]
1852 #define SWIGTYPE_p_idmef_criterion_operator_t swig_types[19]
1853 #define SWIGTYPE_p_idmef_object_t swig_types[20]
1854 #define SWIGTYPE_p_idmef_path_t swig_types[21]
1855 #define SWIGTYPE_p_idmef_time_t swig_types[22]
1856 #define SWIGTYPE_p_idmef_value_t swig_types[23]
1857 #define SWIGTYPE_p_int swig_types[24]
1858 #define SWIGTYPE_p_long_long swig_types[25]
1859 #define SWIGTYPE_p_prelude_client_profile_t swig_types[26]
1860 #define SWIGTYPE_p_prelude_client_t swig_types[27]
1861 #define SWIGTYPE_p_prelude_connection_pool_t swig_types[28]
1862 #define SWIGTYPE_p_prelude_connection_t swig_types[29]
1863 #define SWIGTYPE_p_short swig_types[30]
1864 #define SWIGTYPE_p_size_type swig_types[31]
1865 #define SWIGTYPE_p_std__exception swig_types[32]
1866 #define SWIGTYPE_p_swig__ConstIterator swig_types[33]
1867 #define SWIGTYPE_p_swig__GC_VALUE swig_types[34]
1868 #define SWIGTYPE_p_swig__Iterator swig_types[35]
1869 #define SWIGTYPE_p_timeval swig_types[36]
1870 #define SWIGTYPE_p_unsigned_char swig_types[37]
1871 #define SWIGTYPE_p_unsigned_int swig_types[38]
1872 #define SWIGTYPE_p_unsigned_long_long swig_types[39]
1873 #define SWIGTYPE_p_unsigned_short swig_types[40]
1874 #define SWIGTYPE_p_value_type swig_types[41]
1875 #define SWIGTYPE_p_void swig_types[42]
1876 static swig_type_info *swig_types[44];
1877 static swig_module_info swig_module = {swig_types, 43, 0, 0, 0, 0};
1878 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
1879 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
1880 
1881 /* -------- TYPES TABLE (END) -------- */
1882 
1883 #define SWIG_init    Init_Prelude
1884 #define SWIG_name    "Prelude"
1885 
1886 static VALUE mPrelude;
1887 
1888 #define SWIG_RUBY_THREAD_BEGIN_BLOCK
1889 #define SWIG_RUBY_THREAD_END_BLOCK
1890 
1891 
1892 #define SWIGVERSION 0x030006
1893 #define SWIG_VERSION SWIGVERSION
1894 
1895 
1896 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
1897 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
1898 
1899 
1900 #include <stdexcept>
1901 
1902 
1903 #include <string>
1904 
1905 
1906 #include <iostream>
1907 
1908 
1909 #include <stdexcept>
1910 
1911 
1912 namespace swig {
1913   class SwigGCReferences {
1914     VALUE _hash;
1915 
SwigGCReferences()1916     SwigGCReferences() : _hash(Qnil) {
1917     }
~SwigGCReferences()1918     ~SwigGCReferences() {
1919       if (_hash != Qnil)
1920         rb_gc_unregister_address(&_hash);
1921     }
EndProcHandler(VALUE)1922     static void EndProcHandler(VALUE) {
1923       // Ruby interpreter ending - _hash can no longer be accessed.
1924       SwigGCReferences &s_references = instance();
1925       s_references._hash = Qnil;
1926     }
1927   public:
instance()1928     static SwigGCReferences& instance() {
1929       // Hash of all GC_VALUE's currently in use
1930       static SwigGCReferences s_references;
1931 
1932       return s_references;
1933     }
initialize()1934     static void initialize() {
1935       SwigGCReferences &s_references = instance();
1936       if (s_references._hash == Qnil) {
1937         rb_set_end_proc(&EndProcHandler, Qnil);
1938         s_references._hash = rb_hash_new();
1939         rb_gc_register_address(&s_references._hash);
1940       }
1941     }
GC_register(VALUE & obj)1942     void GC_register(VALUE& obj) {
1943       if (FIXNUM_P(obj) || SPECIAL_CONST_P(obj) || SYMBOL_P(obj))
1944         return;
1945       if (_hash != Qnil) {
1946         VALUE val = rb_hash_aref(_hash, obj);
1947         unsigned n = FIXNUM_P(val) ? NUM2UINT(val) : 0;
1948         ++n;
1949         rb_hash_aset(_hash, obj, INT2NUM(n));
1950       }
1951     }
GC_unregister(const VALUE & obj)1952     void GC_unregister(const VALUE& obj) {
1953       if (FIXNUM_P(obj) || SPECIAL_CONST_P(obj) || SYMBOL_P(obj))
1954         return;
1955       // this test should not be needed but I've noticed some very erratic
1956       // behavior of none being unregistered in some very rare situations.
1957       if (BUILTIN_TYPE(obj) == T_NONE)
1958         return;
1959       if (_hash != Qnil) {
1960         VALUE val = rb_hash_aref(_hash, obj);
1961         unsigned n = FIXNUM_P(val) ? NUM2UINT(val) : 1;
1962         --n;
1963         if (n)
1964           rb_hash_aset(_hash, obj, INT2NUM(n));
1965         else
1966           rb_hash_delete(_hash, obj);
1967       }
1968     }
1969   };
1970 
1971   class GC_VALUE {
1972   protected:
1973     VALUE  _obj;
1974 
1975     static ID hash_id;
1976     static ID   lt_id;
1977     static ID   gt_id;
1978     static ID   eq_id;
1979     static ID   le_id;
1980     static ID   ge_id;
1981 
1982     static ID  pos_id;
1983     static ID  neg_id;
1984     static ID  inv_id;
1985 
1986     static ID  add_id;
1987     static ID  sub_id;
1988     static ID  mul_id;
1989     static ID  div_id;
1990     static ID  mod_id;
1991 
1992     static ID  and_id;
1993     static ID   or_id;
1994     static ID  xor_id;
1995 
1996     static ID  lshift_id;
1997     static ID  rshift_id;
1998 
1999     struct OpArgs
2000     {
2001       VALUE src;
2002       ID    id;
2003       int   nargs;
2004       VALUE target;
2005     };
2006 
2007 
2008   public:
GC_VALUE()2009     GC_VALUE() : _obj(Qnil)
2010     {
2011     }
2012 
GC_VALUE(const GC_VALUE & item)2013     GC_VALUE(const GC_VALUE& item) : _obj(item._obj)
2014     {
2015       SwigGCReferences::instance().GC_register(_obj);
2016     }
2017 
GC_VALUE(VALUE obj)2018     GC_VALUE(VALUE obj) :_obj(obj)
2019     {
2020       SwigGCReferences::instance().GC_register(_obj);
2021     }
2022 
~GC_VALUE()2023     ~GC_VALUE()
2024     {
2025       SwigGCReferences::instance().GC_unregister(_obj);
2026     }
2027 
operator =(const GC_VALUE & item)2028     GC_VALUE & operator=(const GC_VALUE& item)
2029     {
2030       SwigGCReferences::instance().GC_unregister(_obj);
2031       _obj = item._obj;
2032       SwigGCReferences::instance().GC_register(_obj);
2033       return *this;
2034     }
2035 
operator VALUE() const2036     operator VALUE() const
2037     {
2038       return _obj;
2039     }
2040 
inspect() const2041     VALUE inspect() const
2042     {
2043       return rb_inspect(_obj);
2044     }
2045 
to_s() const2046     VALUE to_s() const
2047     {
2048       return rb_inspect(_obj);
2049     }
2050 
swig_rescue_swallow(VALUE)2051     static VALUE swig_rescue_swallow(VALUE)
2052     {
2053       /*
2054       VALUE errstr = rb_obj_as_string(rb_errinfo());
2055       printf("Swallowing error: '%s'\n", RSTRING_PTR(StringValue(errstr)));
2056       */
2057       return Qnil; /* Swallow Ruby exception */
2058     }
2059 
swig_rescue_funcall(VALUE p)2060     static VALUE swig_rescue_funcall(VALUE p)
2061     {
2062       OpArgs* args = (OpArgs*) p;
2063       return rb_funcall(args->src, args->id, args->nargs, args->target);
2064     }
2065 
relational_equal_op(const GC_VALUE & other,const ID & op_id,bool (* op_func)(const VALUE & a,const VALUE & b)) const2066     bool relational_equal_op(const GC_VALUE& other, const ID& op_id, bool (*op_func)(const VALUE& a, const VALUE& b)) const
2067     {
2068       if (FIXNUM_P(_obj) && FIXNUM_P(other._obj)) {
2069         return op_func(_obj, other._obj);
2070       }
2071       bool res = false;
2072       VALUE ret = Qnil;
2073       SWIG_RUBY_THREAD_BEGIN_BLOCK;
2074       if (rb_respond_to(_obj, op_id)) {
2075         OpArgs  args;
2076         args.src    = _obj;
2077         args.id     = op_id;
2078         args.nargs  = 1;
2079         args.target = VALUE(other);
2080         ret = rb_rescue(RUBY_METHOD_FUNC(swig_rescue_funcall), VALUE(&args),
2081                        (RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
2082       }
2083       if (ret == Qnil) {
2084         VALUE a = rb_funcall(         _obj, hash_id, 0 );
2085         VALUE b = rb_funcall( VALUE(other), hash_id, 0 );
2086         res = op_func(a, b);
2087       } else {
2088         res = RTEST(ret);
2089       }
2090       SWIG_RUBY_THREAD_END_BLOCK;
2091       return res;
2092     }
2093 
operator_eq(const VALUE & a,const VALUE & b)2094     static bool operator_eq(const VALUE& a, const VALUE& b) { return a == b; }
operator_lt(const VALUE & a,const VALUE & b)2095     static bool operator_lt(const VALUE& a, const VALUE& b) { return a < b; }
operator_le(const VALUE & a,const VALUE & b)2096     static bool operator_le(const VALUE& a, const VALUE& b) { return a <= b; }
operator_gt(const VALUE & a,const VALUE & b)2097     static bool operator_gt(const VALUE& a, const VALUE& b) { return a > b; }
operator_ge(const VALUE & a,const VALUE & b)2098     static bool operator_ge(const VALUE& a, const VALUE& b) { return a >= b; }
2099 
operator ==(const GC_VALUE & other) const2100     bool operator==(const GC_VALUE& other) const { return relational_equal_op(other, eq_id, operator_eq); }
operator <(const GC_VALUE & other) const2101     bool operator<(const GC_VALUE& other) const { return relational_equal_op(other, lt_id, operator_lt); }
operator <=(const GC_VALUE & other) const2102     bool operator<=(const GC_VALUE& other) const { return relational_equal_op(other, le_id, operator_le); }
operator >(const GC_VALUE & other) const2103     bool operator>(const GC_VALUE& other) const { return relational_equal_op(other, gt_id, operator_gt); }
operator >=(const GC_VALUE & other) const2104     bool operator>=(const GC_VALUE& other) const { return relational_equal_op(other, ge_id, operator_ge); }
2105 
operator !=(const GC_VALUE & other) const2106     bool operator!=(const GC_VALUE& other) const
2107     {
2108       return !(this->operator==(other));
2109     }
2110 
unary_op(const ID & op_id) const2111     GC_VALUE unary_op(const ID& op_id) const
2112     {
2113       VALUE ret = Qnil;
2114       SWIG_RUBY_THREAD_BEGIN_BLOCK;
2115       OpArgs  args;
2116       args.src    = _obj;
2117       args.id     = op_id;
2118       args.nargs  = 0;
2119       args.target = Qnil;
2120       ret = rb_rescue(RUBY_METHOD_FUNC(swig_rescue_funcall), VALUE(&args),
2121                      (RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
2122       SWIG_RUBY_THREAD_END_BLOCK;
2123       return ret;
2124     }
2125 
operator +() const2126     GC_VALUE operator+() const { return unary_op(pos_id); }
operator -() const2127     GC_VALUE operator-() const { return unary_op(neg_id); }
operator ~() const2128     GC_VALUE operator~() const { return unary_op(inv_id); }
2129 
binary_op(const GC_VALUE & other,const ID & op_id) const2130     GC_VALUE binary_op(const GC_VALUE& other, const ID& op_id) const
2131     {
2132       VALUE ret = Qnil;
2133       SWIG_RUBY_THREAD_BEGIN_BLOCK;
2134       OpArgs  args;
2135       args.src    = _obj;
2136       args.id     = op_id;
2137       args.nargs  = 1;
2138       args.target = VALUE(other);
2139       ret = rb_rescue(RUBY_METHOD_FUNC(swig_rescue_funcall), VALUE(&args),
2140                      (RUBY_METHOD_FUNC(swig_rescue_swallow)), Qnil);
2141       SWIG_RUBY_THREAD_END_BLOCK;
2142       return GC_VALUE(ret);
2143     }
2144 
operator +(const GC_VALUE & other) const2145     GC_VALUE operator+(const GC_VALUE& other) const { return binary_op(other, add_id); }
operator -(const GC_VALUE & other) const2146     GC_VALUE operator-(const GC_VALUE& other) const { return binary_op(other, sub_id); }
operator *(const GC_VALUE & other) const2147     GC_VALUE operator*(const GC_VALUE& other) const { return binary_op(other, mul_id); }
operator /(const GC_VALUE & other) const2148     GC_VALUE operator/(const GC_VALUE& other) const { return binary_op(other, div_id); }
operator %(const GC_VALUE & other) const2149     GC_VALUE operator%(const GC_VALUE& other) const { return binary_op(other, mod_id); }
operator &(const GC_VALUE & other) const2150     GC_VALUE operator&(const GC_VALUE& other) const { return binary_op(other, and_id); }
operator ^(const GC_VALUE & other) const2151     GC_VALUE operator^(const GC_VALUE& other) const { return binary_op(other, xor_id); }
operator |(const GC_VALUE & other) const2152     GC_VALUE operator|(const GC_VALUE& other) const { return binary_op(other, or_id); }
operator <<(const GC_VALUE & other) const2153     GC_VALUE operator<<(const GC_VALUE& other) const { return binary_op(other, lshift_id); }
operator >>(const GC_VALUE & other) const2154     GC_VALUE operator>>(const GC_VALUE& other) const { return binary_op(other, rshift_id); }
2155   };
2156 
2157   ID  GC_VALUE::hash_id = rb_intern("hash");
2158   ID  GC_VALUE::lt_id = rb_intern("<");
2159   ID  GC_VALUE::gt_id = rb_intern(">");
2160   ID  GC_VALUE::eq_id = rb_intern("==");
2161   ID  GC_VALUE::le_id = rb_intern("<=");
2162   ID  GC_VALUE::ge_id = rb_intern(">=");
2163 
2164   ID  GC_VALUE::pos_id = rb_intern("+@");
2165   ID  GC_VALUE::neg_id = rb_intern("-@");
2166   ID  GC_VALUE::inv_id = rb_intern("~");
2167 
2168   ID  GC_VALUE::add_id = rb_intern("+");
2169   ID  GC_VALUE::sub_id = rb_intern("-");
2170   ID  GC_VALUE::mul_id = rb_intern("*");
2171   ID  GC_VALUE::div_id = rb_intern("/");
2172   ID  GC_VALUE::mod_id = rb_intern("%");
2173 
2174   ID  GC_VALUE::and_id = rb_intern("&");
2175   ID  GC_VALUE::or_id  = rb_intern("|");
2176   ID  GC_VALUE::xor_id = rb_intern("^");
2177 
2178   ID  GC_VALUE::lshift_id = rb_intern("<<");
2179   ID  GC_VALUE::rshift_id = rb_intern(">>");
2180 
2181   typedef GC_VALUE LANGUAGE_OBJ;
2182 
2183 } // namespace swig
2184 
2185 
2186 
2187 #if defined(__GNUC__)
2188 #  if __GNUC__ == 2 && __GNUC_MINOR <= 96
2189 #     define SWIG_STD_NOMODERN_STL
2190 #  endif
2191 #endif
2192 
2193 
2194 #include <stddef.h>
2195 
2196 
2197 namespace swig {
2198   struct stop_iteration {
2199   };
2200 
2201   /**
2202    * Abstract base class used to represent all iterators of STL containers.
2203    */
2204   struct ConstIterator {
2205   public:
2206     typedef ConstIterator self_type;
2207 
2208   protected:
2209     GC_VALUE _seq;
2210 
2211   protected:
ConstIteratorswig::ConstIterator2212     ConstIterator(VALUE seq) : _seq(seq)
2213     {
2214     }
2215 
2216     // Random access iterator methods, but not required in Ruby
distanceswig::ConstIterator2217     virtual ptrdiff_t distance(const ConstIterator &x) const
2218     {
2219       throw std::invalid_argument("distance not supported");
2220     }
2221 
equalswig::ConstIterator2222     virtual bool equal (const ConstIterator &x) const
2223     {
2224       throw std::invalid_argument("equal not supported");
2225     }
2226 
advanceswig::ConstIterator2227     virtual self_type* advance(ptrdiff_t n)
2228     {
2229       throw std::invalid_argument("advance not supported");
2230     }
2231 
2232   public:
~ConstIteratorswig::ConstIterator2233     virtual ~ConstIterator() {}
2234 
2235     // Access iterator method, required by Ruby
valueswig::ConstIterator2236     virtual VALUE value() const {
2237       throw std::invalid_argument("value not supported");
2238       return Qnil;
2239     };
2240 
setValueswig::ConstIterator2241     virtual VALUE setValue( const VALUE& v ) {
2242       throw std::invalid_argument("value= not supported");
2243       return Qnil;
2244     }
2245 
nextswig::ConstIterator2246     virtual self_type* next( size_t n = 1 )
2247     {
2248       return this->advance( n );
2249     }
2250 
previousswig::ConstIterator2251     virtual self_type* previous( size_t n = 1 )
2252     {
2253       ptrdiff_t nn = n;
2254       return this->advance( -nn );
2255     }
2256 
to_sswig::ConstIterator2257     virtual VALUE to_s() const {
2258       throw std::invalid_argument("to_s not supported");
2259       return Qnil;
2260     }
2261 
inspectswig::ConstIterator2262     virtual VALUE inspect() const {
2263       throw std::invalid_argument("inspect not supported");
2264       return Qnil;
2265     }
2266 
dupswig::ConstIterator2267     virtual ConstIterator *dup() const
2268     {
2269       throw std::invalid_argument("dup not supported");
2270       return NULL;
2271     }
2272 
2273     //
2274     // C++ common/needed methods.  We emulate a bidirectional
2275     // operator, to be compatible with all the STL.
2276     // The iterator traits will then tell the STL what type of
2277     // iterator we really are.
2278     //
ConstIteratorswig::ConstIterator2279     ConstIterator() : _seq( Qnil )
2280     {
2281     }
2282 
ConstIteratorswig::ConstIterator2283     ConstIterator( const self_type& b ) : _seq( b._seq )
2284     {
2285     }
2286 
operator =swig::ConstIterator2287     self_type& operator=( const self_type& b )
2288     {
2289       _seq = b._seq;
2290       return *this;
2291     }
2292 
operator ==swig::ConstIterator2293     bool operator == (const ConstIterator& x)  const
2294     {
2295       return equal(x);
2296     }
2297 
operator !=swig::ConstIterator2298     bool operator != (const ConstIterator& x) const
2299     {
2300       return ! operator==(x);
2301     }
2302 
2303     // Pre-decrement operator
operator --swig::ConstIterator2304     self_type& operator--()
2305     {
2306       return *previous();
2307     }
2308 
2309     // Pre-increment operator
operator ++swig::ConstIterator2310     self_type& operator++()
2311     {
2312       return *next();
2313     }
2314 
2315     // Post-decrement operator
operator --swig::ConstIterator2316     self_type operator--(int)
2317     {
2318       self_type r = *this;
2319       previous();
2320       return r;
2321     }
2322 
2323     // Post-increment operator
operator ++swig::ConstIterator2324     self_type operator++(int)
2325     {
2326       self_type r = *this;
2327       next();
2328       return r;
2329     }
2330 
operator +=swig::ConstIterator2331     ConstIterator& operator += (ptrdiff_t n)
2332     {
2333       return *advance(n);
2334     }
2335 
operator -=swig::ConstIterator2336     ConstIterator& operator -= (ptrdiff_t n)
2337     {
2338       return *advance(-n);
2339     }
2340 
operator +swig::ConstIterator2341     ConstIterator* operator + (ptrdiff_t n) const
2342     {
2343       return dup()->advance(n);
2344     }
2345 
operator -swig::ConstIterator2346     ConstIterator* operator - (ptrdiff_t n) const
2347     {
2348       return dup()->advance(-n);
2349     }
2350 
operator -swig::ConstIterator2351     ptrdiff_t operator - (const ConstIterator& x) const
2352     {
2353       return x.distance(*this);
2354     }
2355 
descriptorswig::ConstIterator2356     static swig_type_info* descriptor() {
2357       static int init = 0;
2358       static swig_type_info* desc = 0;
2359       if (!init) {
2360 	desc = SWIG_TypeQuery("swig::ConstIterator *");
2361 	init = 1;
2362       }
2363       return desc;
2364     }
2365   };
2366 
2367 
2368   /**
2369    * Abstract base class used to represent all non-const iterators of STL containers.
2370    *
2371    */
2372   struct Iterator : public ConstIterator {
2373   public:
2374     typedef Iterator self_type;
2375 
2376   protected:
Iteratorswig::Iterator2377     Iterator(VALUE seq) : ConstIterator(seq)
2378     {
2379     }
2380 
advanceswig::Iterator2381     virtual self_type* advance(ptrdiff_t n)
2382     {
2383       throw std::invalid_argument("operation not supported");
2384     }
2385 
2386   public:
descriptorswig::Iterator2387     static swig_type_info* descriptor() {
2388       static int init = 0;
2389       static swig_type_info* desc = 0;
2390       if (!init) {
2391 	desc = SWIG_TypeQuery("swig::Iterator *");
2392 	init = 1;
2393       }
2394       return desc;
2395     }
2396 
dupswig::Iterator2397     virtual Iterator *dup() const
2398     {
2399       throw std::invalid_argument("dup not supported");
2400       return NULL;
2401     }
2402 
nextswig::Iterator2403     virtual self_type* next( size_t n = 1 )
2404     {
2405       return this->advance( n );
2406     }
2407 
previousswig::Iterator2408     virtual self_type* previous( size_t n = 1 )
2409     {
2410       ptrdiff_t nn = n;
2411       return this->advance( -nn );
2412     }
2413 
operator ==swig::Iterator2414     bool operator == (const ConstIterator& x)  const
2415     {
2416       return equal(x);
2417     }
2418 
operator !=swig::Iterator2419     bool operator != (const Iterator& x) const
2420     {
2421       return ! operator==(x);
2422     }
2423 
operator +=swig::Iterator2424     Iterator& operator += (ptrdiff_t n)
2425     {
2426       return *advance(n);
2427     }
2428 
operator -=swig::Iterator2429     Iterator& operator -= (ptrdiff_t n)
2430     {
2431       return *advance(-n);
2432     }
2433 
operator +swig::Iterator2434     Iterator* operator + (ptrdiff_t n) const
2435     {
2436       return dup()->advance(n);
2437     }
2438 
operator -swig::Iterator2439     Iterator* operator - (ptrdiff_t n) const
2440     {
2441       return dup()->advance(-n);
2442     }
2443 
operator -swig::Iterator2444     ptrdiff_t operator - (const Iterator& x) const
2445     {
2446       return x.distance(*this);
2447     }
2448   };
2449 
2450 }
2451 
2452 
2453 SWIGINTERN VALUE
SWIG_ruby_failed(void)2454 SWIG_ruby_failed(void)
2455 {
2456   return Qnil;
2457 }
2458 
2459 
2460 /*@SWIG:/home/yoann/dev/prelude/bin/share/swig/3.0.6/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIG_AUX_NUM2ULONG(VALUE * args)2461 SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
2462 {
2463   VALUE obj = args[0];
2464   VALUE type = TYPE(obj);
2465   unsigned long *res = (unsigned long *)(args[1]);
2466   *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj);
2467   return obj;
2468 }
2469 /*@SWIG@*/
2470 
2471 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long(VALUE obj,unsigned long * val)2472 SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val)
2473 {
2474   VALUE type = TYPE(obj);
2475   if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2476     unsigned long v;
2477     VALUE a[2];
2478     a[0] = obj;
2479     a[1] = (VALUE)(&v);
2480     if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2481       if (val) *val = v;
2482       return SWIG_OK;
2483     }
2484   }
2485   return SWIG_TypeError;
2486 }
2487 
2488 
2489 SWIGINTERNINLINE int
SWIG_AsVal_size_t(VALUE obj,size_t * val)2490 SWIG_AsVal_size_t (VALUE obj, size_t *val)
2491 {
2492   unsigned long v;
2493   int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
2494   if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
2495   return res;
2496 }
2497 
2498 
2499 SWIGINTERNINLINE VALUE
SWIG_From_bool(bool value)2500 SWIG_From_bool  (bool value)
2501 {
2502   return value ? Qtrue : Qfalse;
2503 }
2504 
2505 
2506 /*@SWIG:/home/yoann/dev/prelude/bin/share/swig/3.0.6/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIG_AUX_NUM2LONG(VALUE * args)2507 SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
2508 {
2509   VALUE obj = args[0];
2510   VALUE type = TYPE(obj);
2511   long *res = (long *)(args[1]);
2512   *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
2513   return obj;
2514 }
2515 /*@SWIG@*/
2516 
2517 SWIGINTERN int
SWIG_AsVal_long(VALUE obj,long * val)2518 SWIG_AsVal_long (VALUE obj, long* val)
2519 {
2520   VALUE type = TYPE(obj);
2521   if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
2522     long v;
2523     VALUE a[2];
2524     a[0] = obj;
2525     a[1] = (VALUE)(&v);
2526     if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
2527       if (val) *val = v;
2528       return SWIG_OK;
2529     }
2530   }
2531   return SWIG_TypeError;
2532 }
2533 
2534 
2535 SWIGINTERNINLINE int
SWIG_AsVal_ptrdiff_t(VALUE obj,ptrdiff_t * val)2536 SWIG_AsVal_ptrdiff_t (VALUE obj, ptrdiff_t *val)
2537 {
2538   long v;
2539   int res = SWIG_AsVal_long (obj, val ? &v : 0);
2540   if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
2541   return res;
2542 }
2543 
2544 
2545 #include <limits.h>
2546 #if !defined(SWIG_NO_LLONG_MAX)
2547 # if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
2548 #   define LLONG_MAX __LONG_LONG_MAX__
2549 #   define LLONG_MIN (-LLONG_MAX - 1LL)
2550 #   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
2551 # endif
2552 #endif
2553 
2554 
2555   #define SWIG_From_long   LONG2NUM
2556 
2557 
2558 SWIGINTERNINLINE VALUE
SWIG_From_ptrdiff_t(ptrdiff_t value)2559 SWIG_From_ptrdiff_t  (ptrdiff_t value)
2560 {
2561   return SWIG_From_long  (static_cast< long >(value));
2562 }
2563 
2564 
2565 #include <algorithm>
2566 
2567 
2568 #include <vector>
2569 
2570 
2571 #pragma GCC diagnostic ignored "-Wunused-variable"
2572 
2573 #include <list>
2574 #include <sstream>
2575 
2576 #include "prelude.hxx"
2577 #include "prelude-log.hxx"
2578 #include "prelude-error.hxx"
2579 #include "prelude-connection.hxx"
2580 #include "prelude-connection-pool.hxx"
2581 #include "prelude-client-profile.hxx"
2582 #include "prelude-client.hxx"
2583 #include "prelude-client-easy.hxx"
2584 #include "idmef-criteria.hxx"
2585 #include "idmef-value.hxx"
2586 #include "idmef-path.hxx"
2587 #include "idmef-time.hxx"
2588 #include "idmef.hxx"
2589 
2590 using namespace Prelude;
2591 
2592 
2593 #define TARGET_LANGUAGE_SELF VALUE
2594 #define TARGET_LANGUAGE_OUTPUT_TYPE VALUE *
2595 
2596 
2597 extern "C" {
2598 
2599 #include <ruby.h>
2600 /*
2601  * cannot put libmissing into the include path, as it will trigger
2602  * a compilation failure here.
2603  */
2604 #include "config.h"
2605 #include "../../libmissing/glthread/thread.h"
2606 
2607 
2608 #ifdef HAVE_RUBY_IO_H /* Ruby 1.9 */
2609 # include "ruby/io.h"
2610 # define GetReadFile(x) rb_io_stdio_file(x)
2611 # define GetWriteFile(x) rb_io_stdio_file(x)
2612 #else
2613 # include "rubyio.h" /* Ruby 1.8 */
2614 #endif
2615 
2616 #ifndef HAVE_RB_IO_T
2617 # define rb_io_t OpenFile
2618 #endif
2619 
2620 #ifndef StringValuePtr
2621 # define StringValuePtr(s) STR2CSTR(s)
2622 #endif
2623 
2624 #ifndef RARRAY_LEN
2625 # define RARRAY_LEN(s) RARRAY(s)->len
2626 #endif
2627 
2628 #ifndef RARRAY_PTR
2629 # define RARRAY_PTR(s) RARRAY(s)->ptr
2630 #endif
2631 }
2632 
2633 
2634 namespace swig {
2635   template <class Type>
2636   struct noconst_traits {
2637     typedef Type noconst_type;
2638   };
2639 
2640   template <class Type>
2641   struct noconst_traits<const Type> {
2642     typedef Type noconst_type;
2643   };
2644 
2645   /*
2646     type categories
2647   */
2648   struct pointer_category { };
2649   struct value_category { };
2650 
2651   /*
2652     General traits that provides type_name and type_info
2653   */
2654   template <class Type> struct traits { };
2655 
2656   template <class Type>
type_name()2657   inline const char* type_name() {
2658     return traits<typename noconst_traits<Type >::noconst_type >::type_name();
2659   }
2660 
2661   template <class Type>
2662   struct traits_info {
type_queryswig::traits_info2663     static swig_type_info *type_query(std::string name) {
2664       name += " *";
2665       return SWIG_TypeQuery(name.c_str());
2666     }
type_infoswig::traits_info2667     static swig_type_info *type_info() {
2668       static swig_type_info *info = type_query(type_name<Type>());
2669       return info;
2670     }
2671   };
2672 
2673   template <class Type>
type_info()2674   inline swig_type_info *type_info() {
2675     return traits_info<Type>::type_info();
2676   }
2677 
2678   /*
2679     Partial specialization for pointers
2680   */
2681   template <class Type> struct traits <Type *> {
2682     typedef pointer_category category;
make_ptr_nameswig::traits2683     static std::string make_ptr_name(const char* name) {
2684       std::string ptrname = name;
2685       ptrname += " *";
2686       return ptrname;
2687     }
type_nameswig::traits2688     static const char* type_name() {
2689       static std::string name = make_ptr_name(swig::type_name<Type>());
2690       return name.c_str();
2691     }
2692   };
2693 
2694   template <class Type, class Category>
2695   struct traits_as { };
2696 
2697   template <class Type, class Category>
2698   struct traits_check { };
2699 
2700 }
2701 
2702 
2703 
2704 namespace swig {
2705   /*
2706     Traits that provides the from method
2707   */
2708   template <class Type> struct traits_from_ptr {
fromswig::traits_from_ptr2709     static VALUE from(Type *val, int owner = 0) {
2710       return SWIG_NewPointerObj(val, type_info<Type>(), owner);
2711     }
2712   };
2713 
2714   template <class Type> struct traits_from {
fromswig::traits_from2715     static VALUE from(const Type& val) {
2716       return traits_from_ptr<Type>::from(new Type(val), 1);
2717     }
2718   };
2719 
2720   template <class Type> struct traits_from<Type *> {
fromswig::traits_from2721     static VALUE from(Type* val) {
2722       return traits_from_ptr<Type>::from(val, 0);
2723     }
2724   };
2725 
2726   template <class Type> struct traits_from<const Type *> {
fromswig::traits_from2727     static VALUE from(const Type* val) {
2728       return traits_from_ptr<Type>::from(const_cast<Type*>(val), 0);
2729     }
2730   };
2731 
2732 
2733   template <class Type>
from(const Type & val)2734   inline VALUE from(const Type& val) {
2735     return traits_from<Type>::from(val);
2736   }
2737 
2738   template <class Type>
from_ptr(Type * val,int owner)2739   inline VALUE from_ptr(Type* val, int owner) {
2740     return traits_from_ptr<Type>::from(val, owner);
2741   }
2742 
2743   /*
2744     Traits that provides the asval/as/check method
2745   */
2746   template <class Type>
2747   struct traits_asptr {
asptrswig::traits_asptr2748     static int asptr(VALUE obj, Type **val) {
2749       Type *p;
2750       int res = SWIG_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0);
2751       if (SWIG_IsOK(res)) {
2752 	if (val) *val = p;
2753       }
2754       return res;
2755     }
2756   };
2757 
2758   template <class Type>
asptr(VALUE obj,Type ** vptr)2759   inline int asptr(VALUE obj, Type **vptr) {
2760     return traits_asptr<Type>::asptr(obj, vptr);
2761   }
2762 
2763   template <class Type>
2764   struct traits_asval {
asvalswig::traits_asval2765     static int asval(VALUE obj, Type *val) {
2766       if (val) {
2767 	Type *p = 0;
2768 	int res = traits_asptr<Type>::asptr(obj, &p);
2769 	if (!SWIG_IsOK(res)) return res;
2770 	if (p) {
2771 	  typedef typename noconst_traits<Type>::noconst_type noconst_type;
2772 	  *(const_cast<noconst_type*>(val)) = *p;
2773 	  if (SWIG_IsNewObj(res)){
2774 	    delete p;
2775 	    res = SWIG_DelNewMask(res);
2776 	  }
2777 	  return res;
2778 	} else {
2779 	  return SWIG_ERROR;
2780 	}
2781       } else {
2782 	return traits_asptr<Type>::asptr(obj, (Type **)(0));
2783       }
2784     }
2785   };
2786 
2787   template <class Type> struct traits_asval<Type*> {
asvalswig::traits_asval2788     static int asval(VALUE obj, Type **val) {
2789       if (val) {
2790         typedef typename noconst_traits<Type>::noconst_type noconst_type;
2791         noconst_type *p = 0;
2792         int res = traits_asptr<noconst_type>::asptr(obj,  &p);
2793         if (SWIG_IsOK(res)) {
2794           *(const_cast<noconst_type**>(val)) = p;
2795 	}
2796 	return res;
2797       } else {
2798 	return traits_asptr<Type>::asptr(obj, (Type **)(0));
2799       }
2800     }
2801   };
2802 
2803   template <class Type>
asval(VALUE obj,Type * val)2804   inline int asval(VALUE obj, Type *val) {
2805     return traits_asval<Type>::asval(obj, val);
2806   }
2807 
2808   template <class Type>
2809   struct traits_as<Type, value_category> {
asswig::traits_as2810     static Type as(VALUE obj, bool throw_error) {
2811       Type v;
2812       int res = asval(obj, &v);
2813       if (!obj || !SWIG_IsOK(res)) {
2814 	if (throw_error) throw std::invalid_argument("bad type");
2815 	VALUE lastErr = rb_gv_get("$!");
2816 	if (lastErr == Qnil) {
2817 	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
2818 	}
2819       }
2820       return v;
2821     }
2822   };
2823 
2824   template <class Type>
2825   struct traits_as<Type, pointer_category> {
asswig::traits_as2826     static Type as(VALUE obj, bool throw_error) {
2827       Type *v = 0;
2828       int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
2829       if (SWIG_IsOK(res) && v) {
2830 	if (SWIG_IsNewObj(res)) {
2831 	  Type r(*v);
2832 	  delete v;
2833 	  return r;
2834 	} else {
2835 	  return *v;
2836 	}
2837       } else {
2838 	// Uninitialized return value, no Type() constructor required.
2839 	if (throw_error) throw std::invalid_argument("bad type");
2840 	VALUE lastErr = rb_gv_get("$!");
2841 	if (lastErr == Qnil) {
2842 	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
2843 	}
2844 	static Type *v_def = (Type*) malloc(sizeof(Type));
2845 	memset(v_def,0,sizeof(Type));
2846 	return *v_def;
2847       }
2848     }
2849   };
2850 
2851   template <class Type>
2852   struct traits_as<Type*, pointer_category> {
asswig::traits_as2853     static Type* as(VALUE obj, bool throw_error) {
2854       Type *v = 0;
2855       int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
2856       if (SWIG_IsOK(res)) {
2857 	return v;
2858       } else {
2859 	if (throw_error) throw std::invalid_argument("bad type");
2860 	VALUE lastErr = rb_gv_get("$!");
2861 	if (lastErr == Qnil) {
2862 	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
2863 	}
2864 	return 0;
2865       }
2866     }
2867   };
2868 
2869   template <class Type>
as(VALUE obj,bool te=false)2870   inline Type as(VALUE obj, bool te = false) {
2871     return traits_as< Type, typename traits< Type >::category >::as(obj, te);
2872   }
2873 
2874   template <class Type>
2875   struct traits_check<Type, value_category> {
checkswig::traits_check2876     static bool check(VALUE obj) {
2877       int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
2878       return SWIG_IsOK(res) ? true : false;
2879     }
2880   };
2881 
2882   template <class Type>
2883   struct traits_check<Type, pointer_category> {
checkswig::traits_check2884     static bool check(VALUE obj) {
2885       int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
2886       return SWIG_IsOK(res) ? true : false;
2887     }
2888   };
2889 
2890   template <class Type>
check(VALUE obj)2891   inline bool check(VALUE obj) {
2892     return traits_check<Type, typename traits<Type>::category>::check(obj);
2893   }
2894 }
2895 
2896 
2897 #include <functional>
2898 
2899 
2900 namespace swig {
2901   template < class T >
2902   struct yield : public std::unary_function< T, bool >
2903   {
2904     bool
operator ()swig::yield2905     operator()( const T& v ) const
2906     {
2907       return RTEST( rb_yield( swig::from< T >(v) ) );
2908     }
2909   };
2910 
2911 
2912   inline size_t
check_index(ptrdiff_t i,size_t size,bool insert=false)2913   check_index(ptrdiff_t i, size_t size, bool insert = false) {
2914     if ( i < 0 ) {
2915       if ((size_t) (-i) <= size)
2916 	return (size_t) (i + size);
2917     } else if ( (size_t) i < size ) {
2918       return (size_t) i;
2919     } else if (insert && ((size_t) i == size)) {
2920       return size;
2921     }
2922 
2923     throw std::out_of_range("index out of range");
2924   }
2925 
2926   inline size_t
slice_index(ptrdiff_t i,size_t size)2927   slice_index(ptrdiff_t i, size_t size) {
2928     if ( i < 0 ) {
2929       if ((size_t) (-i) <= size) {
2930 	return (size_t) (i + size);
2931       } else {
2932 	throw std::out_of_range("index out of range");
2933       }
2934     } else {
2935       return ( (size_t) i < size ) ? ((size_t) i) : size;
2936     }
2937   }
2938 
2939   template <class Sequence, class Difference>
2940   inline typename Sequence::iterator
getpos(Sequence * self,Difference i)2941   getpos(Sequence* self, Difference i)  {
2942     typename Sequence::iterator pos = self->begin();
2943     std::advance(pos, check_index(i,self->size()));
2944     return pos;
2945   }
2946 
2947   template <class Sequence, class Difference>
2948   inline typename Sequence::const_iterator
cgetpos(const Sequence * self,Difference i)2949   cgetpos(const Sequence* self, Difference i)  {
2950     typename Sequence::const_iterator pos = self->begin();
2951     std::advance(pos, check_index(i,self->size()));
2952     return pos;
2953   }
2954 
2955   template <class Sequence, class Difference>
2956   inline Sequence*
getslice(const Sequence * self,Difference i,Difference j)2957   getslice(const Sequence* self, Difference i, Difference j) {
2958     typename Sequence::size_type size = self->size();
2959     typename Sequence::size_type ii = swig::check_index(i, size);
2960     typename Sequence::size_type jj = swig::slice_index(j, size);
2961 
2962     if (jj > ii) {
2963       typename Sequence::const_iterator vb = self->begin();
2964       typename Sequence::const_iterator ve = self->begin();
2965       std::advance(vb,ii);
2966       std::advance(ve,jj);
2967       return new Sequence(vb, ve);
2968     } else {
2969       return new Sequence();
2970     }
2971   }
2972 
2973   template <class Sequence, class Difference, class InputSeq>
2974   inline void
setslice(Sequence * self,Difference i,Difference j,const InputSeq & v)2975   setslice(Sequence* self, Difference i, Difference j, const InputSeq& v) {
2976     typename Sequence::size_type size = self->size();
2977     typename Sequence::size_type ii = swig::check_index(i, size, true);
2978     typename Sequence::size_type jj = swig::slice_index(j, size);
2979     if (jj < ii) jj = ii;
2980     size_t ssize = jj - ii;
2981     if (ssize <= v.size()) {
2982       typename Sequence::iterator sb = self->begin();
2983       typename InputSeq::const_iterator vmid = v.begin();
2984       std::advance(sb,ii);
2985       std::advance(vmid, jj - ii);
2986       self->insert(std::copy(v.begin(), vmid, sb), vmid, v.end());
2987     } else {
2988       typename Sequence::iterator sb = self->begin();
2989       typename Sequence::iterator se = self->begin();
2990       std::advance(sb,ii);
2991       std::advance(se,jj);
2992       self->erase(sb,se);
2993       self->insert(sb, v.begin(), v.end());
2994     }
2995   }
2996 
2997   template <class Sequence, class Difference>
2998   inline void
delslice(Sequence * self,Difference i,Difference j)2999   delslice(Sequence* self, Difference i, Difference j) {
3000     typename Sequence::size_type size = self->size();
3001     typename Sequence::size_type ii = swig::check_index(i, size, true);
3002     typename Sequence::size_type jj = swig::slice_index(j, size);
3003     if (jj > ii) {
3004       typename Sequence::iterator sb = self->begin();
3005       typename Sequence::iterator se = self->begin();
3006       std::advance(sb,ii);
3007       std::advance(se,jj);
3008       self->erase(sb,se);
3009     }
3010   }
3011 }
3012 
3013 
3014 #if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
3015 #  if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL)
3016 #    define SWIG_STD_NOITERATOR_TRAITS_STL
3017 #  endif
3018 #endif
3019 
3020 #if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
3021 #include <iterator>
3022 #else
3023 namespace std {
3024   template <class Iterator>
3025   struct iterator_traits {
3026     typedef ptrdiff_t difference_type;
3027     typedef typename Iterator::value_type value_type;
3028   };
3029 
3030   template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
3031   struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
3032     typedef Distance difference_type;
3033     typedef T value_type;
3034   };
3035 
3036   template <class T>
3037   struct iterator_traits<T*> {
3038     typedef T value_type;
3039     typedef ptrdiff_t difference_type;
3040   };
3041 
3042   template<typename _InputIterator>
3043   inline typename iterator_traits<_InputIterator>::difference_type
distance(_InputIterator __first,_InputIterator __last)3044   distance(_InputIterator __first, _InputIterator __last)
3045   {
3046     typename iterator_traits<_InputIterator>::difference_type __n = 0;
3047     while (__first != __last) {
3048       ++__first; ++__n;
3049     }
3050     return __n;
3051   }
3052 }
3053 #endif
3054 
3055 
3056 namespace swig {
3057 
3058   /**
3059    * Templated base classes for all custom const_iterators.
3060    *
3061    */
3062   template<typename OutConstIterator>
3063   class ConstIterator_T :  public ConstIterator
3064   {
3065   public:
3066     typedef OutConstIterator const_iter;
3067     typedef typename std::iterator_traits<const_iter>::value_type value_type;
3068     typedef ConstIterator_T<const_iter> self_type;
3069 
3070   protected:
3071 
3072 
equal(const ConstIterator & iter) const3073     virtual bool equal (const ConstIterator &iter) const
3074     {
3075       const self_type *iters = dynamic_cast<const self_type *>(&iter);
3076       if (iters) {
3077 	return (current == iters->get_current());
3078       } else {
3079 	throw std::invalid_argument("bad iterator type");
3080       }
3081     }
3082 
distance(const ConstIterator & iter) const3083     virtual ptrdiff_t distance(const ConstIterator &iter) const
3084     {
3085       const self_type *iters = dynamic_cast<const self_type *>(&iter);
3086       if (iters) {
3087 	return std::distance(current, iters->get_current());
3088       } else {
3089 	throw std::invalid_argument("bad iterator type");
3090       }
3091     }
3092 
advance(ptrdiff_t n)3093     virtual ConstIterator* advance(ptrdiff_t n)
3094     {
3095       std::advance( current, n );
3096       return this;
3097     }
3098 
3099   public:
ConstIterator_T()3100     ConstIterator_T() : ConstIterator(Qnil)
3101     {
3102     }
3103 
ConstIterator_T(const_iter curr,VALUE seq=Qnil)3104     ConstIterator_T(const_iter curr, VALUE seq = Qnil)
3105       : ConstIterator(seq), current(curr)
3106     {
3107     }
3108 
get_current() const3109     const const_iter& get_current() const
3110     {
3111       return current;
3112     }
3113 
operator *() const3114     const value_type& operator*() const
3115     {
3116       return *current;
3117     }
3118 
inspect() const3119     virtual VALUE inspect() const
3120     {
3121       VALUE ret = rb_str_new2("#<");
3122       ret = rb_str_cat2( ret, rb_obj_classname(_seq) );
3123       ret = rb_str_cat2( ret, "::const_iterator " );
3124       VALUE cur = value();
3125       ret = rb_str_concat( ret, rb_inspect(cur) );
3126       ret = rb_str_cat2( ret, ">" );
3127       return ret;
3128     }
3129 
to_s() const3130     virtual VALUE to_s()    const
3131     {
3132       VALUE ret = rb_str_new2( rb_obj_classname(_seq) );
3133       ret = rb_str_cat2( ret, "::const_iterator " );
3134       VALUE cur = value();
3135       ret = rb_str_concat( ret, rb_obj_as_string(cur) );
3136       return ret;
3137     }
3138 
3139   protected:
3140     const_iter current;
3141   };
3142 
3143 
3144   /**
3145    * Templated base classes for all custom non-const iterators.
3146    *
3147    */
3148   template<typename InOutIterator>
3149   class Iterator_T :  public Iterator
3150   {
3151   public:
3152     typedef InOutIterator nonconst_iter;
3153 
3154     // Make this class iterator STL compatible, by using iterator_traits
3155     typedef typename std::iterator_traits<nonconst_iter >::iterator_category iterator_category;
3156     typedef typename std::iterator_traits<nonconst_iter >::value_type        value_type;
3157     typedef typename std::iterator_traits<nonconst_iter >::difference_type   difference_type;
3158     typedef typename std::iterator_traits<nonconst_iter >::pointer           pointer;
3159     typedef typename std::iterator_traits<nonconst_iter >::reference         reference;
3160 
3161     typedef Iterator                         base;
3162     typedef Iterator_T< nonconst_iter > self_type;
3163 
3164   protected:
3165 
equal(const ConstIterator & iter) const3166     virtual bool equal (const ConstIterator &iter) const
3167     {
3168       const self_type *iters = dynamic_cast<const self_type *>(&iter);
3169       if (iters) {
3170 	return (current == iters->get_current());
3171       } else {
3172 	throw std::invalid_argument("bad iterator type");
3173       }
3174     }
3175 
distance(const ConstIterator & iter) const3176     virtual ptrdiff_t distance(const ConstIterator &iter) const
3177     {
3178       const self_type *iters = dynamic_cast<const self_type *>(&iter);
3179       if (iters) {
3180 	return std::distance(current, iters->get_current());
3181       } else {
3182 	throw std::invalid_argument("bad iterator type");
3183       }
3184     }
3185 
advance(ptrdiff_t n)3186     virtual Iterator* advance(ptrdiff_t n)
3187     {
3188       std::advance( current, n );
3189       return this;
3190     }
3191 
3192   public:
3193 
Iterator_T(nonconst_iter curr,VALUE seq=Qnil)3194     Iterator_T(nonconst_iter curr, VALUE seq = Qnil)
3195       : Iterator(seq), current(curr)
3196     {
3197     }
3198 
get_current() const3199     const nonconst_iter& get_current() const
3200     {
3201       return current;
3202     }
3203 
operator =(const self_type & b)3204     self_type& operator=( const self_type& b )
3205     {
3206       base::operator=( b );
3207       return *this;
3208     }
3209 
operator =(const value_type & b)3210     self_type& operator=( const value_type& b )
3211     {
3212       *current = b;
3213       return *this;
3214     }
3215 
operator *() const3216     const value_type& operator*() const
3217     {
3218       return *current;
3219     }
3220 
operator *()3221     value_type& operator*()
3222     {
3223       return *current;
3224     }
3225 
inspect() const3226     virtual VALUE inspect() const
3227     {
3228       VALUE ret = rb_str_new2("#<");
3229       ret = rb_str_cat2( ret, rb_obj_classname(_seq) );
3230       ret = rb_str_cat2( ret, "::iterator " );
3231       VALUE cur = value();
3232       ret = rb_str_concat( ret, rb_inspect(cur) );
3233       ret = rb_str_cat2( ret, ">" );
3234       return ret;
3235     }
3236 
to_s() const3237     virtual VALUE to_s()    const
3238     {
3239       VALUE ret = rb_str_new2( rb_obj_classname(_seq) );
3240       ret = rb_str_cat2( ret, "::iterator " );
3241       VALUE cur = value();
3242       ret = rb_str_concat( ret, rb_obj_as_string(cur) );
3243       return ret;
3244     }
3245 
3246   protected:
3247     nonconst_iter current;
3248   };
3249 
3250 
3251   /**
3252    * Auxiliary functor to store the value of a ruby object inside
3253    * a reference of a compatible C++ type.  ie: Ruby -> C++
3254    *
3255    */
3256   template <class ValueType>
3257   struct asval_oper
3258   {
3259     typedef ValueType    value_type;
3260     typedef bool        result_type;
operator ()swig::asval_oper3261     bool operator()(VALUE obj, value_type& v) const
3262     {
3263       return ( swig::asval< value_type >(obj, &v) == SWIG_OK );
3264     }
3265   };
3266 
3267   /**
3268    * Auxiliary functor to return a ruby object from a C++ type.
3269    * ie: C++ -> Ruby
3270    *
3271    */
3272   template <class ValueType>
3273   struct from_oper
3274   {
3275     typedef const ValueType& argument_type;
3276     typedef VALUE result_type;
operator ()swig::from_oper3277     result_type operator()(argument_type v) const
3278     {
3279       return swig::from(v);
3280     }
3281   };
3282 
3283 
3284   /**
3285    * ConstIterator class for a const_iterator with no end() boundaries.
3286    *
3287    */
3288   template<typename OutConstIterator,
3289 	   typename ValueType = typename std::iterator_traits<OutConstIterator>::value_type,
3290 	   typename FromOper = from_oper<ValueType> >
3291   class ConstIteratorOpen_T :  public ConstIterator_T<OutConstIterator>
3292   {
3293   public:
3294     FromOper from;
3295     typedef OutConstIterator const_iter;
3296     typedef ValueType value_type;
3297     typedef ConstIterator_T<const_iter>  base;
3298     typedef ConstIteratorOpen_T<OutConstIterator, ValueType, FromOper> self_type;
3299 
ConstIteratorOpen_T(const_iter curr,VALUE seq=Qnil)3300     ConstIteratorOpen_T(const_iter curr, VALUE seq = Qnil)
3301       : ConstIterator_T<OutConstIterator>(curr, seq)
3302     {
3303     }
3304 
value() const3305     virtual VALUE value() const {
3306       return from(static_cast<const value_type&>(*(base::current)));
3307     }
3308 
dup() const3309     ConstIterator *dup() const
3310     {
3311       return new self_type(*this);
3312     }
3313   };
3314 
3315   /**
3316    * Iterator class for an iterator with no end() boundaries.
3317    *
3318    */
3319   template<typename InOutIterator,
3320 	   typename ValueType = typename std::iterator_traits<InOutIterator>::value_type,
3321 	   typename FromOper = from_oper<ValueType>,
3322 	   typename AsvalOper = asval_oper<ValueType> >
3323   class IteratorOpen_T :  public Iterator_T<InOutIterator>
3324   {
3325   public:
3326     FromOper  from;
3327     AsvalOper asval;
3328     typedef InOutIterator nonconst_iter;
3329     typedef ValueType value_type;
3330     typedef Iterator_T<nonconst_iter>  base;
3331     typedef IteratorOpen_T<InOutIterator, ValueType, FromOper, AsvalOper> self_type;
3332 
3333   public:
IteratorOpen_T(nonconst_iter curr,VALUE seq=Qnil)3334     IteratorOpen_T(nonconst_iter curr, VALUE seq = Qnil)
3335       : Iterator_T<InOutIterator>(curr, seq)
3336     {
3337     }
3338 
value() const3339     virtual VALUE value() const {
3340       return from(static_cast<const value_type&>(*(base::current)));
3341     }
3342 
setValue(const VALUE & v)3343     virtual VALUE setValue( const VALUE& v )
3344     {
3345       value_type& dst = *base::current;
3346       if ( asval(v, dst) ) return v;
3347       return Qnil;
3348     }
3349 
dup() const3350     Iterator *dup() const
3351     {
3352       return new self_type(*this);
3353     }
3354   };
3355 
3356   /**
3357    * ConstIterator class for a const_iterator where begin() and end() boundaries are known.
3358    *
3359    */
3360   template<typename OutConstIterator,
3361 	   typename ValueType = typename std::iterator_traits<OutConstIterator>::value_type,
3362 	   typename FromOper = from_oper<ValueType> >
3363   class ConstIteratorClosed_T :  public ConstIterator_T<OutConstIterator>
3364   {
3365   public:
3366     FromOper from;
3367     typedef OutConstIterator const_iter;
3368     typedef ValueType value_type;
3369     typedef ConstIterator_T<const_iter>  base;
3370     typedef ConstIteratorClosed_T<OutConstIterator, ValueType, FromOper> self_type;
3371 
3372   protected:
advance(ptrdiff_t n)3373     virtual ConstIterator* advance(ptrdiff_t n)
3374     {
3375       std::advance( base::current, n );
3376       if ( base::current == end )
3377 	throw stop_iteration();
3378       return this;
3379     }
3380 
3381   public:
ConstIteratorClosed_T(const_iter curr,const_iter first,const_iter last,VALUE seq=Qnil)3382     ConstIteratorClosed_T(const_iter curr, const_iter first,
3383 			  const_iter last, VALUE seq = Qnil)
3384       : ConstIterator_T<OutConstIterator>(curr, seq), begin(first), end(last)
3385     {
3386     }
3387 
value() const3388     virtual VALUE value() const {
3389       if (base::current == end) {
3390 	throw stop_iteration();
3391       } else {
3392 	return from(static_cast<const value_type&>(*(base::current)));
3393       }
3394     }
3395 
dup() const3396     ConstIterator *dup() const
3397     {
3398       return new self_type(*this);
3399     }
3400 
3401 
3402   private:
3403     const_iter begin;
3404     const_iter end;
3405   };
3406 
3407   /**
3408    * Iterator class for a iterator where begin() and end() boundaries are known.
3409    *
3410    */
3411   template<typename InOutIterator,
3412 	   typename ValueType = typename std::iterator_traits<InOutIterator>::value_type,
3413 	   typename FromOper = from_oper<ValueType>,
3414 	   typename AsvalOper = asval_oper<ValueType> >
3415   class IteratorClosed_T :  public Iterator_T<InOutIterator>
3416   {
3417   public:
3418     FromOper   from;
3419     AsvalOper asval;
3420     typedef InOutIterator nonconst_iter;
3421     typedef ValueType value_type;
3422     typedef Iterator_T<nonconst_iter>  base;
3423     typedef IteratorClosed_T<InOutIterator, ValueType, FromOper, AsvalOper> self_type;
3424 
3425   protected:
advance(ptrdiff_t n)3426     virtual Iterator* advance(ptrdiff_t n)
3427     {
3428       std::advance( base::current, n );
3429       if ( base::current == end )
3430 	throw stop_iteration();
3431       return this;
3432     }
3433 
3434   public:
IteratorClosed_T(nonconst_iter curr,nonconst_iter first,nonconst_iter last,VALUE seq=Qnil)3435     IteratorClosed_T(nonconst_iter curr, nonconst_iter first,
3436 		     nonconst_iter last, VALUE seq = Qnil)
3437       : Iterator_T<InOutIterator>(curr, seq), begin(first), end(last)
3438     {
3439     }
3440 
value() const3441     virtual VALUE value() const {
3442       if (base::current == end) {
3443 	throw stop_iteration();
3444       } else {
3445 	return from(static_cast<const value_type&>(*(base::current)));
3446       }
3447     }
3448 
3449     // Iterator setter method, required by Ruby
setValue(const VALUE & v)3450     virtual VALUE setValue( const VALUE& v )
3451     {
3452       if (base::current == end)
3453 	throw stop_iteration();
3454 
3455       value_type& dst = *base::current;
3456       if ( asval( v, dst ) ) return v;
3457       return Qnil;
3458     }
3459 
dup() const3460     Iterator *dup() const
3461     {
3462       return new self_type(*this);
3463     }
3464 
3465   private:
3466     nonconst_iter begin;
3467     nonconst_iter end;
3468   };
3469 
3470   /* Partial specialization for bools which don't allow de-referencing */
3471   template< typename InOutIterator, typename FromOper, typename AsvalOper >
3472   class IteratorOpen_T< InOutIterator, bool, FromOper, AsvalOper > :
3473     public Iterator_T<InOutIterator>
3474   {
3475   public:
3476     FromOper   from;
3477     AsvalOper asval;
3478     typedef InOutIterator nonconst_iter;
3479     typedef bool value_type;
3480     typedef Iterator_T<nonconst_iter>  base;
3481     typedef IteratorOpen_T<InOutIterator, bool, FromOper, AsvalOper> self_type;
3482 
IteratorOpen_T(nonconst_iter curr,VALUE seq=Qnil)3483     IteratorOpen_T(nonconst_iter curr, VALUE seq = Qnil)
3484       : Iterator_T<InOutIterator>(curr, seq)
3485     {
3486     }
3487 
value() const3488     virtual VALUE value() const {
3489       return from(static_cast<const value_type&>(*(base::current)));
3490     }
3491 
setValue(const VALUE & v)3492     virtual VALUE setValue( const VALUE& v )
3493     {
3494       bool tmp = *base::current;
3495       if ( asval( v, tmp ) )
3496 	{
3497 	  *base::current = tmp;
3498 	  return v;
3499 	}
3500       return Qnil;
3501     }
3502 
dup() const3503     Iterator *dup() const
3504     {
3505       return new self_type(*this);
3506     }
3507 
3508   };
3509 
3510   /* Partial specialization for bools which don't allow de-referencing */
3511   template< typename InOutIterator, typename FromOper, typename AsvalOper >
3512   class IteratorClosed_T< InOutIterator, bool, FromOper, AsvalOper > :
3513     public Iterator_T<InOutIterator>
3514   {
3515   public:
3516     FromOper   from;
3517     AsvalOper asval;
3518     typedef InOutIterator nonconst_iter;
3519     typedef bool value_type;
3520     typedef Iterator_T<nonconst_iter>  base;
3521     typedef IteratorClosed_T<InOutIterator, bool, FromOper, AsvalOper> self_type;
3522 
3523   protected:
advance(ptrdiff_t n)3524     virtual Iterator* advance(ptrdiff_t n)
3525     {
3526       std::advance( base::current, n );
3527       if ( base::current == end )
3528 	throw stop_iteration();
3529       return this;
3530     }
3531 
3532   public:
IteratorClosed_T(nonconst_iter curr,nonconst_iter first,nonconst_iter last,VALUE seq=Qnil)3533     IteratorClosed_T(nonconst_iter curr, nonconst_iter first,
3534 		     nonconst_iter last, VALUE seq = Qnil)
3535       : Iterator_T<InOutIterator>(curr, seq), begin(first), end(last)
3536     {
3537     }
3538 
value() const3539     virtual VALUE value() const {
3540       if (base::current == end) {
3541 	throw stop_iteration();
3542       } else {
3543 	return from(static_cast<const value_type&>(*(base::current)));
3544       }
3545     }
3546 
setValue(const VALUE & v)3547     virtual VALUE setValue( const VALUE& v )
3548     {
3549       if (base::current == end)
3550 	throw stop_iteration();
3551 
3552       bool tmp = *base::current;
3553       if ( asval( v, tmp ) )
3554 	{
3555 	  *base::current = tmp;
3556 	  return v;
3557 	}
3558       return Qnil;
3559     }
3560 
dup() const3561     Iterator *dup() const
3562     {
3563       return new self_type(*this);
3564     }
3565 
3566   private:
3567     nonconst_iter begin;
3568     nonconst_iter end;
3569   };
3570 
3571 
3572   /**
3573    * Helper function used to wrap a bounded const_iterator.  This is to be used in
3574    * a %typemap(out), for example.
3575    *
3576    */
3577   template<typename InOutIter>
3578   inline Iterator*
make_nonconst_iterator(const InOutIter & current,const InOutIter & begin,const InOutIter & end,VALUE seq=Qnil)3579   make_nonconst_iterator(const InOutIter& current, const InOutIter& begin,
3580 			 const InOutIter& end, VALUE seq = Qnil)
3581   {
3582     return new IteratorClosed_T<InOutIter>(current, begin, end, seq);
3583   }
3584 
3585   /**
3586    * Helper function used to wrap an unbounded const_iterator.  This is to be used in
3587    * a %typemap(out), for example.
3588    *
3589    */
3590   template<typename InOutIter>
3591   inline Iterator*
make_nonconst_iterator(const InOutIter & current,VALUE seq=Qnil)3592   make_nonconst_iterator(const InOutIter& current, VALUE seq = Qnil)
3593   {
3594     return new IteratorOpen_T<InOutIter>(current, seq);
3595   }
3596 
3597   /**
3598    * Helper function used to wrap a bounded const_iterator.  This is to be used in
3599    * a %typemap(out), for example.
3600    *
3601    */
3602   template<typename OutIter>
3603   inline ConstIterator*
make_const_iterator(const OutIter & current,const OutIter & begin,const OutIter & end,VALUE seq=Qnil)3604   make_const_iterator(const OutIter& current, const OutIter& begin,
3605                        const OutIter& end, VALUE seq = Qnil)
3606   {
3607     return new ConstIteratorClosed_T<OutIter>(current, begin, end, seq);
3608   }
3609 
3610   /**
3611    * Helper function used to wrap an unbounded const_iterator.  This is to be used in
3612    * a %typemap(out), for example.
3613    *
3614    */
3615   template<typename OutIter>
3616   inline ConstIterator*
make_const_iterator(const OutIter & current,VALUE seq=Qnil)3617   make_const_iterator(const OutIter& current, VALUE seq = Qnil)
3618   {
3619     return new ConstIteratorOpen_T<OutIter>(current, seq);
3620   }
3621 }
3622 
3623 
3624 namespace swig
3625 {
3626 
3627   /**
3628    * This class is a proxy class for references, used to return and set values
3629    * of an element of a Ruby Array of stuff.
3630    * It can be used by RubySequence_InputIterator to make it work with STL
3631    * algorithms.
3632    *
3633    */
3634   template <class T>
3635   struct RubySequence_Ref
3636   {
RubySequence_Refswig::RubySequence_Ref3637     RubySequence_Ref(VALUE  seq, int index)
3638       : _seq(seq), _index(index)
3639     {
3640     }
3641 
operator Tswig::RubySequence_Ref3642     operator T () const
3643     {
3644       VALUE item = rb_ary_entry(_seq, _index );
3645       try {
3646 	return swig::as<T>(item, true);
3647       } catch (std::exception& e) {
3648 	char msg[1024];
3649 	sprintf(msg, "in sequence element %d ", _index);
3650 	VALUE lastErr = rb_gv_get("$!");
3651 	if ( lastErr == Qnil ) {
3652 	  SWIG_Error(SWIG_TypeError,  swig::type_name<T>());
3653 	}
3654 	VALUE str = rb_str_new2(msg);
3655 	str = rb_str_cat2( str, e.what() );
3656 	SWIG_Ruby_ExceptionType( NULL, str );
3657 	throw;
3658       }
3659     }
3660 
operator =swig::RubySequence_Ref3661     RubySequence_Ref& operator=(const T& v)
3662     {
3663       rb_ary_set(_seq, _index, swig::from< T >(v));
3664       return *this;
3665     }
3666 
3667   private:
3668     VALUE  _seq;
3669     int _index;
3670   };
3671 
3672 
3673   /**
3674    * This class is a proxy to return a pointer to a class, usually
3675    * RubySequence_Ref.
3676    * It can be used by RubySequence_InputIterator to make it work with STL
3677    * algorithms.
3678    *
3679    */
3680   template <class T>
3681   struct RubySequence_ArrowProxy
3682   {
RubySequence_ArrowProxyswig::RubySequence_ArrowProxy3683     RubySequence_ArrowProxy(const T& x): m_value(x) {}
operator ->swig::RubySequence_ArrowProxy3684     const T* operator->() const { return &m_value; }
operator const T*swig::RubySequence_ArrowProxy3685     operator const T*() const { return &m_value; }
3686     T m_value;
3687   };
3688 
3689 
3690   /**
3691    * Input Iterator.  This adapator class is a random access iterator that
3692    * allows you to use STL algorithms with a Ruby class (a Ruby Array by default).
3693    *
3694    */
3695   template <class T, class Reference = RubySequence_Ref< T > >
3696   struct RubySequence_InputIterator
3697   {
3698     typedef RubySequence_InputIterator<T, Reference > self;
3699 
3700     typedef std::random_access_iterator_tag iterator_category;
3701     typedef Reference reference;
3702     typedef T value_type;
3703     typedef T* pointer;
3704     typedef ptrdiff_t difference_type;
3705 
RubySequence_InputIteratorswig::RubySequence_InputIterator3706     RubySequence_InputIterator()
3707     {
3708     }
3709 
RubySequence_InputIteratorswig::RubySequence_InputIterator3710     RubySequence_InputIterator(VALUE  seq, int index)
3711       : _seq(seq), _index(index)
3712     {
3713     }
3714 
operator *swig::RubySequence_InputIterator3715     reference operator*() const
3716     {
3717       return reference(_seq, _index);
3718     }
3719 
3720     RubySequence_ArrowProxy<T>
operator ->swig::RubySequence_InputIterator3721     operator->() const {
3722       return RubySequence_ArrowProxy<T>(operator*());
3723     }
3724 
operator ==swig::RubySequence_InputIterator3725     bool operator==(const self& ri) const
3726     {
3727       return (_index == ri._index) && (_seq == ri._seq);
3728     }
3729 
operator !=swig::RubySequence_InputIterator3730     bool operator!=(const self& ri) const
3731     {
3732       return !(operator==(ri));
3733     }
3734 
operator ++swig::RubySequence_InputIterator3735     self& operator ++ ()
3736     {
3737       ++_index;
3738       return *this;
3739     }
3740 
operator --swig::RubySequence_InputIterator3741     self& operator -- ()
3742     {
3743       --_index;
3744       return *this;
3745     }
3746 
operator +=swig::RubySequence_InputIterator3747     self& operator += (difference_type n)
3748     {
3749       _index += n;
3750       return *this;
3751     }
3752 
operator +swig::RubySequence_InputIterator3753     self operator +(difference_type n) const
3754     {
3755       return self(_seq, _index + n);
3756     }
3757 
operator -=swig::RubySequence_InputIterator3758     self& operator -= (difference_type n)
3759     {
3760       _index -= n;
3761       return *this;
3762     }
3763 
operator -swig::RubySequence_InputIterator3764     self operator -(difference_type n) const
3765     {
3766       return self(_seq, _index - n);
3767     }
3768 
operator -swig::RubySequence_InputIterator3769     difference_type operator - (const self& ri) const
3770     {
3771       return _index - ri._index;
3772     }
3773 
operator <swig::RubySequence_InputIterator3774     bool operator < (const self& ri) const
3775     {
3776       return _index < ri._index;
3777     }
3778 
3779     reference
operator []swig::RubySequence_InputIterator3780     operator[](difference_type n) const
3781     {
3782       return reference(_seq, _index + n);
3783     }
3784 
3785   private:
3786     VALUE  _seq;
3787     difference_type _index;
3788   };
3789 
3790 
3791   /**
3792    * This adaptor class allows you to use a Ruby Array as if it was an STL
3793    * container, giving it begin(), end(), and iterators.
3794    *
3795    */
3796   template <class T>
3797   struct RubySequence_Cont
3798   {
3799     typedef RubySequence_Ref<T> reference;
3800     typedef const RubySequence_Ref<T> const_reference;
3801     typedef T value_type;
3802     typedef T* pointer;
3803     typedef int difference_type;
3804     typedef int size_type;
3805     typedef const pointer const_pointer;
3806     typedef RubySequence_InputIterator<T, reference> iterator;
3807     typedef RubySequence_InputIterator<T, const_reference> const_iterator;
3808 
RubySequence_Contswig::RubySequence_Cont3809     RubySequence_Cont(VALUE  seq) : _seq(0)
3810     {
3811       if (!rb_obj_is_kind_of(seq, rb_cArray)) {
3812 	throw std::invalid_argument("an Array is expected");
3813       }
3814       _seq = seq;
3815     }
3816 
~RubySequence_Contswig::RubySequence_Cont3817     ~RubySequence_Cont()
3818     {
3819     }
3820 
sizeswig::RubySequence_Cont3821     size_type size() const
3822     {
3823       return RARRAY_LEN(_seq);
3824     }
3825 
emptyswig::RubySequence_Cont3826     bool empty() const
3827     {
3828       return size() == 0;
3829     }
3830 
beginswig::RubySequence_Cont3831     iterator begin()
3832     {
3833       return iterator(_seq, 0);
3834     }
3835 
beginswig::RubySequence_Cont3836     const_iterator begin() const
3837     {
3838       return const_iterator(_seq, 0);
3839     }
3840 
endswig::RubySequence_Cont3841     iterator end()
3842     {
3843       return iterator(_seq, size());
3844     }
3845 
endswig::RubySequence_Cont3846     const_iterator end() const
3847     {
3848       return const_iterator(_seq, size());
3849     }
3850 
operator []swig::RubySequence_Cont3851     reference operator[](difference_type n)
3852     {
3853       return reference(_seq, n);
3854     }
3855 
operator []swig::RubySequence_Cont3856     const_reference operator[](difference_type n)  const
3857     {
3858       return const_reference(_seq, n);
3859     }
3860 
checkswig::RubySequence_Cont3861     bool check(bool set_err = false) const
3862     {
3863       int s = (int) size();
3864       for (int i = 0; i < s; ++i) {
3865 	VALUE item = rb_ary_entry(_seq, i );
3866 	if (!swig::check<value_type>(item)) {
3867 	  if (set_err) {
3868 	    char msg[1024];
3869 	    sprintf(msg, "in sequence element %d", i);
3870 	    SWIG_Error(SWIG_RuntimeError, msg);
3871 	  }
3872 	  return false;
3873 	}
3874       }
3875       return true;
3876     }
3877 
3878   private:
3879     VALUE  _seq;
3880   };
3881 
3882 }
3883 
3884 
3885 SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)3886 SWIG_pchar_descriptor(void)
3887 {
3888   static int init = 0;
3889   static swig_type_info* info = 0;
3890   if (!init) {
3891     info = SWIG_TypeQuery("_p_char");
3892     init = 1;
3893   }
3894   return info;
3895 }
3896 
3897 
3898 SWIGINTERN int
SWIG_AsCharPtrAndSize(VALUE obj,char ** cptr,size_t * psize,int * alloc)3899 SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
3900 {
3901   if (TYPE(obj) == T_STRING) {
3902     char *cstr = StringValuePtr(obj);
3903     size_t size = RSTRING_LEN(obj) + 1;
3904     if (cptr)  {
3905       if (alloc) {
3906 	if (*alloc == SWIG_NEWOBJ) {
3907 	  *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
3908 	} else {
3909 	  *cptr = cstr;
3910 	  *alloc = SWIG_OLDOBJ;
3911 	}
3912       }
3913     }
3914     if (psize) *psize = size;
3915     return SWIG_OK;
3916   } else {
3917     swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3918     if (pchar_descriptor) {
3919       void* vptr = 0;
3920       if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
3921 	if (cptr) *cptr = (char *)vptr;
3922 	if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
3923 	if (alloc) *alloc = SWIG_OLDOBJ;
3924 	return SWIG_OK;
3925       }
3926     }
3927   }
3928   return SWIG_TypeError;
3929 }
3930 
3931 
3932 
3933 
3934 
3935 SWIGINTERNINLINE VALUE
SWIG_FromCharPtrAndSize(const char * carray,size_t size)3936 SWIG_FromCharPtrAndSize(const char* carray, size_t size)
3937 {
3938   if (carray) {
3939     if (size > LONG_MAX) {
3940       swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
3941       return pchar_descriptor ?
3942 	SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
3943     } else {
3944       return rb_str_new(carray, static_cast< long >(size));
3945     }
3946   } else {
3947     return Qnil;
3948   }
3949 }
3950 
3951 
3952 SWIGINTERNINLINE VALUE
SWIG_FromCharPtr(const char * cptr)3953 SWIG_FromCharPtr(const char *cptr)
3954 {
3955   return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
3956 }
3957 
3958 
3959 SWIGINTERNINLINE VALUE
SWIG_From_int(int value)3960 SWIG_From_int  (int value)
3961 {
3962   return SWIG_From_long  (value);
3963 }
3964 
3965 
3966 SWIGINTERNINLINE VALUE
SWIG_From_long_SS_long(long long value)3967 SWIG_From_long_SS_long  (long long value)
3968 {
3969   return LL2NUM(value);
3970 }
3971 
3972 
3973 SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_long_SS_long(unsigned long long value)3974 SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
3975 {
3976   return ULL2NUM(value);
3977 }
3978 
3979 
3980 /*@SWIG:/home/yoann/dev/prelude/bin/share/swig/3.0.6/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIG_AUX_NUM2ULL(VALUE * args)3981 SWIGINTERN VALUE SWIG_AUX_NUM2ULL(VALUE *args)
3982 {
3983   VALUE obj = args[0];
3984   VALUE type = TYPE(obj);
3985   long long *res = (long long *)(args[1]);
3986   *res = type == T_FIXNUM ? NUM2ULL(obj) : rb_big2ull(obj);
3987   return obj;
3988 }
3989 /*@SWIG@*/
3990 
3991 SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long(VALUE obj,unsigned long long * val)3992 SWIG_AsVal_unsigned_SS_long_SS_long (VALUE obj, unsigned long long *val)
3993 {
3994   VALUE type = TYPE(obj);
3995   if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
3996     unsigned long long v;
3997     VALUE a[2];
3998     a[0] = obj;
3999     a[1] = (VALUE)(&v);
4000     if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
4001       if (val) *val = v;
4002       return SWIG_OK;
4003     }
4004   }
4005   return SWIG_TypeError;
4006 }
4007 
4008 
4009 SWIGINTERNINLINE VALUE
SWIG_From_std_string(const std::string & s)4010 SWIG_From_std_string  (const std::string& s)
4011 {
4012   return SWIG_FromCharPtrAndSize(s.data(), s.size());
4013 }
4014 
4015 
4016 SWIGINTERN int
SWIG_AsVal_int(VALUE obj,int * val)4017 SWIG_AsVal_int (VALUE obj, int *val)
4018 {
4019   long v;
4020   int res = SWIG_AsVal_long (obj, &v);
4021   if (SWIG_IsOK(res)) {
4022     if ((v < INT_MIN || v > INT_MAX)) {
4023       return SWIG_OverflowError;
4024     } else {
4025       if (val) *val = static_cast< int >(v);
4026     }
4027   }
4028   return res;
4029 }
4030 
4031 
4032 SWIGINTERN int
SWIG_AsVal_bool(VALUE obj,bool * val)4033 SWIG_AsVal_bool (VALUE obj, bool *val)
4034 {
4035   if (obj == Qtrue) {
4036     if (val) *val = true;
4037     return SWIG_OK;
4038   } else if (obj == Qfalse) {
4039     if (val) *val = false;
4040     return SWIG_OK;
4041   } else {
4042     int res = 0;
4043     if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {
4044       if (val) *val = res ? true : false;
4045       return SWIG_OK;
4046     }
4047   }
4048   return SWIG_TypeError;
4049 }
4050 
4051 
4052 SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_long(unsigned long value)4053 SWIG_From_unsigned_SS_long  (unsigned long value)
4054 {
4055   return ULONG2NUM(value);
4056 }
4057 
4058 
4059 SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_int(unsigned int value)4060 SWIG_From_unsigned_SS_int  (unsigned int value)
4061 {
4062   return SWIG_From_unsigned_SS_long  (value);
4063 }
4064 
4065 
4066   namespace swig {
4067     template <>  struct traits<Prelude::Connection > {
4068       typedef pointer_category category;
type_nameswig::traits4069       static const char* type_name() { return"Prelude::Connection"; }
4070     };
4071   }
4072 
4073 
4074 namespace swig {
4075   template <class RubySeq, class Seq>
4076   inline void
assign(const RubySeq & rubyseq,Seq * seq)4077   assign(const RubySeq& rubyseq, Seq* seq) {
4078     // seq->assign(rubyseq.begin(), rubyseq.end()); // not used as not always implemented
4079     typedef typename RubySeq::value_type value_type;
4080     typename RubySeq::const_iterator it = rubyseq.begin();
4081     for (;it != rubyseq.end(); ++it) {
4082       seq->insert(seq->end(),(value_type)(*it));
4083     }
4084   }
4085 
4086   template <class Seq, class T = typename Seq::value_type >
4087   struct traits_asptr_stdseq {
4088     typedef Seq sequence;
4089     typedef T value_type;
4090 
asptrswig::traits_asptr_stdseq4091     static int asptr(VALUE obj, sequence **seq) {
4092       if (rb_obj_is_kind_of(obj, rb_cArray) == Qtrue) {
4093 	try {
4094 	  RubySequence_Cont<value_type> rubyseq(obj);
4095 	  if (seq) {
4096 	    sequence *pseq = new sequence();
4097 	    assign(rubyseq, pseq);
4098 	    *seq = pseq;
4099 	    return SWIG_NEWOBJ;
4100 	  } else {
4101 	    return rubyseq.check() ? SWIG_OK : SWIG_ERROR;
4102 	  }
4103 	} catch (std::exception& e) {
4104 	  if (seq) {
4105 	    VALUE lastErr = rb_gv_get("$!");
4106 	    if (lastErr == Qnil) {
4107 	      rb_raise(rb_eTypeError, "%s", e.what());
4108 	    }
4109 	  }
4110 	  return SWIG_ERROR;
4111 	}
4112       } else {
4113 	sequence *p;
4114 	if (SWIG_ConvertPtr(obj,(void**)&p,
4115 			    swig::type_info<sequence>(),0) == SWIG_OK) {
4116 	  if (seq) *seq = p;
4117 	  return SWIG_OLDOBJ;
4118 	}
4119       }
4120       return SWIG_ERROR;
4121     }
4122   };
4123 
4124   // Partial specialization for GC_VALUE's.  No need to typecheck each
4125   // element.
4126   template< class Seq >
4127   struct traits_asptr_stdseq< Seq, swig::GC_VALUE > {
4128     typedef Seq sequence;
4129     typedef swig::GC_VALUE value_type;
4130 
asptrswig::traits_asptr_stdseq4131     static int asptr(VALUE obj, sequence **seq) {
4132       if (rb_obj_is_kind_of(obj, rb_cArray) == Qtrue) {
4133 	try {
4134 	  if (seq) {
4135 	    RubySequence_Cont<value_type> rubyseq(obj);
4136 	    sequence *pseq = new sequence();
4137 	    assign(rubyseq, pseq);
4138 	    *seq = pseq;
4139 	    return SWIG_NEWOBJ;
4140 	  } else {
4141 	    return true;
4142 	  }
4143 	} catch (std::exception& e) {
4144 	  if (seq) {
4145 	    VALUE lastErr = rb_gv_get("$!");
4146 	    if (lastErr == Qnil) {
4147 	      rb_raise(rb_eTypeError, "%s", e.what());
4148 	    }
4149 	  }
4150 	  return SWIG_ERROR;
4151 	}
4152       } else {
4153 	sequence *p;
4154 	if (SWIG_ConvertPtr(obj,(void**)&p,
4155 			    swig::type_info<sequence>(),0) == SWIG_OK) {
4156 	  if (seq) *seq = p;
4157 	  return SWIG_OLDOBJ;
4158 	}
4159       }
4160       return SWIG_ERROR;
4161     }
4162   };
4163 
4164   template <class Seq, class T = typename Seq::value_type >
4165   struct traits_from_stdseq {
4166     typedef Seq sequence;
4167     typedef T value_type;
4168     typedef typename Seq::size_type size_type;
4169     typedef typename sequence::const_iterator const_iterator;
4170 
fromswig::traits_from_stdseq4171     static VALUE from(const sequence& seq) {
4172 
4173 
4174 
4175 
4176 
4177 
4178       size_type size = seq.size();
4179       if (size <= (size_type)INT_MAX) {
4180 	VALUE obj = rb_ary_new2((int)size);
4181 	int i = 0;
4182 	for (const_iterator it = seq.begin();
4183 	     it != seq.end(); ++it, ++i) {
4184 	  rb_ary_push(obj, swig::from< value_type >(*it));
4185 	}
4186 	rb_obj_freeze(obj);  // treat as immutable result
4187 	return obj;
4188       } else {
4189 	rb_raise(rb_eRangeError,"sequence size not valid in ruby");
4190 	return Qnil;
4191       }
4192     }
4193   };
4194 }
4195 
4196 
4197   namespace swig {
4198     template <class T>
4199     struct traits_asptr<std::vector<T> >  {
asptrswig::traits_asptr4200       static int asptr(VALUE obj, std::vector<T> **vec) {
4201 	return traits_asptr_stdseq<std::vector<T> >::asptr(obj, vec);
4202       }
4203     };
4204 
4205     template <class T>
4206     struct traits_from<std::vector<T> > {
fromswig::traits_from4207       static VALUE from(const std::vector<T>& vec) {
4208 	return traits_from_stdseq<std::vector<T> >::from(vec);
4209       }
4210     };
4211   }
4212 
4213 
4214       namespace swig {
4215 	template <>  struct traits<std::vector<Prelude::Connection, std::allocator< Prelude::Connection > > > {
4216 	  typedef pointer_category category;
type_nameswig::traits4217 	  static const char* type_name() {
4218 	    return "std::vector<" "Prelude::Connection" "," "std::allocator< Prelude::Connection >" " >";
4219 	  }
4220 	};
4221       }
4222 
4223 
4224 static gl_thread_t __initial_thread;
4225 static VALUE __prelude_log_func = Qnil;
4226 
_cb_ruby_log(int level,const char * str)4227 static void _cb_ruby_log(int level, const char *str)
4228 {
4229         static int cid = rb_intern("call");
4230 
4231         if ( (gl_thread_t) gl_thread_self() != __initial_thread )
4232                 return;
4233 
4234         rb_funcall(__prelude_log_func, cid, 2, SWIG_From_int(level), SWIG_FromCharPtr(str));
4235 }
4236 
4237 
_cb_ruby_write(prelude_msgbuf_t * fd,prelude_msg_t * msg)4238 static int _cb_ruby_write(prelude_msgbuf_t *fd, prelude_msg_t *msg)
4239 {
4240         ssize_t ret;
4241         rb_io_t *fptr;
4242         VALUE *io = (VALUE *) prelude_msgbuf_get_data(fd);
4243 
4244         GetOpenFile(*io, fptr);
4245 
4246         ret = fwrite((const char *) prelude_msg_get_message_data(msg), 1, prelude_msg_get_len(msg), GetWriteFile(fptr));
4247         if ( ret != prelude_msg_get_len(msg) )
4248                 return prelude_error_from_errno(errno);
4249 
4250         prelude_msg_recycle(msg);
4251 
4252         return 0;
4253 }
4254 
4255 
_cb_ruby_read(prelude_io_t * fd,void * buf,size_t size)4256 static ssize_t _cb_ruby_read(prelude_io_t *fd, void *buf, size_t size)
4257 {
4258         ssize_t ret;
4259         rb_io_t *fptr;
4260         VALUE *io = (VALUE *) prelude_io_get_fdptr(fd);
4261 
4262         GetOpenFile(*io, fptr);
4263 
4264         ret = fread(buf, 1, size, GetReadFile(fptr));
4265         if ( ret < 0 )
4266                 ret = prelude_error_from_errno(errno);
4267 
4268         else if ( ret == 0 )
4269                 ret = prelude_error(PRELUDE_ERROR_EOF);
4270 
4271         return ret;
4272 }
4273 
4274 
4275 SWIGINTERN int
SWIG_AsPtr_std_string(VALUE obj,std::string ** val)4276 SWIG_AsPtr_std_string (VALUE obj, std::string **val)
4277 {
4278   char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
4279   if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
4280     if (buf) {
4281       if (val) *val = new std::string(buf, size - 1);
4282       if (alloc == SWIG_NEWOBJ) delete[] buf;
4283       return SWIG_NEWOBJ;
4284     } else {
4285       if (val) *val = 0;
4286       return SWIG_OLDOBJ;
4287     }
4288   } else {
4289     static int init = 0;
4290     static swig_type_info* descriptor = 0;
4291     if (!init) {
4292       descriptor = SWIG_TypeQuery("std::string" " *");
4293       init = 1;
4294     }
4295     if (descriptor) {
4296       std::string *vptr;
4297       int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
4298       if (SWIG_IsOK(res) && val) *val = vptr;
4299       return res;
4300     }
4301   }
4302   return SWIG_ERROR;
4303 }
4304 
4305 
4306   namespace swig {
4307     template <>  struct traits<Prelude::IDMEF > {
4308       typedef pointer_category category;
type_nameswig::traits4309       static const char* type_name() { return"Prelude::IDMEF"; }
4310     };
4311   }
4312 
4313 
4314       namespace swig {
4315 	template <>  struct traits<std::vector<Prelude::IDMEF, std::allocator< Prelude::IDMEF > > > {
4316 	  typedef pointer_category category;
type_nameswig::traits4317 	  static const char* type_name() {
4318 	    return "std::vector<" "Prelude::IDMEF" "," "std::allocator< Prelude::IDMEF >" " >";
4319 	  }
4320 	};
4321       }
4322 
4323 
4324   namespace swig {
4325     template <>  struct traits<Prelude::IDMEFValue > {
4326       typedef pointer_category category;
type_nameswig::traits4327       static const char* type_name() { return"Prelude::IDMEFValue"; }
4328     };
4329   }
4330 
4331 
4332       namespace swig {
4333 	template <>  struct traits<std::vector<Prelude::IDMEFValue, std::allocator< Prelude::IDMEFValue > > > {
4334 	  typedef pointer_category category;
type_nameswig::traits4335 	  static const char* type_name() {
4336 	    return "std::vector<" "Prelude::IDMEFValue" "," "std::allocator< Prelude::IDMEFValue >" " >";
4337 	  }
4338 	};
4339       }
4340 
4341 
4342 /*@SWIG:/home/yoann/dev/prelude/bin/share/swig/3.0.6/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIG_AUX_NUM2LL(VALUE * args)4343 SWIGINTERN VALUE SWIG_AUX_NUM2LL(VALUE *args)
4344 {
4345   VALUE obj = args[0];
4346   VALUE type = TYPE(obj);
4347   long long *res = (long long *)(args[1]);
4348   *res = type == T_FIXNUM ? NUM2LL(obj) : rb_big2ll(obj);
4349   return obj;
4350 }
4351 /*@SWIG@*/
4352 
4353 SWIGINTERN int
SWIG_AsVal_long_SS_long(VALUE obj,long long * val)4354 SWIG_AsVal_long_SS_long (VALUE obj, long long *val)
4355 {
4356   VALUE type = TYPE(obj);
4357   if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
4358     long long v;
4359     VALUE a[2];
4360     a[0] = obj;
4361     a[1] = (VALUE)(&v);
4362     if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
4363       if (val) *val = v;
4364       return SWIG_OK;
4365     }
4366   }
4367   return SWIG_TypeError;
4368 }
4369 
4370 
4371 #include <float.h>
4372 
4373 
4374 #include <math.h>
4375 
4376 
4377 /* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
4378 #ifndef SWIG_isfinite
4379 # if defined(isfinite)
4380 #  define SWIG_isfinite(X) (isfinite(X))
4381 # elif defined(_MSC_VER)
4382 #  define SWIG_isfinite(X) (_finite(X))
4383 # elif defined(__sun) && defined(__SVR4)
4384 #  include <ieeefp.h>
4385 #  define SWIG_isfinite(X) (finite(X))
4386 # endif
4387 #endif
4388 
4389 
4390 /* Accept infinite as a valid float value unless we are unable to check if a value is finite */
4391 #ifdef SWIG_isfinite
4392 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
4393 #else
4394 # define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
4395 #endif
4396 
4397 
4398 /*@SWIG:/home/yoann/dev/prelude/bin/share/swig/3.0.6/ruby/rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIG_AUX_NUM2DBL(VALUE * args)4399 SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
4400 {
4401   VALUE obj = args[0];
4402   VALUE type = TYPE(obj);
4403   double *res = (double *)(args[1]);
4404   *res = NUM2DBL(obj); (void)type;
4405   return obj;
4406 }
4407 /*@SWIG@*/
4408 
4409 SWIGINTERN int
SWIG_AsVal_double(VALUE obj,double * val)4410 SWIG_AsVal_double (VALUE obj, double *val)
4411 {
4412   VALUE type = TYPE(obj);
4413   if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
4414     double v;
4415     VALUE a[2];
4416     a[0] = obj;
4417     a[1] = (VALUE)(&v);
4418     if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
4419       if (val) *val = v;
4420       return SWIG_OK;
4421     }
4422   }
4423   return SWIG_TypeError;
4424 }
4425 
4426 
4427 SWIGINTERN int
SWIG_AsVal_float(VALUE obj,float * val)4428 SWIG_AsVal_float (VALUE obj, float *val)
4429 {
4430   double v;
4431   int res = SWIG_AsVal_double (obj, &v);
4432   if (SWIG_IsOK(res)) {
4433     if (SWIG_Float_Overflow_Check(v)) {
4434       return SWIG_OverflowError;
4435     } else {
4436       if (val) *val = static_cast< float >(v);
4437     }
4438   }
4439   return res;
4440 }
4441 
4442 
4443   #define SWIG_From_double   rb_float_new
4444 
4445 
4446 SWIGINTERNINLINE VALUE
SWIG_From_float(float value)4447 SWIG_From_float  (float value)
4448 {
4449   return SWIG_From_double  (value);
4450 }
4451 
4452 
4453 #ifndef SWIG_FromBytePtrAndSize
4454 # define SWIG_FromBytePtrAndSize(arg, len) SWIG_FromCharPtrAndSize(arg, len)
4455 #endif
4456 
4457 
4458 int IDMEFValue_to_SWIG(TARGET_LANGUAGE_SELF self, const Prelude::IDMEFValue &result, void *extra, TARGET_LANGUAGE_OUTPUT_TYPE ret);
4459 
IDMEFValueList_to_SWIG(TARGET_LANGUAGE_SELF self,const Prelude::IDMEFValue & value,void * extra)4460 VALUE IDMEFValueList_to_SWIG(TARGET_LANGUAGE_SELF self, const Prelude::IDMEFValue &value, void *extra)
4461 {
4462         int ret;
4463         VALUE ary;
4464         std::vector<Prelude::IDMEFValue> result = value;
4465         std::vector<Prelude::IDMEFValue>::const_iterator i;
4466 
4467         ary = rb_ary_new2(result.size());
4468 
4469         for ( i = result.begin(); i != result.end(); i++ ) {
4470                 VALUE val;
4471 
4472                 if ( (*i).isNull() )
4473                         val = Qnil;
4474                 else {
4475                         ret = IDMEFValue_to_SWIG(self, *i, extra, &val);
4476                         if ( ret < 0 )
4477                                 return Qnil;
4478                 }
4479 
4480                 if ( ! rb_ary_push(ary, val) )
4481                         return Qnil;
4482         }
4483 
4484         return ary;
4485 }
4486 
4487 
4488 
IDMEFValue_to_SWIG(TARGET_LANGUAGE_SELF self,const Prelude::IDMEFValue & result,void * extra,TARGET_LANGUAGE_OUTPUT_TYPE ret)4489 int IDMEFValue_to_SWIG(TARGET_LANGUAGE_SELF self, const Prelude::IDMEFValue &result, void *extra, TARGET_LANGUAGE_OUTPUT_TYPE ret)
4490 {
4491         idmef_value_t *value = result;
4492         Prelude::IDMEFValue::IDMEFValueTypeEnum type = result.getType();
4493 
4494         if ( type == Prelude::IDMEFValue::TYPE_STRING ) {
4495                 prelude_string_t *str = idmef_value_get_string(value);
4496                 *ret = SWIG_FromCharPtrAndSize(prelude_string_get_string(str), prelude_string_get_len(str));
4497         }
4498 
4499         else if ( type == Prelude::IDMEFValue::TYPE_INT8 )
4500                 *ret = SWIG_From_int(idmef_value_get_int8(value));
4501 
4502         else if ( type == Prelude::IDMEFValue::TYPE_UINT8 )
4503                 *ret = SWIG_From_unsigned_SS_int(idmef_value_get_uint8(value));
4504 
4505         else if ( type == Prelude::IDMEFValue::TYPE_INT16 )
4506                 *ret = SWIG_From_int(idmef_value_get_int16(value));
4507 
4508         else if ( type == Prelude::IDMEFValue::TYPE_UINT16 )
4509                 *ret = SWIG_From_unsigned_SS_int(idmef_value_get_uint16(value));
4510 
4511         else if ( type == Prelude::IDMEFValue::TYPE_INT32 )
4512                 *ret = SWIG_From_int(idmef_value_get_int32(value));
4513 
4514         else if ( type == Prelude::IDMEFValue::TYPE_UINT32 )
4515                 *ret = SWIG_From_unsigned_SS_int(idmef_value_get_uint32(value));
4516 
4517         else if ( type == Prelude::IDMEFValue::TYPE_INT64 )
4518                 *ret = SWIG_From_long_SS_long(idmef_value_get_int64(value));
4519 
4520         else if ( type == Prelude::IDMEFValue::TYPE_UINT64 )
4521                 *ret = SWIG_From_unsigned_SS_long_SS_long(idmef_value_get_uint64(value));
4522 
4523         else if ( type == Prelude::IDMEFValue::TYPE_FLOAT )
4524                 *ret = SWIG_From_float(idmef_value_get_float(value));
4525 
4526         else if ( type == Prelude::IDMEFValue::TYPE_DOUBLE )
4527                 *ret = SWIG_From_double(idmef_value_get_double(value));
4528 
4529         else if ( type == Prelude::IDMEFValue::TYPE_ENUM ) {
4530                 const char *s = idmef_class_enum_to_string(idmef_value_get_class(value), idmef_value_get_enum(value));
4531                 *ret = SWIG_FromCharPtr(s);
4532         }
4533 
4534         else if ( type == Prelude::IDMEFValue::TYPE_TIME ) {
4535                 Prelude::IDMEFTime t = result;
4536                 *ret = SWIG_NewPointerObj(new Prelude::IDMEFTime(t), SWIGTYPE_p_Prelude__IDMEFTime, 1);
4537         }
4538 
4539         else if ( type == Prelude::IDMEFValue::TYPE_LIST )
4540                 *ret = IDMEFValueList_to_SWIG(self, result, extra);
4541 
4542         else if ( type == Prelude::IDMEFValue::TYPE_DATA ) {
4543                 idmef_data_t *d = idmef_value_get_data(value);
4544                 idmef_data_type_t t = idmef_data_get_type(d);
4545 
4546                 if ( t == IDMEF_DATA_TYPE_BYTE || t == IDMEF_DATA_TYPE_BYTE_STRING )
4547                         *ret = SWIG_FromBytePtrAndSize((const char *)idmef_data_get_data(d), idmef_data_get_len(d));
4548 
4549                 else if ( t == IDMEF_DATA_TYPE_CHAR )
4550                         *ret = SWIG_FromCharPtrAndSize((const char *)idmef_data_get_data(d), idmef_data_get_len(d));
4551 
4552                 else if ( t == IDMEF_DATA_TYPE_CHAR_STRING )
4553                         *ret = SWIG_FromCharPtrAndSize((const char *)idmef_data_get_data(d), idmef_data_get_len(d) - 1);
4554 
4555                 else if ( t == IDMEF_DATA_TYPE_FLOAT )
4556                         *ret = SWIG_From_float(idmef_data_get_float(d));
4557 
4558                 else if ( t == IDMEF_DATA_TYPE_UINT32 || IDMEF_DATA_TYPE_INT )
4559                         *ret = SWIG_From_unsigned_SS_long_SS_long(idmef_data_get_int(d));
4560         }
4561 
4562         else if ( type == Prelude::IDMEFValue::TYPE_CLASS ) {
4563                 idmef_object_t *obj = (idmef_object_t *) idmef_value_get_object(value);
4564                 *ret = SWIG_NewPointerObj(new Prelude::IDMEF(idmef_object_ref(obj)), SWIGTYPE_p_Prelude__IDMEF, 1);
4565         }
4566 
4567         else return -1;
4568 
4569         return 1;
4570 }
4571 
4572 
4573 SWIGINTERN int
SWIG_AsVal_unsigned_SS_int(VALUE obj,unsigned int * val)4574 SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
4575 {
4576   unsigned long v;
4577   int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
4578   if (SWIG_IsOK(res)) {
4579     if ((v > UINT_MAX)) {
4580       return SWIG_OverflowError;
4581     } else {
4582       if (val) *val = static_cast< unsigned int >(v);
4583     }
4584   }
4585   return res;
4586 }
4587 
Prelude_IDMEFPath_get(Prelude::IDMEFPath * self,Prelude::IDMEF & message)4588 SWIGINTERN Prelude::IDMEFValue Prelude_IDMEFPath_get(Prelude::IDMEFPath *self,Prelude::IDMEF &message){
4589                 Prelude::IDMEFValue value;
4590 
4591                 value = self->get(message);
4592                 if ( value.isNull() && self->isAmbiguous() ) {
4593                         std::vector<Prelude::IDMEFValue> v;
4594                         return Prelude::IDMEFValue(v);
4595                 }
4596 
4597                 return value;
4598         }
4599 
4600 SWIGINTERNINLINE VALUE
SWIG_From_size_t(size_t value)4601 SWIG_From_size_t  (size_t value)
4602 {
4603   return SWIG_From_unsigned_SS_long  (static_cast< unsigned long >(value));
4604 }
4605 
4606 
4607 SWIGINTERN int
SWIG_AsVal_std_string(VALUE obj,std::string * val)4608 SWIG_AsVal_std_string (VALUE obj, std::string *val)
4609 {
4610   std::string* v = (std::string *) 0;
4611   int res = SWIG_AsPtr_std_string (obj, &v);
4612   if (!SWIG_IsOK(res)) return res;
4613   if (v) {
4614     if (val) *val = *v;
4615     if (SWIG_IsNewObj(res)) {
4616       delete v;
4617       res = SWIG_DelNewMask(res);
4618     }
4619     return res;
4620   }
4621   return SWIG_ERROR;
4622 }
4623 
4624 
4625 namespace swig {
4626   template <> struct traits<std::string > {
4627     typedef value_category category;
type_nameswig::traits4628     static const char* type_name() { return"std::string"; }
4629   };
4630   template <>  struct traits_asval<std::string > {
4631     typedef std::string value_type;
asvalswig::traits_asval4632     static int asval(VALUE obj, value_type *val) {
4633       return SWIG_AsVal_std_string (obj, val);
4634     }
4635   };
4636   template <>  struct traits_from<std::string > {
4637     typedef std::string value_type;
fromswig::traits_from4638     static VALUE from(const value_type& val) {
4639       return SWIG_From_std_string  (val);
4640     }
4641   };
4642 }
4643 
4644 
4645       namespace swig {
4646 	template <>  struct traits<std::vector<std::string, std::allocator< std::string > > > {
4647 	  typedef pointer_category category;
type_nameswig::traits4648 	  static const char* type_name() {
4649 	    return "std::vector<" "std::string" "," "std::allocator< std::string >" " >";
4650 	  }
4651 	};
4652       }
4653 
Prelude_IDMEF_write(Prelude::IDMEF * self,void * nocast_p)4654 SWIGINTERN void Prelude_IDMEF_write(Prelude::IDMEF *self,void *nocast_p){
4655                 self->_genericWrite(_cb_ruby_write, nocast_p);
4656         }
Prelude_IDMEF_read(Prelude::IDMEF * self,void * nocast_p)4657 SWIGINTERN int Prelude_IDMEF_read(Prelude::IDMEF *self,void *nocast_p){
4658                 self->_genericRead(_cb_ruby_read, nocast_p);
4659                 return 1;
4660         }
Prelude_IDMEF_operator_Sg__Sg_(Prelude::IDMEF * self,void * nocast_p)4661 SWIGINTERN Prelude::IDMEF &Prelude_IDMEF_operator_Sg__Sg_(Prelude::IDMEF *self,void *nocast_p){
4662                 self->_genericWrite(_cb_ruby_write, nocast_p);
4663                 return *self;
4664         }
Prelude_IDMEF_operator_Sl__Sl_(Prelude::IDMEF * self,void * nocast_p)4665 SWIGINTERN Prelude::IDMEF &Prelude_IDMEF_operator_Sl__Sl_(Prelude::IDMEF *self,void *nocast_p){
4666                 self->_genericRead(_cb_ruby_read, nocast_p);
4667                 return *self;
4668         }
Prelude_IDMEF_get(Prelude::IDMEF * self,char const * path)4669 SWIGINTERN Prelude::IDMEFValue Prelude_IDMEF_get(Prelude::IDMEF *self,char const *path){
4670                 Prelude::IDMEFValue value;
4671                 Prelude::IDMEFPath ipath = Prelude::IDMEFPath(*self, path);
4672 
4673                 value = ipath.get(*self);
4674                 if ( value.isNull() && ipath.isAmbiguous() ) {
4675                         std::vector<Prelude::IDMEFValue> v;
4676                         return Prelude::IDMEFValue(v);
4677                 }
4678 
4679                 return value;
4680         }
4681 static swig_class SwigClassGC_VALUE;
4682 
4683 
4684 /*
4685   Document-method: Prelude::GC_VALUE.inspect
4686 
4687   call-seq:
4688     inspect -> VALUE
4689 
4690 Inspect class and its contents.
4691 */
4692 SWIGINTERN VALUE
_wrap_GC_VALUE_inspect(int argc,VALUE * argv,VALUE self)4693 _wrap_GC_VALUE_inspect(int argc, VALUE *argv, VALUE self) {
4694   swig::GC_VALUE *arg1 = (swig::GC_VALUE *) 0 ;
4695   swig::GC_VALUE r1 ;
4696   VALUE result;
4697   VALUE vresult = Qnil;
4698 
4699   if ((argc < 0) || (argc > 0)) {
4700     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4701   }
4702   r1 = self; arg1 = &r1;
4703   result = (VALUE)((swig::GC_VALUE const *)arg1)->inspect();
4704   vresult = result;
4705   return vresult;
4706 fail:
4707   return Qnil;
4708 }
4709 
4710 
4711 
4712 /*
4713   Document-method: Prelude::GC_VALUE.to_s
4714 
4715   call-seq:
4716     to_s -> VALUE
4717 
4718 Convert class to a String representation.
4719 */
4720 SWIGINTERN VALUE
_wrap_GC_VALUE_to_s(int argc,VALUE * argv,VALUE self)4721 _wrap_GC_VALUE_to_s(int argc, VALUE *argv, VALUE self) {
4722   swig::GC_VALUE *arg1 = (swig::GC_VALUE *) 0 ;
4723   swig::GC_VALUE r1 ;
4724   VALUE result;
4725   VALUE vresult = Qnil;
4726 
4727   if ((argc < 0) || (argc > 0)) {
4728     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4729   }
4730   r1 = self; arg1 = &r1;
4731   result = (VALUE)((swig::GC_VALUE const *)arg1)->to_s();
4732   vresult = result;
4733   return vresult;
4734 fail:
4735   return Qnil;
4736 }
4737 
4738 
4739 static swig_class SwigClassConstIterator;
4740 
4741 SWIGINTERN void
free_swig_ConstIterator(swig::ConstIterator * arg1)4742 free_swig_ConstIterator(swig::ConstIterator *arg1) {
4743     delete arg1;
4744 }
4745 
4746 SWIGINTERN VALUE
_wrap_ConstIterator_value(int argc,VALUE * argv,VALUE self)4747 _wrap_ConstIterator_value(int argc, VALUE *argv, VALUE self) {
4748   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
4749   void *argp1 = 0 ;
4750   int res1 = 0 ;
4751   VALUE result;
4752   VALUE vresult = Qnil;
4753 
4754   if ((argc < 0) || (argc > 0)) {
4755     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4756   }
4757   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4758   if (!SWIG_IsOK(res1)) {
4759     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","value", 1, self ));
4760   }
4761   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
4762   try {
4763     result = (VALUE)((swig::ConstIterator const *)arg1)->value();
4764   }
4765   catch(swig::stop_iteration &_e) {
4766     {
4767       (void)_e;
4768       SWIG_Ruby_ExceptionType(NULL, Qnil);
4769       SWIG_fail;
4770     }
4771   }
4772 
4773   vresult = result;
4774   return vresult;
4775 fail:
4776   return Qnil;
4777 }
4778 
4779 
4780 
4781 /*
4782   Document-method: Prelude::ConstIterator.dup
4783 
4784   call-seq:
4785     dup -> ConstIterator
4786 
4787 Create a duplicate of the class and unfreeze it if needed.
4788 */
4789 SWIGINTERN VALUE
_wrap_ConstIterator_dup(int argc,VALUE * argv,VALUE self)4790 _wrap_ConstIterator_dup(int argc, VALUE *argv, VALUE self) {
4791   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
4792   void *argp1 = 0 ;
4793   int res1 = 0 ;
4794   swig::ConstIterator *result = 0 ;
4795   VALUE vresult = Qnil;
4796 
4797   if ((argc < 0) || (argc > 0)) {
4798     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4799   }
4800   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4801   if (!SWIG_IsOK(res1)) {
4802     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","dup", 1, self ));
4803   }
4804   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
4805   result = (swig::ConstIterator *)((swig::ConstIterator const *)arg1)->dup();
4806   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, SWIG_POINTER_OWN |  0 );
4807   return vresult;
4808 fail:
4809   return Qnil;
4810 }
4811 
4812 
4813 
4814 /*
4815   Document-method: Prelude::ConstIterator.inspect
4816 
4817   call-seq:
4818     inspect -> VALUE
4819 
4820 Inspect class and its contents.
4821 */
4822 SWIGINTERN VALUE
_wrap_ConstIterator_inspect(int argc,VALUE * argv,VALUE self)4823 _wrap_ConstIterator_inspect(int argc, VALUE *argv, VALUE self) {
4824   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
4825   void *argp1 = 0 ;
4826   int res1 = 0 ;
4827   VALUE result;
4828   VALUE vresult = Qnil;
4829 
4830   if ((argc < 0) || (argc > 0)) {
4831     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4832   }
4833   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4834   if (!SWIG_IsOK(res1)) {
4835     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","inspect", 1, self ));
4836   }
4837   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
4838   result = (VALUE)((swig::ConstIterator const *)arg1)->inspect();
4839   vresult = result;
4840   return vresult;
4841 fail:
4842   return Qnil;
4843 }
4844 
4845 
4846 
4847 /*
4848   Document-method: Prelude::ConstIterator.to_s
4849 
4850   call-seq:
4851     to_s -> VALUE
4852 
4853 Convert class to a String representation.
4854 */
4855 SWIGINTERN VALUE
_wrap_ConstIterator_to_s(int argc,VALUE * argv,VALUE self)4856 _wrap_ConstIterator_to_s(int argc, VALUE *argv, VALUE self) {
4857   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
4858   void *argp1 = 0 ;
4859   int res1 = 0 ;
4860   VALUE result;
4861   VALUE vresult = Qnil;
4862 
4863   if ((argc < 0) || (argc > 0)) {
4864     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4865   }
4866   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4867   if (!SWIG_IsOK(res1)) {
4868     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","to_s", 1, self ));
4869   }
4870   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
4871   result = (VALUE)((swig::ConstIterator const *)arg1)->to_s();
4872   vresult = result;
4873   return vresult;
4874 fail:
4875   return Qnil;
4876 }
4877 
4878 
4879 SWIGINTERN VALUE
_wrap_ConstIterator_next__SWIG_0(int argc,VALUE * argv,VALUE self)4880 _wrap_ConstIterator_next__SWIG_0(int argc, VALUE *argv, VALUE self) {
4881   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
4882   size_t arg2 ;
4883   void *argp1 = 0 ;
4884   int res1 = 0 ;
4885   size_t val2 ;
4886   int ecode2 = 0 ;
4887   swig::ConstIterator *result = 0 ;
4888   VALUE vresult = Qnil;
4889 
4890   if ((argc < 1) || (argc > 1)) {
4891     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
4892   }
4893   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4894   if (!SWIG_IsOK(res1)) {
4895     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator *","next", 1, self ));
4896   }
4897   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
4898   ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
4899   if (!SWIG_IsOK(ecode2)) {
4900     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","next", 2, argv[0] ));
4901   }
4902   arg2 = static_cast< size_t >(val2);
4903   result = (swig::ConstIterator *)(arg1)->next(arg2);
4904   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4905   return vresult;
4906 fail:
4907   return Qnil;
4908 }
4909 
4910 
4911 SWIGINTERN VALUE
_wrap_ConstIterator_next__SWIG_1(int argc,VALUE * argv,VALUE self)4912 _wrap_ConstIterator_next__SWIG_1(int argc, VALUE *argv, VALUE self) {
4913   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
4914   void *argp1 = 0 ;
4915   int res1 = 0 ;
4916   swig::ConstIterator *result = 0 ;
4917   VALUE vresult = Qnil;
4918 
4919   if ((argc < 0) || (argc > 0)) {
4920     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
4921   }
4922   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4923   if (!SWIG_IsOK(res1)) {
4924     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator *","next", 1, self ));
4925   }
4926   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
4927   try {
4928     result = (swig::ConstIterator *)(arg1)->next();
4929   }
4930   catch(swig::stop_iteration &_e) {
4931     {
4932       (void)_e;
4933       SWIG_Ruby_ExceptionType(NULL, Qnil);
4934       SWIG_fail;
4935     }
4936   }
4937 
4938   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
4939   return vresult;
4940 fail:
4941   return Qnil;
4942 }
4943 
4944 
_wrap_ConstIterator_next(int nargs,VALUE * args,VALUE self)4945 SWIGINTERN VALUE _wrap_ConstIterator_next(int nargs, VALUE *args, VALUE self) {
4946   int argc;
4947   VALUE argv[3];
4948   int ii;
4949 
4950   argc = nargs + 1;
4951   argv[0] = self;
4952   if (argc > 3) SWIG_fail;
4953   for (ii = 1; (ii < argc); ++ii) {
4954     argv[ii] = args[ii-1];
4955   }
4956   if (argc == 1) {
4957     int _v;
4958     void *vptr = 0;
4959     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
4960     _v = SWIG_CheckState(res);
4961     if (_v) {
4962       return _wrap_ConstIterator_next__SWIG_1(nargs, args, self);
4963     }
4964   }
4965   if (argc == 2) {
4966     int _v;
4967     void *vptr = 0;
4968     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
4969     _v = SWIG_CheckState(res);
4970     if (_v) {
4971       {
4972         int res = SWIG_AsVal_size_t(argv[1], NULL);
4973         _v = SWIG_CheckState(res);
4974       }
4975       if (_v) {
4976         return _wrap_ConstIterator_next__SWIG_0(nargs, args, self);
4977       }
4978     }
4979   }
4980 
4981 fail:
4982   Ruby_Format_OverloadedError( argc, 3, "ConstIterator.next",
4983     "    swig::ConstIterator * ConstIterator.next(size_t n)\n"
4984     "    swig::ConstIterator * ConstIterator.next()\n");
4985 
4986   return Qnil;
4987 }
4988 
4989 
4990 SWIGINTERN VALUE
_wrap_ConstIterator_previous__SWIG_0(int argc,VALUE * argv,VALUE self)4991 _wrap_ConstIterator_previous__SWIG_0(int argc, VALUE *argv, VALUE self) {
4992   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
4993   size_t arg2 ;
4994   void *argp1 = 0 ;
4995   int res1 = 0 ;
4996   size_t val2 ;
4997   int ecode2 = 0 ;
4998   swig::ConstIterator *result = 0 ;
4999   VALUE vresult = Qnil;
5000 
5001   if ((argc < 1) || (argc > 1)) {
5002     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5003   }
5004   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5005   if (!SWIG_IsOK(res1)) {
5006     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator *","previous", 1, self ));
5007   }
5008   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
5009   ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
5010   if (!SWIG_IsOK(ecode2)) {
5011     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","previous", 2, argv[0] ));
5012   }
5013   arg2 = static_cast< size_t >(val2);
5014   result = (swig::ConstIterator *)(arg1)->previous(arg2);
5015   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5016   return vresult;
5017 fail:
5018   return Qnil;
5019 }
5020 
5021 
5022 SWIGINTERN VALUE
_wrap_ConstIterator_previous__SWIG_1(int argc,VALUE * argv,VALUE self)5023 _wrap_ConstIterator_previous__SWIG_1(int argc, VALUE *argv, VALUE self) {
5024   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
5025   void *argp1 = 0 ;
5026   int res1 = 0 ;
5027   swig::ConstIterator *result = 0 ;
5028   VALUE vresult = Qnil;
5029 
5030   if ((argc < 0) || (argc > 0)) {
5031     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5032   }
5033   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5034   if (!SWIG_IsOK(res1)) {
5035     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator *","previous", 1, self ));
5036   }
5037   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
5038   try {
5039     result = (swig::ConstIterator *)(arg1)->previous();
5040   }
5041   catch(swig::stop_iteration &_e) {
5042     {
5043       (void)_e;
5044       SWIG_Ruby_ExceptionType(NULL, Qnil);
5045       SWIG_fail;
5046     }
5047   }
5048 
5049   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5050   return vresult;
5051 fail:
5052   return Qnil;
5053 }
5054 
5055 
_wrap_ConstIterator_previous(int nargs,VALUE * args,VALUE self)5056 SWIGINTERN VALUE _wrap_ConstIterator_previous(int nargs, VALUE *args, VALUE self) {
5057   int argc;
5058   VALUE argv[3];
5059   int ii;
5060 
5061   argc = nargs + 1;
5062   argv[0] = self;
5063   if (argc > 3) SWIG_fail;
5064   for (ii = 1; (ii < argc); ++ii) {
5065     argv[ii] = args[ii-1];
5066   }
5067   if (argc == 1) {
5068     int _v;
5069     void *vptr = 0;
5070     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
5071     _v = SWIG_CheckState(res);
5072     if (_v) {
5073       return _wrap_ConstIterator_previous__SWIG_1(nargs, args, self);
5074     }
5075   }
5076   if (argc == 2) {
5077     int _v;
5078     void *vptr = 0;
5079     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
5080     _v = SWIG_CheckState(res);
5081     if (_v) {
5082       {
5083         int res = SWIG_AsVal_size_t(argv[1], NULL);
5084         _v = SWIG_CheckState(res);
5085       }
5086       if (_v) {
5087         return _wrap_ConstIterator_previous__SWIG_0(nargs, args, self);
5088       }
5089     }
5090   }
5091 
5092 fail:
5093   Ruby_Format_OverloadedError( argc, 3, "ConstIterator.previous",
5094     "    swig::ConstIterator * ConstIterator.previous(size_t n)\n"
5095     "    swig::ConstIterator * ConstIterator.previous()\n");
5096 
5097   return Qnil;
5098 }
5099 
5100 
5101 
5102 /*
5103   Document-method: Prelude::ConstIterator.==
5104 
5105   call-seq:
5106     ==(x) -> bool
5107 
5108 Equality comparison operator.
5109 */
5110 SWIGINTERN VALUE
_wrap_ConstIterator___eq__(int argc,VALUE * argv,VALUE self)5111 _wrap_ConstIterator___eq__(int argc, VALUE *argv, VALUE self) {
5112   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
5113   swig::ConstIterator *arg2 = 0 ;
5114   void *argp1 = 0 ;
5115   int res1 = 0 ;
5116   void *argp2 ;
5117   int res2 = 0 ;
5118   bool result;
5119   VALUE vresult = Qnil;
5120 
5121   if ((argc < 1) || (argc > 1)) {
5122     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5123   }
5124   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5125   if (!SWIG_IsOK(res1)) {
5126     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","operator ==", 1, self ));
5127   }
5128   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
5129   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_swig__ConstIterator,  0 );
5130   if (!SWIG_IsOK(res2)) {
5131     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "swig::ConstIterator const &","operator ==", 2, argv[0] ));
5132   }
5133   if (!argp2) {
5134     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "swig::ConstIterator const &","operator ==", 2, argv[0]));
5135   }
5136   arg2 = reinterpret_cast< swig::ConstIterator * >(argp2);
5137   result = (bool)((swig::ConstIterator const *)arg1)->operator ==((swig::ConstIterator const &)*arg2);
5138   vresult = SWIG_From_bool(static_cast< bool >(result));
5139   return vresult;
5140 fail:
5141   return Qnil;
5142 }
5143 
5144 
5145 
5146 /*
5147   Document-method: Prelude::ConstIterator.+
5148 
5149   call-seq:
5150     +(n) -> ConstIterator
5151 
5152 Add operator.
5153 */
5154 SWIGINTERN VALUE
_wrap_ConstIterator___add__(int argc,VALUE * argv,VALUE self)5155 _wrap_ConstIterator___add__(int argc, VALUE *argv, VALUE self) {
5156   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
5157   ptrdiff_t arg2 ;
5158   void *argp1 = 0 ;
5159   int res1 = 0 ;
5160   ptrdiff_t val2 ;
5161   int ecode2 = 0 ;
5162   swig::ConstIterator *result = 0 ;
5163   VALUE vresult = Qnil;
5164 
5165   if ((argc < 1) || (argc > 1)) {
5166     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5167   }
5168   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5169   if (!SWIG_IsOK(res1)) {
5170     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","operator +", 1, self ));
5171   }
5172   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
5173   ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
5174   if (!SWIG_IsOK(ecode2)) {
5175     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ptrdiff_t","operator +", 2, argv[0] ));
5176   }
5177   arg2 = static_cast< ptrdiff_t >(val2);
5178   try {
5179     result = (swig::ConstIterator *)((swig::ConstIterator const *)arg1)->operator +(arg2);
5180   }
5181   catch(swig::stop_iteration &_e) {
5182     {
5183       (void)_e;
5184       SWIG_Ruby_ExceptionType(NULL, Qnil);
5185       SWIG_fail;
5186     }
5187   }
5188 
5189   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, SWIG_POINTER_OWN |  0 );
5190   return vresult;
5191 fail:
5192   return Qnil;
5193 }
5194 
5195 
5196 
5197 /*
5198   Document-method: Prelude::ConstIterator.-
5199 
5200   call-seq:
5201     -(n) -> ConstIterator
5202     -(x) -> ptrdiff_t
5203 
5204 Substraction operator.
5205 */
5206 SWIGINTERN VALUE
_wrap_ConstIterator___sub____SWIG_0(int argc,VALUE * argv,VALUE self)5207 _wrap_ConstIterator___sub____SWIG_0(int argc, VALUE *argv, VALUE self) {
5208   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
5209   ptrdiff_t arg2 ;
5210   void *argp1 = 0 ;
5211   int res1 = 0 ;
5212   ptrdiff_t val2 ;
5213   int ecode2 = 0 ;
5214   swig::ConstIterator *result = 0 ;
5215   VALUE vresult = Qnil;
5216 
5217   if ((argc < 1) || (argc > 1)) {
5218     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5219   }
5220   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5221   if (!SWIG_IsOK(res1)) {
5222     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","operator -", 1, self ));
5223   }
5224   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
5225   ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
5226   if (!SWIG_IsOK(ecode2)) {
5227     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ptrdiff_t","operator -", 2, argv[0] ));
5228   }
5229   arg2 = static_cast< ptrdiff_t >(val2);
5230   try {
5231     result = (swig::ConstIterator *)((swig::ConstIterator const *)arg1)->operator -(arg2);
5232   }
5233   catch(swig::stop_iteration &_e) {
5234     {
5235       (void)_e;
5236       SWIG_Ruby_ExceptionType(NULL, Qnil);
5237       SWIG_fail;
5238     }
5239   }
5240 
5241   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__ConstIterator, SWIG_POINTER_OWN |  0 );
5242   return vresult;
5243 fail:
5244   return Qnil;
5245 }
5246 
5247 
5248 SWIGINTERN VALUE
_wrap_ConstIterator___sub____SWIG_1(int argc,VALUE * argv,VALUE self)5249 _wrap_ConstIterator___sub____SWIG_1(int argc, VALUE *argv, VALUE self) {
5250   swig::ConstIterator *arg1 = (swig::ConstIterator *) 0 ;
5251   swig::ConstIterator *arg2 = 0 ;
5252   void *argp1 = 0 ;
5253   int res1 = 0 ;
5254   void *argp2 ;
5255   int res2 = 0 ;
5256   ptrdiff_t result;
5257   VALUE vresult = Qnil;
5258 
5259   if ((argc < 1) || (argc > 1)) {
5260     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5261   }
5262   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__ConstIterator, 0 |  0 );
5263   if (!SWIG_IsOK(res1)) {
5264     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::ConstIterator const *","operator -", 1, self ));
5265   }
5266   arg1 = reinterpret_cast< swig::ConstIterator * >(argp1);
5267   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_swig__ConstIterator,  0 );
5268   if (!SWIG_IsOK(res2)) {
5269     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "swig::ConstIterator const &","operator -", 2, argv[0] ));
5270   }
5271   if (!argp2) {
5272     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "swig::ConstIterator const &","operator -", 2, argv[0]));
5273   }
5274   arg2 = reinterpret_cast< swig::ConstIterator * >(argp2);
5275   result = ((swig::ConstIterator const *)arg1)->operator -((swig::ConstIterator const &)*arg2);
5276   vresult = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
5277   return vresult;
5278 fail:
5279   return Qnil;
5280 }
5281 
5282 
_wrap_ConstIterator___sub__(int nargs,VALUE * args,VALUE self)5283 SWIGINTERN VALUE _wrap_ConstIterator___sub__(int nargs, VALUE *args, VALUE self) {
5284   int argc;
5285   VALUE argv[3];
5286   int ii;
5287 
5288   argc = nargs + 1;
5289   argv[0] = self;
5290   if (argc > 3) SWIG_fail;
5291   for (ii = 1; (ii < argc); ++ii) {
5292     argv[ii] = args[ii-1];
5293   }
5294   if (argc == 2) {
5295     int _v;
5296     void *vptr = 0;
5297     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
5298     _v = SWIG_CheckState(res);
5299     if (_v) {
5300       void *vptr = 0;
5301       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
5302       _v = SWIG_CheckState(res);
5303       if (_v) {
5304         return _wrap_ConstIterator___sub____SWIG_1(nargs, args, self);
5305       }
5306     }
5307   }
5308   if (argc == 2) {
5309     int _v;
5310     void *vptr = 0;
5311     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__ConstIterator, 0);
5312     _v = SWIG_CheckState(res);
5313     if (_v) {
5314       {
5315         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
5316         _v = SWIG_CheckState(res);
5317       }
5318       if (_v) {
5319         return _wrap_ConstIterator___sub____SWIG_0(nargs, args, self);
5320       }
5321     }
5322   }
5323 
5324 fail:
5325   Ruby_Format_OverloadedError( argc, 3, "__sub__.new",
5326     "    __sub__.new(ptrdiff_t n)\n"
5327     "    __sub__.new(swig::ConstIterator const &x)\n");
5328 
5329   return Qnil;
5330 }
5331 
5332 
5333 static swig_class SwigClassIterator;
5334 
5335 SWIGINTERN VALUE
_wrap_Iterator_valuee___(int argc,VALUE * argv,VALUE self)5336 _wrap_Iterator_valuee___(int argc, VALUE *argv, VALUE self) {
5337   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5338   VALUE *arg2 = 0 ;
5339   void *argp1 = 0 ;
5340   int res1 = 0 ;
5341   VALUE temp2 ;
5342   VALUE result;
5343   VALUE vresult = Qnil;
5344 
5345   if ((argc < 1) || (argc > 1)) {
5346     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5347   }
5348   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5349   if (!SWIG_IsOK(res1)) {
5350     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator *","setValue", 1, self ));
5351   }
5352   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5353   temp2 = static_cast< VALUE >(argv[0]);
5354   arg2 = &temp2;
5355   result = (VALUE)(arg1)->setValue((VALUE const &)*arg2);
5356   vresult = result;
5357   return vresult;
5358 fail:
5359   return Qnil;
5360 }
5361 
5362 
5363 
5364 /*
5365   Document-method: Prelude::Iterator.dup
5366 
5367   call-seq:
5368     dup -> Iterator
5369 
5370 Create a duplicate of the class and unfreeze it if needed.
5371 */
5372 SWIGINTERN VALUE
_wrap_Iterator_dup(int argc,VALUE * argv,VALUE self)5373 _wrap_Iterator_dup(int argc, VALUE *argv, VALUE self) {
5374   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5375   void *argp1 = 0 ;
5376   int res1 = 0 ;
5377   swig::Iterator *result = 0 ;
5378   VALUE vresult = Qnil;
5379 
5380   if ((argc < 0) || (argc > 0)) {
5381     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5382   }
5383   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5384   if (!SWIG_IsOK(res1)) {
5385     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator const *","dup", 1, self ));
5386   }
5387   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5388   result = (swig::Iterator *)((swig::Iterator const *)arg1)->dup();
5389   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__Iterator, SWIG_POINTER_OWN |  0 );
5390   return vresult;
5391 fail:
5392   return Qnil;
5393 }
5394 
5395 
5396 SWIGINTERN VALUE
_wrap_Iterator_next__SWIG_0(int argc,VALUE * argv,VALUE self)5397 _wrap_Iterator_next__SWIG_0(int argc, VALUE *argv, VALUE self) {
5398   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5399   size_t arg2 ;
5400   void *argp1 = 0 ;
5401   int res1 = 0 ;
5402   size_t val2 ;
5403   int ecode2 = 0 ;
5404   swig::Iterator *result = 0 ;
5405   VALUE vresult = Qnil;
5406 
5407   if ((argc < 1) || (argc > 1)) {
5408     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5409   }
5410   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5411   if (!SWIG_IsOK(res1)) {
5412     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator *","next", 1, self ));
5413   }
5414   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5415   ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
5416   if (!SWIG_IsOK(ecode2)) {
5417     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","next", 2, argv[0] ));
5418   }
5419   arg2 = static_cast< size_t >(val2);
5420   result = (swig::Iterator *)(arg1)->next(arg2);
5421   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__Iterator, 0 |  0 );
5422   return vresult;
5423 fail:
5424   return Qnil;
5425 }
5426 
5427 
5428 SWIGINTERN VALUE
_wrap_Iterator_next__SWIG_1(int argc,VALUE * argv,VALUE self)5429 _wrap_Iterator_next__SWIG_1(int argc, VALUE *argv, VALUE self) {
5430   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5431   void *argp1 = 0 ;
5432   int res1 = 0 ;
5433   swig::Iterator *result = 0 ;
5434   VALUE vresult = Qnil;
5435 
5436   if ((argc < 0) || (argc > 0)) {
5437     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5438   }
5439   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5440   if (!SWIG_IsOK(res1)) {
5441     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator *","next", 1, self ));
5442   }
5443   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5444   try {
5445     result = (swig::Iterator *)(arg1)->next();
5446   }
5447   catch(swig::stop_iteration &_e) {
5448     {
5449       (void)_e;
5450       SWIG_Ruby_ExceptionType(NULL, Qnil);
5451       SWIG_fail;
5452     }
5453   }
5454 
5455   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__Iterator, 0 |  0 );
5456   return vresult;
5457 fail:
5458   return Qnil;
5459 }
5460 
5461 
_wrap_Iterator_next(int nargs,VALUE * args,VALUE self)5462 SWIGINTERN VALUE _wrap_Iterator_next(int nargs, VALUE *args, VALUE self) {
5463   int argc;
5464   VALUE argv[3];
5465   int ii;
5466 
5467   argc = nargs + 1;
5468   argv[0] = self;
5469   if (argc > 3) SWIG_fail;
5470   for (ii = 1; (ii < argc); ++ii) {
5471     argv[ii] = args[ii-1];
5472   }
5473   if (argc == 1) {
5474     int _v;
5475     void *vptr = 0;
5476     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__Iterator, 0);
5477     _v = SWIG_CheckState(res);
5478     if (_v) {
5479       return _wrap_Iterator_next__SWIG_1(nargs, args, self);
5480     }
5481   }
5482   if (argc == 2) {
5483     int _v;
5484     void *vptr = 0;
5485     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__Iterator, 0);
5486     _v = SWIG_CheckState(res);
5487     if (_v) {
5488       {
5489         int res = SWIG_AsVal_size_t(argv[1], NULL);
5490         _v = SWIG_CheckState(res);
5491       }
5492       if (_v) {
5493         return _wrap_Iterator_next__SWIG_0(nargs, args, self);
5494       }
5495     }
5496   }
5497 
5498 fail:
5499   Ruby_Format_OverloadedError( argc, 3, "Iterator.next",
5500     "    swig::Iterator * Iterator.next(size_t n)\n"
5501     "    swig::Iterator * Iterator.next()\n");
5502 
5503   return Qnil;
5504 }
5505 
5506 
5507 SWIGINTERN VALUE
_wrap_Iterator_previous__SWIG_0(int argc,VALUE * argv,VALUE self)5508 _wrap_Iterator_previous__SWIG_0(int argc, VALUE *argv, VALUE self) {
5509   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5510   size_t arg2 ;
5511   void *argp1 = 0 ;
5512   int res1 = 0 ;
5513   size_t val2 ;
5514   int ecode2 = 0 ;
5515   swig::Iterator *result = 0 ;
5516   VALUE vresult = Qnil;
5517 
5518   if ((argc < 1) || (argc > 1)) {
5519     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5520   }
5521   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5522   if (!SWIG_IsOK(res1)) {
5523     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator *","previous", 1, self ));
5524   }
5525   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5526   ecode2 = SWIG_AsVal_size_t(argv[0], &val2);
5527   if (!SWIG_IsOK(ecode2)) {
5528     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "size_t","previous", 2, argv[0] ));
5529   }
5530   arg2 = static_cast< size_t >(val2);
5531   result = (swig::Iterator *)(arg1)->previous(arg2);
5532   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__Iterator, 0 |  0 );
5533   return vresult;
5534 fail:
5535   return Qnil;
5536 }
5537 
5538 
5539 SWIGINTERN VALUE
_wrap_Iterator_previous__SWIG_1(int argc,VALUE * argv,VALUE self)5540 _wrap_Iterator_previous__SWIG_1(int argc, VALUE *argv, VALUE self) {
5541   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5542   void *argp1 = 0 ;
5543   int res1 = 0 ;
5544   swig::Iterator *result = 0 ;
5545   VALUE vresult = Qnil;
5546 
5547   if ((argc < 0) || (argc > 0)) {
5548     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5549   }
5550   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5551   if (!SWIG_IsOK(res1)) {
5552     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator *","previous", 1, self ));
5553   }
5554   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5555   try {
5556     result = (swig::Iterator *)(arg1)->previous();
5557   }
5558   catch(swig::stop_iteration &_e) {
5559     {
5560       (void)_e;
5561       SWIG_Ruby_ExceptionType(NULL, Qnil);
5562       SWIG_fail;
5563     }
5564   }
5565 
5566   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__Iterator, 0 |  0 );
5567   return vresult;
5568 fail:
5569   return Qnil;
5570 }
5571 
5572 
_wrap_Iterator_previous(int nargs,VALUE * args,VALUE self)5573 SWIGINTERN VALUE _wrap_Iterator_previous(int nargs, VALUE *args, VALUE self) {
5574   int argc;
5575   VALUE argv[3];
5576   int ii;
5577 
5578   argc = nargs + 1;
5579   argv[0] = self;
5580   if (argc > 3) SWIG_fail;
5581   for (ii = 1; (ii < argc); ++ii) {
5582     argv[ii] = args[ii-1];
5583   }
5584   if (argc == 1) {
5585     int _v;
5586     void *vptr = 0;
5587     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__Iterator, 0);
5588     _v = SWIG_CheckState(res);
5589     if (_v) {
5590       return _wrap_Iterator_previous__SWIG_1(nargs, args, self);
5591     }
5592   }
5593   if (argc == 2) {
5594     int _v;
5595     void *vptr = 0;
5596     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__Iterator, 0);
5597     _v = SWIG_CheckState(res);
5598     if (_v) {
5599       {
5600         int res = SWIG_AsVal_size_t(argv[1], NULL);
5601         _v = SWIG_CheckState(res);
5602       }
5603       if (_v) {
5604         return _wrap_Iterator_previous__SWIG_0(nargs, args, self);
5605       }
5606     }
5607   }
5608 
5609 fail:
5610   Ruby_Format_OverloadedError( argc, 3, "Iterator.previous",
5611     "    swig::Iterator * Iterator.previous(size_t n)\n"
5612     "    swig::Iterator * Iterator.previous()\n");
5613 
5614   return Qnil;
5615 }
5616 
5617 
5618 
5619 /*
5620   Document-method: Prelude::Iterator.inspect
5621 
5622   call-seq:
5623     inspect -> VALUE
5624 
5625 Inspect class and its contents.
5626 */
5627 SWIGINTERN VALUE
_wrap_Iterator_inspect(int argc,VALUE * argv,VALUE self)5628 _wrap_Iterator_inspect(int argc, VALUE *argv, VALUE self) {
5629   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5630   void *argp1 = 0 ;
5631   int res1 = 0 ;
5632   VALUE result;
5633   VALUE vresult = Qnil;
5634 
5635   if ((argc < 0) || (argc > 0)) {
5636     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5637   }
5638   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5639   if (!SWIG_IsOK(res1)) {
5640     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator const *","inspect", 1, self ));
5641   }
5642   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5643   result = (VALUE)((swig::Iterator const *)arg1)->inspect();
5644   vresult = result;
5645   return vresult;
5646 fail:
5647   return Qnil;
5648 }
5649 
5650 
5651 
5652 /*
5653   Document-method: Prelude::Iterator.to_s
5654 
5655   call-seq:
5656     to_s -> VALUE
5657 
5658 Convert class to a String representation.
5659 */
5660 SWIGINTERN VALUE
_wrap_Iterator_to_s(int argc,VALUE * argv,VALUE self)5661 _wrap_Iterator_to_s(int argc, VALUE *argv, VALUE self) {
5662   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5663   void *argp1 = 0 ;
5664   int res1 = 0 ;
5665   VALUE result;
5666   VALUE vresult = Qnil;
5667 
5668   if ((argc < 0) || (argc > 0)) {
5669     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5670   }
5671   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5672   if (!SWIG_IsOK(res1)) {
5673     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator const *","to_s", 1, self ));
5674   }
5675   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5676   result = (VALUE)((swig::Iterator const *)arg1)->to_s();
5677   vresult = result;
5678   return vresult;
5679 fail:
5680   return Qnil;
5681 }
5682 
5683 
5684 
5685 /*
5686   Document-method: Prelude::Iterator.==
5687 
5688   call-seq:
5689     ==(x) -> bool
5690 
5691 Equality comparison operator.
5692 */
5693 SWIGINTERN VALUE
_wrap_Iterator___eq__(int argc,VALUE * argv,VALUE self)5694 _wrap_Iterator___eq__(int argc, VALUE *argv, VALUE self) {
5695   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5696   swig::Iterator *arg2 = 0 ;
5697   void *argp1 = 0 ;
5698   int res1 = 0 ;
5699   void *argp2 ;
5700   int res2 = 0 ;
5701   bool result;
5702   VALUE vresult = Qnil;
5703 
5704   if ((argc < 1) || (argc > 1)) {
5705     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5706   }
5707   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5708   if (!SWIG_IsOK(res1)) {
5709     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator const *","operator ==", 1, self ));
5710   }
5711   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5712   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_swig__Iterator,  0 );
5713   if (!SWIG_IsOK(res2)) {
5714     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "swig::Iterator const &","operator ==", 2, argv[0] ));
5715   }
5716   if (!argp2) {
5717     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "swig::Iterator const &","operator ==", 2, argv[0]));
5718   }
5719   arg2 = reinterpret_cast< swig::Iterator * >(argp2);
5720   result = (bool)((swig::Iterator const *)arg1)->operator ==((swig::Iterator const &)*arg2);
5721   vresult = SWIG_From_bool(static_cast< bool >(result));
5722   return vresult;
5723 fail:
5724   return Qnil;
5725 }
5726 
5727 
5728 
5729 /*
5730   Document-method: Prelude::Iterator.+
5731 
5732   call-seq:
5733     +(n) -> Iterator
5734 
5735 Add operator.
5736 */
5737 SWIGINTERN VALUE
_wrap_Iterator___add__(int argc,VALUE * argv,VALUE self)5738 _wrap_Iterator___add__(int argc, VALUE *argv, VALUE self) {
5739   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5740   ptrdiff_t arg2 ;
5741   void *argp1 = 0 ;
5742   int res1 = 0 ;
5743   ptrdiff_t val2 ;
5744   int ecode2 = 0 ;
5745   swig::Iterator *result = 0 ;
5746   VALUE vresult = Qnil;
5747 
5748   if ((argc < 1) || (argc > 1)) {
5749     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5750   }
5751   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5752   if (!SWIG_IsOK(res1)) {
5753     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator const *","operator +", 1, self ));
5754   }
5755   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5756   ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
5757   if (!SWIG_IsOK(ecode2)) {
5758     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ptrdiff_t","operator +", 2, argv[0] ));
5759   }
5760   arg2 = static_cast< ptrdiff_t >(val2);
5761   try {
5762     result = (swig::Iterator *)((swig::Iterator const *)arg1)->operator +(arg2);
5763   }
5764   catch(swig::stop_iteration &_e) {
5765     {
5766       (void)_e;
5767       SWIG_Ruby_ExceptionType(NULL, Qnil);
5768       SWIG_fail;
5769     }
5770   }
5771 
5772   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__Iterator, SWIG_POINTER_OWN |  0 );
5773   return vresult;
5774 fail:
5775   return Qnil;
5776 }
5777 
5778 
5779 
5780 /*
5781   Document-method: Prelude::Iterator.-
5782 
5783   call-seq:
5784     -(n) -> Iterator
5785     -(x) -> ptrdiff_t
5786 
5787 Substraction operator.
5788 */
5789 SWIGINTERN VALUE
_wrap_Iterator___sub____SWIG_0(int argc,VALUE * argv,VALUE self)5790 _wrap_Iterator___sub____SWIG_0(int argc, VALUE *argv, VALUE self) {
5791   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5792   ptrdiff_t arg2 ;
5793   void *argp1 = 0 ;
5794   int res1 = 0 ;
5795   ptrdiff_t val2 ;
5796   int ecode2 = 0 ;
5797   swig::Iterator *result = 0 ;
5798   VALUE vresult = Qnil;
5799 
5800   if ((argc < 1) || (argc > 1)) {
5801     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5802   }
5803   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5804   if (!SWIG_IsOK(res1)) {
5805     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator const *","operator -", 1, self ));
5806   }
5807   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5808   ecode2 = SWIG_AsVal_ptrdiff_t(argv[0], &val2);
5809   if (!SWIG_IsOK(ecode2)) {
5810     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "ptrdiff_t","operator -", 2, argv[0] ));
5811   }
5812   arg2 = static_cast< ptrdiff_t >(val2);
5813   try {
5814     result = (swig::Iterator *)((swig::Iterator const *)arg1)->operator -(arg2);
5815   }
5816   catch(swig::stop_iteration &_e) {
5817     {
5818       (void)_e;
5819       SWIG_Ruby_ExceptionType(NULL, Qnil);
5820       SWIG_fail;
5821     }
5822   }
5823 
5824   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__Iterator, SWIG_POINTER_OWN |  0 );
5825   return vresult;
5826 fail:
5827   return Qnil;
5828 }
5829 
5830 
5831 SWIGINTERN VALUE
_wrap_Iterator___sub____SWIG_1(int argc,VALUE * argv,VALUE self)5832 _wrap_Iterator___sub____SWIG_1(int argc, VALUE *argv, VALUE self) {
5833   swig::Iterator *arg1 = (swig::Iterator *) 0 ;
5834   swig::Iterator *arg2 = 0 ;
5835   void *argp1 = 0 ;
5836   int res1 = 0 ;
5837   void *argp2 ;
5838   int res2 = 0 ;
5839   ptrdiff_t result;
5840   VALUE vresult = Qnil;
5841 
5842   if ((argc < 1) || (argc > 1)) {
5843     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5844   }
5845   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_swig__Iterator, 0 |  0 );
5846   if (!SWIG_IsOK(res1)) {
5847     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "swig::Iterator const *","operator -", 1, self ));
5848   }
5849   arg1 = reinterpret_cast< swig::Iterator * >(argp1);
5850   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_swig__Iterator,  0 );
5851   if (!SWIG_IsOK(res2)) {
5852     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "swig::Iterator const &","operator -", 2, argv[0] ));
5853   }
5854   if (!argp2) {
5855     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "swig::Iterator const &","operator -", 2, argv[0]));
5856   }
5857   arg2 = reinterpret_cast< swig::Iterator * >(argp2);
5858   result = ((swig::Iterator const *)arg1)->operator -((swig::Iterator const &)*arg2);
5859   vresult = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
5860   return vresult;
5861 fail:
5862   return Qnil;
5863 }
5864 
5865 
_wrap_Iterator___sub__(int nargs,VALUE * args,VALUE self)5866 SWIGINTERN VALUE _wrap_Iterator___sub__(int nargs, VALUE *args, VALUE self) {
5867   int argc;
5868   VALUE argv[3];
5869   int ii;
5870 
5871   argc = nargs + 1;
5872   argv[0] = self;
5873   if (argc > 3) SWIG_fail;
5874   for (ii = 1; (ii < argc); ++ii) {
5875     argv[ii] = args[ii-1];
5876   }
5877   if (argc == 2) {
5878     int _v;
5879     void *vptr = 0;
5880     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__Iterator, 0);
5881     _v = SWIG_CheckState(res);
5882     if (_v) {
5883       void *vptr = 0;
5884       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_swig__Iterator, 0);
5885       _v = SWIG_CheckState(res);
5886       if (_v) {
5887         return _wrap_Iterator___sub____SWIG_1(nargs, args, self);
5888       }
5889     }
5890   }
5891   if (argc == 2) {
5892     int _v;
5893     void *vptr = 0;
5894     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__Iterator, 0);
5895     _v = SWIG_CheckState(res);
5896     if (_v) {
5897       {
5898         int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
5899         _v = SWIG_CheckState(res);
5900       }
5901       if (_v) {
5902         return _wrap_Iterator___sub____SWIG_0(nargs, args, self);
5903       }
5904     }
5905   }
5906 
5907 fail:
5908   Ruby_Format_OverloadedError( argc, 3, "__sub__.new",
5909     "    __sub__.new(ptrdiff_t n)\n"
5910     "    __sub__.new(swig::Iterator const &x)\n");
5911 
5912   return Qnil;
5913 }
5914 
5915 
5916 SWIGINTERN void
free_swig_Iterator(swig::Iterator * arg1)5917 free_swig_Iterator(swig::Iterator *arg1) {
5918     delete arg1;
5919 }
5920 
5921 SWIGINTERN VALUE
_wrap_checkVersion__SWIG_0(int argc,VALUE * argv,VALUE self)5922 _wrap_checkVersion__SWIG_0(int argc, VALUE *argv, VALUE self) {
5923   char *arg1 = (char *) 0 ;
5924   int res1 ;
5925   char *buf1 = 0 ;
5926   int alloc1 = 0 ;
5927   char *result = 0 ;
5928   VALUE vresult = Qnil;
5929 
5930   if ((argc < 1) || (argc > 1)) {
5931     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
5932   }
5933   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
5934   if (!SWIG_IsOK(res1)) {
5935     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Prelude::checkVersion", 1, argv[0] ));
5936   }
5937   arg1 = reinterpret_cast< char * >(buf1);
5938   {
5939     try {
5940       result = (char *)Prelude::checkVersion((char const *)arg1);
5941     } catch(Prelude::PreludeError &e) {
5942       if ( e.getCode() == PRELUDE_ERROR_EOF )
5943       rb_raise(rb_eEOFError, "%s", e.what());
5944       else
5945       SWIG_exception(SWIG_RuntimeError, e.what());
5946 
5947       SWIG_fail;
5948     }
5949   }
5950   vresult = SWIG_FromCharPtr((const char *)result);
5951   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
5952   return vresult;
5953 fail:
5954   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
5955   return Qnil;
5956 }
5957 
5958 
5959 SWIGINTERN VALUE
_wrap_checkVersion__SWIG_1(int argc,VALUE * argv,VALUE self)5960 _wrap_checkVersion__SWIG_1(int argc, VALUE *argv, VALUE self) {
5961   char *result = 0 ;
5962   VALUE vresult = Qnil;
5963 
5964   if ((argc < 0) || (argc > 0)) {
5965     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
5966   }
5967   {
5968     try {
5969       result = (char *)Prelude::checkVersion();
5970     } catch(Prelude::PreludeError &e) {
5971       if ( e.getCode() == PRELUDE_ERROR_EOF )
5972       rb_raise(rb_eEOFError, "%s", e.what());
5973       else
5974       SWIG_exception(SWIG_RuntimeError, e.what());
5975 
5976       SWIG_fail;
5977     }
5978   }
5979   vresult = SWIG_FromCharPtr((const char *)result);
5980   return vresult;
5981 fail:
5982   return Qnil;
5983 }
5984 
5985 
_wrap_checkVersion(int nargs,VALUE * args,VALUE self)5986 SWIGINTERN VALUE _wrap_checkVersion(int nargs, VALUE *args, VALUE self) {
5987   int argc;
5988   VALUE argv[1];
5989   int ii;
5990 
5991   argc = nargs;
5992   if (argc > 1) SWIG_fail;
5993   for (ii = 0; (ii < argc); ++ii) {
5994     argv[ii] = args[ii];
5995   }
5996   if (argc == 0) {
5997     return _wrap_checkVersion__SWIG_1(nargs, args, self);
5998   }
5999   if (argc == 1) {
6000     int _v;
6001     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6002     _v = SWIG_CheckState(res);
6003     if (_v) {
6004       return _wrap_checkVersion__SWIG_0(nargs, args, self);
6005     }
6006   }
6007 
6008 fail:
6009   Ruby_Format_OverloadedError( argc, 1, "checkVersion",
6010     "    char const * checkVersion(char const *version)\n"
6011     "    char const * checkVersion()\n");
6012 
6013   return Qnil;
6014 }
6015 
6016 
6017 static swig_class SwigClassClientProfile;
6018 
6019 SWIGINTERN VALUE
_wrap_new_ClientProfile__SWIG_0(int argc,VALUE * argv,VALUE self)6020 _wrap_new_ClientProfile__SWIG_0(int argc, VALUE *argv, VALUE self) {
6021   Prelude::ClientProfile *result = 0 ;
6022 
6023   if ((argc < 0) || (argc > 0)) {
6024     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6025   }
6026   {
6027     try {
6028       result = (Prelude::ClientProfile *)new Prelude::ClientProfile();
6029       DATA_PTR(self) = result;
6030     } catch(Prelude::PreludeError &e) {
6031       if ( e.getCode() == PRELUDE_ERROR_EOF )
6032       rb_raise(rb_eEOFError, "%s", e.what());
6033       else
6034       SWIG_exception(SWIG_RuntimeError, e.what());
6035 
6036       SWIG_fail;
6037     }
6038   }
6039   return self;
6040 fail:
6041   return Qnil;
6042 }
6043 
6044 
6045 SWIGINTERN VALUE
_wrap_new_ClientProfile__SWIG_1(int argc,VALUE * argv,VALUE self)6046 _wrap_new_ClientProfile__SWIG_1(int argc, VALUE *argv, VALUE self) {
6047   char *arg1 = (char *) 0 ;
6048   int res1 ;
6049   char *buf1 = 0 ;
6050   int alloc1 = 0 ;
6051   Prelude::ClientProfile *result = 0 ;
6052 
6053   if ((argc < 1) || (argc > 1)) {
6054     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6055   }
6056   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
6057   if (!SWIG_IsOK(res1)) {
6058     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ClientProfile", 1, argv[0] ));
6059   }
6060   arg1 = reinterpret_cast< char * >(buf1);
6061   {
6062     try {
6063       result = (Prelude::ClientProfile *)new Prelude::ClientProfile((char const *)arg1);
6064       DATA_PTR(self) = result;
6065     } catch(Prelude::PreludeError &e) {
6066       if ( e.getCode() == PRELUDE_ERROR_EOF )
6067       rb_raise(rb_eEOFError, "%s", e.what());
6068       else
6069       SWIG_exception(SWIG_RuntimeError, e.what());
6070 
6071       SWIG_fail;
6072     }
6073   }
6074   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6075   return self;
6076 fail:
6077   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6078   return Qnil;
6079 }
6080 
6081 
6082 SWIGINTERN VALUE
_wrap_new_ClientProfile__SWIG_2(int argc,VALUE * argv,VALUE self)6083 _wrap_new_ClientProfile__SWIG_2(int argc, VALUE *argv, VALUE self) {
6084   prelude_client_profile_t *arg1 = (prelude_client_profile_t *) 0 ;
6085   void *argp1 = 0 ;
6086   int res1 = 0 ;
6087   Prelude::ClientProfile *result = 0 ;
6088 
6089   if ((argc < 1) || (argc > 1)) {
6090     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6091   }
6092   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_prelude_client_profile_t, 0 |  0 );
6093   if (!SWIG_IsOK(res1)) {
6094     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "prelude_client_profile_t *","ClientProfile", 1, argv[0] ));
6095   }
6096   arg1 = reinterpret_cast< prelude_client_profile_t * >(argp1);
6097   {
6098     try {
6099       result = (Prelude::ClientProfile *)new Prelude::ClientProfile(arg1);
6100       DATA_PTR(self) = result;
6101     } catch(Prelude::PreludeError &e) {
6102       if ( e.getCode() == PRELUDE_ERROR_EOF )
6103       rb_raise(rb_eEOFError, "%s", e.what());
6104       else
6105       SWIG_exception(SWIG_RuntimeError, e.what());
6106 
6107       SWIG_fail;
6108     }
6109   }
6110   return self;
6111 fail:
6112   return Qnil;
6113 }
6114 
6115 
6116 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
6117 SWIGINTERN VALUE
_wrap_ClientProfile_allocate(VALUE self)6118 _wrap_ClientProfile_allocate(VALUE self) {
6119 #else
6120   SWIGINTERN VALUE
6121   _wrap_ClientProfile_allocate(int argc, VALUE *argv, VALUE self) {
6122 #endif
6123 
6124 
6125     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__ClientProfile);
6126 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
6127     rb_obj_call_init(vresult, argc, argv);
6128 #endif
6129     return vresult;
6130   }
6131 
6132 
6133 SWIGINTERN VALUE
6134 _wrap_new_ClientProfile__SWIG_3(int argc, VALUE *argv, VALUE self) {
6135   Prelude::ClientProfile *arg1 = 0 ;
6136   void *argp1 ;
6137   int res1 = 0 ;
6138   Prelude::ClientProfile *result = 0 ;
6139 
6140   if ((argc < 1) || (argc > 1)) {
6141     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6142   }
6143   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__ClientProfile,  0 );
6144   if (!SWIG_IsOK(res1)) {
6145     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile const &","ClientProfile", 1, argv[0] ));
6146   }
6147   if (!argp1) {
6148     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::ClientProfile const &","ClientProfile", 1, argv[0]));
6149   }
6150   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6151   {
6152     try {
6153       result = (Prelude::ClientProfile *)new Prelude::ClientProfile((Prelude::ClientProfile const &)*arg1);
6154       DATA_PTR(self) = result;
6155     } catch(Prelude::PreludeError &e) {
6156       if ( e.getCode() == PRELUDE_ERROR_EOF )
6157       rb_raise(rb_eEOFError, "%s", e.what());
6158       else
6159       SWIG_exception(SWIG_RuntimeError, e.what());
6160 
6161       SWIG_fail;
6162     }
6163   }
6164   return self;
6165 fail:
6166   return Qnil;
6167 }
6168 
6169 
6170 SWIGINTERN VALUE _wrap_new_ClientProfile(int nargs, VALUE *args, VALUE self) {
6171   int argc;
6172   VALUE argv[1];
6173   int ii;
6174 
6175   argc = nargs;
6176   if (argc > 1) SWIG_fail;
6177   for (ii = 0; (ii < argc); ++ii) {
6178     argv[ii] = args[ii];
6179   }
6180   if (argc == 0) {
6181     return _wrap_new_ClientProfile__SWIG_0(nargs, args, self);
6182   }
6183   if (argc == 1) {
6184     int _v;
6185     void *vptr = 0;
6186     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_prelude_client_profile_t, 0);
6187     _v = SWIG_CheckState(res);
6188     if (_v) {
6189       return _wrap_new_ClientProfile__SWIG_2(nargs, args, self);
6190     }
6191   }
6192   if (argc == 1) {
6193     int _v;
6194     void *vptr = 0;
6195     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__ClientProfile, 0);
6196     _v = SWIG_CheckState(res);
6197     if (_v) {
6198       return _wrap_new_ClientProfile__SWIG_3(nargs, args, self);
6199     }
6200   }
6201   if (argc == 1) {
6202     int _v;
6203     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
6204     _v = SWIG_CheckState(res);
6205     if (_v) {
6206       return _wrap_new_ClientProfile__SWIG_1(nargs, args, self);
6207     }
6208   }
6209 
6210 fail:
6211   Ruby_Format_OverloadedError( argc, 1, "ClientProfile.new",
6212     "    ClientProfile.new()\n"
6213     "    ClientProfile.new(char const *profile)\n"
6214     "    ClientProfile.new(prelude_client_profile_t *profile)\n"
6215     "    ClientProfile.new(Prelude::ClientProfile const &p)\n");
6216 
6217   return Qnil;
6218 }
6219 
6220 
6221 SWIGINTERN void
6222 free_Prelude_ClientProfile(Prelude::ClientProfile *arg1) {
6223     delete arg1;
6224 }
6225 
6226 SWIGINTERN VALUE
6227 _wrap_ClientProfile_getUid(int argc, VALUE *argv, VALUE self) {
6228   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6229   void *argp1 = 0 ;
6230   int res1 = 0 ;
6231   int result;
6232   VALUE vresult = Qnil;
6233 
6234   if ((argc < 0) || (argc > 0)) {
6235     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6236   }
6237   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6238   if (!SWIG_IsOK(res1)) {
6239     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getUid", 1, self ));
6240   }
6241   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6242   {
6243     try {
6244       result = (int)(arg1)->getUid();
6245     } catch(Prelude::PreludeError &e) {
6246       if ( e.getCode() == PRELUDE_ERROR_EOF )
6247       rb_raise(rb_eEOFError, "%s", e.what());
6248       else
6249       SWIG_exception(SWIG_RuntimeError, e.what());
6250 
6251       SWIG_fail;
6252     }
6253   }
6254   vresult = SWIG_From_int(static_cast< int >(result));
6255   return vresult;
6256 fail:
6257   return Qnil;
6258 }
6259 
6260 
6261 SWIGINTERN VALUE
6262 _wrap_ClientProfile_getGid(int argc, VALUE *argv, VALUE self) {
6263   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6264   void *argp1 = 0 ;
6265   int res1 = 0 ;
6266   int result;
6267   VALUE vresult = Qnil;
6268 
6269   if ((argc < 0) || (argc > 0)) {
6270     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6271   }
6272   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6273   if (!SWIG_IsOK(res1)) {
6274     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getGid", 1, self ));
6275   }
6276   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6277   {
6278     try {
6279       result = (int)(arg1)->getGid();
6280     } catch(Prelude::PreludeError &e) {
6281       if ( e.getCode() == PRELUDE_ERROR_EOF )
6282       rb_raise(rb_eEOFError, "%s", e.what());
6283       else
6284       SWIG_exception(SWIG_RuntimeError, e.what());
6285 
6286       SWIG_fail;
6287     }
6288   }
6289   vresult = SWIG_From_int(static_cast< int >(result));
6290   return vresult;
6291 fail:
6292   return Qnil;
6293 }
6294 
6295 
6296 SWIGINTERN VALUE
6297 _wrap_ClientProfile_getName(int argc, VALUE *argv, VALUE self) {
6298   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6299   void *argp1 = 0 ;
6300   int res1 = 0 ;
6301   char *result = 0 ;
6302   VALUE vresult = Qnil;
6303 
6304   if ((argc < 0) || (argc > 0)) {
6305     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6306   }
6307   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6308   if (!SWIG_IsOK(res1)) {
6309     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getName", 1, self ));
6310   }
6311   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6312   {
6313     try {
6314       result = (char *)(arg1)->getName();
6315     } catch(Prelude::PreludeError &e) {
6316       if ( e.getCode() == PRELUDE_ERROR_EOF )
6317       rb_raise(rb_eEOFError, "%s", e.what());
6318       else
6319       SWIG_exception(SWIG_RuntimeError, e.what());
6320 
6321       SWIG_fail;
6322     }
6323   }
6324   vresult = SWIG_FromCharPtr((const char *)result);
6325   return vresult;
6326 fail:
6327   return Qnil;
6328 }
6329 
6330 
6331 SWIGINTERN VALUE
6332 _wrap_ClientProfile_setName(int argc, VALUE *argv, VALUE self) {
6333   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6334   char *arg2 = (char *) 0 ;
6335   void *argp1 = 0 ;
6336   int res1 = 0 ;
6337   int res2 ;
6338   char *buf2 = 0 ;
6339   int alloc2 = 0 ;
6340   int result;
6341   VALUE vresult = Qnil;
6342 
6343   if ((argc < 1) || (argc > 1)) {
6344     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6345   }
6346   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6347   if (!SWIG_IsOK(res1)) {
6348     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","setName", 1, self ));
6349   }
6350   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6351   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
6352   if (!SWIG_IsOK(res2)) {
6353     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setName", 2, argv[0] ));
6354   }
6355   arg2 = reinterpret_cast< char * >(buf2);
6356   {
6357     try {
6358       result = (int)(arg1)->setName((char const *)arg2);
6359     } catch(Prelude::PreludeError &e) {
6360       if ( e.getCode() == PRELUDE_ERROR_EOF )
6361       rb_raise(rb_eEOFError, "%s", e.what());
6362       else
6363       SWIG_exception(SWIG_RuntimeError, e.what());
6364 
6365       SWIG_fail;
6366     }
6367   }
6368   vresult = SWIG_From_int(static_cast< int >(result));
6369   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6370   return vresult;
6371 fail:
6372   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6373   return Qnil;
6374 }
6375 
6376 
6377 SWIGINTERN VALUE
6378 _wrap_ClientProfile_getAnalyzerId(int argc, VALUE *argv, VALUE self) {
6379   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6380   void *argp1 = 0 ;
6381   int res1 = 0 ;
6382   uint64_t result;
6383   VALUE vresult = Qnil;
6384 
6385   if ((argc < 0) || (argc > 0)) {
6386     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6387   }
6388   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6389   if (!SWIG_IsOK(res1)) {
6390     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getAnalyzerId", 1, self ));
6391   }
6392   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6393   {
6394     try {
6395       result = (uint64_t)(arg1)->getAnalyzerId();
6396     } catch(Prelude::PreludeError &e) {
6397       if ( e.getCode() == PRELUDE_ERROR_EOF )
6398       rb_raise(rb_eEOFError, "%s", e.what());
6399       else
6400       SWIG_exception(SWIG_RuntimeError, e.what());
6401 
6402       SWIG_fail;
6403     }
6404   }
6405   vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
6406   return vresult;
6407 fail:
6408   return Qnil;
6409 }
6410 
6411 
6412 SWIGINTERN VALUE
6413 _wrap_ClientProfile_setAnalyzerId(int argc, VALUE *argv, VALUE self) {
6414   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6415   uint64_t arg2 ;
6416   void *argp1 = 0 ;
6417   int res1 = 0 ;
6418   unsigned long long val2 ;
6419   int ecode2 = 0 ;
6420 
6421   if ((argc < 1) || (argc > 1)) {
6422     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6423   }
6424   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6425   if (!SWIG_IsOK(res1)) {
6426     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","setAnalyzerId", 1, self ));
6427   }
6428   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6429   ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
6430   if (!SWIG_IsOK(ecode2)) {
6431     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","setAnalyzerId", 2, argv[0] ));
6432   }
6433   arg2 = static_cast< uint64_t >(val2);
6434   {
6435     try {
6436       (arg1)->setAnalyzerId(arg2);
6437     } catch(Prelude::PreludeError &e) {
6438       if ( e.getCode() == PRELUDE_ERROR_EOF )
6439       rb_raise(rb_eEOFError, "%s", e.what());
6440       else
6441       SWIG_exception(SWIG_RuntimeError, e.what());
6442 
6443       SWIG_fail;
6444     }
6445   }
6446   return Qnil;
6447 fail:
6448   return Qnil;
6449 }
6450 
6451 
6452 SWIGINTERN VALUE
6453 _wrap_ClientProfile_getConfigFilename(int argc, VALUE *argv, VALUE self) {
6454   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6455   void *argp1 = 0 ;
6456   int res1 = 0 ;
6457   std::string result;
6458   VALUE vresult = Qnil;
6459 
6460   if ((argc < 0) || (argc > 0)) {
6461     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6462   }
6463   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6464   if (!SWIG_IsOK(res1)) {
6465     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getConfigFilename", 1, self ));
6466   }
6467   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6468   {
6469     try {
6470       result = (arg1)->getConfigFilename();
6471     } catch(Prelude::PreludeError &e) {
6472       if ( e.getCode() == PRELUDE_ERROR_EOF )
6473       rb_raise(rb_eEOFError, "%s", e.what());
6474       else
6475       SWIG_exception(SWIG_RuntimeError, e.what());
6476 
6477       SWIG_fail;
6478     }
6479   }
6480   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6481   return vresult;
6482 fail:
6483   return Qnil;
6484 }
6485 
6486 
6487 SWIGINTERN VALUE
6488 _wrap_ClientProfile_getAnalyzeridFilename(int argc, VALUE *argv, VALUE self) {
6489   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6490   void *argp1 = 0 ;
6491   int res1 = 0 ;
6492   std::string result;
6493   VALUE vresult = Qnil;
6494 
6495   if ((argc < 0) || (argc > 0)) {
6496     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6497   }
6498   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6499   if (!SWIG_IsOK(res1)) {
6500     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getAnalyzeridFilename", 1, self ));
6501   }
6502   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6503   {
6504     try {
6505       result = (arg1)->getAnalyzeridFilename();
6506     } catch(Prelude::PreludeError &e) {
6507       if ( e.getCode() == PRELUDE_ERROR_EOF )
6508       rb_raise(rb_eEOFError, "%s", e.what());
6509       else
6510       SWIG_exception(SWIG_RuntimeError, e.what());
6511 
6512       SWIG_fail;
6513     }
6514   }
6515   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6516   return vresult;
6517 fail:
6518   return Qnil;
6519 }
6520 
6521 
6522 SWIGINTERN VALUE
6523 _wrap_ClientProfile_getTlsKeyFilename(int argc, VALUE *argv, VALUE self) {
6524   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6525   void *argp1 = 0 ;
6526   int res1 = 0 ;
6527   std::string result;
6528   VALUE vresult = Qnil;
6529 
6530   if ((argc < 0) || (argc > 0)) {
6531     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6532   }
6533   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6534   if (!SWIG_IsOK(res1)) {
6535     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getTlsKeyFilename", 1, self ));
6536   }
6537   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6538   {
6539     try {
6540       result = (arg1)->getTlsKeyFilename();
6541     } catch(Prelude::PreludeError &e) {
6542       if ( e.getCode() == PRELUDE_ERROR_EOF )
6543       rb_raise(rb_eEOFError, "%s", e.what());
6544       else
6545       SWIG_exception(SWIG_RuntimeError, e.what());
6546 
6547       SWIG_fail;
6548     }
6549   }
6550   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6551   return vresult;
6552 fail:
6553   return Qnil;
6554 }
6555 
6556 
6557 SWIGINTERN VALUE
6558 _wrap_ClientProfile_getTlsServerCaCertFilename(int argc, VALUE *argv, VALUE self) {
6559   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6560   void *argp1 = 0 ;
6561   int res1 = 0 ;
6562   std::string result;
6563   VALUE vresult = Qnil;
6564 
6565   if ((argc < 0) || (argc > 0)) {
6566     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6567   }
6568   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6569   if (!SWIG_IsOK(res1)) {
6570     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getTlsServerCaCertFilename", 1, self ));
6571   }
6572   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6573   {
6574     try {
6575       result = (arg1)->getTlsServerCaCertFilename();
6576     } catch(Prelude::PreludeError &e) {
6577       if ( e.getCode() == PRELUDE_ERROR_EOF )
6578       rb_raise(rb_eEOFError, "%s", e.what());
6579       else
6580       SWIG_exception(SWIG_RuntimeError, e.what());
6581 
6582       SWIG_fail;
6583     }
6584   }
6585   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6586   return vresult;
6587 fail:
6588   return Qnil;
6589 }
6590 
6591 
6592 SWIGINTERN VALUE
6593 _wrap_ClientProfile_getTlsServerKeyCertFilename(int argc, VALUE *argv, VALUE self) {
6594   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6595   void *argp1 = 0 ;
6596   int res1 = 0 ;
6597   std::string result;
6598   VALUE vresult = Qnil;
6599 
6600   if ((argc < 0) || (argc > 0)) {
6601     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6602   }
6603   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6604   if (!SWIG_IsOK(res1)) {
6605     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getTlsServerKeyCertFilename", 1, self ));
6606   }
6607   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6608   {
6609     try {
6610       result = (arg1)->getTlsServerKeyCertFilename();
6611     } catch(Prelude::PreludeError &e) {
6612       if ( e.getCode() == PRELUDE_ERROR_EOF )
6613       rb_raise(rb_eEOFError, "%s", e.what());
6614       else
6615       SWIG_exception(SWIG_RuntimeError, e.what());
6616 
6617       SWIG_fail;
6618     }
6619   }
6620   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6621   return vresult;
6622 fail:
6623   return Qnil;
6624 }
6625 
6626 
6627 SWIGINTERN VALUE
6628 _wrap_ClientProfile_getTlsServerCrlFilename(int argc, VALUE *argv, VALUE self) {
6629   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6630   void *argp1 = 0 ;
6631   int res1 = 0 ;
6632   std::string result;
6633   VALUE vresult = Qnil;
6634 
6635   if ((argc < 0) || (argc > 0)) {
6636     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6637   }
6638   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6639   if (!SWIG_IsOK(res1)) {
6640     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getTlsServerCrlFilename", 1, self ));
6641   }
6642   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6643   {
6644     try {
6645       result = (arg1)->getTlsServerCrlFilename();
6646     } catch(Prelude::PreludeError &e) {
6647       if ( e.getCode() == PRELUDE_ERROR_EOF )
6648       rb_raise(rb_eEOFError, "%s", e.what());
6649       else
6650       SWIG_exception(SWIG_RuntimeError, e.what());
6651 
6652       SWIG_fail;
6653     }
6654   }
6655   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6656   return vresult;
6657 fail:
6658   return Qnil;
6659 }
6660 
6661 
6662 SWIGINTERN VALUE
6663 _wrap_ClientProfile_getTlsClientKeyCertFilename(int argc, VALUE *argv, VALUE self) {
6664   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6665   void *argp1 = 0 ;
6666   int res1 = 0 ;
6667   std::string result;
6668   VALUE vresult = Qnil;
6669 
6670   if ((argc < 0) || (argc > 0)) {
6671     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6672   }
6673   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6674   if (!SWIG_IsOK(res1)) {
6675     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getTlsClientKeyCertFilename", 1, self ));
6676   }
6677   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6678   {
6679     try {
6680       result = (arg1)->getTlsClientKeyCertFilename();
6681     } catch(Prelude::PreludeError &e) {
6682       if ( e.getCode() == PRELUDE_ERROR_EOF )
6683       rb_raise(rb_eEOFError, "%s", e.what());
6684       else
6685       SWIG_exception(SWIG_RuntimeError, e.what());
6686 
6687       SWIG_fail;
6688     }
6689   }
6690   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6691   return vresult;
6692 fail:
6693   return Qnil;
6694 }
6695 
6696 
6697 SWIGINTERN VALUE
6698 _wrap_ClientProfile_getTlsClientTrustedCertFilename(int argc, VALUE *argv, VALUE self) {
6699   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6700   void *argp1 = 0 ;
6701   int res1 = 0 ;
6702   std::string result;
6703   VALUE vresult = Qnil;
6704 
6705   if ((argc < 0) || (argc > 0)) {
6706     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6707   }
6708   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6709   if (!SWIG_IsOK(res1)) {
6710     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getTlsClientTrustedCertFilename", 1, self ));
6711   }
6712   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6713   {
6714     try {
6715       result = (arg1)->getTlsClientTrustedCertFilename();
6716     } catch(Prelude::PreludeError &e) {
6717       if ( e.getCode() == PRELUDE_ERROR_EOF )
6718       rb_raise(rb_eEOFError, "%s", e.what());
6719       else
6720       SWIG_exception(SWIG_RuntimeError, e.what());
6721 
6722       SWIG_fail;
6723     }
6724   }
6725   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6726   return vresult;
6727 fail:
6728   return Qnil;
6729 }
6730 
6731 
6732 SWIGINTERN VALUE
6733 _wrap_ClientProfile_getBackupDirname(int argc, VALUE *argv, VALUE self) {
6734   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6735   void *argp1 = 0 ;
6736   int res1 = 0 ;
6737   std::string result;
6738   VALUE vresult = Qnil;
6739 
6740   if ((argc < 0) || (argc > 0)) {
6741     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6742   }
6743   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6744   if (!SWIG_IsOK(res1)) {
6745     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getBackupDirname", 1, self ));
6746   }
6747   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6748   {
6749     try {
6750       result = (arg1)->getBackupDirname();
6751     } catch(Prelude::PreludeError &e) {
6752       if ( e.getCode() == PRELUDE_ERROR_EOF )
6753       rb_raise(rb_eEOFError, "%s", e.what());
6754       else
6755       SWIG_exception(SWIG_RuntimeError, e.what());
6756 
6757       SWIG_fail;
6758     }
6759   }
6760   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6761   return vresult;
6762 fail:
6763   return Qnil;
6764 }
6765 
6766 
6767 SWIGINTERN VALUE
6768 _wrap_ClientProfile_getProfileDirname(int argc, VALUE *argv, VALUE self) {
6769   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6770   void *argp1 = 0 ;
6771   int res1 = 0 ;
6772   std::string result;
6773   VALUE vresult = Qnil;
6774 
6775   if ((argc < 0) || (argc > 0)) {
6776     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6777   }
6778   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6779   if (!SWIG_IsOK(res1)) {
6780     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getProfileDirname", 1, self ));
6781   }
6782   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6783   {
6784     try {
6785       result = (arg1)->getProfileDirname();
6786     } catch(Prelude::PreludeError &e) {
6787       if ( e.getCode() == PRELUDE_ERROR_EOF )
6788       rb_raise(rb_eEOFError, "%s", e.what());
6789       else
6790       SWIG_exception(SWIG_RuntimeError, e.what());
6791 
6792       SWIG_fail;
6793     }
6794   }
6795   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6796   return vresult;
6797 fail:
6798   return Qnil;
6799 }
6800 
6801 
6802 SWIGINTERN VALUE
6803 _wrap_ClientProfile_setPrefix(int argc, VALUE *argv, VALUE self) {
6804   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6805   char *arg2 = (char *) 0 ;
6806   void *argp1 = 0 ;
6807   int res1 = 0 ;
6808   int res2 ;
6809   char *buf2 = 0 ;
6810   int alloc2 = 0 ;
6811 
6812   if ((argc < 1) || (argc > 1)) {
6813     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6814   }
6815   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6816   if (!SWIG_IsOK(res1)) {
6817     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","setPrefix", 1, self ));
6818   }
6819   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6820   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
6821   if (!SWIG_IsOK(res2)) {
6822     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setPrefix", 2, argv[0] ));
6823   }
6824   arg2 = reinterpret_cast< char * >(buf2);
6825   {
6826     try {
6827       (arg1)->setPrefix((char const *)arg2);
6828     } catch(Prelude::PreludeError &e) {
6829       if ( e.getCode() == PRELUDE_ERROR_EOF )
6830       rb_raise(rb_eEOFError, "%s", e.what());
6831       else
6832       SWIG_exception(SWIG_RuntimeError, e.what());
6833 
6834       SWIG_fail;
6835     }
6836   }
6837   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6838   return Qnil;
6839 fail:
6840   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
6841   return Qnil;
6842 }
6843 
6844 
6845 SWIGINTERN VALUE
6846 _wrap_ClientProfile_getPrefix(int argc, VALUE *argv, VALUE self) {
6847   Prelude::ClientProfile *arg1 = (Prelude::ClientProfile *) 0 ;
6848   void *argp1 = 0 ;
6849   int res1 = 0 ;
6850   std::string result;
6851   VALUE vresult = Qnil;
6852 
6853   if ((argc < 0) || (argc > 0)) {
6854     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6855   }
6856   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ClientProfile, 0 |  0 );
6857   if (!SWIG_IsOK(res1)) {
6858     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile *","getPrefix", 1, self ));
6859   }
6860   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
6861   {
6862     try {
6863       result = (arg1)->getPrefix();
6864     } catch(Prelude::PreludeError &e) {
6865       if ( e.getCode() == PRELUDE_ERROR_EOF )
6866       rb_raise(rb_eEOFError, "%s", e.what());
6867       else
6868       SWIG_exception(SWIG_RuntimeError, e.what());
6869 
6870       SWIG_fail;
6871     }
6872   }
6873   vresult = SWIG_From_std_string(static_cast< std::string >(result));
6874   return vresult;
6875 fail:
6876   return Qnil;
6877 }
6878 
6879 
6880 static swig_class SwigClassConnection;
6881 
6882 SWIGINTERN void
6883 free_Prelude_Connection(Prelude::Connection *arg1) {
6884     delete arg1;
6885 }
6886 
6887 SWIGINTERN VALUE
6888 _wrap_new_Connection__SWIG_0(int argc, VALUE *argv, VALUE self) {
6889   Prelude::Connection *result = 0 ;
6890 
6891   if ((argc < 0) || (argc > 0)) {
6892     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
6893   }
6894   {
6895     try {
6896       result = (Prelude::Connection *)new Prelude::Connection();
6897       DATA_PTR(self) = result;
6898     } catch(Prelude::PreludeError &e) {
6899       if ( e.getCode() == PRELUDE_ERROR_EOF )
6900       rb_raise(rb_eEOFError, "%s", e.what());
6901       else
6902       SWIG_exception(SWIG_RuntimeError, e.what());
6903 
6904       SWIG_fail;
6905     }
6906   }
6907   return self;
6908 fail:
6909   return Qnil;
6910 }
6911 
6912 
6913 SWIGINTERN VALUE
6914 _wrap_new_Connection__SWIG_1(int argc, VALUE *argv, VALUE self) {
6915   char *arg1 = (char *) 0 ;
6916   int res1 ;
6917   char *buf1 = 0 ;
6918   int alloc1 = 0 ;
6919   Prelude::Connection *result = 0 ;
6920 
6921   if ((argc < 1) || (argc > 1)) {
6922     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6923   }
6924   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
6925   if (!SWIG_IsOK(res1)) {
6926     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Connection", 1, argv[0] ));
6927   }
6928   arg1 = reinterpret_cast< char * >(buf1);
6929   {
6930     try {
6931       result = (Prelude::Connection *)new Prelude::Connection((char const *)arg1);
6932       DATA_PTR(self) = result;
6933     } catch(Prelude::PreludeError &e) {
6934       if ( e.getCode() == PRELUDE_ERROR_EOF )
6935       rb_raise(rb_eEOFError, "%s", e.what());
6936       else
6937       SWIG_exception(SWIG_RuntimeError, e.what());
6938 
6939       SWIG_fail;
6940     }
6941   }
6942   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6943   return self;
6944 fail:
6945   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
6946   return Qnil;
6947 }
6948 
6949 
6950 SWIGINTERN VALUE
6951 _wrap_new_Connection__SWIG_2(int argc, VALUE *argv, VALUE self) {
6952   Prelude::Connection *arg1 = 0 ;
6953   void *argp1 ;
6954   int res1 = 0 ;
6955   Prelude::Connection *result = 0 ;
6956 
6957   if ((argc < 1) || (argc > 1)) {
6958     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
6959   }
6960   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__Connection,  0 );
6961   if (!SWIG_IsOK(res1)) {
6962     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const &","Connection", 1, argv[0] ));
6963   }
6964   if (!argp1) {
6965     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::Connection const &","Connection", 1, argv[0]));
6966   }
6967   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
6968   {
6969     try {
6970       result = (Prelude::Connection *)new Prelude::Connection((Prelude::Connection const &)*arg1);
6971       DATA_PTR(self) = result;
6972     } catch(Prelude::PreludeError &e) {
6973       if ( e.getCode() == PRELUDE_ERROR_EOF )
6974       rb_raise(rb_eEOFError, "%s", e.what());
6975       else
6976       SWIG_exception(SWIG_RuntimeError, e.what());
6977 
6978       SWIG_fail;
6979     }
6980   }
6981   return self;
6982 fail:
6983   return Qnil;
6984 }
6985 
6986 
6987 SWIGINTERN VALUE
6988 _wrap_new_Connection__SWIG_3(int argc, VALUE *argv, VALUE self) {
6989   prelude_connection_t *arg1 = (prelude_connection_t *) 0 ;
6990   bool arg2 ;
6991   void *argp1 = 0 ;
6992   int res1 = 0 ;
6993   bool val2 ;
6994   int ecode2 = 0 ;
6995   Prelude::Connection *result = 0 ;
6996 
6997   if ((argc < 2) || (argc > 2)) {
6998     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
6999   }
7000   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_prelude_connection_t, 0 |  0 );
7001   if (!SWIG_IsOK(res1)) {
7002     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "prelude_connection_t *","Connection", 1, argv[0] ));
7003   }
7004   arg1 = reinterpret_cast< prelude_connection_t * >(argp1);
7005   ecode2 = SWIG_AsVal_bool(argv[1], &val2);
7006   if (!SWIG_IsOK(ecode2)) {
7007     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","Connection", 2, argv[1] ));
7008   }
7009   arg2 = static_cast< bool >(val2);
7010   {
7011     try {
7012       result = (Prelude::Connection *)new Prelude::Connection(arg1,arg2);
7013       DATA_PTR(self) = result;
7014     } catch(Prelude::PreludeError &e) {
7015       if ( e.getCode() == PRELUDE_ERROR_EOF )
7016       rb_raise(rb_eEOFError, "%s", e.what());
7017       else
7018       SWIG_exception(SWIG_RuntimeError, e.what());
7019 
7020       SWIG_fail;
7021     }
7022   }
7023   return self;
7024 fail:
7025   return Qnil;
7026 }
7027 
7028 
7029 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7030 SWIGINTERN VALUE
7031 _wrap_Connection_allocate(VALUE self) {
7032 #else
7033   SWIGINTERN VALUE
7034   _wrap_Connection_allocate(int argc, VALUE *argv, VALUE self) {
7035 #endif
7036 
7037 
7038     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__Connection);
7039 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
7040     rb_obj_call_init(vresult, argc, argv);
7041 #endif
7042     return vresult;
7043   }
7044 
7045 
7046 SWIGINTERN VALUE
7047 _wrap_new_Connection__SWIG_4(int argc, VALUE *argv, VALUE self) {
7048   prelude_connection_t *arg1 = (prelude_connection_t *) 0 ;
7049   void *argp1 = 0 ;
7050   int res1 = 0 ;
7051   Prelude::Connection *result = 0 ;
7052 
7053   if ((argc < 1) || (argc > 1)) {
7054     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7055   }
7056   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_prelude_connection_t, 0 |  0 );
7057   if (!SWIG_IsOK(res1)) {
7058     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "prelude_connection_t *","Connection", 1, argv[0] ));
7059   }
7060   arg1 = reinterpret_cast< prelude_connection_t * >(argp1);
7061   {
7062     try {
7063       result = (Prelude::Connection *)new Prelude::Connection(arg1);
7064       DATA_PTR(self) = result;
7065     } catch(Prelude::PreludeError &e) {
7066       if ( e.getCode() == PRELUDE_ERROR_EOF )
7067       rb_raise(rb_eEOFError, "%s", e.what());
7068       else
7069       SWIG_exception(SWIG_RuntimeError, e.what());
7070 
7071       SWIG_fail;
7072     }
7073   }
7074   return self;
7075 fail:
7076   return Qnil;
7077 }
7078 
7079 
7080 SWIGINTERN VALUE _wrap_new_Connection(int nargs, VALUE *args, VALUE self) {
7081   int argc;
7082   VALUE argv[2];
7083   int ii;
7084 
7085   argc = nargs;
7086   if (argc > 2) SWIG_fail;
7087   for (ii = 0; (ii < argc); ++ii) {
7088     argv[ii] = args[ii];
7089   }
7090   if (argc == 0) {
7091     return _wrap_new_Connection__SWIG_0(nargs, args, self);
7092   }
7093   if (argc == 1) {
7094     int _v;
7095     void *vptr = 0;
7096     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__Connection, 0);
7097     _v = SWIG_CheckState(res);
7098     if (_v) {
7099       return _wrap_new_Connection__SWIG_2(nargs, args, self);
7100     }
7101   }
7102   if (argc == 1) {
7103     int _v;
7104     void *vptr = 0;
7105     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_prelude_connection_t, 0);
7106     _v = SWIG_CheckState(res);
7107     if (_v) {
7108       return _wrap_new_Connection__SWIG_4(nargs, args, self);
7109     }
7110   }
7111   if (argc == 1) {
7112     int _v;
7113     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
7114     _v = SWIG_CheckState(res);
7115     if (_v) {
7116       return _wrap_new_Connection__SWIG_1(nargs, args, self);
7117     }
7118   }
7119   if (argc == 2) {
7120     int _v;
7121     void *vptr = 0;
7122     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_prelude_connection_t, 0);
7123     _v = SWIG_CheckState(res);
7124     if (_v) {
7125       {
7126         int res = SWIG_AsVal_bool(argv[1], NULL);
7127         _v = SWIG_CheckState(res);
7128       }
7129       if (_v) {
7130         return _wrap_new_Connection__SWIG_3(nargs, args, self);
7131       }
7132     }
7133   }
7134 
7135 fail:
7136   Ruby_Format_OverloadedError( argc, 2, "Connection.new",
7137     "    Connection.new()\n"
7138     "    Connection.new(char const *addr)\n"
7139     "    Connection.new(Prelude::Connection const &con)\n"
7140     "    Connection.new(prelude_connection_t *con, bool own_data)\n"
7141     "    Connection.new(prelude_connection_t *con)\n");
7142 
7143   return Qnil;
7144 }
7145 
7146 
7147 SWIGINTERN VALUE
7148 _wrap_Connection_getConnection(int argc, VALUE *argv, VALUE self) {
7149   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7150   void *argp1 = 0 ;
7151   int res1 = 0 ;
7152   prelude_connection_t *result = 0 ;
7153   VALUE vresult = Qnil;
7154 
7155   if ((argc < 0) || (argc > 0)) {
7156     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7157   }
7158   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7159   if (!SWIG_IsOK(res1)) {
7160     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getConnection", 1, self ));
7161   }
7162   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7163   {
7164     try {
7165       result = (prelude_connection_t *)((Prelude::Connection const *)arg1)->getConnection();
7166     } catch(Prelude::PreludeError &e) {
7167       if ( e.getCode() == PRELUDE_ERROR_EOF )
7168       rb_raise(rb_eEOFError, "%s", e.what());
7169       else
7170       SWIG_exception(SWIG_RuntimeError, e.what());
7171 
7172       SWIG_fail;
7173     }
7174   }
7175   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_prelude_connection_t, 0 |  0 );
7176   return vresult;
7177 fail:
7178   return Qnil;
7179 }
7180 
7181 
7182 SWIGINTERN VALUE
7183 _wrap_Connection_close(int argc, VALUE *argv, VALUE self) {
7184   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7185   void *argp1 = 0 ;
7186   int res1 = 0 ;
7187 
7188   if ((argc < 0) || (argc > 0)) {
7189     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7190   }
7191   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7192   if (!SWIG_IsOK(res1)) {
7193     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection *","close", 1, self ));
7194   }
7195   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7196   {
7197     try {
7198       (arg1)->close();
7199     } catch(Prelude::PreludeError &e) {
7200       if ( e.getCode() == PRELUDE_ERROR_EOF )
7201       rb_raise(rb_eEOFError, "%s", e.what());
7202       else
7203       SWIG_exception(SWIG_RuntimeError, e.what());
7204 
7205       SWIG_fail;
7206     }
7207   }
7208   return Qnil;
7209 fail:
7210   return Qnil;
7211 }
7212 
7213 
7214 SWIGINTERN VALUE
7215 _wrap_Connection_connect(int argc, VALUE *argv, VALUE self) {
7216   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7217   Prelude::ClientProfile *arg2 = 0 ;
7218   int arg3 ;
7219   void *argp1 = 0 ;
7220   int res1 = 0 ;
7221   void *argp2 = 0 ;
7222   int res2 = 0 ;
7223   int val3 ;
7224   int ecode3 = 0 ;
7225 
7226   if ((argc < 2) || (argc > 2)) {
7227     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
7228   }
7229   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7230   if (!SWIG_IsOK(res1)) {
7231     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection *","connect", 1, self ));
7232   }
7233   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7234   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__ClientProfile,  0 );
7235   if (!SWIG_IsOK(res2)) {
7236     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::ClientProfile &","connect", 2, argv[0] ));
7237   }
7238   if (!argp2) {
7239     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::ClientProfile &","connect", 2, argv[0]));
7240   }
7241   arg2 = reinterpret_cast< Prelude::ClientProfile * >(argp2);
7242   ecode3 = SWIG_AsVal_int(argv[1], &val3);
7243   if (!SWIG_IsOK(ecode3)) {
7244     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","connect", 3, argv[1] ));
7245   }
7246   arg3 = static_cast< int >(val3);
7247   {
7248     try {
7249       (arg1)->connect(*arg2,arg3);
7250     } catch(Prelude::PreludeError &e) {
7251       if ( e.getCode() == PRELUDE_ERROR_EOF )
7252       rb_raise(rb_eEOFError, "%s", e.what());
7253       else
7254       SWIG_exception(SWIG_RuntimeError, e.what());
7255 
7256       SWIG_fail;
7257     }
7258   }
7259   return Qnil;
7260 fail:
7261   return Qnil;
7262 }
7263 
7264 
7265 SWIGINTERN VALUE
7266 _wrap_Connection_setState(int argc, VALUE *argv, VALUE self) {
7267   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7268   int arg2 ;
7269   void *argp1 = 0 ;
7270   int res1 = 0 ;
7271   int val2 ;
7272   int ecode2 = 0 ;
7273 
7274   if ((argc < 1) || (argc > 1)) {
7275     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7276   }
7277   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7278   if (!SWIG_IsOK(res1)) {
7279     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection *","setState", 1, self ));
7280   }
7281   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7282   ecode2 = SWIG_AsVal_int(argv[0], &val2);
7283   if (!SWIG_IsOK(ecode2)) {
7284     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setState", 2, argv[0] ));
7285   }
7286   arg2 = static_cast< int >(val2);
7287   {
7288     try {
7289       (arg1)->setState(arg2);
7290     } catch(Prelude::PreludeError &e) {
7291       if ( e.getCode() == PRELUDE_ERROR_EOF )
7292       rb_raise(rb_eEOFError, "%s", e.what());
7293       else
7294       SWIG_exception(SWIG_RuntimeError, e.what());
7295 
7296       SWIG_fail;
7297     }
7298   }
7299   return Qnil;
7300 fail:
7301   return Qnil;
7302 }
7303 
7304 
7305 SWIGINTERN VALUE
7306 _wrap_Connection_getState(int argc, VALUE *argv, VALUE self) {
7307   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7308   void *argp1 = 0 ;
7309   int res1 = 0 ;
7310   int result;
7311   VALUE vresult = Qnil;
7312 
7313   if ((argc < 0) || (argc > 0)) {
7314     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7315   }
7316   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7317   if (!SWIG_IsOK(res1)) {
7318     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getState", 1, self ));
7319   }
7320   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7321   {
7322     try {
7323       result = (int)((Prelude::Connection const *)arg1)->getState();
7324     } catch(Prelude::PreludeError &e) {
7325       if ( e.getCode() == PRELUDE_ERROR_EOF )
7326       rb_raise(rb_eEOFError, "%s", e.what());
7327       else
7328       SWIG_exception(SWIG_RuntimeError, e.what());
7329 
7330       SWIG_fail;
7331     }
7332   }
7333   vresult = SWIG_From_int(static_cast< int >(result));
7334   return vresult;
7335 fail:
7336   return Qnil;
7337 }
7338 
7339 
7340 SWIGINTERN VALUE
7341 _wrap_Connection_setData(int argc, VALUE *argv, VALUE self) {
7342   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7343   void *arg2 = (void *) 0 ;
7344   void *argp1 = 0 ;
7345   int res1 = 0 ;
7346   int res2 ;
7347 
7348   if ((argc < 1) || (argc > 1)) {
7349     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7350   }
7351   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7352   if (!SWIG_IsOK(res1)) {
7353     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection *","setData", 1, self ));
7354   }
7355   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7356   res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0);
7357   if (!SWIG_IsOK(res2)) {
7358     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","setData", 2, argv[0] ));
7359   }
7360   {
7361     try {
7362       (arg1)->setData(arg2);
7363     } catch(Prelude::PreludeError &e) {
7364       if ( e.getCode() == PRELUDE_ERROR_EOF )
7365       rb_raise(rb_eEOFError, "%s", e.what());
7366       else
7367       SWIG_exception(SWIG_RuntimeError, e.what());
7368 
7369       SWIG_fail;
7370     }
7371   }
7372   return Qnil;
7373 fail:
7374   return Qnil;
7375 }
7376 
7377 
7378 SWIGINTERN VALUE
7379 _wrap_Connection_getData(int argc, VALUE *argv, VALUE self) {
7380   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7381   void *argp1 = 0 ;
7382   int res1 = 0 ;
7383   void *result = 0 ;
7384   VALUE vresult = Qnil;
7385 
7386   if ((argc < 0) || (argc > 0)) {
7387     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7388   }
7389   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7390   if (!SWIG_IsOK(res1)) {
7391     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getData", 1, self ));
7392   }
7393   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7394   {
7395     try {
7396       result = (void *)((Prelude::Connection const *)arg1)->getData();
7397     } catch(Prelude::PreludeError &e) {
7398       if ( e.getCode() == PRELUDE_ERROR_EOF )
7399       rb_raise(rb_eEOFError, "%s", e.what());
7400       else
7401       SWIG_exception(SWIG_RuntimeError, e.what());
7402 
7403       SWIG_fail;
7404     }
7405   }
7406   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
7407   return vresult;
7408 fail:
7409   return Qnil;
7410 }
7411 
7412 
7413 SWIGINTERN VALUE
7414 _wrap_Connection_getPermission(int argc, VALUE *argv, VALUE self) {
7415   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7416   void *argp1 = 0 ;
7417   int res1 = 0 ;
7418   int result;
7419   VALUE vresult = Qnil;
7420 
7421   if ((argc < 0) || (argc > 0)) {
7422     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7423   }
7424   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7425   if (!SWIG_IsOK(res1)) {
7426     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getPermission", 1, self ));
7427   }
7428   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7429   {
7430     try {
7431       result = (int)((Prelude::Connection const *)arg1)->getPermission();
7432     } catch(Prelude::PreludeError &e) {
7433       if ( e.getCode() == PRELUDE_ERROR_EOF )
7434       rb_raise(rb_eEOFError, "%s", e.what());
7435       else
7436       SWIG_exception(SWIG_RuntimeError, e.what());
7437 
7438       SWIG_fail;
7439     }
7440   }
7441   vresult = SWIG_From_int(static_cast< int >(result));
7442   return vresult;
7443 fail:
7444   return Qnil;
7445 }
7446 
7447 
7448 SWIGINTERN VALUE
7449 _wrap_Connection_setPeerAnalyzerid(int argc, VALUE *argv, VALUE self) {
7450   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7451   uint64_t arg2 ;
7452   void *argp1 = 0 ;
7453   int res1 = 0 ;
7454   unsigned long long val2 ;
7455   int ecode2 = 0 ;
7456 
7457   if ((argc < 1) || (argc > 1)) {
7458     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7459   }
7460   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7461   if (!SWIG_IsOK(res1)) {
7462     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection *","setPeerAnalyzerid", 1, self ));
7463   }
7464   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7465   ecode2 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val2);
7466   if (!SWIG_IsOK(ecode2)) {
7467     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint64_t","setPeerAnalyzerid", 2, argv[0] ));
7468   }
7469   arg2 = static_cast< uint64_t >(val2);
7470   {
7471     try {
7472       (arg1)->setPeerAnalyzerid(arg2);
7473     } catch(Prelude::PreludeError &e) {
7474       if ( e.getCode() == PRELUDE_ERROR_EOF )
7475       rb_raise(rb_eEOFError, "%s", e.what());
7476       else
7477       SWIG_exception(SWIG_RuntimeError, e.what());
7478 
7479       SWIG_fail;
7480     }
7481   }
7482   return Qnil;
7483 fail:
7484   return Qnil;
7485 }
7486 
7487 
7488 SWIGINTERN VALUE
7489 _wrap_Connection_getPeerAnalyzerid(int argc, VALUE *argv, VALUE self) {
7490   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7491   void *argp1 = 0 ;
7492   int res1 = 0 ;
7493   uint64_t result;
7494   VALUE vresult = Qnil;
7495 
7496   if ((argc < 0) || (argc > 0)) {
7497     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7498   }
7499   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7500   if (!SWIG_IsOK(res1)) {
7501     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getPeerAnalyzerid", 1, self ));
7502   }
7503   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7504   {
7505     try {
7506       result = (uint64_t)((Prelude::Connection const *)arg1)->getPeerAnalyzerid();
7507     } catch(Prelude::PreludeError &e) {
7508       if ( e.getCode() == PRELUDE_ERROR_EOF )
7509       rb_raise(rb_eEOFError, "%s", e.what());
7510       else
7511       SWIG_exception(SWIG_RuntimeError, e.what());
7512 
7513       SWIG_fail;
7514     }
7515   }
7516   vresult = SWIG_From_unsigned_SS_long_SS_long(static_cast< unsigned long long >(result));
7517   return vresult;
7518 fail:
7519   return Qnil;
7520 }
7521 
7522 
7523 SWIGINTERN VALUE
7524 _wrap_Connection_getLocalAddr(int argc, VALUE *argv, VALUE self) {
7525   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7526   void *argp1 = 0 ;
7527   int res1 = 0 ;
7528   char *result = 0 ;
7529   VALUE vresult = Qnil;
7530 
7531   if ((argc < 0) || (argc > 0)) {
7532     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7533   }
7534   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7535   if (!SWIG_IsOK(res1)) {
7536     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getLocalAddr", 1, self ));
7537   }
7538   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7539   {
7540     try {
7541       result = (char *)((Prelude::Connection const *)arg1)->getLocalAddr();
7542     } catch(Prelude::PreludeError &e) {
7543       if ( e.getCode() == PRELUDE_ERROR_EOF )
7544       rb_raise(rb_eEOFError, "%s", e.what());
7545       else
7546       SWIG_exception(SWIG_RuntimeError, e.what());
7547 
7548       SWIG_fail;
7549     }
7550   }
7551   vresult = SWIG_FromCharPtr((const char *)result);
7552   return vresult;
7553 fail:
7554   return Qnil;
7555 }
7556 
7557 
7558 SWIGINTERN VALUE
7559 _wrap_Connection_getLocalPort(int argc, VALUE *argv, VALUE self) {
7560   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7561   void *argp1 = 0 ;
7562   int res1 = 0 ;
7563   unsigned int result;
7564   VALUE vresult = Qnil;
7565 
7566   if ((argc < 0) || (argc > 0)) {
7567     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7568   }
7569   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7570   if (!SWIG_IsOK(res1)) {
7571     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getLocalPort", 1, self ));
7572   }
7573   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7574   {
7575     try {
7576       result = (unsigned int)((Prelude::Connection const *)arg1)->getLocalPort();
7577     } catch(Prelude::PreludeError &e) {
7578       if ( e.getCode() == PRELUDE_ERROR_EOF )
7579       rb_raise(rb_eEOFError, "%s", e.what());
7580       else
7581       SWIG_exception(SWIG_RuntimeError, e.what());
7582 
7583       SWIG_fail;
7584     }
7585   }
7586   vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
7587   return vresult;
7588 fail:
7589   return Qnil;
7590 }
7591 
7592 
7593 SWIGINTERN VALUE
7594 _wrap_Connection_getPeerAddr(int argc, VALUE *argv, VALUE self) {
7595   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7596   void *argp1 = 0 ;
7597   int res1 = 0 ;
7598   char *result = 0 ;
7599   VALUE vresult = Qnil;
7600 
7601   if ((argc < 0) || (argc > 0)) {
7602     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7603   }
7604   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7605   if (!SWIG_IsOK(res1)) {
7606     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getPeerAddr", 1, self ));
7607   }
7608   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7609   {
7610     try {
7611       result = (char *)((Prelude::Connection const *)arg1)->getPeerAddr();
7612     } catch(Prelude::PreludeError &e) {
7613       if ( e.getCode() == PRELUDE_ERROR_EOF )
7614       rb_raise(rb_eEOFError, "%s", e.what());
7615       else
7616       SWIG_exception(SWIG_RuntimeError, e.what());
7617 
7618       SWIG_fail;
7619     }
7620   }
7621   vresult = SWIG_FromCharPtr((const char *)result);
7622   return vresult;
7623 fail:
7624   return Qnil;
7625 }
7626 
7627 
7628 SWIGINTERN VALUE
7629 _wrap_Connection_getPeerPort(int argc, VALUE *argv, VALUE self) {
7630   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7631   void *argp1 = 0 ;
7632   int res1 = 0 ;
7633   unsigned int result;
7634   VALUE vresult = Qnil;
7635 
7636   if ((argc < 0) || (argc > 0)) {
7637     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7638   }
7639   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7640   if (!SWIG_IsOK(res1)) {
7641     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getPeerPort", 1, self ));
7642   }
7643   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7644   {
7645     try {
7646       result = (unsigned int)((Prelude::Connection const *)arg1)->getPeerPort();
7647     } catch(Prelude::PreludeError &e) {
7648       if ( e.getCode() == PRELUDE_ERROR_EOF )
7649       rb_raise(rb_eEOFError, "%s", e.what());
7650       else
7651       SWIG_exception(SWIG_RuntimeError, e.what());
7652 
7653       SWIG_fail;
7654     }
7655   }
7656   vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
7657   return vresult;
7658 fail:
7659   return Qnil;
7660 }
7661 
7662 
7663 SWIGINTERN VALUE
7664 _wrap_Connection_isAlive(int argc, VALUE *argv, VALUE self) {
7665   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7666   void *argp1 = 0 ;
7667   int res1 = 0 ;
7668   bool result;
7669   VALUE vresult = Qnil;
7670 
7671   if ((argc < 0) || (argc > 0)) {
7672     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7673   }
7674   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7675   if (!SWIG_IsOK(res1)) {
7676     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","isAlive", 1, self ));
7677   }
7678   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7679   {
7680     try {
7681       result = (bool)((Prelude::Connection const *)arg1)->isAlive();
7682     } catch(Prelude::PreludeError &e) {
7683       if ( e.getCode() == PRELUDE_ERROR_EOF )
7684       rb_raise(rb_eEOFError, "%s", e.what());
7685       else
7686       SWIG_exception(SWIG_RuntimeError, e.what());
7687 
7688       SWIG_fail;
7689     }
7690   }
7691   vresult = SWIG_From_bool(static_cast< bool >(result));
7692   return vresult;
7693 fail:
7694   return Qnil;
7695 }
7696 
7697 
7698 SWIGINTERN VALUE
7699 _wrap_Connection_getFd(int argc, VALUE *argv, VALUE self) {
7700   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7701   void *argp1 = 0 ;
7702   int res1 = 0 ;
7703   int result;
7704   VALUE vresult = Qnil;
7705 
7706   if ((argc < 0) || (argc > 0)) {
7707     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7708   }
7709   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7710   if (!SWIG_IsOK(res1)) {
7711     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection const *","getFd", 1, self ));
7712   }
7713   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7714   {
7715     try {
7716       result = (int)((Prelude::Connection const *)arg1)->getFd();
7717     } catch(Prelude::PreludeError &e) {
7718       if ( e.getCode() == PRELUDE_ERROR_EOF )
7719       rb_raise(rb_eEOFError, "%s", e.what());
7720       else
7721       SWIG_exception(SWIG_RuntimeError, e.what());
7722 
7723       SWIG_fail;
7724     }
7725   }
7726   vresult = SWIG_From_int(static_cast< int >(result));
7727   return vresult;
7728 fail:
7729   return Qnil;
7730 }
7731 
7732 
7733 SWIGINTERN VALUE
7734 _wrap_Connection_recvIDMEF(int argc, VALUE *argv, VALUE self) {
7735   Prelude::Connection *arg1 = (Prelude::Connection *) 0 ;
7736   void *argp1 = 0 ;
7737   int res1 = 0 ;
7738   Prelude::IDMEF result;
7739   VALUE vresult = Qnil;
7740 
7741   if ((argc < 0) || (argc > 0)) {
7742     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7743   }
7744   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Connection, 0 |  0 );
7745   if (!SWIG_IsOK(res1)) {
7746     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Connection *","recvIDMEF", 1, self ));
7747   }
7748   arg1 = reinterpret_cast< Prelude::Connection * >(argp1);
7749   {
7750     try {
7751       result = (arg1)->recvIDMEF();
7752     } catch(Prelude::PreludeError &e) {
7753       if ( e.getCode() == PRELUDE_ERROR_EOF )
7754       rb_raise(rb_eEOFError, "%s", e.what());
7755       else
7756       SWIG_exception(SWIG_RuntimeError, e.what());
7757 
7758       SWIG_fail;
7759     }
7760   }
7761   vresult = SWIG_NewPointerObj((new Prelude::IDMEF(static_cast< const Prelude::IDMEF& >(result))), SWIGTYPE_p_Prelude__IDMEF, SWIG_POINTER_OWN |  0 );
7762   return vresult;
7763 fail:
7764   return Qnil;
7765 }
7766 
7767 
7768 static swig_class SwigClassConnectionPool;
7769 
7770 SWIGINTERN void
7771 free_Prelude_ConnectionPool(Prelude::ConnectionPool *arg1) {
7772     delete arg1;
7773 }
7774 
7775 SWIGINTERN VALUE
7776 _wrap_new_ConnectionPool__SWIG_0(int argc, VALUE *argv, VALUE self) {
7777   Prelude::ConnectionPool *result = 0 ;
7778 
7779   if ((argc < 0) || (argc > 0)) {
7780     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
7781   }
7782   {
7783     try {
7784       result = (Prelude::ConnectionPool *)new Prelude::ConnectionPool();
7785       DATA_PTR(self) = result;
7786     } catch(Prelude::PreludeError &e) {
7787       if ( e.getCode() == PRELUDE_ERROR_EOF )
7788       rb_raise(rb_eEOFError, "%s", e.what());
7789       else
7790       SWIG_exception(SWIG_RuntimeError, e.what());
7791 
7792       SWIG_fail;
7793     }
7794   }
7795   return self;
7796 fail:
7797   return Qnil;
7798 }
7799 
7800 
7801 SWIGINTERN VALUE
7802 _wrap_new_ConnectionPool__SWIG_1(int argc, VALUE *argv, VALUE self) {
7803   prelude_connection_pool_t *arg1 = (prelude_connection_pool_t *) 0 ;
7804   void *argp1 = 0 ;
7805   int res1 = 0 ;
7806   Prelude::ConnectionPool *result = 0 ;
7807 
7808   if ((argc < 1) || (argc > 1)) {
7809     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7810   }
7811   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_prelude_connection_pool_t, 0 |  0 );
7812   if (!SWIG_IsOK(res1)) {
7813     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "prelude_connection_pool_t *","ConnectionPool", 1, argv[0] ));
7814   }
7815   arg1 = reinterpret_cast< prelude_connection_pool_t * >(argp1);
7816   {
7817     try {
7818       result = (Prelude::ConnectionPool *)new Prelude::ConnectionPool(arg1);
7819       DATA_PTR(self) = result;
7820     } catch(Prelude::PreludeError &e) {
7821       if ( e.getCode() == PRELUDE_ERROR_EOF )
7822       rb_raise(rb_eEOFError, "%s", e.what());
7823       else
7824       SWIG_exception(SWIG_RuntimeError, e.what());
7825 
7826       SWIG_fail;
7827     }
7828   }
7829   return self;
7830 fail:
7831   return Qnil;
7832 }
7833 
7834 
7835 SWIGINTERN VALUE
7836 _wrap_new_ConnectionPool__SWIG_2(int argc, VALUE *argv, VALUE self) {
7837   Prelude::ConnectionPool *arg1 = 0 ;
7838   void *argp1 ;
7839   int res1 = 0 ;
7840   Prelude::ConnectionPool *result = 0 ;
7841 
7842   if ((argc < 1) || (argc > 1)) {
7843     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
7844   }
7845   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__ConnectionPool,  0 );
7846   if (!SWIG_IsOK(res1)) {
7847     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool const &","ConnectionPool", 1, argv[0] ));
7848   }
7849   if (!argp1) {
7850     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::ConnectionPool const &","ConnectionPool", 1, argv[0]));
7851   }
7852   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
7853   {
7854     try {
7855       result = (Prelude::ConnectionPool *)new Prelude::ConnectionPool((Prelude::ConnectionPool const &)*arg1);
7856       DATA_PTR(self) = result;
7857     } catch(Prelude::PreludeError &e) {
7858       if ( e.getCode() == PRELUDE_ERROR_EOF )
7859       rb_raise(rb_eEOFError, "%s", e.what());
7860       else
7861       SWIG_exception(SWIG_RuntimeError, e.what());
7862 
7863       SWIG_fail;
7864     }
7865   }
7866   return self;
7867 fail:
7868   return Qnil;
7869 }
7870 
7871 
7872 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
7873 SWIGINTERN VALUE
7874 _wrap_ConnectionPool_allocate(VALUE self) {
7875 #else
7876   SWIGINTERN VALUE
7877   _wrap_ConnectionPool_allocate(int argc, VALUE *argv, VALUE self) {
7878 #endif
7879 
7880 
7881     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__ConnectionPool);
7882 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
7883     rb_obj_call_init(vresult, argc, argv);
7884 #endif
7885     return vresult;
7886   }
7887 
7888 
7889 SWIGINTERN VALUE
7890 _wrap_new_ConnectionPool__SWIG_3(int argc, VALUE *argv, VALUE self) {
7891   Prelude::ClientProfile *arg1 = 0 ;
7892   int arg2 ;
7893   void *argp1 = 0 ;
7894   int res1 = 0 ;
7895   int val2 ;
7896   int ecode2 = 0 ;
7897   Prelude::ConnectionPool *result = 0 ;
7898 
7899   if ((argc < 2) || (argc > 2)) {
7900     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
7901   }
7902   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__ClientProfile,  0 );
7903   if (!SWIG_IsOK(res1)) {
7904     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ClientProfile &","ConnectionPool", 1, argv[0] ));
7905   }
7906   if (!argp1) {
7907     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::ClientProfile &","ConnectionPool", 1, argv[0]));
7908   }
7909   arg1 = reinterpret_cast< Prelude::ClientProfile * >(argp1);
7910   ecode2 = SWIG_AsVal_int(argv[1], &val2);
7911   if (!SWIG_IsOK(ecode2)) {
7912     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ConnectionPool", 2, argv[1] ));
7913   }
7914   arg2 = static_cast< int >(val2);
7915   {
7916     try {
7917       result = (Prelude::ConnectionPool *)new Prelude::ConnectionPool(*arg1,arg2);
7918       DATA_PTR(self) = result;
7919     } catch(Prelude::PreludeError &e) {
7920       if ( e.getCode() == PRELUDE_ERROR_EOF )
7921       rb_raise(rb_eEOFError, "%s", e.what());
7922       else
7923       SWIG_exception(SWIG_RuntimeError, e.what());
7924 
7925       SWIG_fail;
7926     }
7927   }
7928   return self;
7929 fail:
7930   return Qnil;
7931 }
7932 
7933 
7934 SWIGINTERN VALUE _wrap_new_ConnectionPool(int nargs, VALUE *args, VALUE self) {
7935   int argc;
7936   VALUE argv[2];
7937   int ii;
7938 
7939   argc = nargs;
7940   if (argc > 2) SWIG_fail;
7941   for (ii = 0; (ii < argc); ++ii) {
7942     argv[ii] = args[ii];
7943   }
7944   if (argc == 0) {
7945     return _wrap_new_ConnectionPool__SWIG_0(nargs, args, self);
7946   }
7947   if (argc == 1) {
7948     int _v;
7949     void *vptr = 0;
7950     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_prelude_connection_pool_t, 0);
7951     _v = SWIG_CheckState(res);
7952     if (_v) {
7953       return _wrap_new_ConnectionPool__SWIG_1(nargs, args, self);
7954     }
7955   }
7956   if (argc == 1) {
7957     int _v;
7958     void *vptr = 0;
7959     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__ConnectionPool, 0);
7960     _v = SWIG_CheckState(res);
7961     if (_v) {
7962       return _wrap_new_ConnectionPool__SWIG_2(nargs, args, self);
7963     }
7964   }
7965   if (argc == 2) {
7966     int _v;
7967     void *vptr = 0;
7968     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__ClientProfile, 0);
7969     _v = SWIG_CheckState(res);
7970     if (_v) {
7971       {
7972         int res = SWIG_AsVal_int(argv[1], NULL);
7973         _v = SWIG_CheckState(res);
7974       }
7975       if (_v) {
7976         return _wrap_new_ConnectionPool__SWIG_3(nargs, args, self);
7977       }
7978     }
7979   }
7980 
7981 fail:
7982   Ruby_Format_OverloadedError( argc, 2, "ConnectionPool.new",
7983     "    ConnectionPool.new()\n"
7984     "    ConnectionPool.new(prelude_connection_pool_t *pool)\n"
7985     "    ConnectionPool.new(Prelude::ConnectionPool const &pool)\n"
7986     "    ConnectionPool.new(Prelude::ClientProfile &cp, int permission)\n");
7987 
7988   return Qnil;
7989 }
7990 
7991 
7992 SWIGINTERN VALUE
7993 _wrap_ConnectionPool_init(int argc, VALUE *argv, VALUE self) {
7994   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
7995   void *argp1 = 0 ;
7996   int res1 = 0 ;
7997 
7998   if ((argc < 0) || (argc > 0)) {
7999     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8000   }
8001   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8002   if (!SWIG_IsOK(res1)) {
8003     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","init", 1, self ));
8004   }
8005   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8006   {
8007     try {
8008       (arg1)->init();
8009     } catch(Prelude::PreludeError &e) {
8010       if ( e.getCode() == PRELUDE_ERROR_EOF )
8011       rb_raise(rb_eEOFError, "%s", e.what());
8012       else
8013       SWIG_exception(SWIG_RuntimeError, e.what());
8014 
8015       SWIG_fail;
8016     }
8017   }
8018   return Qnil;
8019 fail:
8020   return Qnil;
8021 }
8022 
8023 
8024 SWIGINTERN VALUE
8025 _wrap_ConnectionPool_setConnectionString(int argc, VALUE *argv, VALUE self) {
8026   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8027   char *arg2 = (char *) 0 ;
8028   void *argp1 = 0 ;
8029   int res1 = 0 ;
8030   int res2 ;
8031   char *buf2 = 0 ;
8032   int alloc2 = 0 ;
8033 
8034   if ((argc < 1) || (argc > 1)) {
8035     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8036   }
8037   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8038   if (!SWIG_IsOK(res1)) {
8039     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","setConnectionString", 1, self ));
8040   }
8041   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8042   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
8043   if (!SWIG_IsOK(res2)) {
8044     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setConnectionString", 2, argv[0] ));
8045   }
8046   arg2 = reinterpret_cast< char * >(buf2);
8047   {
8048     try {
8049       (arg1)->setConnectionString((char const *)arg2);
8050     } catch(Prelude::PreludeError &e) {
8051       if ( e.getCode() == PRELUDE_ERROR_EOF )
8052       rb_raise(rb_eEOFError, "%s", e.what());
8053       else
8054       SWIG_exception(SWIG_RuntimeError, e.what());
8055 
8056       SWIG_fail;
8057     }
8058   }
8059   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
8060   return Qnil;
8061 fail:
8062   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
8063   return Qnil;
8064 }
8065 
8066 
8067 SWIGINTERN VALUE
8068 _wrap_ConnectionPool_getConnectionString(int argc, VALUE *argv, VALUE self) {
8069   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8070   void *argp1 = 0 ;
8071   int res1 = 0 ;
8072   char *result = 0 ;
8073   VALUE vresult = Qnil;
8074 
8075   if ((argc < 0) || (argc > 0)) {
8076     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8077   }
8078   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8079   if (!SWIG_IsOK(res1)) {
8080     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool const *","getConnectionString", 1, self ));
8081   }
8082   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8083   {
8084     try {
8085       result = (char *)((Prelude::ConnectionPool const *)arg1)->getConnectionString();
8086     } catch(Prelude::PreludeError &e) {
8087       if ( e.getCode() == PRELUDE_ERROR_EOF )
8088       rb_raise(rb_eEOFError, "%s", e.what());
8089       else
8090       SWIG_exception(SWIG_RuntimeError, e.what());
8091 
8092       SWIG_fail;
8093     }
8094   }
8095   vresult = SWIG_FromCharPtr((const char *)result);
8096   return vresult;
8097 fail:
8098   return Qnil;
8099 }
8100 
8101 
8102 SWIGINTERN VALUE
8103 _wrap_ConnectionPool_getConnectionList(int argc, VALUE *argv, VALUE self) {
8104   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8105   void *argp1 = 0 ;
8106   int res1 = 0 ;
8107   std::vector< Prelude::Connection,std::allocator< Prelude::Connection > > result;
8108   VALUE vresult = Qnil;
8109 
8110   if ((argc < 0) || (argc > 0)) {
8111     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8112   }
8113   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8114   if (!SWIG_IsOK(res1)) {
8115     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool const *","getConnectionList", 1, self ));
8116   }
8117   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8118   {
8119     try {
8120       result = ((Prelude::ConnectionPool const *)arg1)->getConnectionList();
8121     } catch(Prelude::PreludeError &e) {
8122       if ( e.getCode() == PRELUDE_ERROR_EOF )
8123       rb_raise(rb_eEOFError, "%s", e.what());
8124       else
8125       SWIG_exception(SWIG_RuntimeError, e.what());
8126 
8127       SWIG_fail;
8128     }
8129   }
8130   vresult = swig::from(static_cast< std::vector<Prelude::Connection,std::allocator< Prelude::Connection > > >(result));
8131   return vresult;
8132 fail:
8133   return Qnil;
8134 }
8135 
8136 
8137 SWIGINTERN VALUE
8138 _wrap_ConnectionPool_setFlags(int argc, VALUE *argv, VALUE self) {
8139   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8140   int arg2 ;
8141   void *argp1 = 0 ;
8142   int res1 = 0 ;
8143   int val2 ;
8144   int ecode2 = 0 ;
8145 
8146   if ((argc < 1) || (argc > 1)) {
8147     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8148   }
8149   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8150   if (!SWIG_IsOK(res1)) {
8151     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","setFlags", 1, self ));
8152   }
8153   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8154   ecode2 = SWIG_AsVal_int(argv[0], &val2);
8155   if (!SWIG_IsOK(ecode2)) {
8156     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setFlags", 2, argv[0] ));
8157   }
8158   arg2 = static_cast< int >(val2);
8159   {
8160     try {
8161       (arg1)->setFlags(arg2);
8162     } catch(Prelude::PreludeError &e) {
8163       if ( e.getCode() == PRELUDE_ERROR_EOF )
8164       rb_raise(rb_eEOFError, "%s", e.what());
8165       else
8166       SWIG_exception(SWIG_RuntimeError, e.what());
8167 
8168       SWIG_fail;
8169     }
8170   }
8171   return Qnil;
8172 fail:
8173   return Qnil;
8174 }
8175 
8176 
8177 SWIGINTERN VALUE
8178 _wrap_ConnectionPool_getFlags(int argc, VALUE *argv, VALUE self) {
8179   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8180   void *argp1 = 0 ;
8181   int res1 = 0 ;
8182   int result;
8183   VALUE vresult = Qnil;
8184 
8185   if ((argc < 0) || (argc > 0)) {
8186     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8187   }
8188   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8189   if (!SWIG_IsOK(res1)) {
8190     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool const *","getFlags", 1, self ));
8191   }
8192   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8193   {
8194     try {
8195       result = (int)((Prelude::ConnectionPool const *)arg1)->getFlags();
8196     } catch(Prelude::PreludeError &e) {
8197       if ( e.getCode() == PRELUDE_ERROR_EOF )
8198       rb_raise(rb_eEOFError, "%s", e.what());
8199       else
8200       SWIG_exception(SWIG_RuntimeError, e.what());
8201 
8202       SWIG_fail;
8203     }
8204   }
8205   vresult = SWIG_From_int(static_cast< int >(result));
8206   return vresult;
8207 fail:
8208   return Qnil;
8209 }
8210 
8211 
8212 SWIGINTERN VALUE
8213 _wrap_ConnectionPool_setData(int argc, VALUE *argv, VALUE self) {
8214   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8215   void *arg2 = (void *) 0 ;
8216   void *argp1 = 0 ;
8217   int res1 = 0 ;
8218   int res2 ;
8219 
8220   if ((argc < 1) || (argc > 1)) {
8221     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8222   }
8223   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8224   if (!SWIG_IsOK(res1)) {
8225     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","setData", 1, self ));
8226   }
8227   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8228   res2 = SWIG_ConvertPtr(argv[0],SWIG_as_voidptrptr(&arg2), 0, 0);
8229   if (!SWIG_IsOK(res2)) {
8230     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "void *","setData", 2, argv[0] ));
8231   }
8232   {
8233     try {
8234       (arg1)->setData(arg2);
8235     } catch(Prelude::PreludeError &e) {
8236       if ( e.getCode() == PRELUDE_ERROR_EOF )
8237       rb_raise(rb_eEOFError, "%s", e.what());
8238       else
8239       SWIG_exception(SWIG_RuntimeError, e.what());
8240 
8241       SWIG_fail;
8242     }
8243   }
8244   return Qnil;
8245 fail:
8246   return Qnil;
8247 }
8248 
8249 
8250 SWIGINTERN VALUE
8251 _wrap_ConnectionPool_getData(int argc, VALUE *argv, VALUE self) {
8252   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8253   void *argp1 = 0 ;
8254   int res1 = 0 ;
8255   void *result = 0 ;
8256   VALUE vresult = Qnil;
8257 
8258   if ((argc < 0) || (argc > 0)) {
8259     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8260   }
8261   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8262   if (!SWIG_IsOK(res1)) {
8263     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool const *","getData", 1, self ));
8264   }
8265   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8266   {
8267     try {
8268       result = (void *)((Prelude::ConnectionPool const *)arg1)->getData();
8269     } catch(Prelude::PreludeError &e) {
8270       if ( e.getCode() == PRELUDE_ERROR_EOF )
8271       rb_raise(rb_eEOFError, "%s", e.what());
8272       else
8273       SWIG_exception(SWIG_RuntimeError, e.what());
8274 
8275       SWIG_fail;
8276     }
8277   }
8278   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
8279   return vresult;
8280 fail:
8281   return Qnil;
8282 }
8283 
8284 
8285 SWIGINTERN VALUE
8286 _wrap_ConnectionPool_addConnection(int argc, VALUE *argv, VALUE self) {
8287   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8288   Prelude::Connection arg2 ;
8289   void *argp1 = 0 ;
8290   int res1 = 0 ;
8291   void *argp2 ;
8292   int res2 = 0 ;
8293 
8294   if ((argc < 1) || (argc > 1)) {
8295     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8296   }
8297   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8298   if (!SWIG_IsOK(res1)) {
8299     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","addConnection", 1, self ));
8300   }
8301   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8302   {
8303     res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__Connection,  0 );
8304     if (!SWIG_IsOK(res2)) {
8305       SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::Connection","addConnection", 2, argv[0] ));
8306     }
8307     if (!argp2) {
8308       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::Connection","addConnection", 2, argv[0]));
8309     } else {
8310       arg2 = *(reinterpret_cast< Prelude::Connection * >(argp2));
8311     }
8312   }
8313   {
8314     try {
8315       (arg1)->addConnection(arg2);
8316     } catch(Prelude::PreludeError &e) {
8317       if ( e.getCode() == PRELUDE_ERROR_EOF )
8318       rb_raise(rb_eEOFError, "%s", e.what());
8319       else
8320       SWIG_exception(SWIG_RuntimeError, e.what());
8321 
8322       SWIG_fail;
8323     }
8324   }
8325   return Qnil;
8326 fail:
8327   return Qnil;
8328 }
8329 
8330 
8331 SWIGINTERN VALUE
8332 _wrap_ConnectionPool_delConnection(int argc, VALUE *argv, VALUE self) {
8333   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8334   Prelude::Connection arg2 ;
8335   void *argp1 = 0 ;
8336   int res1 = 0 ;
8337   void *argp2 ;
8338   int res2 = 0 ;
8339 
8340   if ((argc < 1) || (argc > 1)) {
8341     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8342   }
8343   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8344   if (!SWIG_IsOK(res1)) {
8345     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","delConnection", 1, self ));
8346   }
8347   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8348   {
8349     res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__Connection,  0 );
8350     if (!SWIG_IsOK(res2)) {
8351       SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::Connection","delConnection", 2, argv[0] ));
8352     }
8353     if (!argp2) {
8354       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::Connection","delConnection", 2, argv[0]));
8355     } else {
8356       arg2 = *(reinterpret_cast< Prelude::Connection * >(argp2));
8357     }
8358   }
8359   {
8360     try {
8361       (arg1)->delConnection(arg2);
8362     } catch(Prelude::PreludeError &e) {
8363       if ( e.getCode() == PRELUDE_ERROR_EOF )
8364       rb_raise(rb_eEOFError, "%s", e.what());
8365       else
8366       SWIG_exception(SWIG_RuntimeError, e.what());
8367 
8368       SWIG_fail;
8369     }
8370   }
8371   return Qnil;
8372 fail:
8373   return Qnil;
8374 }
8375 
8376 
8377 SWIGINTERN VALUE
8378 _wrap_ConnectionPool_setConnectionAlive(int argc, VALUE *argv, VALUE self) {
8379   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8380   Prelude::Connection *arg2 = 0 ;
8381   void *argp1 = 0 ;
8382   int res1 = 0 ;
8383   void *argp2 = 0 ;
8384   int res2 = 0 ;
8385 
8386   if ((argc < 1) || (argc > 1)) {
8387     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8388   }
8389   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8390   if (!SWIG_IsOK(res1)) {
8391     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","setConnectionAlive", 1, self ));
8392   }
8393   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8394   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__Connection,  0 );
8395   if (!SWIG_IsOK(res2)) {
8396     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::Connection &","setConnectionAlive", 2, argv[0] ));
8397   }
8398   if (!argp2) {
8399     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::Connection &","setConnectionAlive", 2, argv[0]));
8400   }
8401   arg2 = reinterpret_cast< Prelude::Connection * >(argp2);
8402   {
8403     try {
8404       (arg1)->setConnectionAlive(*arg2);
8405     } catch(Prelude::PreludeError &e) {
8406       if ( e.getCode() == PRELUDE_ERROR_EOF )
8407       rb_raise(rb_eEOFError, "%s", e.what());
8408       else
8409       SWIG_exception(SWIG_RuntimeError, e.what());
8410 
8411       SWIG_fail;
8412     }
8413   }
8414   return Qnil;
8415 fail:
8416   return Qnil;
8417 }
8418 
8419 
8420 SWIGINTERN VALUE
8421 _wrap_ConnectionPool_setConnectionDead(int argc, VALUE *argv, VALUE self) {
8422   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8423   Prelude::Connection *arg2 = 0 ;
8424   void *argp1 = 0 ;
8425   int res1 = 0 ;
8426   void *argp2 = 0 ;
8427   int res2 = 0 ;
8428 
8429   if ((argc < 1) || (argc > 1)) {
8430     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8431   }
8432   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8433   if (!SWIG_IsOK(res1)) {
8434     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","setConnectionDead", 1, self ));
8435   }
8436   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8437   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__Connection,  0 );
8438   if (!SWIG_IsOK(res2)) {
8439     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::Connection &","setConnectionDead", 2, argv[0] ));
8440   }
8441   if (!argp2) {
8442     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::Connection &","setConnectionDead", 2, argv[0]));
8443   }
8444   arg2 = reinterpret_cast< Prelude::Connection * >(argp2);
8445   {
8446     try {
8447       (arg1)->setConnectionDead(*arg2);
8448     } catch(Prelude::PreludeError &e) {
8449       if ( e.getCode() == PRELUDE_ERROR_EOF )
8450       rb_raise(rb_eEOFError, "%s", e.what());
8451       else
8452       SWIG_exception(SWIG_RuntimeError, e.what());
8453 
8454       SWIG_fail;
8455     }
8456   }
8457   return Qnil;
8458 fail:
8459   return Qnil;
8460 }
8461 
8462 
8463 SWIGINTERN VALUE
8464 _wrap_ConnectionPool_setRequiredPermission(int argc, VALUE *argv, VALUE self) {
8465   Prelude::ConnectionPool *arg1 = (Prelude::ConnectionPool *) 0 ;
8466   int arg2 ;
8467   void *argp1 = 0 ;
8468   int res1 = 0 ;
8469   int val2 ;
8470   int ecode2 = 0 ;
8471 
8472   if ((argc < 1) || (argc > 1)) {
8473     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8474   }
8475   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
8476   if (!SWIG_IsOK(res1)) {
8477     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::ConnectionPool *","setRequiredPermission", 1, self ));
8478   }
8479   arg1 = reinterpret_cast< Prelude::ConnectionPool * >(argp1);
8480   ecode2 = SWIG_AsVal_int(argv[0], &val2);
8481   if (!SWIG_IsOK(ecode2)) {
8482     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setRequiredPermission", 2, argv[0] ));
8483   }
8484   arg2 = static_cast< int >(val2);
8485   {
8486     try {
8487       (arg1)->setRequiredPermission(arg2);
8488     } catch(Prelude::PreludeError &e) {
8489       if ( e.getCode() == PRELUDE_ERROR_EOF )
8490       rb_raise(rb_eEOFError, "%s", e.what());
8491       else
8492       SWIG_exception(SWIG_RuntimeError, e.what());
8493 
8494       SWIG_fail;
8495     }
8496   }
8497   return Qnil;
8498 fail:
8499   return Qnil;
8500 }
8501 
8502 
8503 static swig_class SwigClassClient;
8504 
8505 SWIGINTERN void
8506 free_Prelude_Client(Prelude::Client *arg1) {
8507     delete arg1;
8508 }
8509 
8510 SWIGINTERN VALUE
8511 _wrap_new_Client__SWIG_0(int argc, VALUE *argv, VALUE self) {
8512   char *arg1 = (char *) 0 ;
8513   int res1 ;
8514   char *buf1 = 0 ;
8515   int alloc1 = 0 ;
8516   Prelude::Client *result = 0 ;
8517 
8518   if ((argc < 1) || (argc > 1)) {
8519     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8520   }
8521   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
8522   if (!SWIG_IsOK(res1)) {
8523     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Client", 1, argv[0] ));
8524   }
8525   arg1 = reinterpret_cast< char * >(buf1);
8526   {
8527     try {
8528       result = (Prelude::Client *)new Prelude::Client((char const *)arg1);
8529       DATA_PTR(self) = result;
8530     } catch(Prelude::PreludeError &e) {
8531       if ( e.getCode() == PRELUDE_ERROR_EOF )
8532       rb_raise(rb_eEOFError, "%s", e.what());
8533       else
8534       SWIG_exception(SWIG_RuntimeError, e.what());
8535 
8536       SWIG_fail;
8537     }
8538   }
8539   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
8540   return self;
8541 fail:
8542   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
8543   return Qnil;
8544 }
8545 
8546 
8547 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
8548 SWIGINTERN VALUE
8549 _wrap_Client_allocate(VALUE self) {
8550 #else
8551   SWIGINTERN VALUE
8552   _wrap_Client_allocate(int argc, VALUE *argv, VALUE self) {
8553 #endif
8554 
8555 
8556     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__Client);
8557 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
8558     rb_obj_call_init(vresult, argc, argv);
8559 #endif
8560     return vresult;
8561   }
8562 
8563 
8564 SWIGINTERN VALUE
8565 _wrap_new_Client__SWIG_1(int argc, VALUE *argv, VALUE self) {
8566   Prelude::Client *arg1 = 0 ;
8567   void *argp1 ;
8568   int res1 = 0 ;
8569   Prelude::Client *result = 0 ;
8570 
8571   if ((argc < 1) || (argc > 1)) {
8572     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8573   }
8574   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__Client,  0 );
8575   if (!SWIG_IsOK(res1)) {
8576     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client const &","Client", 1, argv[0] ));
8577   }
8578   if (!argp1) {
8579     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::Client const &","Client", 1, argv[0]));
8580   }
8581   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8582   {
8583     try {
8584       result = (Prelude::Client *)new Prelude::Client((Prelude::Client const &)*arg1);
8585       DATA_PTR(self) = result;
8586     } catch(Prelude::PreludeError &e) {
8587       if ( e.getCode() == PRELUDE_ERROR_EOF )
8588       rb_raise(rb_eEOFError, "%s", e.what());
8589       else
8590       SWIG_exception(SWIG_RuntimeError, e.what());
8591 
8592       SWIG_fail;
8593     }
8594   }
8595   return self;
8596 fail:
8597   return Qnil;
8598 }
8599 
8600 
8601 SWIGINTERN VALUE _wrap_new_Client(int nargs, VALUE *args, VALUE self) {
8602   int argc;
8603   VALUE argv[1];
8604   int ii;
8605 
8606   argc = nargs;
8607   if (argc > 1) SWIG_fail;
8608   for (ii = 0; (ii < argc); ++ii) {
8609     argv[ii] = args[ii];
8610   }
8611   if (argc == 1) {
8612     int _v;
8613     void *vptr = 0;
8614     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__Client, 0);
8615     _v = SWIG_CheckState(res);
8616     if (_v) {
8617       return _wrap_new_Client__SWIG_1(nargs, args, self);
8618     }
8619   }
8620   if (argc == 1) {
8621     int _v;
8622     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
8623     _v = SWIG_CheckState(res);
8624     if (_v) {
8625       return _wrap_new_Client__SWIG_0(nargs, args, self);
8626     }
8627   }
8628 
8629 fail:
8630   Ruby_Format_OverloadedError( argc, 1, "Client.new",
8631     "    Client.new(char const *profile)\n"
8632     "    Client.new(Prelude::Client const &client)\n");
8633 
8634   return Qnil;
8635 }
8636 
8637 
8638 SWIGINTERN VALUE
8639 _wrap_Client_start(int argc, VALUE *argv, VALUE self) {
8640   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8641   void *argp1 = 0 ;
8642   int res1 = 0 ;
8643 
8644   if ((argc < 0) || (argc > 0)) {
8645     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8646   }
8647   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8648   if (!SWIG_IsOK(res1)) {
8649     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","start", 1, self ));
8650   }
8651   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8652   {
8653     try {
8654       (arg1)->start();
8655     } catch(Prelude::PreludeError &e) {
8656       if ( e.getCode() == PRELUDE_ERROR_EOF )
8657       rb_raise(rb_eEOFError, "%s", e.what());
8658       else
8659       SWIG_exception(SWIG_RuntimeError, e.what());
8660 
8661       SWIG_fail;
8662     }
8663   }
8664   return Qnil;
8665 fail:
8666   return Qnil;
8667 }
8668 
8669 
8670 SWIGINTERN VALUE
8671 _wrap_Client_init(int argc, VALUE *argv, VALUE self) {
8672   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8673   void *argp1 = 0 ;
8674   int res1 = 0 ;
8675 
8676   if ((argc < 0) || (argc > 0)) {
8677     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8678   }
8679   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8680   if (!SWIG_IsOK(res1)) {
8681     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","init", 1, self ));
8682   }
8683   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8684   {
8685     try {
8686       (arg1)->init();
8687     } catch(Prelude::PreludeError &e) {
8688       if ( e.getCode() == PRELUDE_ERROR_EOF )
8689       rb_raise(rb_eEOFError, "%s", e.what());
8690       else
8691       SWIG_exception(SWIG_RuntimeError, e.what());
8692 
8693       SWIG_fail;
8694     }
8695   }
8696   return Qnil;
8697 fail:
8698   return Qnil;
8699 }
8700 
8701 
8702 SWIGINTERN VALUE
8703 _wrap_Client_getClient(int argc, VALUE *argv, VALUE self) {
8704   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8705   void *argp1 = 0 ;
8706   int res1 = 0 ;
8707   prelude_client_t *result = 0 ;
8708   VALUE vresult = Qnil;
8709 
8710   if ((argc < 0) || (argc > 0)) {
8711     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8712   }
8713   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8714   if (!SWIG_IsOK(res1)) {
8715     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client const *","getClient", 1, self ));
8716   }
8717   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8718   {
8719     try {
8720       result = (prelude_client_t *)((Prelude::Client const *)arg1)->getClient();
8721     } catch(Prelude::PreludeError &e) {
8722       if ( e.getCode() == PRELUDE_ERROR_EOF )
8723       rb_raise(rb_eEOFError, "%s", e.what());
8724       else
8725       SWIG_exception(SWIG_RuntimeError, e.what());
8726 
8727       SWIG_fail;
8728     }
8729   }
8730   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_prelude_client_t, 0 |  0 );
8731   return vresult;
8732 fail:
8733   return Qnil;
8734 }
8735 
8736 
8737 SWIGINTERN VALUE
8738 _wrap_Client_sendIDMEF(int argc, VALUE *argv, VALUE self) {
8739   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8740   Prelude::IDMEF *arg2 = 0 ;
8741   void *argp1 = 0 ;
8742   int res1 = 0 ;
8743   void *argp2 ;
8744   int res2 = 0 ;
8745 
8746   if ((argc < 1) || (argc > 1)) {
8747     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8748   }
8749   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8750   if (!SWIG_IsOK(res1)) {
8751     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","sendIDMEF", 1, self ));
8752   }
8753   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8754   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
8755   if (!SWIG_IsOK(res2)) {
8756     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF const &","sendIDMEF", 2, argv[0] ));
8757   }
8758   if (!argp2) {
8759     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF const &","sendIDMEF", 2, argv[0]));
8760   }
8761   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
8762   {
8763     try {
8764       (arg1)->sendIDMEF((Prelude::IDMEF const &)*arg2);
8765     } catch(Prelude::PreludeError &e) {
8766       if ( e.getCode() == PRELUDE_ERROR_EOF )
8767       rb_raise(rb_eEOFError, "%s", e.what());
8768       else
8769       SWIG_exception(SWIG_RuntimeError, e.what());
8770 
8771       SWIG_fail;
8772     }
8773   }
8774   return Qnil;
8775 fail:
8776   return Qnil;
8777 }
8778 
8779 
8780 SWIGINTERN VALUE
8781 _wrap_Client_recvIDMEF(int argc, VALUE *argv, VALUE self) {
8782   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8783   Prelude::IDMEF *arg2 = 0 ;
8784   int arg3 = (int) -1 ;
8785   void *argp1 = 0 ;
8786   int res1 = 0 ;
8787   void *argp2 = 0 ;
8788   int res2 = 0 ;
8789   int val3 ;
8790   int ecode3 = 0 ;
8791   const char *kwnames[] = {
8792     "self","idmef","timeout", NULL
8793   };
8794   int result;
8795   VALUE vresult = Qnil;
8796 
8797   if ((argc < 1) || (argc > 2)) {
8798     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8799   }
8800   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8801   if (!SWIG_IsOK(res1)) {
8802     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","recvIDMEF", 1, self ));
8803   }
8804   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8805   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
8806   if (!SWIG_IsOK(res2)) {
8807     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","recvIDMEF", 2, argv[0] ));
8808   }
8809   if (!argp2) {
8810     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","recvIDMEF", 2, argv[0]));
8811   }
8812   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
8813   if (argc > 1) {
8814     ecode3 = SWIG_AsVal_int(argv[1], &val3);
8815     if (!SWIG_IsOK(ecode3)) {
8816       SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","recvIDMEF", 3, argv[1] ));
8817     }
8818     arg3 = static_cast< int >(val3);
8819   }
8820   {
8821     try {
8822       result = (int)(arg1)->recvIDMEF(*arg2,arg3);
8823     } catch(Prelude::PreludeError &e) {
8824       if ( e.getCode() == PRELUDE_ERROR_EOF )
8825       rb_raise(rb_eEOFError, "%s", e.what());
8826       else
8827       SWIG_exception(SWIG_RuntimeError, e.what());
8828 
8829       SWIG_fail;
8830     }
8831   }
8832   vresult = SWIG_From_int(static_cast< int >(result));
8833   return vresult;
8834 fail:
8835   return Qnil;
8836 }
8837 
8838 
8839 SWIGINTERN VALUE
8840 _wrap_Client_getFlags(int argc, VALUE *argv, VALUE self) {
8841   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8842   void *argp1 = 0 ;
8843   int res1 = 0 ;
8844   int result;
8845   VALUE vresult = Qnil;
8846 
8847   if ((argc < 0) || (argc > 0)) {
8848     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8849   }
8850   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8851   if (!SWIG_IsOK(res1)) {
8852     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client const *","getFlags", 1, self ));
8853   }
8854   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8855   {
8856     try {
8857       result = (int)((Prelude::Client const *)arg1)->getFlags();
8858     } catch(Prelude::PreludeError &e) {
8859       if ( e.getCode() == PRELUDE_ERROR_EOF )
8860       rb_raise(rb_eEOFError, "%s", e.what());
8861       else
8862       SWIG_exception(SWIG_RuntimeError, e.what());
8863 
8864       SWIG_fail;
8865     }
8866   }
8867   vresult = SWIG_From_int(static_cast< int >(result));
8868   return vresult;
8869 fail:
8870   return Qnil;
8871 }
8872 
8873 
8874 SWIGINTERN VALUE
8875 _wrap_Client_setFlags(int argc, VALUE *argv, VALUE self) {
8876   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8877   int arg2 ;
8878   void *argp1 = 0 ;
8879   int res1 = 0 ;
8880   int val2 ;
8881   int ecode2 = 0 ;
8882 
8883   if ((argc < 1) || (argc > 1)) {
8884     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8885   }
8886   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8887   if (!SWIG_IsOK(res1)) {
8888     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","setFlags", 1, self ));
8889   }
8890   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8891   ecode2 = SWIG_AsVal_int(argv[0], &val2);
8892   if (!SWIG_IsOK(ecode2)) {
8893     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setFlags", 2, argv[0] ));
8894   }
8895   arg2 = static_cast< int >(val2);
8896   {
8897     try {
8898       (arg1)->setFlags(arg2);
8899     } catch(Prelude::PreludeError &e) {
8900       if ( e.getCode() == PRELUDE_ERROR_EOF )
8901       rb_raise(rb_eEOFError, "%s", e.what());
8902       else
8903       SWIG_exception(SWIG_RuntimeError, e.what());
8904 
8905       SWIG_fail;
8906     }
8907   }
8908   return Qnil;
8909 fail:
8910   return Qnil;
8911 }
8912 
8913 
8914 SWIGINTERN VALUE
8915 _wrap_Client_getRequiredPermission(int argc, VALUE *argv, VALUE self) {
8916   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8917   void *argp1 = 0 ;
8918   int res1 = 0 ;
8919   int result;
8920   VALUE vresult = Qnil;
8921 
8922   if ((argc < 0) || (argc > 0)) {
8923     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8924   }
8925   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8926   if (!SWIG_IsOK(res1)) {
8927     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client const *","getRequiredPermission", 1, self ));
8928   }
8929   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8930   {
8931     try {
8932       result = (int)((Prelude::Client const *)arg1)->getRequiredPermission();
8933     } catch(Prelude::PreludeError &e) {
8934       if ( e.getCode() == PRELUDE_ERROR_EOF )
8935       rb_raise(rb_eEOFError, "%s", e.what());
8936       else
8937       SWIG_exception(SWIG_RuntimeError, e.what());
8938 
8939       SWIG_fail;
8940     }
8941   }
8942   vresult = SWIG_From_int(static_cast< int >(result));
8943   return vresult;
8944 fail:
8945   return Qnil;
8946 }
8947 
8948 
8949 SWIGINTERN VALUE
8950 _wrap_Client_setRequiredPermission(int argc, VALUE *argv, VALUE self) {
8951   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8952   int arg2 ;
8953   void *argp1 = 0 ;
8954   int res1 = 0 ;
8955   int val2 ;
8956   int ecode2 = 0 ;
8957 
8958   if ((argc < 1) || (argc > 1)) {
8959     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
8960   }
8961   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
8962   if (!SWIG_IsOK(res1)) {
8963     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","setRequiredPermission", 1, self ));
8964   }
8965   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
8966   ecode2 = SWIG_AsVal_int(argv[0], &val2);
8967   if (!SWIG_IsOK(ecode2)) {
8968     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","setRequiredPermission", 2, argv[0] ));
8969   }
8970   arg2 = static_cast< int >(val2);
8971   {
8972     try {
8973       (arg1)->setRequiredPermission(arg2);
8974     } catch(Prelude::PreludeError &e) {
8975       if ( e.getCode() == PRELUDE_ERROR_EOF )
8976       rb_raise(rb_eEOFError, "%s", e.what());
8977       else
8978       SWIG_exception(SWIG_RuntimeError, e.what());
8979 
8980       SWIG_fail;
8981     }
8982   }
8983   return Qnil;
8984 fail:
8985   return Qnil;
8986 }
8987 
8988 
8989 SWIGINTERN VALUE
8990 _wrap_Client_getConfigFilename(int argc, VALUE *argv, VALUE self) {
8991   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
8992   void *argp1 = 0 ;
8993   int res1 = 0 ;
8994   char *result = 0 ;
8995   VALUE vresult = Qnil;
8996 
8997   if ((argc < 0) || (argc > 0)) {
8998     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
8999   }
9000   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
9001   if (!SWIG_IsOK(res1)) {
9002     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client const *","getConfigFilename", 1, self ));
9003   }
9004   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
9005   {
9006     try {
9007       result = (char *)((Prelude::Client const *)arg1)->getConfigFilename();
9008     } catch(Prelude::PreludeError &e) {
9009       if ( e.getCode() == PRELUDE_ERROR_EOF )
9010       rb_raise(rb_eEOFError, "%s", e.what());
9011       else
9012       SWIG_exception(SWIG_RuntimeError, e.what());
9013 
9014       SWIG_fail;
9015     }
9016   }
9017   vresult = SWIG_FromCharPtr((const char *)result);
9018   return vresult;
9019 fail:
9020   return Qnil;
9021 }
9022 
9023 
9024 SWIGINTERN VALUE
9025 _wrap_Client_setConfigFilename(int argc, VALUE *argv, VALUE self) {
9026   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
9027   char *arg2 = (char *) 0 ;
9028   void *argp1 = 0 ;
9029   int res1 = 0 ;
9030   int res2 ;
9031   char *buf2 = 0 ;
9032   int alloc2 = 0 ;
9033 
9034   if ((argc < 1) || (argc > 1)) {
9035     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9036   }
9037   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
9038   if (!SWIG_IsOK(res1)) {
9039     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","setConfigFilename", 1, self ));
9040   }
9041   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
9042   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
9043   if (!SWIG_IsOK(res2)) {
9044     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","setConfigFilename", 2, argv[0] ));
9045   }
9046   arg2 = reinterpret_cast< char * >(buf2);
9047   {
9048     try {
9049       (arg1)->setConfigFilename((char const *)arg2);
9050     } catch(Prelude::PreludeError &e) {
9051       if ( e.getCode() == PRELUDE_ERROR_EOF )
9052       rb_raise(rb_eEOFError, "%s", e.what());
9053       else
9054       SWIG_exception(SWIG_RuntimeError, e.what());
9055 
9056       SWIG_fail;
9057     }
9058   }
9059   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
9060   return Qnil;
9061 fail:
9062   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
9063   return Qnil;
9064 }
9065 
9066 
9067 SWIGINTERN VALUE
9068 _wrap_Client_getConnectionPool(int argc, VALUE *argv, VALUE self) {
9069   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
9070   void *argp1 = 0 ;
9071   int res1 = 0 ;
9072   Prelude::ConnectionPool *result = 0 ;
9073   VALUE vresult = Qnil;
9074 
9075   if ((argc < 0) || (argc > 0)) {
9076     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9077   }
9078   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
9079   if (!SWIG_IsOK(res1)) {
9080     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","getConnectionPool", 1, self ));
9081   }
9082   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
9083   {
9084     try {
9085       result = (Prelude::ConnectionPool *) &(arg1)->getConnectionPool();
9086     } catch(Prelude::PreludeError &e) {
9087       if ( e.getCode() == PRELUDE_ERROR_EOF )
9088       rb_raise(rb_eEOFError, "%s", e.what());
9089       else
9090       SWIG_exception(SWIG_RuntimeError, e.what());
9091 
9092       SWIG_fail;
9093     }
9094   }
9095   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Prelude__ConnectionPool, 0 |  0 );
9096   return vresult;
9097 fail:
9098   return Qnil;
9099 }
9100 
9101 
9102 SWIGINTERN VALUE
9103 _wrap_Client_setConnectionPool(int argc, VALUE *argv, VALUE self) {
9104   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
9105   Prelude::ConnectionPool arg2 ;
9106   void *argp1 = 0 ;
9107   int res1 = 0 ;
9108   void *argp2 ;
9109   int res2 = 0 ;
9110 
9111   if ((argc < 1) || (argc > 1)) {
9112     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9113   }
9114   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
9115   if (!SWIG_IsOK(res1)) {
9116     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","setConnectionPool", 1, self ));
9117   }
9118   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
9119   {
9120     res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__ConnectionPool,  0 );
9121     if (!SWIG_IsOK(res2)) {
9122       SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::ConnectionPool","setConnectionPool", 2, argv[0] ));
9123     }
9124     if (!argp2) {
9125       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::ConnectionPool","setConnectionPool", 2, argv[0]));
9126     } else {
9127       arg2 = *(reinterpret_cast< Prelude::ConnectionPool * >(argp2));
9128     }
9129   }
9130   {
9131     try {
9132       (arg1)->setConnectionPool(arg2);
9133     } catch(Prelude::PreludeError &e) {
9134       if ( e.getCode() == PRELUDE_ERROR_EOF )
9135       rb_raise(rb_eEOFError, "%s", e.what());
9136       else
9137       SWIG_exception(SWIG_RuntimeError, e.what());
9138 
9139       SWIG_fail;
9140     }
9141   }
9142   return Qnil;
9143 fail:
9144   return Qnil;
9145 }
9146 
9147 
9148 
9149 /*
9150   Document-method: Prelude::Client.<<
9151 
9152   call-seq:
9153     <<(idmef) -> Client
9154 
9155 Left shifting or appending operator.
9156 */
9157 SWIGINTERN VALUE
9158 _wrap_Client___lshift__(int argc, VALUE *argv, VALUE self) {
9159   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
9160   Prelude::IDMEF *arg2 = 0 ;
9161   void *argp1 = 0 ;
9162   int res1 = 0 ;
9163   void *argp2 = 0 ;
9164   int res2 = 0 ;
9165   Prelude::Client *result = 0 ;
9166   VALUE vresult = Qnil;
9167 
9168   if ((argc < 1) || (argc > 1)) {
9169     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9170   }
9171   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
9172   if (!SWIG_IsOK(res1)) {
9173     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","operator <<", 1, self ));
9174   }
9175   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
9176   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
9177   if (!SWIG_IsOK(res2)) {
9178     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","operator <<", 2, argv[0] ));
9179   }
9180   if (!argp2) {
9181     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","operator <<", 2, argv[0]));
9182   }
9183   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
9184   {
9185     try {
9186       result = (Prelude::Client *) &(arg1)->operator <<(*arg2);
9187     } catch(Prelude::PreludeError &e) {
9188       if ( e.getCode() == PRELUDE_ERROR_EOF )
9189       rb_raise(rb_eEOFError, "%s", e.what());
9190       else
9191       SWIG_exception(SWIG_RuntimeError, e.what());
9192 
9193       SWIG_fail;
9194     }
9195   }
9196   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Prelude__Client, 0 |  0 );
9197   return vresult;
9198 fail:
9199   return Qnil;
9200 }
9201 
9202 
9203 
9204 /*
9205   Document-method: Prelude::Client.>>
9206 
9207   call-seq:
9208     >>(idmef) -> Client
9209 
9210 Right shifting operator or extracting operator.
9211 */
9212 SWIGINTERN VALUE
9213 _wrap_Client___rshift__(int argc, VALUE *argv, VALUE self) {
9214   Prelude::Client *arg1 = (Prelude::Client *) 0 ;
9215   Prelude::IDMEF *arg2 = 0 ;
9216   void *argp1 = 0 ;
9217   int res1 = 0 ;
9218   void *argp2 = 0 ;
9219   int res2 = 0 ;
9220   Prelude::Client *result = 0 ;
9221   VALUE vresult = Qnil;
9222 
9223   if ((argc < 1) || (argc > 1)) {
9224     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9225   }
9226   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__Client, 0 |  0 );
9227   if (!SWIG_IsOK(res1)) {
9228     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client *","operator >>", 1, self ));
9229   }
9230   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
9231   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
9232   if (!SWIG_IsOK(res2)) {
9233     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","operator >>", 2, argv[0] ));
9234   }
9235   if (!argp2) {
9236     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","operator >>", 2, argv[0]));
9237   }
9238   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
9239   {
9240     try {
9241       result = (Prelude::Client *) &(arg1)->operator >>(*arg2);
9242     } catch(Prelude::PreludeError &e) {
9243       if ( e.getCode() == PRELUDE_ERROR_EOF )
9244       rb_raise(rb_eEOFError, "%s", e.what());
9245       else
9246       SWIG_exception(SWIG_RuntimeError, e.what());
9247 
9248       SWIG_fail;
9249     }
9250   }
9251   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Prelude__Client, 0 |  0 );
9252   return vresult;
9253 fail:
9254   return Qnil;
9255 }
9256 
9257 
9258 SWIGINTERN VALUE
9259 _wrap_Client_setRecvTimeout(int argc, VALUE *argv, VALUE self) {
9260   Prelude::Client *arg1 = 0 ;
9261   int arg2 ;
9262   void *argp1 = 0 ;
9263   int res1 = 0 ;
9264   int val2 ;
9265   int ecode2 = 0 ;
9266   Prelude::Client *result = 0 ;
9267   VALUE vresult = Qnil;
9268 
9269   if ((argc < 2) || (argc > 2)) {
9270     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
9271   }
9272   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__Client,  0 );
9273   if (!SWIG_IsOK(res1)) {
9274     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::Client &","Prelude::Client::setRecvTimeout", 1, argv[0] ));
9275   }
9276   if (!argp1) {
9277     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::Client &","Prelude::Client::setRecvTimeout", 1, argv[0]));
9278   }
9279   arg1 = reinterpret_cast< Prelude::Client * >(argp1);
9280   ecode2 = SWIG_AsVal_int(argv[1], &val2);
9281   if (!SWIG_IsOK(ecode2)) {
9282     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","Prelude::Client::setRecvTimeout", 2, argv[1] ));
9283   }
9284   arg2 = static_cast< int >(val2);
9285   {
9286     try {
9287       result = (Prelude::Client *) &Prelude::Client::setRecvTimeout(*arg1,arg2);
9288     } catch(Prelude::PreludeError &e) {
9289       if ( e.getCode() == PRELUDE_ERROR_EOF )
9290       rb_raise(rb_eEOFError, "%s", e.what());
9291       else
9292       SWIG_exception(SWIG_RuntimeError, e.what());
9293 
9294       SWIG_fail;
9295     }
9296   }
9297   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Prelude__Client, 0 |  0 );
9298   return vresult;
9299 fail:
9300   return Qnil;
9301 }
9302 
9303 
9304 static swig_class SwigClassPreludeLog;
9305 
9306 SWIGINTERN VALUE
9307 _wrap_PreludeLog_setLevel(int argc, VALUE *argv, VALUE self) {
9308   int arg1 ;
9309   int val1 ;
9310   int ecode1 = 0 ;
9311 
9312   if ((argc < 1) || (argc > 1)) {
9313     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9314   }
9315   ecode1 = SWIG_AsVal_int(argv[0], &val1);
9316   if (!SWIG_IsOK(ecode1)) {
9317     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Prelude::PreludeLog::setLevel", 1, argv[0] ));
9318   }
9319   arg1 = static_cast< int >(val1);
9320   {
9321     try {
9322       Prelude::PreludeLog::setLevel(arg1);
9323     } catch(Prelude::PreludeError &e) {
9324       if ( e.getCode() == PRELUDE_ERROR_EOF )
9325       rb_raise(rb_eEOFError, "%s", e.what());
9326       else
9327       SWIG_exception(SWIG_RuntimeError, e.what());
9328 
9329       SWIG_fail;
9330     }
9331   }
9332   return Qnil;
9333 fail:
9334   return Qnil;
9335 }
9336 
9337 
9338 SWIGINTERN VALUE
9339 _wrap_PreludeLog_setDebugLevel(int argc, VALUE *argv, VALUE self) {
9340   int arg1 ;
9341   int val1 ;
9342   int ecode1 = 0 ;
9343 
9344   if ((argc < 1) || (argc > 1)) {
9345     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9346   }
9347   ecode1 = SWIG_AsVal_int(argv[0], &val1);
9348   if (!SWIG_IsOK(ecode1)) {
9349     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Prelude::PreludeLog::setDebugLevel", 1, argv[0] ));
9350   }
9351   arg1 = static_cast< int >(val1);
9352   {
9353     try {
9354       Prelude::PreludeLog::setDebugLevel(arg1);
9355     } catch(Prelude::PreludeError &e) {
9356       if ( e.getCode() == PRELUDE_ERROR_EOF )
9357       rb_raise(rb_eEOFError, "%s", e.what());
9358       else
9359       SWIG_exception(SWIG_RuntimeError, e.what());
9360 
9361       SWIG_fail;
9362     }
9363   }
9364   return Qnil;
9365 fail:
9366   return Qnil;
9367 }
9368 
9369 
9370 SWIGINTERN VALUE
9371 _wrap_PreludeLog_setFlags(int argc, VALUE *argv, VALUE self) {
9372   int arg1 ;
9373   int val1 ;
9374   int ecode1 = 0 ;
9375 
9376   if ((argc < 1) || (argc > 1)) {
9377     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9378   }
9379   ecode1 = SWIG_AsVal_int(argv[0], &val1);
9380   if (!SWIG_IsOK(ecode1)) {
9381     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Prelude::PreludeLog::setFlags", 1, argv[0] ));
9382   }
9383   arg1 = static_cast< int >(val1);
9384   {
9385     try {
9386       Prelude::PreludeLog::setFlags(arg1);
9387     } catch(Prelude::PreludeError &e) {
9388       if ( e.getCode() == PRELUDE_ERROR_EOF )
9389       rb_raise(rb_eEOFError, "%s", e.what());
9390       else
9391       SWIG_exception(SWIG_RuntimeError, e.what());
9392 
9393       SWIG_fail;
9394     }
9395   }
9396   return Qnil;
9397 fail:
9398   return Qnil;
9399 }
9400 
9401 
9402 SWIGINTERN VALUE
9403 _wrap_PreludeLog_getFlags(int argc, VALUE *argv, VALUE self) {
9404   int result;
9405   VALUE vresult = Qnil;
9406 
9407   if ((argc < 0) || (argc > 0)) {
9408     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9409   }
9410   {
9411     try {
9412       result = (int)Prelude::PreludeLog::getFlags();
9413     } catch(Prelude::PreludeError &e) {
9414       if ( e.getCode() == PRELUDE_ERROR_EOF )
9415       rb_raise(rb_eEOFError, "%s", e.what());
9416       else
9417       SWIG_exception(SWIG_RuntimeError, e.what());
9418 
9419       SWIG_fail;
9420     }
9421   }
9422   vresult = SWIG_From_int(static_cast< int >(result));
9423   return vresult;
9424 fail:
9425   return Qnil;
9426 }
9427 
9428 
9429 SWIGINTERN VALUE
9430 _wrap_PreludeLog_setLogfile(int argc, VALUE *argv, VALUE self) {
9431   char *arg1 = (char *) 0 ;
9432   int res1 ;
9433   char *buf1 = 0 ;
9434   int alloc1 = 0 ;
9435 
9436   if ((argc < 1) || (argc > 1)) {
9437     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9438   }
9439   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
9440   if (!SWIG_IsOK(res1)) {
9441     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","Prelude::PreludeLog::setLogfile", 1, argv[0] ));
9442   }
9443   arg1 = reinterpret_cast< char * >(buf1);
9444   {
9445     try {
9446       Prelude::PreludeLog::setLogfile((char const *)arg1);
9447     } catch(Prelude::PreludeError &e) {
9448       if ( e.getCode() == PRELUDE_ERROR_EOF )
9449       rb_raise(rb_eEOFError, "%s", e.what());
9450       else
9451       SWIG_exception(SWIG_RuntimeError, e.what());
9452 
9453       SWIG_fail;
9454     }
9455   }
9456   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
9457   return Qnil;
9458 fail:
9459   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
9460   return Qnil;
9461 }
9462 
9463 
9464 SWIGINTERN VALUE
9465 _wrap_PreludeLog_setCallback(int argc, VALUE *argv, VALUE self) {
9466   void (*arg1)(int,char const *) = (void (*)(int,char const *)) 0 ;
9467 
9468   if ((argc < 1) || (argc > 1)) {
9469     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9470   }
9471   {
9472     if ( ! SWIG_Ruby_isCallable(argv[0]) )
9473     SWIG_exception_fail(SWIG_ValueError, "Argument is not a callable object");
9474 
9475     __prelude_log_func = argv[0];
9476     rb_global_variable(&argv[0]);
9477 
9478     arg1 = _cb_ruby_log;
9479   }
9480   {
9481     try {
9482       Prelude::PreludeLog::setCallback(arg1);
9483     } catch(Prelude::PreludeError &e) {
9484       if ( e.getCode() == PRELUDE_ERROR_EOF )
9485       rb_raise(rb_eEOFError, "%s", e.what());
9486       else
9487       SWIG_exception(SWIG_RuntimeError, e.what());
9488 
9489       SWIG_fail;
9490     }
9491   }
9492   return Qnil;
9493 fail:
9494   return Qnil;
9495 }
9496 
9497 
9498 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
9499 SWIGINTERN VALUE
9500 _wrap_PreludeLog_allocate(VALUE self) {
9501 #else
9502   SWIGINTERN VALUE
9503   _wrap_PreludeLog_allocate(int argc, VALUE *argv, VALUE self) {
9504 #endif
9505 
9506 
9507     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__PreludeLog);
9508 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
9509     rb_obj_call_init(vresult, argc, argv);
9510 #endif
9511     return vresult;
9512   }
9513 
9514 
9515 SWIGINTERN VALUE
9516 _wrap_new_PreludeLog(int argc, VALUE *argv, VALUE self) {
9517   Prelude::PreludeLog *result = 0 ;
9518 
9519   if ((argc < 0) || (argc > 0)) {
9520     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9521   }
9522   {
9523     try {
9524       result = (Prelude::PreludeLog *)new Prelude::PreludeLog();
9525       DATA_PTR(self) = result;
9526     } catch(Prelude::PreludeError &e) {
9527       if ( e.getCode() == PRELUDE_ERROR_EOF )
9528       rb_raise(rb_eEOFError, "%s", e.what());
9529       else
9530       SWIG_exception(SWIG_RuntimeError, e.what());
9531 
9532       SWIG_fail;
9533     }
9534   }
9535   return self;
9536 fail:
9537   return Qnil;
9538 }
9539 
9540 
9541 SWIGINTERN void
9542 free_Prelude_PreludeLog(Prelude::PreludeLog *arg1) {
9543     delete arg1;
9544 }
9545 
9546 static swig_class SwigClassPreludeError;
9547 
9548 SWIGINTERN void
9549 free_Prelude_PreludeError(Prelude::PreludeError *arg1) {
9550     delete arg1;
9551 }
9552 
9553 SWIGINTERN VALUE
9554 _wrap_new_PreludeError__SWIG_0(int argc, VALUE *argv, VALUE self) {
9555   Prelude::PreludeError *result = 0 ;
9556 
9557   if ((argc < 0) || (argc > 0)) {
9558     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9559   }
9560   {
9561     try {
9562       result = (Prelude::PreludeError *)new Prelude::PreludeError();
9563       DATA_PTR(self) = result;
9564     } catch(Prelude::PreludeError &e) {
9565       if ( e.getCode() == PRELUDE_ERROR_EOF )
9566       rb_raise(rb_eEOFError, "%s", e.what());
9567       else
9568       SWIG_exception(SWIG_RuntimeError, e.what());
9569 
9570       SWIG_fail;
9571     }
9572   }
9573   return self;
9574 fail:
9575   return Qnil;
9576 }
9577 
9578 
9579 SWIGINTERN VALUE
9580 _wrap_new_PreludeError__SWIG_1(int argc, VALUE *argv, VALUE self) {
9581   int arg1 ;
9582   int val1 ;
9583   int ecode1 = 0 ;
9584   Prelude::PreludeError *result = 0 ;
9585 
9586   if ((argc < 1) || (argc > 1)) {
9587     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9588   }
9589   ecode1 = SWIG_AsVal_int(argv[0], &val1);
9590   if (!SWIG_IsOK(ecode1)) {
9591     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","PreludeError", 1, argv[0] ));
9592   }
9593   arg1 = static_cast< int >(val1);
9594   {
9595     try {
9596       result = (Prelude::PreludeError *)new Prelude::PreludeError(arg1);
9597       DATA_PTR(self) = result;
9598     } catch(Prelude::PreludeError &e) {
9599       if ( e.getCode() == PRELUDE_ERROR_EOF )
9600       rb_raise(rb_eEOFError, "%s", e.what());
9601       else
9602       SWIG_exception(SWIG_RuntimeError, e.what());
9603 
9604       SWIG_fail;
9605     }
9606   }
9607   return self;
9608 fail:
9609   return Qnil;
9610 }
9611 
9612 
9613 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
9614 SWIGINTERN VALUE
9615 _wrap_PreludeError_allocate(VALUE self) {
9616 #else
9617   SWIGINTERN VALUE
9618   _wrap_PreludeError_allocate(int argc, VALUE *argv, VALUE self) {
9619 #endif
9620 
9621 
9622     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__PreludeError);
9623 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
9624     rb_obj_call_init(vresult, argc, argv);
9625 #endif
9626     return vresult;
9627   }
9628 
9629 
9630 SWIGINTERN VALUE
9631 _wrap_new_PreludeError__SWIG_2(int argc, VALUE *argv, VALUE self) {
9632   std::string *arg1 = 0 ;
9633   int res1 = SWIG_OLDOBJ ;
9634   Prelude::PreludeError *result = 0 ;
9635 
9636   if ((argc < 1) || (argc > 1)) {
9637     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9638   }
9639   {
9640     std::string *ptr = (std::string *)0;
9641     res1 = SWIG_AsPtr_std_string(argv[0], &ptr);
9642     if (!SWIG_IsOK(res1)) {
9643       SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","PreludeError", 1, argv[0] ));
9644     }
9645     if (!ptr) {
9646       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","PreludeError", 1, argv[0]));
9647     }
9648     arg1 = ptr;
9649   }
9650   {
9651     try {
9652       result = (Prelude::PreludeError *)new Prelude::PreludeError((std::string const &)*arg1);
9653       DATA_PTR(self) = result;
9654     } catch(Prelude::PreludeError &e) {
9655       if ( e.getCode() == PRELUDE_ERROR_EOF )
9656       rb_raise(rb_eEOFError, "%s", e.what());
9657       else
9658       SWIG_exception(SWIG_RuntimeError, e.what());
9659 
9660       SWIG_fail;
9661     }
9662   }
9663   if (SWIG_IsNewObj(res1)) delete arg1;
9664   return self;
9665 fail:
9666   if (SWIG_IsNewObj(res1)) delete arg1;
9667   return Qnil;
9668 }
9669 
9670 
9671 SWIGINTERN VALUE _wrap_new_PreludeError(int nargs, VALUE *args, VALUE self) {
9672   int argc;
9673   VALUE argv[1];
9674   int ii;
9675 
9676   argc = nargs;
9677   if (argc > 1) SWIG_fail;
9678   for (ii = 0; (ii < argc); ++ii) {
9679     argv[ii] = args[ii];
9680   }
9681   if (argc == 0) {
9682     return _wrap_new_PreludeError__SWIG_0(nargs, args, self);
9683   }
9684   if (argc == 1) {
9685     int _v;
9686     {
9687       int res = SWIG_AsVal_int(argv[0], NULL);
9688       _v = SWIG_CheckState(res);
9689     }
9690     if (_v) {
9691       return _wrap_new_PreludeError__SWIG_1(nargs, args, self);
9692     }
9693   }
9694   if (argc == 1) {
9695     int _v;
9696     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
9697     _v = SWIG_CheckState(res);
9698     if (_v) {
9699       return _wrap_new_PreludeError__SWIG_2(nargs, args, self);
9700     }
9701   }
9702 
9703 fail:
9704   Ruby_Format_OverloadedError( argc, 1, "PreludeError.new",
9705     "    PreludeError.new()\n"
9706     "    PreludeError.new(int error)\n"
9707     "    PreludeError.new(std::string const &message)\n");
9708 
9709   return Qnil;
9710 }
9711 
9712 
9713 SWIGINTERN VALUE
9714 _wrap_PreludeError_getCode(int argc, VALUE *argv, VALUE self) {
9715   Prelude::PreludeError *arg1 = (Prelude::PreludeError *) 0 ;
9716   void *argp1 = 0 ;
9717   int res1 = 0 ;
9718   int result;
9719   VALUE vresult = Qnil;
9720 
9721   if ((argc < 0) || (argc > 0)) {
9722     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9723   }
9724   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__PreludeError, 0 |  0 );
9725   if (!SWIG_IsOK(res1)) {
9726     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::PreludeError const *","getCode", 1, self ));
9727   }
9728   arg1 = reinterpret_cast< Prelude::PreludeError * >(argp1);
9729   {
9730     try {
9731       result = (int)((Prelude::PreludeError const *)arg1)->getCode();
9732     } catch(Prelude::PreludeError &e) {
9733       if ( e.getCode() == PRELUDE_ERROR_EOF )
9734       rb_raise(rb_eEOFError, "%s", e.what());
9735       else
9736       SWIG_exception(SWIG_RuntimeError, e.what());
9737 
9738       SWIG_fail;
9739     }
9740   }
9741   vresult = SWIG_From_int(static_cast< int >(result));
9742   return vresult;
9743 fail:
9744   return Qnil;
9745 }
9746 
9747 
9748 SWIGINTERN VALUE
9749 _wrap_PreludeError_what(int argc, VALUE *argv, VALUE self) {
9750   Prelude::PreludeError *arg1 = (Prelude::PreludeError *) 0 ;
9751   void *argp1 = 0 ;
9752   int res1 = 0 ;
9753   char *result = 0 ;
9754   VALUE vresult = Qnil;
9755 
9756   if ((argc < 0) || (argc > 0)) {
9757     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9758   }
9759   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__PreludeError, 0 |  0 );
9760   if (!SWIG_IsOK(res1)) {
9761     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::PreludeError const *","what", 1, self ));
9762   }
9763   arg1 = reinterpret_cast< Prelude::PreludeError * >(argp1);
9764   {
9765     try {
9766       result = (char *)((Prelude::PreludeError const *)arg1)->what();
9767     } catch(Prelude::PreludeError &e) {
9768       if ( e.getCode() == PRELUDE_ERROR_EOF )
9769       rb_raise(rb_eEOFError, "%s", e.what());
9770       else
9771       SWIG_exception(SWIG_RuntimeError, e.what());
9772 
9773       SWIG_fail;
9774     }
9775   }
9776   vresult = SWIG_FromCharPtr((const char *)result);
9777   return vresult;
9778 fail:
9779   return Qnil;
9780 }
9781 
9782 
9783 SWIGINTERN VALUE
9784 _wrap_PreludeError___str__(int argc, VALUE *argv, VALUE self) {
9785   Prelude::PreludeError *arg1 = (Prelude::PreludeError *) 0 ;
9786   void *argp1 = 0 ;
9787   int res1 = 0 ;
9788   char *result = 0 ;
9789   VALUE vresult = Qnil;
9790 
9791   if ((argc < 0) || (argc > 0)) {
9792     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9793   }
9794   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__PreludeError, 0 |  0 );
9795   if (!SWIG_IsOK(res1)) {
9796     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::PreludeError const *","operator const char*", 1, self ));
9797   }
9798   arg1 = reinterpret_cast< Prelude::PreludeError * >(argp1);
9799   {
9800     try {
9801       result = (char *)((Prelude::PreludeError const *)arg1)->operator const char*();
9802     } catch(Prelude::PreludeError &e) {
9803       if ( e.getCode() == PRELUDE_ERROR_EOF )
9804       rb_raise(rb_eEOFError, "%s", e.what());
9805       else
9806       SWIG_exception(SWIG_RuntimeError, e.what());
9807 
9808       SWIG_fail;
9809     }
9810   }
9811   vresult = SWIG_FromCharPtr((const char *)result);
9812   return vresult;
9813 fail:
9814   return Qnil;
9815 }
9816 
9817 
9818 SWIGINTERN VALUE
9819 _wrap_PreludeError___int__(int argc, VALUE *argv, VALUE self) {
9820   Prelude::PreludeError *arg1 = (Prelude::PreludeError *) 0 ;
9821   void *argp1 = 0 ;
9822   int res1 = 0 ;
9823   int result;
9824   VALUE vresult = Qnil;
9825 
9826   if ((argc < 0) || (argc > 0)) {
9827     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
9828   }
9829   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__PreludeError, 0 |  0 );
9830   if (!SWIG_IsOK(res1)) {
9831     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::PreludeError const *","operator int", 1, self ));
9832   }
9833   arg1 = reinterpret_cast< Prelude::PreludeError * >(argp1);
9834   {
9835     try {
9836       result = (int)((Prelude::PreludeError const *)arg1)->operator int();
9837     } catch(Prelude::PreludeError &e) {
9838       if ( e.getCode() == PRELUDE_ERROR_EOF )
9839       rb_raise(rb_eEOFError, "%s", e.what());
9840       else
9841       SWIG_exception(SWIG_RuntimeError, e.what());
9842 
9843       SWIG_fail;
9844     }
9845   }
9846   vresult = SWIG_From_int(static_cast< int >(result));
9847   return vresult;
9848 fail:
9849   return Qnil;
9850 }
9851 
9852 
9853 static swig_class SwigClassClientEasy;
9854 
9855 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
9856 SWIGINTERN VALUE
9857 _wrap_ClientEasy_allocate(VALUE self) {
9858 #else
9859   SWIGINTERN VALUE
9860   _wrap_ClientEasy_allocate(int argc, VALUE *argv, VALUE self) {
9861 #endif
9862 
9863 
9864     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__ClientEasy);
9865 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
9866     rb_obj_call_init(vresult, argc, argv);
9867 #endif
9868     return vresult;
9869   }
9870 
9871 
9872 SWIGINTERN VALUE
9873 _wrap_new_ClientEasy(int argc, VALUE *argv, VALUE self) {
9874   char *arg1 = (char *) 0 ;
9875   int arg2 = (int) Prelude::Client::IDMEF_WRITE ;
9876   char *arg3 = (char *) "Unknown model" ;
9877   char *arg4 = (char *) "Unknown class" ;
9878   char *arg5 = (char *) "Unknown manufacturer" ;
9879   char *arg6 = (char *) "Unknown version" ;
9880   int res1 ;
9881   char *buf1 = 0 ;
9882   int alloc1 = 0 ;
9883   int val2 ;
9884   int ecode2 = 0 ;
9885   int res3 ;
9886   char *buf3 = 0 ;
9887   int alloc3 = 0 ;
9888   int res4 ;
9889   char *buf4 = 0 ;
9890   int alloc4 = 0 ;
9891   int res5 ;
9892   char *buf5 = 0 ;
9893   int alloc5 = 0 ;
9894   int res6 ;
9895   char *buf6 = 0 ;
9896   int alloc6 = 0 ;
9897   const char *kwnames[] = {
9898     "profile","permission","model","classname","manufacturer","version", NULL
9899   };
9900   Prelude::ClientEasy *result = 0 ;
9901 
9902   if ((argc < 1) || (argc > 6)) {
9903     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
9904   }
9905   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
9906   if (!SWIG_IsOK(res1)) {
9907     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","ClientEasy", 1, argv[0] ));
9908   }
9909   arg1 = reinterpret_cast< char * >(buf1);
9910   if (argc > 1) {
9911     ecode2 = SWIG_AsVal_int(argv[1], &val2);
9912     if (!SWIG_IsOK(ecode2)) {
9913       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","ClientEasy", 2, argv[1] ));
9914     }
9915     arg2 = static_cast< int >(val2);
9916   }
9917   if (argc > 2) {
9918     res3 = SWIG_AsCharPtrAndSize(argv[2], &buf3, NULL, &alloc3);
9919     if (!SWIG_IsOK(res3)) {
9920       SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "char const *","ClientEasy", 3, argv[2] ));
9921     }
9922     arg3 = reinterpret_cast< char * >(buf3);
9923   }
9924   if (argc > 3) {
9925     res4 = SWIG_AsCharPtrAndSize(argv[3], &buf4, NULL, &alloc4);
9926     if (!SWIG_IsOK(res4)) {
9927       SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "char const *","ClientEasy", 4, argv[3] ));
9928     }
9929     arg4 = reinterpret_cast< char * >(buf4);
9930   }
9931   if (argc > 4) {
9932     res5 = SWIG_AsCharPtrAndSize(argv[4], &buf5, NULL, &alloc5);
9933     if (!SWIG_IsOK(res5)) {
9934       SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "char const *","ClientEasy", 5, argv[4] ));
9935     }
9936     arg5 = reinterpret_cast< char * >(buf5);
9937   }
9938   if (argc > 5) {
9939     res6 = SWIG_AsCharPtrAndSize(argv[5], &buf6, NULL, &alloc6);
9940     if (!SWIG_IsOK(res6)) {
9941       SWIG_exception_fail(SWIG_ArgError(res6), Ruby_Format_TypeError( "", "char const *","ClientEasy", 6, argv[5] ));
9942     }
9943     arg6 = reinterpret_cast< char * >(buf6);
9944   }
9945   {
9946     try {
9947       result = (Prelude::ClientEasy *)new Prelude::ClientEasy((char const *)arg1,arg2,(char const *)arg3,(char const *)arg4,(char const *)arg5,(char const *)arg6);
9948       DATA_PTR(self) = result;
9949     } catch(Prelude::PreludeError &e) {
9950       if ( e.getCode() == PRELUDE_ERROR_EOF )
9951       rb_raise(rb_eEOFError, "%s", e.what());
9952       else
9953       SWIG_exception(SWIG_RuntimeError, e.what());
9954 
9955       SWIG_fail;
9956     }
9957   }
9958   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
9959   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9960   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
9961   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
9962   if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
9963   return self;
9964 fail:
9965   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
9966   if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
9967   if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
9968   if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
9969   if (alloc6 == SWIG_NEWOBJ) delete[] buf6;
9970   return Qnil;
9971 }
9972 
9973 
9974 SWIGINTERN void
9975 free_Prelude_ClientEasy(Prelude::ClientEasy *arg1) {
9976     delete arg1;
9977 }
9978 
9979 static swig_class SwigClassIDMEFCriterion;
9980 
9981 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
9982 SWIGINTERN VALUE
9983 _wrap_IDMEFCriterion_allocate(VALUE self) {
9984 #else
9985   SWIGINTERN VALUE
9986   _wrap_IDMEFCriterion_allocate(int argc, VALUE *argv, VALUE self) {
9987 #endif
9988 
9989 
9990     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__IDMEFCriterion);
9991 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
9992     rb_obj_call_init(vresult, argc, argv);
9993 #endif
9994     return vresult;
9995   }
9996 
9997 
9998 SWIGINTERN VALUE
9999 _wrap_new_IDMEFCriterion(int argc, VALUE *argv, VALUE self) {
10000   Prelude::IDMEFCriterion *result = 0 ;
10001 
10002   if ((argc < 0) || (argc > 0)) {
10003     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10004   }
10005   {
10006     try {
10007       result = (Prelude::IDMEFCriterion *)new Prelude::IDMEFCriterion();
10008       DATA_PTR(self) = result;
10009     } catch(Prelude::PreludeError &e) {
10010       if ( e.getCode() == PRELUDE_ERROR_EOF )
10011       rb_raise(rb_eEOFError, "%s", e.what());
10012       else
10013       SWIG_exception(SWIG_RuntimeError, e.what());
10014 
10015       SWIG_fail;
10016     }
10017   }
10018   return self;
10019 fail:
10020   return Qnil;
10021 }
10022 
10023 
10024 SWIGINTERN void
10025 free_Prelude_IDMEFCriterion(Prelude::IDMEFCriterion *arg1) {
10026     delete arg1;
10027 }
10028 
10029 static swig_class SwigClassIDMEFCriteria;
10030 
10031 SWIGINTERN void
10032 free_Prelude_IDMEFCriteria(Prelude::IDMEFCriteria *arg1) {
10033     delete arg1;
10034 }
10035 
10036 SWIGINTERN VALUE
10037 _wrap_new_IDMEFCriteria__SWIG_0(int argc, VALUE *argv, VALUE self) {
10038   Prelude::IDMEFCriteria *result = 0 ;
10039 
10040   if ((argc < 0) || (argc > 0)) {
10041     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10042   }
10043   {
10044     try {
10045       result = (Prelude::IDMEFCriteria *)new Prelude::IDMEFCriteria();
10046       DATA_PTR(self) = result;
10047     } catch(Prelude::PreludeError &e) {
10048       if ( e.getCode() == PRELUDE_ERROR_EOF )
10049       rb_raise(rb_eEOFError, "%s", e.what());
10050       else
10051       SWIG_exception(SWIG_RuntimeError, e.what());
10052 
10053       SWIG_fail;
10054     }
10055   }
10056   return self;
10057 fail:
10058   return Qnil;
10059 }
10060 
10061 
10062 SWIGINTERN VALUE
10063 _wrap_new_IDMEFCriteria__SWIG_1(int argc, VALUE *argv, VALUE self) {
10064   Prelude::IDMEFCriteria *arg1 = 0 ;
10065   void *argp1 ;
10066   int res1 = 0 ;
10067   Prelude::IDMEFCriteria *result = 0 ;
10068 
10069   if ((argc < 1) || (argc > 1)) {
10070     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10071   }
10072   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEFCriteria,  0 );
10073   if (!SWIG_IsOK(res1)) {
10074     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria const &","IDMEFCriteria", 1, argv[0] ));
10075   }
10076   if (!argp1) {
10077     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFCriteria const &","IDMEFCriteria", 1, argv[0]));
10078   }
10079   arg1 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp1);
10080   {
10081     try {
10082       result = (Prelude::IDMEFCriteria *)new Prelude::IDMEFCriteria((Prelude::IDMEFCriteria const &)*arg1);
10083       DATA_PTR(self) = result;
10084     } catch(Prelude::PreludeError &e) {
10085       if ( e.getCode() == PRELUDE_ERROR_EOF )
10086       rb_raise(rb_eEOFError, "%s", e.what());
10087       else
10088       SWIG_exception(SWIG_RuntimeError, e.what());
10089 
10090       SWIG_fail;
10091     }
10092   }
10093   return self;
10094 fail:
10095   return Qnil;
10096 }
10097 
10098 
10099 SWIGINTERN VALUE
10100 _wrap_new_IDMEFCriteria__SWIG_2(int argc, VALUE *argv, VALUE self) {
10101   char *arg1 = (char *) 0 ;
10102   int res1 ;
10103   char *buf1 = 0 ;
10104   int alloc1 = 0 ;
10105   Prelude::IDMEFCriteria *result = 0 ;
10106 
10107   if ((argc < 1) || (argc > 1)) {
10108     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10109   }
10110   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
10111   if (!SWIG_IsOK(res1)) {
10112     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","IDMEFCriteria", 1, argv[0] ));
10113   }
10114   arg1 = reinterpret_cast< char * >(buf1);
10115   {
10116     try {
10117       result = (Prelude::IDMEFCriteria *)new Prelude::IDMEFCriteria((char const *)arg1);
10118       DATA_PTR(self) = result;
10119     } catch(Prelude::PreludeError &e) {
10120       if ( e.getCode() == PRELUDE_ERROR_EOF )
10121       rb_raise(rb_eEOFError, "%s", e.what());
10122       else
10123       SWIG_exception(SWIG_RuntimeError, e.what());
10124 
10125       SWIG_fail;
10126     }
10127   }
10128   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
10129   return self;
10130 fail:
10131   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
10132   return Qnil;
10133 }
10134 
10135 
10136 SWIGINTERN VALUE
10137 _wrap_new_IDMEFCriteria__SWIG_3(int argc, VALUE *argv, VALUE self) {
10138   std::string *arg1 = 0 ;
10139   int res1 = SWIG_OLDOBJ ;
10140   Prelude::IDMEFCriteria *result = 0 ;
10141 
10142   if ((argc < 1) || (argc > 1)) {
10143     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10144   }
10145   {
10146     std::string *ptr = (std::string *)0;
10147     res1 = SWIG_AsPtr_std_string(argv[0], &ptr);
10148     if (!SWIG_IsOK(res1)) {
10149       SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","IDMEFCriteria", 1, argv[0] ));
10150     }
10151     if (!ptr) {
10152       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","IDMEFCriteria", 1, argv[0]));
10153     }
10154     arg1 = ptr;
10155   }
10156   {
10157     try {
10158       result = (Prelude::IDMEFCriteria *)new Prelude::IDMEFCriteria((std::string const &)*arg1);
10159       DATA_PTR(self) = result;
10160     } catch(Prelude::PreludeError &e) {
10161       if ( e.getCode() == PRELUDE_ERROR_EOF )
10162       rb_raise(rb_eEOFError, "%s", e.what());
10163       else
10164       SWIG_exception(SWIG_RuntimeError, e.what());
10165 
10166       SWIG_fail;
10167     }
10168   }
10169   if (SWIG_IsNewObj(res1)) delete arg1;
10170   return self;
10171 fail:
10172   if (SWIG_IsNewObj(res1)) delete arg1;
10173   return Qnil;
10174 }
10175 
10176 
10177 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
10178 SWIGINTERN VALUE
10179 _wrap_IDMEFCriteria_allocate(VALUE self) {
10180 #else
10181   SWIGINTERN VALUE
10182   _wrap_IDMEFCriteria_allocate(int argc, VALUE *argv, VALUE self) {
10183 #endif
10184 
10185 
10186     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__IDMEFCriteria);
10187 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
10188     rb_obj_call_init(vresult, argc, argv);
10189 #endif
10190     return vresult;
10191   }
10192 
10193 
10194 SWIGINTERN VALUE
10195 _wrap_new_IDMEFCriteria__SWIG_4(int argc, VALUE *argv, VALUE self) {
10196   idmef_criteria_t *arg1 = (idmef_criteria_t *) 0 ;
10197   void *argp1 = 0 ;
10198   int res1 = 0 ;
10199   Prelude::IDMEFCriteria *result = 0 ;
10200 
10201   if ((argc < 1) || (argc > 1)) {
10202     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10203   }
10204   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_idmef_criteria_t, 0 |  0 );
10205   if (!SWIG_IsOK(res1)) {
10206     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "idmef_criteria_t *","IDMEFCriteria", 1, argv[0] ));
10207   }
10208   arg1 = reinterpret_cast< idmef_criteria_t * >(argp1);
10209   {
10210     try {
10211       result = (Prelude::IDMEFCriteria *)new Prelude::IDMEFCriteria(arg1);
10212       DATA_PTR(self) = result;
10213     } catch(Prelude::PreludeError &e) {
10214       if ( e.getCode() == PRELUDE_ERROR_EOF )
10215       rb_raise(rb_eEOFError, "%s", e.what());
10216       else
10217       SWIG_exception(SWIG_RuntimeError, e.what());
10218 
10219       SWIG_fail;
10220     }
10221   }
10222   return self;
10223 fail:
10224   return Qnil;
10225 }
10226 
10227 
10228 SWIGINTERN VALUE _wrap_new_IDMEFCriteria(int nargs, VALUE *args, VALUE self) {
10229   int argc;
10230   VALUE argv[1];
10231   int ii;
10232 
10233   argc = nargs;
10234   if (argc > 1) SWIG_fail;
10235   for (ii = 0; (ii < argc); ++ii) {
10236     argv[ii] = args[ii];
10237   }
10238   if (argc == 0) {
10239     return _wrap_new_IDMEFCriteria__SWIG_0(nargs, args, self);
10240   }
10241   if (argc == 1) {
10242     int _v;
10243     void *vptr = 0;
10244     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFCriteria, 0);
10245     _v = SWIG_CheckState(res);
10246     if (_v) {
10247       return _wrap_new_IDMEFCriteria__SWIG_1(nargs, args, self);
10248     }
10249   }
10250   if (argc == 1) {
10251     int _v;
10252     void *vptr = 0;
10253     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_idmef_criteria_t, 0);
10254     _v = SWIG_CheckState(res);
10255     if (_v) {
10256       return _wrap_new_IDMEFCriteria__SWIG_4(nargs, args, self);
10257     }
10258   }
10259   if (argc == 1) {
10260     int _v;
10261     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
10262     _v = SWIG_CheckState(res);
10263     if (_v) {
10264       return _wrap_new_IDMEFCriteria__SWIG_3(nargs, args, self);
10265     }
10266   }
10267   if (argc == 1) {
10268     int _v;
10269     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
10270     _v = SWIG_CheckState(res);
10271     if (_v) {
10272       return _wrap_new_IDMEFCriteria__SWIG_2(nargs, args, self);
10273     }
10274   }
10275 
10276 fail:
10277   Ruby_Format_OverloadedError( argc, 1, "IDMEFCriteria.new",
10278     "    IDMEFCriteria.new()\n"
10279     "    IDMEFCriteria.new(Prelude::IDMEFCriteria const &criteria)\n"
10280     "    IDMEFCriteria.new(char const *criteria)\n"
10281     "    IDMEFCriteria.new(std::string const &criteria)\n"
10282     "    IDMEFCriteria.new(idmef_criteria_t *criteria)\n");
10283 
10284   return Qnil;
10285 }
10286 
10287 
10288 SWIGINTERN VALUE
10289 _wrap_IDMEFCriteria_match(int argc, VALUE *argv, VALUE self) {
10290   Prelude::IDMEFCriteria *arg1 = (Prelude::IDMEFCriteria *) 0 ;
10291   Prelude::IDMEF *arg2 = (Prelude::IDMEF *) 0 ;
10292   void *argp1 = 0 ;
10293   int res1 = 0 ;
10294   void *argp2 = 0 ;
10295   int res2 = 0 ;
10296   int result;
10297   VALUE vresult = Qnil;
10298 
10299   if ((argc < 1) || (argc > 1)) {
10300     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10301   }
10302   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFCriteria, 0 |  0 );
10303   if (!SWIG_IsOK(res1)) {
10304     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria const *","match", 1, self ));
10305   }
10306   arg1 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp1);
10307   res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
10308   if (!SWIG_IsOK(res2)) {
10309     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF *","match", 2, argv[0] ));
10310   }
10311   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
10312   {
10313     try {
10314       result = (int)((Prelude::IDMEFCriteria const *)arg1)->match(arg2);
10315     } catch(Prelude::PreludeError &e) {
10316       if ( e.getCode() == PRELUDE_ERROR_EOF )
10317       rb_raise(rb_eEOFError, "%s", e.what());
10318       else
10319       SWIG_exception(SWIG_RuntimeError, e.what());
10320 
10321       SWIG_fail;
10322     }
10323   }
10324   vresult = SWIG_From_int(static_cast< int >(result));
10325   return vresult;
10326 fail:
10327   return Qnil;
10328 }
10329 
10330 
10331 
10332 /*
10333   Document-method: Prelude::IDMEFCriteria.clone
10334 
10335   call-seq:
10336     clone -> IDMEFCriteria
10337 
10338 Create a duplicate of the class.
10339 */
10340 SWIGINTERN VALUE
10341 _wrap_IDMEFCriteria_clone(int argc, VALUE *argv, VALUE self) {
10342   Prelude::IDMEFCriteria *arg1 = (Prelude::IDMEFCriteria *) 0 ;
10343   void *argp1 = 0 ;
10344   int res1 = 0 ;
10345   Prelude::IDMEFCriteria result;
10346   VALUE vresult = Qnil;
10347 
10348   if ((argc < 0) || (argc > 0)) {
10349     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10350   }
10351   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFCriteria, 0 |  0 );
10352   if (!SWIG_IsOK(res1)) {
10353     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria const *","clone", 1, self ));
10354   }
10355   arg1 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp1);
10356   {
10357     try {
10358       result = ((Prelude::IDMEFCriteria const *)arg1)->clone();
10359     } catch(Prelude::PreludeError &e) {
10360       if ( e.getCode() == PRELUDE_ERROR_EOF )
10361       rb_raise(rb_eEOFError, "%s", e.what());
10362       else
10363       SWIG_exception(SWIG_RuntimeError, e.what());
10364 
10365       SWIG_fail;
10366     }
10367   }
10368   vresult = SWIG_NewPointerObj((new Prelude::IDMEFCriteria(static_cast< const Prelude::IDMEFCriteria& >(result))), SWIGTYPE_p_Prelude__IDMEFCriteria, SWIG_POINTER_OWN |  0 );
10369   return vresult;
10370 fail:
10371   return Qnil;
10372 }
10373 
10374 
10375 SWIGINTERN VALUE
10376 _wrap_IDMEFCriteria_andCriteria(int argc, VALUE *argv, VALUE self) {
10377   Prelude::IDMEFCriteria *arg1 = (Prelude::IDMEFCriteria *) 0 ;
10378   Prelude::IDMEFCriteria *arg2 = 0 ;
10379   void *argp1 = 0 ;
10380   int res1 = 0 ;
10381   void *argp2 ;
10382   int res2 = 0 ;
10383 
10384   if ((argc < 1) || (argc > 1)) {
10385     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10386   }
10387   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFCriteria, 0 |  0 );
10388   if (!SWIG_IsOK(res1)) {
10389     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria *","andCriteria", 1, self ));
10390   }
10391   arg1 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp1);
10392   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFCriteria,  0 );
10393   if (!SWIG_IsOK(res2)) {
10394     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria const &","andCriteria", 2, argv[0] ));
10395   }
10396   if (!argp2) {
10397     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFCriteria const &","andCriteria", 2, argv[0]));
10398   }
10399   arg2 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp2);
10400   {
10401     try {
10402       (arg1)->andCriteria((Prelude::IDMEFCriteria const &)*arg2);
10403     } catch(Prelude::PreludeError &e) {
10404       if ( e.getCode() == PRELUDE_ERROR_EOF )
10405       rb_raise(rb_eEOFError, "%s", e.what());
10406       else
10407       SWIG_exception(SWIG_RuntimeError, e.what());
10408 
10409       SWIG_fail;
10410     }
10411   }
10412   return Qnil;
10413 fail:
10414   return Qnil;
10415 }
10416 
10417 
10418 SWIGINTERN VALUE
10419 _wrap_IDMEFCriteria_orCriteria(int argc, VALUE *argv, VALUE self) {
10420   Prelude::IDMEFCriteria *arg1 = (Prelude::IDMEFCriteria *) 0 ;
10421   Prelude::IDMEFCriteria *arg2 = 0 ;
10422   void *argp1 = 0 ;
10423   int res1 = 0 ;
10424   void *argp2 ;
10425   int res2 = 0 ;
10426 
10427   if ((argc < 1) || (argc > 1)) {
10428     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10429   }
10430   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFCriteria, 0 |  0 );
10431   if (!SWIG_IsOK(res1)) {
10432     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria *","orCriteria", 1, self ));
10433   }
10434   arg1 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp1);
10435   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFCriteria,  0 );
10436   if (!SWIG_IsOK(res2)) {
10437     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria const &","orCriteria", 2, argv[0] ));
10438   }
10439   if (!argp2) {
10440     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFCriteria const &","orCriteria", 2, argv[0]));
10441   }
10442   arg2 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp2);
10443   {
10444     try {
10445       (arg1)->orCriteria((Prelude::IDMEFCriteria const &)*arg2);
10446     } catch(Prelude::PreludeError &e) {
10447       if ( e.getCode() == PRELUDE_ERROR_EOF )
10448       rb_raise(rb_eEOFError, "%s", e.what());
10449       else
10450       SWIG_exception(SWIG_RuntimeError, e.what());
10451 
10452       SWIG_fail;
10453     }
10454   }
10455   return Qnil;
10456 fail:
10457   return Qnil;
10458 }
10459 
10460 
10461 SWIGINTERN VALUE
10462 _wrap_IDMEFCriteria_toString(int argc, VALUE *argv, VALUE self) {
10463   Prelude::IDMEFCriteria *arg1 = (Prelude::IDMEFCriteria *) 0 ;
10464   void *argp1 = 0 ;
10465   int res1 = 0 ;
10466   std::string result;
10467   VALUE vresult = Qnil;
10468 
10469   if ((argc < 0) || (argc > 0)) {
10470     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10471   }
10472   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFCriteria, 0 |  0 );
10473   if (!SWIG_IsOK(res1)) {
10474     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria const *","toString", 1, self ));
10475   }
10476   arg1 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp1);
10477   {
10478     try {
10479       result = ((Prelude::IDMEFCriteria const *)arg1)->toString();
10480     } catch(Prelude::PreludeError &e) {
10481       if ( e.getCode() == PRELUDE_ERROR_EOF )
10482       rb_raise(rb_eEOFError, "%s", e.what());
10483       else
10484       SWIG_exception(SWIG_RuntimeError, e.what());
10485 
10486       SWIG_fail;
10487     }
10488   }
10489   vresult = SWIG_From_std_string(static_cast< std::string >(result));
10490   return vresult;
10491 fail:
10492   return Qnil;
10493 }
10494 
10495 
10496 SWIGINTERN VALUE
10497 _wrap_IDMEFCriteria___str__(int argc, VALUE *argv, VALUE self) {
10498   Prelude::IDMEFCriteria *arg1 = (Prelude::IDMEFCriteria *) 0 ;
10499   void *argp1 = 0 ;
10500   int res1 = 0 ;
10501   std::string result;
10502   VALUE vresult = Qnil;
10503 
10504   if ((argc < 0) || (argc > 0)) {
10505     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10506   }
10507   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFCriteria, 0 |  0 );
10508   if (!SWIG_IsOK(res1)) {
10509     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFCriteria const *","operator const std::string", 1, self ));
10510   }
10511   arg1 = reinterpret_cast< Prelude::IDMEFCriteria * >(argp1);
10512   {
10513     try {
10514       result = ((Prelude::IDMEFCriteria const *)arg1)->operator const std::string();
10515     } catch(Prelude::PreludeError &e) {
10516       if ( e.getCode() == PRELUDE_ERROR_EOF )
10517       rb_raise(rb_eEOFError, "%s", e.what());
10518       else
10519       SWIG_exception(SWIG_RuntimeError, e.what());
10520 
10521       SWIG_fail;
10522     }
10523   }
10524   vresult = SWIG_From_std_string(static_cast< std::string >(result));
10525   return vresult;
10526 fail:
10527   return Qnil;
10528 }
10529 
10530 
10531 static swig_class SwigClassIDMEFValue;
10532 
10533 SWIGINTERN VALUE
10534 _wrap_IDMEFValue_getType(int argc, VALUE *argv, VALUE self) {
10535   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
10536   void *argp1 = 0 ;
10537   int res1 = 0 ;
10538   Prelude::IDMEFValue::IDMEFValueTypeEnum result;
10539   VALUE vresult = Qnil;
10540 
10541   if ((argc < 0) || (argc > 0)) {
10542     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10543   }
10544   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
10545   if (!SWIG_IsOK(res1)) {
10546     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","getType", 1, self ));
10547   }
10548   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
10549   {
10550     try {
10551       result = (Prelude::IDMEFValue::IDMEFValueTypeEnum)((Prelude::IDMEFValue const *)arg1)->getType();
10552     } catch(Prelude::PreludeError &e) {
10553       if ( e.getCode() == PRELUDE_ERROR_EOF )
10554       rb_raise(rb_eEOFError, "%s", e.what());
10555       else
10556       SWIG_exception(SWIG_RuntimeError, e.what());
10557 
10558       SWIG_fail;
10559     }
10560   }
10561   vresult = SWIG_From_int(static_cast< int >(result));
10562   return vresult;
10563 fail:
10564   return Qnil;
10565 }
10566 
10567 
10568 SWIGINTERN VALUE
10569 _wrap_IDMEFValue_isNull(int argc, VALUE *argv, VALUE self) {
10570   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
10571   void *argp1 = 0 ;
10572   int res1 = 0 ;
10573   bool result;
10574   VALUE vresult = Qnil;
10575 
10576   if ((argc < 0) || (argc > 0)) {
10577     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10578   }
10579   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
10580   if (!SWIG_IsOK(res1)) {
10581     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","isNull", 1, self ));
10582   }
10583   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
10584   {
10585     try {
10586       result = (bool)((Prelude::IDMEFValue const *)arg1)->isNull();
10587     } catch(Prelude::PreludeError &e) {
10588       if ( e.getCode() == PRELUDE_ERROR_EOF )
10589       rb_raise(rb_eEOFError, "%s", e.what());
10590       else
10591       SWIG_exception(SWIG_RuntimeError, e.what());
10592 
10593       SWIG_fail;
10594     }
10595   }
10596   vresult = SWIG_From_bool(static_cast< bool >(result));
10597   return vresult;
10598 fail:
10599   return Qnil;
10600 }
10601 
10602 
10603 SWIGINTERN VALUE
10604 _wrap_new_IDMEFValue__SWIG_0(int argc, VALUE *argv, VALUE self) {
10605   Prelude::IDMEFValue *result = 0 ;
10606 
10607   if ((argc < 0) || (argc > 0)) {
10608     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
10609   }
10610   {
10611     try {
10612       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue();
10613       DATA_PTR(self) = result;
10614     } catch(Prelude::PreludeError &e) {
10615       if ( e.getCode() == PRELUDE_ERROR_EOF )
10616       rb_raise(rb_eEOFError, "%s", e.what());
10617       else
10618       SWIG_exception(SWIG_RuntimeError, e.what());
10619 
10620       SWIG_fail;
10621     }
10622   }
10623   return self;
10624 fail:
10625   return Qnil;
10626 }
10627 
10628 
10629 SWIGINTERN void
10630 free_Prelude_IDMEFValue(Prelude::IDMEFValue *arg1) {
10631     delete arg1;
10632 }
10633 
10634 SWIGINTERN VALUE
10635 _wrap_new_IDMEFValue__SWIG_1(int argc, VALUE *argv, VALUE self) {
10636   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
10637   void *argp1 = 0 ;
10638   int res1 = 0 ;
10639   Prelude::IDMEFValue *result = 0 ;
10640 
10641   if ((argc < 1) || (argc > 1)) {
10642     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10643   }
10644   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
10645   if (!SWIG_IsOK(res1)) {
10646     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","IDMEFValue", 1, argv[0] ));
10647   }
10648   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
10649   {
10650     try {
10651       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(arg1);
10652       DATA_PTR(self) = result;
10653     } catch(Prelude::PreludeError &e) {
10654       if ( e.getCode() == PRELUDE_ERROR_EOF )
10655       rb_raise(rb_eEOFError, "%s", e.what());
10656       else
10657       SWIG_exception(SWIG_RuntimeError, e.what());
10658 
10659       SWIG_fail;
10660     }
10661   }
10662   return self;
10663 fail:
10664   return Qnil;
10665 }
10666 
10667 
10668 SWIGINTERN VALUE
10669 _wrap_new_IDMEFValue__SWIG_2(int argc, VALUE *argv, VALUE self) {
10670   std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *arg1 = 0 ;
10671   int res1 = SWIG_OLDOBJ ;
10672   Prelude::IDMEFValue *result = 0 ;
10673 
10674   if ((argc < 1) || (argc > 1)) {
10675     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10676   }
10677   {
10678     std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *ptr = (std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *)0;
10679     res1 = swig::asptr(argv[0], &ptr);
10680     if (!SWIG_IsOK(res1)) {
10681       SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &","IDMEFValue", 1, argv[0] ));
10682     }
10683     if (!ptr) {
10684       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &","IDMEFValue", 1, argv[0]));
10685     }
10686     arg1 = ptr;
10687   }
10688   {
10689     try {
10690       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue((std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &)*arg1);
10691       DATA_PTR(self) = result;
10692     } catch(Prelude::PreludeError &e) {
10693       if ( e.getCode() == PRELUDE_ERROR_EOF )
10694       rb_raise(rb_eEOFError, "%s", e.what());
10695       else
10696       SWIG_exception(SWIG_RuntimeError, e.what());
10697 
10698       SWIG_fail;
10699     }
10700   }
10701   if (SWIG_IsNewObj(res1)) delete arg1;
10702   return self;
10703 fail:
10704   if (SWIG_IsNewObj(res1)) delete arg1;
10705   return Qnil;
10706 }
10707 
10708 
10709 SWIGINTERN VALUE
10710 _wrap_new_IDMEFValue__SWIG_3(int argc, VALUE *argv, VALUE self) {
10711   Prelude::IDMEFValue *arg1 = 0 ;
10712   void *argp1 ;
10713   int res1 = 0 ;
10714   Prelude::IDMEFValue *result = 0 ;
10715 
10716   if ((argc < 1) || (argc > 1)) {
10717     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10718   }
10719   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEFValue,  0 );
10720   if (!SWIG_IsOK(res1)) {
10721     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const &","IDMEFValue", 1, argv[0] ));
10722   }
10723   if (!argp1) {
10724     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFValue const &","IDMEFValue", 1, argv[0]));
10725   }
10726   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
10727   {
10728     try {
10729       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue((Prelude::IDMEFValue const &)*arg1);
10730       DATA_PTR(self) = result;
10731     } catch(Prelude::PreludeError &e) {
10732       if ( e.getCode() == PRELUDE_ERROR_EOF )
10733       rb_raise(rb_eEOFError, "%s", e.what());
10734       else
10735       SWIG_exception(SWIG_RuntimeError, e.what());
10736 
10737       SWIG_fail;
10738     }
10739   }
10740   return self;
10741 fail:
10742   return Qnil;
10743 }
10744 
10745 
10746 SWIGINTERN VALUE
10747 _wrap_new_IDMEFValue__SWIG_4(int argc, VALUE *argv, VALUE self) {
10748   std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *arg1 = 0 ;
10749   int res1 = SWIG_OLDOBJ ;
10750   Prelude::IDMEFValue *result = 0 ;
10751 
10752   if ((argc < 1) || (argc > 1)) {
10753     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10754   }
10755   {
10756     std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *ptr = (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *)0;
10757     res1 = swig::asptr(argv[0], &ptr);
10758     if (!SWIG_IsOK(res1)) {
10759       SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","IDMEFValue", 1, argv[0] ));
10760     }
10761     if (!ptr) {
10762       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","IDMEFValue", 1, argv[0]));
10763     }
10764     arg1 = ptr;
10765   }
10766   {
10767     try {
10768       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue((std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &)*arg1);
10769       DATA_PTR(self) = result;
10770     } catch(Prelude::PreludeError &e) {
10771       if ( e.getCode() == PRELUDE_ERROR_EOF )
10772       rb_raise(rb_eEOFError, "%s", e.what());
10773       else
10774       SWIG_exception(SWIG_RuntimeError, e.what());
10775 
10776       SWIG_fail;
10777     }
10778   }
10779   if (SWIG_IsNewObj(res1)) delete arg1;
10780   return self;
10781 fail:
10782   if (SWIG_IsNewObj(res1)) delete arg1;
10783   return Qnil;
10784 }
10785 
10786 
10787 SWIGINTERN VALUE
10788 _wrap_new_IDMEFValue__SWIG_5(int argc, VALUE *argv, VALUE self) {
10789   idmef_value_t *arg1 = (idmef_value_t *) 0 ;
10790   void *argp1 = 0 ;
10791   int res1 = 0 ;
10792   Prelude::IDMEFValue *result = 0 ;
10793 
10794   if ((argc < 1) || (argc > 1)) {
10795     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10796   }
10797   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_idmef_value_t, 0 |  0 );
10798   if (!SWIG_IsOK(res1)) {
10799     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "idmef_value_t *","IDMEFValue", 1, argv[0] ));
10800   }
10801   arg1 = reinterpret_cast< idmef_value_t * >(argp1);
10802   {
10803     try {
10804       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(arg1);
10805       DATA_PTR(self) = result;
10806     } catch(Prelude::PreludeError &e) {
10807       if ( e.getCode() == PRELUDE_ERROR_EOF )
10808       rb_raise(rb_eEOFError, "%s", e.what());
10809       else
10810       SWIG_exception(SWIG_RuntimeError, e.what());
10811 
10812       SWIG_fail;
10813     }
10814   }
10815   return self;
10816 fail:
10817   return Qnil;
10818 }
10819 
10820 
10821 SWIGINTERN VALUE
10822 _wrap_new_IDMEFValue__SWIG_6(int argc, VALUE *argv, VALUE self) {
10823   std::string *arg1 = 0 ;
10824   int res1 = SWIG_OLDOBJ ;
10825   Prelude::IDMEFValue *result = 0 ;
10826 
10827   if ((argc < 1) || (argc > 1)) {
10828     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10829   }
10830   {
10831     std::string *ptr = (std::string *)0;
10832     res1 = SWIG_AsPtr_std_string(argv[0], &ptr);
10833     if (!SWIG_IsOK(res1)) {
10834       SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","IDMEFValue", 1, argv[0] ));
10835     }
10836     if (!ptr) {
10837       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","IDMEFValue", 1, argv[0]));
10838     }
10839     arg1 = ptr;
10840   }
10841   {
10842     try {
10843       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue((std::string const &)*arg1);
10844       DATA_PTR(self) = result;
10845     } catch(Prelude::PreludeError &e) {
10846       if ( e.getCode() == PRELUDE_ERROR_EOF )
10847       rb_raise(rb_eEOFError, "%s", e.what());
10848       else
10849       SWIG_exception(SWIG_RuntimeError, e.what());
10850 
10851       SWIG_fail;
10852     }
10853   }
10854   if (SWIG_IsNewObj(res1)) delete arg1;
10855   return self;
10856 fail:
10857   if (SWIG_IsNewObj(res1)) delete arg1;
10858   return Qnil;
10859 }
10860 
10861 
10862 SWIGINTERN VALUE
10863 _wrap_new_IDMEFValue__SWIG_7(int argc, VALUE *argv, VALUE self) {
10864   int32_t arg1 ;
10865   int val1 ;
10866   int ecode1 = 0 ;
10867   Prelude::IDMEFValue *result = 0 ;
10868 
10869   if ((argc < 1) || (argc > 1)) {
10870     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10871   }
10872   ecode1 = SWIG_AsVal_int(argv[0], &val1);
10873   if (!SWIG_IsOK(ecode1)) {
10874     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int32_t","IDMEFValue", 1, argv[0] ));
10875   }
10876   arg1 = static_cast< int32_t >(val1);
10877   {
10878     try {
10879       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(arg1);
10880       DATA_PTR(self) = result;
10881     } catch(Prelude::PreludeError &e) {
10882       if ( e.getCode() == PRELUDE_ERROR_EOF )
10883       rb_raise(rb_eEOFError, "%s", e.what());
10884       else
10885       SWIG_exception(SWIG_RuntimeError, e.what());
10886 
10887       SWIG_fail;
10888     }
10889   }
10890   return self;
10891 fail:
10892   return Qnil;
10893 }
10894 
10895 
10896 SWIGINTERN VALUE
10897 _wrap_new_IDMEFValue__SWIG_8(int argc, VALUE *argv, VALUE self) {
10898   int64_t arg1 ;
10899   long long val1 ;
10900   int ecode1 = 0 ;
10901   Prelude::IDMEFValue *result = 0 ;
10902 
10903   if ((argc < 1) || (argc > 1)) {
10904     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10905   }
10906   ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1);
10907   if (!SWIG_IsOK(ecode1)) {
10908     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int64_t","IDMEFValue", 1, argv[0] ));
10909   }
10910   arg1 = static_cast< int64_t >(val1);
10911   {
10912     try {
10913       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(arg1);
10914       DATA_PTR(self) = result;
10915     } catch(Prelude::PreludeError &e) {
10916       if ( e.getCode() == PRELUDE_ERROR_EOF )
10917       rb_raise(rb_eEOFError, "%s", e.what());
10918       else
10919       SWIG_exception(SWIG_RuntimeError, e.what());
10920 
10921       SWIG_fail;
10922     }
10923   }
10924   return self;
10925 fail:
10926   return Qnil;
10927 }
10928 
10929 
10930 SWIGINTERN VALUE
10931 _wrap_new_IDMEFValue__SWIG_9(int argc, VALUE *argv, VALUE self) {
10932   uint64_t arg1 ;
10933   unsigned long long val1 ;
10934   int ecode1 = 0 ;
10935   Prelude::IDMEFValue *result = 0 ;
10936 
10937   if ((argc < 1) || (argc > 1)) {
10938     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10939   }
10940   ecode1 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], &val1);
10941   if (!SWIG_IsOK(ecode1)) {
10942     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "uint64_t","IDMEFValue", 1, argv[0] ));
10943   }
10944   arg1 = static_cast< uint64_t >(val1);
10945   {
10946     try {
10947       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(arg1);
10948       DATA_PTR(self) = result;
10949     } catch(Prelude::PreludeError &e) {
10950       if ( e.getCode() == PRELUDE_ERROR_EOF )
10951       rb_raise(rb_eEOFError, "%s", e.what());
10952       else
10953       SWIG_exception(SWIG_RuntimeError, e.what());
10954 
10955       SWIG_fail;
10956     }
10957   }
10958   return self;
10959 fail:
10960   return Qnil;
10961 }
10962 
10963 
10964 SWIGINTERN VALUE
10965 _wrap_new_IDMEFValue__SWIG_10(int argc, VALUE *argv, VALUE self) {
10966   float arg1 ;
10967   float val1 ;
10968   int ecode1 = 0 ;
10969   Prelude::IDMEFValue *result = 0 ;
10970 
10971   if ((argc < 1) || (argc > 1)) {
10972     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
10973   }
10974   ecode1 = SWIG_AsVal_float(argv[0], &val1);
10975   if (!SWIG_IsOK(ecode1)) {
10976     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "float","IDMEFValue", 1, argv[0] ));
10977   }
10978   arg1 = static_cast< float >(val1);
10979   {
10980     try {
10981       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(arg1);
10982       DATA_PTR(self) = result;
10983     } catch(Prelude::PreludeError &e) {
10984       if ( e.getCode() == PRELUDE_ERROR_EOF )
10985       rb_raise(rb_eEOFError, "%s", e.what());
10986       else
10987       SWIG_exception(SWIG_RuntimeError, e.what());
10988 
10989       SWIG_fail;
10990     }
10991   }
10992   return self;
10993 fail:
10994   return Qnil;
10995 }
10996 
10997 
10998 SWIGINTERN VALUE
10999 _wrap_new_IDMEFValue__SWIG_11(int argc, VALUE *argv, VALUE self) {
11000   double arg1 ;
11001   double val1 ;
11002   int ecode1 = 0 ;
11003   Prelude::IDMEFValue *result = 0 ;
11004 
11005   if ((argc < 1) || (argc > 1)) {
11006     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11007   }
11008   ecode1 = SWIG_AsVal_double(argv[0], &val1);
11009   if (!SWIG_IsOK(ecode1)) {
11010     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "double","IDMEFValue", 1, argv[0] ));
11011   }
11012   arg1 = static_cast< double >(val1);
11013   {
11014     try {
11015       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(arg1);
11016       DATA_PTR(self) = result;
11017     } catch(Prelude::PreludeError &e) {
11018       if ( e.getCode() == PRELUDE_ERROR_EOF )
11019       rb_raise(rb_eEOFError, "%s", e.what());
11020       else
11021       SWIG_exception(SWIG_RuntimeError, e.what());
11022 
11023       SWIG_fail;
11024     }
11025   }
11026   return self;
11027 fail:
11028   return Qnil;
11029 }
11030 
11031 
11032 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
11033 SWIGINTERN VALUE
11034 _wrap_IDMEFValue_allocate(VALUE self) {
11035 #else
11036   SWIGINTERN VALUE
11037   _wrap_IDMEFValue_allocate(int argc, VALUE *argv, VALUE self) {
11038 #endif
11039 
11040 
11041     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__IDMEFValue);
11042 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
11043     rb_obj_call_init(vresult, argc, argv);
11044 #endif
11045     return vresult;
11046   }
11047 
11048 
11049 SWIGINTERN VALUE
11050 _wrap_new_IDMEFValue__SWIG_12(int argc, VALUE *argv, VALUE self) {
11051   Prelude::IDMEFTime *arg1 = 0 ;
11052   void *argp1 = 0 ;
11053   int res1 = 0 ;
11054   Prelude::IDMEFValue *result = 0 ;
11055 
11056   if ((argc < 1) || (argc > 1)) {
11057     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11058   }
11059   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
11060   if (!SWIG_IsOK(res1)) {
11061     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime &","IDMEFValue", 1, argv[0] ));
11062   }
11063   if (!argp1) {
11064     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime &","IDMEFValue", 1, argv[0]));
11065   }
11066   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
11067   {
11068     try {
11069       result = (Prelude::IDMEFValue *)new Prelude::IDMEFValue(*arg1);
11070       DATA_PTR(self) = result;
11071     } catch(Prelude::PreludeError &e) {
11072       if ( e.getCode() == PRELUDE_ERROR_EOF )
11073       rb_raise(rb_eEOFError, "%s", e.what());
11074       else
11075       SWIG_exception(SWIG_RuntimeError, e.what());
11076 
11077       SWIG_fail;
11078     }
11079   }
11080   return self;
11081 fail:
11082   return Qnil;
11083 }
11084 
11085 
11086 SWIGINTERN VALUE _wrap_new_IDMEFValue(int nargs, VALUE *args, VALUE self) {
11087   int argc;
11088   VALUE argv[1];
11089   int ii;
11090 
11091   argc = nargs;
11092   if (argc > 1) SWIG_fail;
11093   for (ii = 0; (ii < argc); ++ii) {
11094     argv[ii] = args[ii];
11095   }
11096   if (argc == 0) {
11097     return _wrap_new_IDMEFValue__SWIG_0(nargs, args, self);
11098   }
11099   if (argc == 1) {
11100     int _v;
11101     void *vptr = 0;
11102     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
11103     _v = SWIG_CheckState(res);
11104     if (_v) {
11105       return _wrap_new_IDMEFValue__SWIG_1(nargs, args, self);
11106     }
11107   }
11108   if (argc == 1) {
11109     int _v;
11110     void *vptr = 0;
11111     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFValue, 0);
11112     _v = SWIG_CheckState(res);
11113     if (_v) {
11114       return _wrap_new_IDMEFValue__SWIG_3(nargs, args, self);
11115     }
11116   }
11117   if (argc == 1) {
11118     int _v;
11119     void *vptr = 0;
11120     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_idmef_value_t, 0);
11121     _v = SWIG_CheckState(res);
11122     if (_v) {
11123       return _wrap_new_IDMEFValue__SWIG_5(nargs, args, self);
11124     }
11125   }
11126   if (argc == 1) {
11127     int _v;
11128     void *vptr = 0;
11129     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
11130     _v = SWIG_CheckState(res);
11131     if (_v) {
11132       return _wrap_new_IDMEFValue__SWIG_12(nargs, args, self);
11133     }
11134   }
11135   if (argc == 1) {
11136     int _v;
11137     {
11138       int res = SWIG_AsVal_int(argv[0], NULL);
11139       _v = SWIG_CheckState(res);
11140     }
11141     if (_v) {
11142       return _wrap_new_IDMEFValue__SWIG_7(nargs, args, self);
11143     }
11144   }
11145   if (argc == 1) {
11146     int _v;
11147     {
11148       int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[0], NULL);
11149       _v = SWIG_CheckState(res);
11150     }
11151     if (_v) {
11152       return _wrap_new_IDMEFValue__SWIG_9(nargs, args, self);
11153     }
11154   }
11155   if (argc == 1) {
11156     int _v;
11157     {
11158       int res = SWIG_AsVal_long_SS_long(argv[0], NULL);
11159       _v = SWIG_CheckState(res);
11160     }
11161     if (_v) {
11162       return _wrap_new_IDMEFValue__SWIG_8(nargs, args, self);
11163     }
11164   }
11165   if (argc == 1) {
11166     int _v;
11167     {
11168       int res = SWIG_AsVal_float(argv[0], NULL);
11169       _v = SWIG_CheckState(res);
11170     }
11171     if (_v) {
11172       return _wrap_new_IDMEFValue__SWIG_10(nargs, args, self);
11173     }
11174   }
11175   if (argc == 1) {
11176     int _v;
11177     {
11178       int res = SWIG_AsVal_double(argv[0], NULL);
11179       _v = SWIG_CheckState(res);
11180     }
11181     if (_v) {
11182       return _wrap_new_IDMEFValue__SWIG_11(nargs, args, self);
11183     }
11184   }
11185   if (argc == 1) {
11186     int _v;
11187     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
11188     _v = SWIG_CheckState(res);
11189     if (_v) {
11190       return _wrap_new_IDMEFValue__SWIG_6(nargs, args, self);
11191     }
11192   }
11193   if (argc == 1) {
11194     int _v;
11195     int res = swig::asptr(argv[0], (std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > >**)(0));
11196     _v = SWIG_CheckState(res);
11197     if (_v) {
11198       return _wrap_new_IDMEFValue__SWIG_2(nargs, args, self);
11199     }
11200   }
11201   if (argc == 1) {
11202     int _v;
11203     int res = swig::asptr(argv[0], (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > >**)(0));
11204     _v = SWIG_CheckState(res);
11205     if (_v) {
11206       return _wrap_new_IDMEFValue__SWIG_4(nargs, args, self);
11207     }
11208   }
11209 
11210 fail:
11211   Ruby_Format_OverloadedError( argc, 1, "IDMEFValue.new",
11212     "    IDMEFValue.new()\n"
11213     "    IDMEFValue.new(Prelude::IDMEF *idmef)\n"
11214     "    IDMEFValue.new(std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &value)\n"
11215     "    IDMEFValue.new(Prelude::IDMEFValue const &value)\n"
11216     "    IDMEFValue.new(std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &value)\n"
11217     "    IDMEFValue.new(idmef_value_t *value)\n"
11218     "    IDMEFValue.new(std::string const &value)\n"
11219     "    IDMEFValue.new(int32_t value)\n"
11220     "    IDMEFValue.new(int64_t value)\n"
11221     "    IDMEFValue.new(uint64_t value)\n"
11222     "    IDMEFValue.new(float value)\n"
11223     "    IDMEFValue.new(double value)\n"
11224     "    IDMEFValue.new(Prelude::IDMEFTime &time)\n");
11225 
11226   return Qnil;
11227 }
11228 
11229 
11230 SWIGINTERN VALUE
11231 _wrap_IDMEFValue_match(int argc, VALUE *argv, VALUE self) {
11232   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11233   Prelude::IDMEFValue *arg2 = 0 ;
11234   int arg3 ;
11235   void *argp1 = 0 ;
11236   int res1 = 0 ;
11237   void *argp2 ;
11238   int res2 = 0 ;
11239   int val3 ;
11240   int ecode3 = 0 ;
11241   int result;
11242   VALUE vresult = Qnil;
11243 
11244   if ((argc < 2) || (argc > 2)) {
11245     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
11246   }
11247   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11248   if (!SWIG_IsOK(res1)) {
11249     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","match", 1, self ));
11250   }
11251   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11252   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFValue,  0 );
11253   if (!SWIG_IsOK(res2)) {
11254     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const &","match", 2, argv[0] ));
11255   }
11256   if (!argp2) {
11257     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFValue const &","match", 2, argv[0]));
11258   }
11259   arg2 = reinterpret_cast< Prelude::IDMEFValue * >(argp2);
11260   ecode3 = SWIG_AsVal_int(argv[1], &val3);
11261   if (!SWIG_IsOK(ecode3)) {
11262     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","match", 3, argv[1] ));
11263   }
11264   arg3 = static_cast< int >(val3);
11265   {
11266     try {
11267       result = (int)((Prelude::IDMEFValue const *)arg1)->match((Prelude::IDMEFValue const &)*arg2,arg3);
11268     } catch(Prelude::PreludeError &e) {
11269       if ( e.getCode() == PRELUDE_ERROR_EOF )
11270       rb_raise(rb_eEOFError, "%s", e.what());
11271       else
11272       SWIG_exception(SWIG_RuntimeError, e.what());
11273 
11274       SWIG_fail;
11275     }
11276   }
11277   vresult = SWIG_From_int(static_cast< int >(result));
11278   return vresult;
11279 fail:
11280   return Qnil;
11281 }
11282 
11283 
11284 
11285 /*
11286   Document-method: Prelude::IDMEFValue.clone
11287 
11288   call-seq:
11289     clone -> IDMEFValue
11290 
11291 Create a duplicate of the class.
11292 */
11293 SWIGINTERN VALUE
11294 _wrap_IDMEFValue_clone(int argc, VALUE *argv, VALUE self) {
11295   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11296   void *argp1 = 0 ;
11297   int res1 = 0 ;
11298   Prelude::IDMEFValue result;
11299   VALUE vresult = Qnil;
11300 
11301   if ((argc < 0) || (argc > 0)) {
11302     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
11303   }
11304   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11305   if (!SWIG_IsOK(res1)) {
11306     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","clone", 1, self ));
11307   }
11308   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11309   {
11310     try {
11311       result = ((Prelude::IDMEFValue const *)arg1)->clone();
11312     } catch(Prelude::PreludeError &e) {
11313       if ( e.getCode() == PRELUDE_ERROR_EOF )
11314       rb_raise(rb_eEOFError, "%s", e.what());
11315       else
11316       SWIG_exception(SWIG_RuntimeError, e.what());
11317 
11318       SWIG_fail;
11319     }
11320   }
11321   {
11322     int ret;
11323 
11324     if ( (&result)->isNull() )
11325     vresult = Qnil;
11326     else {
11327       ret = IDMEFValue_to_SWIG(self, result, NULL, &vresult);
11328       if ( ret < 0 ) {
11329         std::stringstream s;
11330         s << "IDMEFValue typemap does not handle value of type '" << idmef_value_type_to_string((idmef_value_type_id_t) (&result)->getType()) << "'";
11331         SWIG_exception_fail(SWIG_ValueError, s.str().c_str());
11332       }
11333     }
11334   }
11335   return vresult;
11336 fail:
11337   return Qnil;
11338 }
11339 
11340 
11341 SWIGINTERN VALUE
11342 _wrap_IDMEFValue_toString(int argc, VALUE *argv, VALUE self) {
11343   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11344   void *argp1 = 0 ;
11345   int res1 = 0 ;
11346   std::string result;
11347   VALUE vresult = Qnil;
11348 
11349   if ((argc < 0) || (argc > 0)) {
11350     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
11351   }
11352   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11353   if (!SWIG_IsOK(res1)) {
11354     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","toString", 1, self ));
11355   }
11356   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11357   {
11358     try {
11359       result = ((Prelude::IDMEFValue const *)arg1)->toString();
11360     } catch(Prelude::PreludeError &e) {
11361       if ( e.getCode() == PRELUDE_ERROR_EOF )
11362       rb_raise(rb_eEOFError, "%s", e.what());
11363       else
11364       SWIG_exception(SWIG_RuntimeError, e.what());
11365 
11366       SWIG_fail;
11367     }
11368   }
11369   vresult = SWIG_From_std_string(static_cast< std::string >(result));
11370   return vresult;
11371 fail:
11372   return Qnil;
11373 }
11374 
11375 
11376 
11377 /*
11378   Document-method: Prelude::IDMEFValue.==
11379 
11380   call-seq:
11381     ==(vlist) -> bool
11382     ==(value) -> bool
11383 
11384 Equality comparison operator.
11385 */
11386 SWIGINTERN VALUE
11387 _wrap_IDMEFValue___eq____SWIG_0(int argc, VALUE *argv, VALUE self) {
11388   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11389   std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *arg2 = 0 ;
11390   void *argp1 = 0 ;
11391   int res1 = 0 ;
11392   int res2 = SWIG_OLDOBJ ;
11393   bool result;
11394   VALUE vresult = Qnil;
11395 
11396   if ((argc < 1) || (argc > 1)) {
11397     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11398   }
11399   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11400   if (!SWIG_IsOK(res1)) {
11401     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","operator ==", 1, self ));
11402   }
11403   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11404   {
11405     std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *ptr = (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *)0;
11406     res2 = swig::asptr(argv[0], &ptr);
11407     if (!SWIG_IsOK(res2)) {
11408       SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","operator ==", 2, argv[0] ));
11409     }
11410     if (!ptr) {
11411       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","operator ==", 2, argv[0]));
11412     }
11413     arg2 = ptr;
11414   }
11415   {
11416     try {
11417       result = (bool)((Prelude::IDMEFValue const *)arg1)->operator ==((std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &)*arg2);
11418     } catch(Prelude::PreludeError &e) {
11419       if ( e.getCode() == PRELUDE_ERROR_EOF )
11420       rb_raise(rb_eEOFError, "%s", e.what());
11421       else
11422       SWIG_exception(SWIG_RuntimeError, e.what());
11423 
11424       SWIG_fail;
11425     }
11426   }
11427   vresult = SWIG_From_bool(static_cast< bool >(result));
11428   if (SWIG_IsNewObj(res2)) delete arg2;
11429   return vresult;
11430 fail:
11431   if (SWIG_IsNewObj(res2)) delete arg2;
11432   return Qnil;
11433 }
11434 
11435 
11436 
11437 /*
11438   Document-method: Prelude::IDMEFValue.<=
11439 
11440   call-seq:
11441     <=(value) -> bool
11442 
11443 Lower or equal comparison operator.
11444 */
11445 SWIGINTERN VALUE
11446 _wrap_IDMEFValue___le__(int argc, VALUE *argv, VALUE self) {
11447   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11448   Prelude::IDMEFValue *arg2 = 0 ;
11449   void *argp1 = 0 ;
11450   int res1 = 0 ;
11451   void *argp2 ;
11452   int res2 = 0 ;
11453   bool result;
11454   VALUE vresult = Qnil;
11455 
11456   if ((argc < 1) || (argc > 1)) {
11457     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11458   }
11459   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11460   if (!SWIG_IsOK(res1)) {
11461     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","operator <=", 1, self ));
11462   }
11463   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11464   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFValue,  0 );
11465   if (!SWIG_IsOK(res2)) {
11466     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const &","operator <=", 2, argv[0] ));
11467   }
11468   if (!argp2) {
11469     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFValue const &","operator <=", 2, argv[0]));
11470   }
11471   arg2 = reinterpret_cast< Prelude::IDMEFValue * >(argp2);
11472   {
11473     try {
11474       result = (bool)((Prelude::IDMEFValue const *)arg1)->operator <=((Prelude::IDMEFValue const &)*arg2);
11475     } catch(Prelude::PreludeError &e) {
11476       if ( e.getCode() == PRELUDE_ERROR_EOF )
11477       rb_raise(rb_eEOFError, "%s", e.what());
11478       else
11479       SWIG_exception(SWIG_RuntimeError, e.what());
11480 
11481       SWIG_fail;
11482     }
11483   }
11484   vresult = SWIG_From_bool(static_cast< bool >(result));
11485   return vresult;
11486 fail:
11487   return Qnil;
11488 }
11489 
11490 
11491 
11492 /*
11493   Document-method: Prelude::IDMEFValue.>=
11494 
11495   call-seq:
11496     >=(value) -> bool
11497 
11498 Higher or equal comparison operator.
11499 */
11500 SWIGINTERN VALUE
11501 _wrap_IDMEFValue___ge__(int argc, VALUE *argv, VALUE self) {
11502   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11503   Prelude::IDMEFValue *arg2 = 0 ;
11504   void *argp1 = 0 ;
11505   int res1 = 0 ;
11506   void *argp2 ;
11507   int res2 = 0 ;
11508   bool result;
11509   VALUE vresult = Qnil;
11510 
11511   if ((argc < 1) || (argc > 1)) {
11512     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11513   }
11514   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11515   if (!SWIG_IsOK(res1)) {
11516     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","operator >=", 1, self ));
11517   }
11518   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11519   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFValue,  0 );
11520   if (!SWIG_IsOK(res2)) {
11521     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const &","operator >=", 2, argv[0] ));
11522   }
11523   if (!argp2) {
11524     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFValue const &","operator >=", 2, argv[0]));
11525   }
11526   arg2 = reinterpret_cast< Prelude::IDMEFValue * >(argp2);
11527   {
11528     try {
11529       result = (bool)((Prelude::IDMEFValue const *)arg1)->operator >=((Prelude::IDMEFValue const &)*arg2);
11530     } catch(Prelude::PreludeError &e) {
11531       if ( e.getCode() == PRELUDE_ERROR_EOF )
11532       rb_raise(rb_eEOFError, "%s", e.what());
11533       else
11534       SWIG_exception(SWIG_RuntimeError, e.what());
11535 
11536       SWIG_fail;
11537     }
11538   }
11539   vresult = SWIG_From_bool(static_cast< bool >(result));
11540   return vresult;
11541 fail:
11542   return Qnil;
11543 }
11544 
11545 
11546 
11547 /*
11548   Document-method: Prelude::IDMEFValue.<
11549 
11550   call-seq:
11551     <(value) -> bool
11552 
11553 Lower than comparison operator.
11554 */
11555 SWIGINTERN VALUE
11556 _wrap_IDMEFValue___lt__(int argc, VALUE *argv, VALUE self) {
11557   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11558   Prelude::IDMEFValue *arg2 = 0 ;
11559   void *argp1 = 0 ;
11560   int res1 = 0 ;
11561   void *argp2 ;
11562   int res2 = 0 ;
11563   bool result;
11564   VALUE vresult = Qnil;
11565 
11566   if ((argc < 1) || (argc > 1)) {
11567     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11568   }
11569   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11570   if (!SWIG_IsOK(res1)) {
11571     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","operator <", 1, self ));
11572   }
11573   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11574   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFValue,  0 );
11575   if (!SWIG_IsOK(res2)) {
11576     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const &","operator <", 2, argv[0] ));
11577   }
11578   if (!argp2) {
11579     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFValue const &","operator <", 2, argv[0]));
11580   }
11581   arg2 = reinterpret_cast< Prelude::IDMEFValue * >(argp2);
11582   {
11583     try {
11584       result = (bool)((Prelude::IDMEFValue const *)arg1)->operator <((Prelude::IDMEFValue const &)*arg2);
11585     } catch(Prelude::PreludeError &e) {
11586       if ( e.getCode() == PRELUDE_ERROR_EOF )
11587       rb_raise(rb_eEOFError, "%s", e.what());
11588       else
11589       SWIG_exception(SWIG_RuntimeError, e.what());
11590 
11591       SWIG_fail;
11592     }
11593   }
11594   vresult = SWIG_From_bool(static_cast< bool >(result));
11595   return vresult;
11596 fail:
11597   return Qnil;
11598 }
11599 
11600 
11601 
11602 /*
11603   Document-method: Prelude::IDMEFValue.>
11604 
11605   call-seq:
11606     >(value) -> bool
11607 
11608 Higher than comparison operator.
11609 */
11610 SWIGINTERN VALUE
11611 _wrap_IDMEFValue___gt__(int argc, VALUE *argv, VALUE self) {
11612   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11613   Prelude::IDMEFValue *arg2 = 0 ;
11614   void *argp1 = 0 ;
11615   int res1 = 0 ;
11616   void *argp2 ;
11617   int res2 = 0 ;
11618   bool result;
11619   VALUE vresult = Qnil;
11620 
11621   if ((argc < 1) || (argc > 1)) {
11622     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11623   }
11624   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11625   if (!SWIG_IsOK(res1)) {
11626     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","operator >", 1, self ));
11627   }
11628   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11629   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFValue,  0 );
11630   if (!SWIG_IsOK(res2)) {
11631     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const &","operator >", 2, argv[0] ));
11632   }
11633   if (!argp2) {
11634     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFValue const &","operator >", 2, argv[0]));
11635   }
11636   arg2 = reinterpret_cast< Prelude::IDMEFValue * >(argp2);
11637   {
11638     try {
11639       result = (bool)((Prelude::IDMEFValue const *)arg1)->operator >((Prelude::IDMEFValue const &)*arg2);
11640     } catch(Prelude::PreludeError &e) {
11641       if ( e.getCode() == PRELUDE_ERROR_EOF )
11642       rb_raise(rb_eEOFError, "%s", e.what());
11643       else
11644       SWIG_exception(SWIG_RuntimeError, e.what());
11645 
11646       SWIG_fail;
11647     }
11648   }
11649   vresult = SWIG_From_bool(static_cast< bool >(result));
11650   return vresult;
11651 fail:
11652   return Qnil;
11653 }
11654 
11655 
11656 
11657 /*
11658   Document-method: Prelude::IDMEFValue.==
11659 
11660   call-seq:
11661     ==(vlist) -> bool
11662     ==(value) -> bool
11663 
11664 Equality comparison operator.
11665 */
11666 SWIGINTERN VALUE
11667 _wrap_IDMEFValue___eq____SWIG_1(int argc, VALUE *argv, VALUE self) {
11668   Prelude::IDMEFValue *arg1 = (Prelude::IDMEFValue *) 0 ;
11669   Prelude::IDMEFValue *arg2 = 0 ;
11670   void *argp1 = 0 ;
11671   int res1 = 0 ;
11672   void *argp2 ;
11673   int res2 = 0 ;
11674   bool result;
11675   VALUE vresult = Qnil;
11676 
11677   if ((argc < 1) || (argc > 1)) {
11678     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11679   }
11680   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
11681   if (!SWIG_IsOK(res1)) {
11682     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const *","operator ==", 1, self ));
11683   }
11684   arg1 = reinterpret_cast< Prelude::IDMEFValue * >(argp1);
11685   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFValue,  0 );
11686   if (!SWIG_IsOK(res2)) {
11687     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFValue const &","operator ==", 2, argv[0] ));
11688   }
11689   if (!argp2) {
11690     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFValue const &","operator ==", 2, argv[0]));
11691   }
11692   arg2 = reinterpret_cast< Prelude::IDMEFValue * >(argp2);
11693   {
11694     try {
11695       result = (bool)((Prelude::IDMEFValue const *)arg1)->operator ==((Prelude::IDMEFValue const &)*arg2);
11696     } catch(Prelude::PreludeError &e) {
11697       if ( e.getCode() == PRELUDE_ERROR_EOF )
11698       rb_raise(rb_eEOFError, "%s", e.what());
11699       else
11700       SWIG_exception(SWIG_RuntimeError, e.what());
11701 
11702       SWIG_fail;
11703     }
11704   }
11705   vresult = SWIG_From_bool(static_cast< bool >(result));
11706   return vresult;
11707 fail:
11708   return Qnil;
11709 }
11710 
11711 
11712 SWIGINTERN VALUE _wrap_IDMEFValue___eq__(int nargs, VALUE *args, VALUE self) {
11713   int argc;
11714   VALUE argv[3];
11715   int ii;
11716 
11717   argc = nargs + 1;
11718   argv[0] = self;
11719   if (argc > 3) SWIG_fail;
11720   for (ii = 1; (ii < argc); ++ii) {
11721     argv[ii] = args[ii-1];
11722   }
11723   if (argc == 2) {
11724     int _v;
11725     void *vptr = 0;
11726     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFValue, 0);
11727     _v = SWIG_CheckState(res);
11728     if (_v) {
11729       void *vptr = 0;
11730       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEFValue, 0);
11731       _v = SWIG_CheckState(res);
11732       if (_v) {
11733         return _wrap_IDMEFValue___eq____SWIG_1(nargs, args, self);
11734       }
11735     }
11736   }
11737   if (argc == 2) {
11738     int _v;
11739     void *vptr = 0;
11740     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFValue, 0);
11741     _v = SWIG_CheckState(res);
11742     if (_v) {
11743       int res = swig::asptr(argv[1], (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > >**)(0));
11744       _v = SWIG_CheckState(res);
11745       if (_v) {
11746         return _wrap_IDMEFValue___eq____SWIG_0(nargs, args, self);
11747       }
11748     }
11749   }
11750 
11751 fail:
11752   Ruby_Format_OverloadedError( argc, 3, "IDMEFValue.__eq__",
11753     "    bool IDMEFValue.__eq__(std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &vlist)\n"
11754     "    bool IDMEFValue.__eq__(Prelude::IDMEFValue const &value)\n");
11755 
11756   return Qnil;
11757 }
11758 
11759 
11760 static swig_class SwigClassIDMEFPath;
11761 
11762 SWIGINTERN VALUE
11763 _wrap_new_IDMEFPath__SWIG_0(int argc, VALUE *argv, VALUE self) {
11764   char *arg1 = (char *) 0 ;
11765   int res1 ;
11766   char *buf1 = 0 ;
11767   int alloc1 = 0 ;
11768   Prelude::IDMEFPath *result = 0 ;
11769 
11770   if ((argc < 1) || (argc > 1)) {
11771     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11772   }
11773   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
11774   if (!SWIG_IsOK(res1)) {
11775     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","IDMEFPath", 1, argv[0] ));
11776   }
11777   arg1 = reinterpret_cast< char * >(buf1);
11778   {
11779     try {
11780       result = (Prelude::IDMEFPath *)new Prelude::IDMEFPath((char const *)arg1);
11781       DATA_PTR(self) = result;
11782     } catch(Prelude::PreludeError &e) {
11783       if ( e.getCode() == PRELUDE_ERROR_EOF )
11784       rb_raise(rb_eEOFError, "%s", e.what());
11785       else
11786       SWIG_exception(SWIG_RuntimeError, e.what());
11787 
11788       SWIG_fail;
11789     }
11790   }
11791   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
11792   return self;
11793 fail:
11794   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
11795   return Qnil;
11796 }
11797 
11798 
11799 SWIGINTERN VALUE
11800 _wrap_new_IDMEFPath__SWIG_1(int argc, VALUE *argv, VALUE self) {
11801   Prelude::IDMEF *arg1 = 0 ;
11802   char *arg2 = (char *) 0 ;
11803   void *argp1 = 0 ;
11804   int res1 = 0 ;
11805   int res2 ;
11806   char *buf2 = 0 ;
11807   int alloc2 = 0 ;
11808   Prelude::IDMEFPath *result = 0 ;
11809 
11810   if ((argc < 2) || (argc > 2)) {
11811     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
11812   }
11813   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEF,  0 );
11814   if (!SWIG_IsOK(res1)) {
11815     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF &","IDMEFPath", 1, argv[0] ));
11816   }
11817   if (!argp1) {
11818     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","IDMEFPath", 1, argv[0]));
11819   }
11820   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
11821   res2 = SWIG_AsCharPtrAndSize(argv[1], &buf2, NULL, &alloc2);
11822   if (!SWIG_IsOK(res2)) {
11823     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","IDMEFPath", 2, argv[1] ));
11824   }
11825   arg2 = reinterpret_cast< char * >(buf2);
11826   {
11827     try {
11828       result = (Prelude::IDMEFPath *)new Prelude::IDMEFPath(*arg1,(char const *)arg2);
11829       DATA_PTR(self) = result;
11830     } catch(Prelude::PreludeError &e) {
11831       if ( e.getCode() == PRELUDE_ERROR_EOF )
11832       rb_raise(rb_eEOFError, "%s", e.what());
11833       else
11834       SWIG_exception(SWIG_RuntimeError, e.what());
11835 
11836       SWIG_fail;
11837     }
11838   }
11839   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
11840   return self;
11841 fail:
11842   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
11843   return Qnil;
11844 }
11845 
11846 
11847 SWIGINTERN VALUE
11848 _wrap_new_IDMEFPath__SWIG_2(int argc, VALUE *argv, VALUE self) {
11849   idmef_path_t *arg1 = (idmef_path_t *) 0 ;
11850   void *argp1 = 0 ;
11851   int res1 = 0 ;
11852   Prelude::IDMEFPath *result = 0 ;
11853 
11854   if ((argc < 1) || (argc > 1)) {
11855     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11856   }
11857   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_idmef_path_t, 0 |  0 );
11858   if (!SWIG_IsOK(res1)) {
11859     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "idmef_path_t *","IDMEFPath", 1, argv[0] ));
11860   }
11861   arg1 = reinterpret_cast< idmef_path_t * >(argp1);
11862   {
11863     try {
11864       result = (Prelude::IDMEFPath *)new Prelude::IDMEFPath(arg1);
11865       DATA_PTR(self) = result;
11866     } catch(Prelude::PreludeError &e) {
11867       if ( e.getCode() == PRELUDE_ERROR_EOF )
11868       rb_raise(rb_eEOFError, "%s", e.what());
11869       else
11870       SWIG_exception(SWIG_RuntimeError, e.what());
11871 
11872       SWIG_fail;
11873     }
11874   }
11875   return self;
11876 fail:
11877   return Qnil;
11878 }
11879 
11880 
11881 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
11882 SWIGINTERN VALUE
11883 _wrap_IDMEFPath_allocate(VALUE self) {
11884 #else
11885   SWIGINTERN VALUE
11886   _wrap_IDMEFPath_allocate(int argc, VALUE *argv, VALUE self) {
11887 #endif
11888 
11889 
11890     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__IDMEFPath);
11891 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
11892     rb_obj_call_init(vresult, argc, argv);
11893 #endif
11894     return vresult;
11895   }
11896 
11897 
11898 SWIGINTERN VALUE
11899 _wrap_new_IDMEFPath__SWIG_3(int argc, VALUE *argv, VALUE self) {
11900   Prelude::IDMEFPath *arg1 = 0 ;
11901   void *argp1 ;
11902   int res1 = 0 ;
11903   Prelude::IDMEFPath *result = 0 ;
11904 
11905   if ((argc < 1) || (argc > 1)) {
11906     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
11907   }
11908   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEFPath,  0 );
11909   if (!SWIG_IsOK(res1)) {
11910     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const &","IDMEFPath", 1, argv[0] ));
11911   }
11912   if (!argp1) {
11913     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFPath const &","IDMEFPath", 1, argv[0]));
11914   }
11915   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
11916   {
11917     try {
11918       result = (Prelude::IDMEFPath *)new Prelude::IDMEFPath((Prelude::IDMEFPath const &)*arg1);
11919       DATA_PTR(self) = result;
11920     } catch(Prelude::PreludeError &e) {
11921       if ( e.getCode() == PRELUDE_ERROR_EOF )
11922       rb_raise(rb_eEOFError, "%s", e.what());
11923       else
11924       SWIG_exception(SWIG_RuntimeError, e.what());
11925 
11926       SWIG_fail;
11927     }
11928   }
11929   return self;
11930 fail:
11931   return Qnil;
11932 }
11933 
11934 
11935 SWIGINTERN VALUE _wrap_new_IDMEFPath(int nargs, VALUE *args, VALUE self) {
11936   int argc;
11937   VALUE argv[2];
11938   int ii;
11939 
11940   argc = nargs;
11941   if (argc > 2) SWIG_fail;
11942   for (ii = 0; (ii < argc); ++ii) {
11943     argv[ii] = args[ii];
11944   }
11945   if (argc == 1) {
11946     int _v;
11947     void *vptr = 0;
11948     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_idmef_path_t, 0);
11949     _v = SWIG_CheckState(res);
11950     if (_v) {
11951       return _wrap_new_IDMEFPath__SWIG_2(nargs, args, self);
11952     }
11953   }
11954   if (argc == 1) {
11955     int _v;
11956     void *vptr = 0;
11957     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
11958     _v = SWIG_CheckState(res);
11959     if (_v) {
11960       return _wrap_new_IDMEFPath__SWIG_3(nargs, args, self);
11961     }
11962   }
11963   if (argc == 1) {
11964     int _v;
11965     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
11966     _v = SWIG_CheckState(res);
11967     if (_v) {
11968       return _wrap_new_IDMEFPath__SWIG_0(nargs, args, self);
11969     }
11970   }
11971   if (argc == 2) {
11972     int _v;
11973     void *vptr = 0;
11974     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
11975     _v = SWIG_CheckState(res);
11976     if (_v) {
11977       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
11978       _v = SWIG_CheckState(res);
11979       if (_v) {
11980         return _wrap_new_IDMEFPath__SWIG_1(nargs, args, self);
11981       }
11982     }
11983   }
11984 
11985 fail:
11986   Ruby_Format_OverloadedError( argc, 2, "IDMEFPath.new",
11987     "    IDMEFPath.new(char const *buffer)\n"
11988     "    IDMEFPath.new(Prelude::IDMEF &idmef, char const *buffer)\n"
11989     "    IDMEFPath.new(idmef_path_t *path)\n"
11990     "    IDMEFPath.new(Prelude::IDMEFPath const &path)\n");
11991 
11992   return Qnil;
11993 }
11994 
11995 
11996 SWIGINTERN void
11997 free_Prelude_IDMEFPath(Prelude::IDMEFPath *arg1) {
11998     delete arg1;
11999 }
12000 
12001 SWIGINTERN VALUE
12002 _wrap_IDMEFPath_set__SWIG_0(int argc, VALUE *argv, VALUE self) {
12003   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12004   Prelude::IDMEF *arg2 = 0 ;
12005   std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *arg3 = 0 ;
12006   void *argp1 = 0 ;
12007   int res1 = 0 ;
12008   void *argp2 = 0 ;
12009   int res2 = 0 ;
12010   int res3 = SWIG_OLDOBJ ;
12011 
12012   if ((argc < 2) || (argc > 2)) {
12013     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12014   }
12015   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12016   if (!SWIG_IsOK(res1)) {
12017     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12018   }
12019   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12020   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12021   if (!SWIG_IsOK(res2)) {
12022     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12023   }
12024   if (!argp2) {
12025     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12026   }
12027   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12028   {
12029     std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *ptr = (std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *)0;
12030     res3 = swig::asptr(argv[1], &ptr);
12031     if (!SWIG_IsOK(res3)) {
12032       SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &","set", 3, argv[1] ));
12033     }
12034     if (!ptr) {
12035       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &","set", 3, argv[1]));
12036     }
12037     arg3 = ptr;
12038   }
12039   {
12040     try {
12041       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,(std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &)*arg3);
12042     } catch(Prelude::PreludeError &e) {
12043       if ( e.getCode() == PRELUDE_ERROR_EOF )
12044       rb_raise(rb_eEOFError, "%s", e.what());
12045       else
12046       SWIG_exception(SWIG_RuntimeError, e.what());
12047 
12048       SWIG_fail;
12049     }
12050   }
12051   if (SWIG_IsNewObj(res3)) delete arg3;
12052   return Qnil;
12053 fail:
12054   if (SWIG_IsNewObj(res3)) delete arg3;
12055   return Qnil;
12056 }
12057 
12058 
12059 SWIGINTERN VALUE
12060 _wrap_IDMEFPath_set__SWIG_1(int argc, VALUE *argv, VALUE self) {
12061   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12062   Prelude::IDMEF *arg2 = 0 ;
12063   Prelude::IDMEF *arg3 = (Prelude::IDMEF *) 0 ;
12064   void *argp1 = 0 ;
12065   int res1 = 0 ;
12066   void *argp2 = 0 ;
12067   int res2 = 0 ;
12068   void *argp3 = 0 ;
12069   int res3 = 0 ;
12070 
12071   if ((argc < 2) || (argc > 2)) {
12072     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12073   }
12074   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12075   if (!SWIG_IsOK(res1)) {
12076     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12077   }
12078   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12079   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12080   if (!SWIG_IsOK(res2)) {
12081     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12082   }
12083   if (!argp2) {
12084     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12085   }
12086   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12087   res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
12088   if (!SWIG_IsOK(res3)) {
12089     SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 3, argv[1] ));
12090   }
12091   arg3 = reinterpret_cast< Prelude::IDMEF * >(argp3);
12092   {
12093     try {
12094       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,arg3);
12095     } catch(Prelude::PreludeError &e) {
12096       if ( e.getCode() == PRELUDE_ERROR_EOF )
12097       rb_raise(rb_eEOFError, "%s", e.what());
12098       else
12099       SWIG_exception(SWIG_RuntimeError, e.what());
12100 
12101       SWIG_fail;
12102     }
12103   }
12104   return Qnil;
12105 fail:
12106   return Qnil;
12107 }
12108 
12109 
12110 SWIGINTERN VALUE
12111 _wrap_IDMEFPath_set__SWIG_2(int argc, VALUE *argv, VALUE self) {
12112   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12113   Prelude::IDMEF *arg2 = 0 ;
12114   std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *arg3 = 0 ;
12115   void *argp1 = 0 ;
12116   int res1 = 0 ;
12117   void *argp2 = 0 ;
12118   int res2 = 0 ;
12119   int res3 = SWIG_OLDOBJ ;
12120 
12121   if ((argc < 2) || (argc > 2)) {
12122     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12123   }
12124   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12125   if (!SWIG_IsOK(res1)) {
12126     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12127   }
12128   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12129   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12130   if (!SWIG_IsOK(res2)) {
12131     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12132   }
12133   if (!argp2) {
12134     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12135   }
12136   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12137   {
12138     std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *ptr = (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *)0;
12139     res3 = swig::asptr(argv[1], &ptr);
12140     if (!SWIG_IsOK(res3)) {
12141       SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","set", 3, argv[1] ));
12142     }
12143     if (!ptr) {
12144       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","set", 3, argv[1]));
12145     }
12146     arg3 = ptr;
12147   }
12148   {
12149     try {
12150       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,(std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &)*arg3);
12151     } catch(Prelude::PreludeError &e) {
12152       if ( e.getCode() == PRELUDE_ERROR_EOF )
12153       rb_raise(rb_eEOFError, "%s", e.what());
12154       else
12155       SWIG_exception(SWIG_RuntimeError, e.what());
12156 
12157       SWIG_fail;
12158     }
12159   }
12160   if (SWIG_IsNewObj(res3)) delete arg3;
12161   return Qnil;
12162 fail:
12163   if (SWIG_IsNewObj(res3)) delete arg3;
12164   return Qnil;
12165 }
12166 
12167 
12168 SWIGINTERN VALUE
12169 _wrap_IDMEFPath_set__SWIG_3(int argc, VALUE *argv, VALUE self) {
12170   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12171   Prelude::IDMEF *arg2 = 0 ;
12172   Prelude::IDMEFValue *arg3 = (Prelude::IDMEFValue *) 0 ;
12173   void *argp1 = 0 ;
12174   int res1 = 0 ;
12175   void *argp2 = 0 ;
12176   int res2 = 0 ;
12177   void *argp3 = 0 ;
12178   int res3 = 0 ;
12179 
12180   if ((argc < 2) || (argc > 2)) {
12181     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12182   }
12183   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12184   if (!SWIG_IsOK(res1)) {
12185     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12186   }
12187   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12188   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12189   if (!SWIG_IsOK(res2)) {
12190     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12191   }
12192   if (!argp2) {
12193     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12194   }
12195   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12196   res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
12197   if (!SWIG_IsOK(res3)) {
12198     SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Prelude::IDMEFValue *","set", 3, argv[1] ));
12199   }
12200   arg3 = reinterpret_cast< Prelude::IDMEFValue * >(argp3);
12201   {
12202     try {
12203       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,arg3);
12204     } catch(Prelude::PreludeError &e) {
12205       if ( e.getCode() == PRELUDE_ERROR_EOF )
12206       rb_raise(rb_eEOFError, "%s", e.what());
12207       else
12208       SWIG_exception(SWIG_RuntimeError, e.what());
12209 
12210       SWIG_fail;
12211     }
12212   }
12213   return Qnil;
12214 fail:
12215   return Qnil;
12216 }
12217 
12218 
12219 SWIGINTERN VALUE
12220 _wrap_IDMEFPath_set__SWIG_4(int argc, VALUE *argv, VALUE self) {
12221   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12222   Prelude::IDMEF *arg2 = 0 ;
12223   Prelude::IDMEFTime *arg3 = 0 ;
12224   void *argp1 = 0 ;
12225   int res1 = 0 ;
12226   void *argp2 = 0 ;
12227   int res2 = 0 ;
12228   void *argp3 = 0 ;
12229   int res3 = 0 ;
12230 
12231   if ((argc < 2) || (argc > 2)) {
12232     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12233   }
12234   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12235   if (!SWIG_IsOK(res1)) {
12236     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12237   }
12238   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12239   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12240   if (!SWIG_IsOK(res2)) {
12241     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12242   }
12243   if (!argp2) {
12244     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12245   }
12246   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12247   res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
12248   if (!SWIG_IsOK(res3)) {
12249     SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Prelude::IDMEFTime &","set", 3, argv[1] ));
12250   }
12251   if (!argp3) {
12252     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime &","set", 3, argv[1]));
12253   }
12254   arg3 = reinterpret_cast< Prelude::IDMEFTime * >(argp3);
12255   {
12256     try {
12257       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,*arg3);
12258     } catch(Prelude::PreludeError &e) {
12259       if ( e.getCode() == PRELUDE_ERROR_EOF )
12260       rb_raise(rb_eEOFError, "%s", e.what());
12261       else
12262       SWIG_exception(SWIG_RuntimeError, e.what());
12263 
12264       SWIG_fail;
12265     }
12266   }
12267   return Qnil;
12268 fail:
12269   return Qnil;
12270 }
12271 
12272 
12273 SWIGINTERN VALUE
12274 _wrap_IDMEFPath_set__SWIG_5(int argc, VALUE *argv, VALUE self) {
12275   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12276   Prelude::IDMEF *arg2 = 0 ;
12277   std::string *arg3 = 0 ;
12278   void *argp1 = 0 ;
12279   int res1 = 0 ;
12280   void *argp2 = 0 ;
12281   int res2 = 0 ;
12282   int res3 = SWIG_OLDOBJ ;
12283 
12284   if ((argc < 2) || (argc > 2)) {
12285     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12286   }
12287   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12288   if (!SWIG_IsOK(res1)) {
12289     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12290   }
12291   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12292   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12293   if (!SWIG_IsOK(res2)) {
12294     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12295   }
12296   if (!argp2) {
12297     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12298   }
12299   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12300   {
12301     std::string *ptr = (std::string *)0;
12302     res3 = SWIG_AsPtr_std_string(argv[1], &ptr);
12303     if (!SWIG_IsOK(res3)) {
12304       SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::string const &","set", 3, argv[1] ));
12305     }
12306     if (!ptr) {
12307       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","set", 3, argv[1]));
12308     }
12309     arg3 = ptr;
12310   }
12311   {
12312     try {
12313       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,(std::string const &)*arg3);
12314     } catch(Prelude::PreludeError &e) {
12315       if ( e.getCode() == PRELUDE_ERROR_EOF )
12316       rb_raise(rb_eEOFError, "%s", e.what());
12317       else
12318       SWIG_exception(SWIG_RuntimeError, e.what());
12319 
12320       SWIG_fail;
12321     }
12322   }
12323   if (SWIG_IsNewObj(res3)) delete arg3;
12324   return Qnil;
12325 fail:
12326   if (SWIG_IsNewObj(res3)) delete arg3;
12327   return Qnil;
12328 }
12329 
12330 
12331 SWIGINTERN VALUE
12332 _wrap_IDMEFPath_set__SWIG_6(int argc, VALUE *argv, VALUE self) {
12333   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12334   Prelude::IDMEF *arg2 = 0 ;
12335   int32_t arg3 ;
12336   void *argp1 = 0 ;
12337   int res1 = 0 ;
12338   void *argp2 = 0 ;
12339   int res2 = 0 ;
12340   int val3 ;
12341   int ecode3 = 0 ;
12342 
12343   if ((argc < 2) || (argc > 2)) {
12344     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12345   }
12346   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12347   if (!SWIG_IsOK(res1)) {
12348     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12349   }
12350   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12351   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12352   if (!SWIG_IsOK(res2)) {
12353     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12354   }
12355   if (!argp2) {
12356     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12357   }
12358   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12359   ecode3 = SWIG_AsVal_int(argv[1], &val3);
12360   if (!SWIG_IsOK(ecode3)) {
12361     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int32_t","set", 3, argv[1] ));
12362   }
12363   arg3 = static_cast< int32_t >(val3);
12364   {
12365     try {
12366       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,arg3);
12367     } catch(Prelude::PreludeError &e) {
12368       if ( e.getCode() == PRELUDE_ERROR_EOF )
12369       rb_raise(rb_eEOFError, "%s", e.what());
12370       else
12371       SWIG_exception(SWIG_RuntimeError, e.what());
12372 
12373       SWIG_fail;
12374     }
12375   }
12376   return Qnil;
12377 fail:
12378   return Qnil;
12379 }
12380 
12381 
12382 SWIGINTERN VALUE
12383 _wrap_IDMEFPath_set__SWIG_7(int argc, VALUE *argv, VALUE self) {
12384   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12385   Prelude::IDMEF *arg2 = 0 ;
12386   int64_t arg3 ;
12387   void *argp1 = 0 ;
12388   int res1 = 0 ;
12389   void *argp2 = 0 ;
12390   int res2 = 0 ;
12391   long long val3 ;
12392   int ecode3 = 0 ;
12393 
12394   if ((argc < 2) || (argc > 2)) {
12395     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12396   }
12397   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12398   if (!SWIG_IsOK(res1)) {
12399     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12400   }
12401   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12402   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12403   if (!SWIG_IsOK(res2)) {
12404     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12405   }
12406   if (!argp2) {
12407     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12408   }
12409   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12410   ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
12411   if (!SWIG_IsOK(ecode3)) {
12412     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int64_t","set", 3, argv[1] ));
12413   }
12414   arg3 = static_cast< int64_t >(val3);
12415   {
12416     try {
12417       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,arg3);
12418     } catch(Prelude::PreludeError &e) {
12419       if ( e.getCode() == PRELUDE_ERROR_EOF )
12420       rb_raise(rb_eEOFError, "%s", e.what());
12421       else
12422       SWIG_exception(SWIG_RuntimeError, e.what());
12423 
12424       SWIG_fail;
12425     }
12426   }
12427   return Qnil;
12428 fail:
12429   return Qnil;
12430 }
12431 
12432 
12433 SWIGINTERN VALUE
12434 _wrap_IDMEFPath_set__SWIG_8(int argc, VALUE *argv, VALUE self) {
12435   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12436   Prelude::IDMEF *arg2 = 0 ;
12437   uint64_t arg3 ;
12438   void *argp1 = 0 ;
12439   int res1 = 0 ;
12440   void *argp2 = 0 ;
12441   int res2 = 0 ;
12442   unsigned long long val3 ;
12443   int ecode3 = 0 ;
12444 
12445   if ((argc < 2) || (argc > 2)) {
12446     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12447   }
12448   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12449   if (!SWIG_IsOK(res1)) {
12450     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12451   }
12452   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12453   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12454   if (!SWIG_IsOK(res2)) {
12455     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12456   }
12457   if (!argp2) {
12458     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12459   }
12460   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12461   ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val3);
12462   if (!SWIG_IsOK(ecode3)) {
12463     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","set", 3, argv[1] ));
12464   }
12465   arg3 = static_cast< uint64_t >(val3);
12466   {
12467     try {
12468       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,arg3);
12469     } catch(Prelude::PreludeError &e) {
12470       if ( e.getCode() == PRELUDE_ERROR_EOF )
12471       rb_raise(rb_eEOFError, "%s", e.what());
12472       else
12473       SWIG_exception(SWIG_RuntimeError, e.what());
12474 
12475       SWIG_fail;
12476     }
12477   }
12478   return Qnil;
12479 fail:
12480   return Qnil;
12481 }
12482 
12483 
12484 SWIGINTERN VALUE
12485 _wrap_IDMEFPath_set__SWIG_9(int argc, VALUE *argv, VALUE self) {
12486   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12487   Prelude::IDMEF *arg2 = 0 ;
12488   float arg3 ;
12489   void *argp1 = 0 ;
12490   int res1 = 0 ;
12491   void *argp2 = 0 ;
12492   int res2 = 0 ;
12493   float val3 ;
12494   int ecode3 = 0 ;
12495 
12496   if ((argc < 2) || (argc > 2)) {
12497     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12498   }
12499   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12500   if (!SWIG_IsOK(res1)) {
12501     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12502   }
12503   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12504   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12505   if (!SWIG_IsOK(res2)) {
12506     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12507   }
12508   if (!argp2) {
12509     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12510   }
12511   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12512   ecode3 = SWIG_AsVal_float(argv[1], &val3);
12513   if (!SWIG_IsOK(ecode3)) {
12514     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","set", 3, argv[1] ));
12515   }
12516   arg3 = static_cast< float >(val3);
12517   {
12518     try {
12519       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,arg3);
12520     } catch(Prelude::PreludeError &e) {
12521       if ( e.getCode() == PRELUDE_ERROR_EOF )
12522       rb_raise(rb_eEOFError, "%s", e.what());
12523       else
12524       SWIG_exception(SWIG_RuntimeError, e.what());
12525 
12526       SWIG_fail;
12527     }
12528   }
12529   return Qnil;
12530 fail:
12531   return Qnil;
12532 }
12533 
12534 
12535 SWIGINTERN VALUE
12536 _wrap_IDMEFPath_set__SWIG_10(int argc, VALUE *argv, VALUE self) {
12537   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12538   Prelude::IDMEF *arg2 = 0 ;
12539   double arg3 ;
12540   void *argp1 = 0 ;
12541   int res1 = 0 ;
12542   void *argp2 = 0 ;
12543   int res2 = 0 ;
12544   double val3 ;
12545   int ecode3 = 0 ;
12546 
12547   if ((argc < 2) || (argc > 2)) {
12548     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
12549   }
12550   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12551   if (!SWIG_IsOK(res1)) {
12552     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","set", 1, self ));
12553   }
12554   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12555   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
12556   if (!SWIG_IsOK(res2)) {
12557     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","set", 2, argv[0] ));
12558   }
12559   if (!argp2) {
12560     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","set", 2, argv[0]));
12561   }
12562   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
12563   ecode3 = SWIG_AsVal_double(argv[1], &val3);
12564   if (!SWIG_IsOK(ecode3)) {
12565     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","set", 3, argv[1] ));
12566   }
12567   arg3 = static_cast< double >(val3);
12568   {
12569     try {
12570       ((Prelude::IDMEFPath const *)arg1)->set(*arg2,arg3);
12571     } catch(Prelude::PreludeError &e) {
12572       if ( e.getCode() == PRELUDE_ERROR_EOF )
12573       rb_raise(rb_eEOFError, "%s", e.what());
12574       else
12575       SWIG_exception(SWIG_RuntimeError, e.what());
12576 
12577       SWIG_fail;
12578     }
12579   }
12580   return Qnil;
12581 fail:
12582   return Qnil;
12583 }
12584 
12585 
12586 SWIGINTERN VALUE _wrap_IDMEFPath_set(int nargs, VALUE *args, VALUE self) {
12587   int argc;
12588   VALUE argv[4];
12589   int ii;
12590 
12591   argc = nargs + 1;
12592   argv[0] = self;
12593   if (argc > 4) SWIG_fail;
12594   for (ii = 1; (ii < argc); ++ii) {
12595     argv[ii] = args[ii-1];
12596   }
12597   if (argc == 3) {
12598     int _v;
12599     void *vptr = 0;
12600     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12601     _v = SWIG_CheckState(res);
12602     if (_v) {
12603       void *vptr = 0;
12604       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12605       _v = SWIG_CheckState(res);
12606       if (_v) {
12607         void *vptr = 0;
12608         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12609         _v = SWIG_CheckState(res);
12610         if (_v) {
12611           return _wrap_IDMEFPath_set__SWIG_1(nargs, args, self);
12612         }
12613       }
12614     }
12615   }
12616   if (argc == 3) {
12617     int _v;
12618     void *vptr = 0;
12619     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12620     _v = SWIG_CheckState(res);
12621     if (_v) {
12622       void *vptr = 0;
12623       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12624       _v = SWIG_CheckState(res);
12625       if (_v) {
12626         void *vptr = 0;
12627         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Prelude__IDMEFValue, 0);
12628         _v = SWIG_CheckState(res);
12629         if (_v) {
12630           return _wrap_IDMEFPath_set__SWIG_3(nargs, args, self);
12631         }
12632       }
12633     }
12634   }
12635   if (argc == 3) {
12636     int _v;
12637     void *vptr = 0;
12638     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12639     _v = SWIG_CheckState(res);
12640     if (_v) {
12641       void *vptr = 0;
12642       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12643       _v = SWIG_CheckState(res);
12644       if (_v) {
12645         void *vptr = 0;
12646         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
12647         _v = SWIG_CheckState(res);
12648         if (_v) {
12649           return _wrap_IDMEFPath_set__SWIG_4(nargs, args, self);
12650         }
12651       }
12652     }
12653   }
12654   if (argc == 3) {
12655     int _v;
12656     void *vptr = 0;
12657     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12658     _v = SWIG_CheckState(res);
12659     if (_v) {
12660       void *vptr = 0;
12661       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12662       _v = SWIG_CheckState(res);
12663       if (_v) {
12664         {
12665           int res = SWIG_AsVal_int(argv[2], NULL);
12666           _v = SWIG_CheckState(res);
12667         }
12668         if (_v) {
12669           return _wrap_IDMEFPath_set__SWIG_6(nargs, args, self);
12670         }
12671       }
12672     }
12673   }
12674   if (argc == 3) {
12675     int _v;
12676     void *vptr = 0;
12677     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12678     _v = SWIG_CheckState(res);
12679     if (_v) {
12680       void *vptr = 0;
12681       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12682       _v = SWIG_CheckState(res);
12683       if (_v) {
12684         {
12685           int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[2], NULL);
12686           _v = SWIG_CheckState(res);
12687         }
12688         if (_v) {
12689           return _wrap_IDMEFPath_set__SWIG_8(nargs, args, self);
12690         }
12691       }
12692     }
12693   }
12694   if (argc == 3) {
12695     int _v;
12696     void *vptr = 0;
12697     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12698     _v = SWIG_CheckState(res);
12699     if (_v) {
12700       void *vptr = 0;
12701       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12702       _v = SWIG_CheckState(res);
12703       if (_v) {
12704         {
12705           int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
12706           _v = SWIG_CheckState(res);
12707         }
12708         if (_v) {
12709           return _wrap_IDMEFPath_set__SWIG_7(nargs, args, self);
12710         }
12711       }
12712     }
12713   }
12714   if (argc == 3) {
12715     int _v;
12716     void *vptr = 0;
12717     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12718     _v = SWIG_CheckState(res);
12719     if (_v) {
12720       void *vptr = 0;
12721       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12722       _v = SWIG_CheckState(res);
12723       if (_v) {
12724         {
12725           int res = SWIG_AsVal_float(argv[2], NULL);
12726           _v = SWIG_CheckState(res);
12727         }
12728         if (_v) {
12729           return _wrap_IDMEFPath_set__SWIG_9(nargs, args, self);
12730         }
12731       }
12732     }
12733   }
12734   if (argc == 3) {
12735     int _v;
12736     void *vptr = 0;
12737     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12738     _v = SWIG_CheckState(res);
12739     if (_v) {
12740       void *vptr = 0;
12741       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12742       _v = SWIG_CheckState(res);
12743       if (_v) {
12744         {
12745           int res = SWIG_AsVal_double(argv[2], NULL);
12746           _v = SWIG_CheckState(res);
12747         }
12748         if (_v) {
12749           return _wrap_IDMEFPath_set__SWIG_10(nargs, args, self);
12750         }
12751       }
12752     }
12753   }
12754   if (argc == 3) {
12755     int _v;
12756     void *vptr = 0;
12757     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12758     _v = SWIG_CheckState(res);
12759     if (_v) {
12760       void *vptr = 0;
12761       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12762       _v = SWIG_CheckState(res);
12763       if (_v) {
12764         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
12765         _v = SWIG_CheckState(res);
12766         if (_v) {
12767           return _wrap_IDMEFPath_set__SWIG_5(nargs, args, self);
12768         }
12769       }
12770     }
12771   }
12772   if (argc == 3) {
12773     int _v;
12774     void *vptr = 0;
12775     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12776     _v = SWIG_CheckState(res);
12777     if (_v) {
12778       void *vptr = 0;
12779       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12780       _v = SWIG_CheckState(res);
12781       if (_v) {
12782         int res = swig::asptr(argv[2], (std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > >**)(0));
12783         _v = SWIG_CheckState(res);
12784         if (_v) {
12785           return _wrap_IDMEFPath_set__SWIG_0(nargs, args, self);
12786         }
12787       }
12788     }
12789   }
12790   if (argc == 3) {
12791     int _v;
12792     void *vptr = 0;
12793     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
12794     _v = SWIG_CheckState(res);
12795     if (_v) {
12796       void *vptr = 0;
12797       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
12798       _v = SWIG_CheckState(res);
12799       if (_v) {
12800         int res = swig::asptr(argv[2], (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > >**)(0));
12801         _v = SWIG_CheckState(res);
12802         if (_v) {
12803           return _wrap_IDMEFPath_set__SWIG_2(nargs, args, self);
12804         }
12805       }
12806     }
12807   }
12808 
12809 fail:
12810   Ruby_Format_OverloadedError( argc, 4, "IDMEFPath.set",
12811     "    void IDMEFPath.set(Prelude::IDMEF &message, std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &value)\n"
12812     "    void IDMEFPath.set(Prelude::IDMEF &message, Prelude::IDMEF *value)\n"
12813     "    void IDMEFPath.set(Prelude::IDMEF &message, std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &value)\n"
12814     "    void IDMEFPath.set(Prelude::IDMEF &message, Prelude::IDMEFValue *value)\n"
12815     "    void IDMEFPath.set(Prelude::IDMEF &message, Prelude::IDMEFTime &time)\n"
12816     "    void IDMEFPath.set(Prelude::IDMEF &message, std::string const &value)\n"
12817     "    void IDMEFPath.set(Prelude::IDMEF &message, int32_t value)\n"
12818     "    void IDMEFPath.set(Prelude::IDMEF &message, int64_t value)\n"
12819     "    void IDMEFPath.set(Prelude::IDMEF &message, uint64_t value)\n"
12820     "    void IDMEFPath.set(Prelude::IDMEF &message, float value)\n"
12821     "    void IDMEFPath.set(Prelude::IDMEF &message, double value)\n");
12822 
12823   return Qnil;
12824 }
12825 
12826 
12827 SWIGINTERN VALUE
12828 _wrap_IDMEFPath_getClass(int argc, VALUE *argv, VALUE self) {
12829   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12830   int arg2 = (int) -1 ;
12831   void *argp1 = 0 ;
12832   int res1 = 0 ;
12833   int val2 ;
12834   int ecode2 = 0 ;
12835   const char *kwnames[] = {
12836     "self","depth", NULL
12837   };
12838   Prelude::IDMEFClass result;
12839   VALUE vresult = Qnil;
12840 
12841   if ((argc < 0) || (argc > 1)) {
12842     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12843   }
12844   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12845   if (!SWIG_IsOK(res1)) {
12846     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","getClass", 1, self ));
12847   }
12848   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12849   if (argc > 0) {
12850     ecode2 = SWIG_AsVal_int(argv[0], &val2);
12851     if (!SWIG_IsOK(ecode2)) {
12852       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getClass", 2, argv[0] ));
12853     }
12854     arg2 = static_cast< int >(val2);
12855   }
12856   {
12857     try {
12858       result = ((Prelude::IDMEFPath const *)arg1)->getClass(arg2);
12859     } catch(Prelude::PreludeError &e) {
12860       if ( e.getCode() == PRELUDE_ERROR_EOF )
12861       rb_raise(rb_eEOFError, "%s", e.what());
12862       else
12863       SWIG_exception(SWIG_RuntimeError, e.what());
12864 
12865       SWIG_fail;
12866     }
12867   }
12868   vresult = SWIG_NewPointerObj((new Prelude::IDMEFClass(static_cast< const Prelude::IDMEFClass& >(result))), SWIGTYPE_p_Prelude__IDMEFClass, SWIG_POINTER_OWN |  0 );
12869   return vresult;
12870 fail:
12871   return Qnil;
12872 }
12873 
12874 
12875 SWIGINTERN VALUE
12876 _wrap_IDMEFPath_getValueType(int argc, VALUE *argv, VALUE self) {
12877   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12878   int arg2 = (int) -1 ;
12879   void *argp1 = 0 ;
12880   int res1 = 0 ;
12881   int val2 ;
12882   int ecode2 = 0 ;
12883   const char *kwnames[] = {
12884     "self","depth", NULL
12885   };
12886   Prelude::IDMEFValue::IDMEFValueTypeEnum result;
12887   VALUE vresult = Qnil;
12888 
12889   if ((argc < 0) || (argc > 1)) {
12890     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12891   }
12892   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12893   if (!SWIG_IsOK(res1)) {
12894     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","getValueType", 1, self ));
12895   }
12896   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12897   if (argc > 0) {
12898     ecode2 = SWIG_AsVal_int(argv[0], &val2);
12899     if (!SWIG_IsOK(ecode2)) {
12900       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getValueType", 2, argv[0] ));
12901     }
12902     arg2 = static_cast< int >(val2);
12903   }
12904   {
12905     try {
12906       result = (Prelude::IDMEFValue::IDMEFValueTypeEnum)((Prelude::IDMEFPath const *)arg1)->getValueType(arg2);
12907     } catch(Prelude::PreludeError &e) {
12908       if ( e.getCode() == PRELUDE_ERROR_EOF )
12909       rb_raise(rb_eEOFError, "%s", e.what());
12910       else
12911       SWIG_exception(SWIG_RuntimeError, e.what());
12912 
12913       SWIG_fail;
12914     }
12915   }
12916   vresult = SWIG_From_int(static_cast< int >(result));
12917   return vresult;
12918 fail:
12919   return Qnil;
12920 }
12921 
12922 
12923 SWIGINTERN VALUE
12924 _wrap_IDMEFPath_setIndex(int argc, VALUE *argv, VALUE self) {
12925   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12926   unsigned int arg2 ;
12927   int arg3 = (int) -1 ;
12928   void *argp1 = 0 ;
12929   int res1 = 0 ;
12930   unsigned int val2 ;
12931   int ecode2 = 0 ;
12932   int val3 ;
12933   int ecode3 = 0 ;
12934   const char *kwnames[] = {
12935     "self","index","depth", NULL
12936   };
12937   int result;
12938   VALUE vresult = Qnil;
12939 
12940   if ((argc < 1) || (argc > 2)) {
12941     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
12942   }
12943   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12944   if (!SWIG_IsOK(res1)) {
12945     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath *","setIndex", 1, self ));
12946   }
12947   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
12948   ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
12949   if (!SWIG_IsOK(ecode2)) {
12950     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "unsigned int","setIndex", 2, argv[0] ));
12951   }
12952   arg2 = static_cast< unsigned int >(val2);
12953   if (argc > 1) {
12954     ecode3 = SWIG_AsVal_int(argv[1], &val3);
12955     if (!SWIG_IsOK(ecode3)) {
12956       SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","setIndex", 3, argv[1] ));
12957     }
12958     arg3 = static_cast< int >(val3);
12959   }
12960   {
12961     try {
12962       result = (int)(arg1)->setIndex(arg2,arg3);
12963     } catch(Prelude::PreludeError &e) {
12964       if ( e.getCode() == PRELUDE_ERROR_EOF )
12965       rb_raise(rb_eEOFError, "%s", e.what());
12966       else
12967       SWIG_exception(SWIG_RuntimeError, e.what());
12968 
12969       SWIG_fail;
12970     }
12971   }
12972   vresult = SWIG_From_int(static_cast< int >(result));
12973   return vresult;
12974 fail:
12975   return Qnil;
12976 }
12977 
12978 
12979 SWIGINTERN VALUE
12980 _wrap_IDMEFPath_undefineIndex(int argc, VALUE *argv, VALUE self) {
12981   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
12982   int arg2 = (int) -1 ;
12983   void *argp1 = 0 ;
12984   int res1 = 0 ;
12985   int val2 ;
12986   int ecode2 = 0 ;
12987   const char *kwnames[] = {
12988     "self","depth", NULL
12989   };
12990   int result;
12991   VALUE vresult = Qnil;
12992 
12993   if ((argc < 0) || (argc > 1)) {
12994     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
12995   }
12996   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
12997   if (!SWIG_IsOK(res1)) {
12998     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath *","undefineIndex", 1, self ));
12999   }
13000   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13001   if (argc > 0) {
13002     ecode2 = SWIG_AsVal_int(argv[0], &val2);
13003     if (!SWIG_IsOK(ecode2)) {
13004       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","undefineIndex", 2, argv[0] ));
13005     }
13006     arg2 = static_cast< int >(val2);
13007   }
13008   {
13009     try {
13010       result = (int)(arg1)->undefineIndex(arg2);
13011     } catch(Prelude::PreludeError &e) {
13012       if ( e.getCode() == PRELUDE_ERROR_EOF )
13013       rb_raise(rb_eEOFError, "%s", e.what());
13014       else
13015       SWIG_exception(SWIG_RuntimeError, e.what());
13016 
13017       SWIG_fail;
13018     }
13019   }
13020   vresult = SWIG_From_int(static_cast< int >(result));
13021   return vresult;
13022 fail:
13023   return Qnil;
13024 }
13025 
13026 
13027 SWIGINTERN VALUE
13028 _wrap_IDMEFPath_getIndex(int argc, VALUE *argv, VALUE self) {
13029   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13030   int arg2 = (int) -1 ;
13031   void *argp1 = 0 ;
13032   int res1 = 0 ;
13033   int val2 ;
13034   int ecode2 = 0 ;
13035   const char *kwnames[] = {
13036     "self","depth", NULL
13037   };
13038   int result;
13039   VALUE vresult = Qnil;
13040 
13041   if ((argc < 0) || (argc > 1)) {
13042     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13043   }
13044   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13045   if (!SWIG_IsOK(res1)) {
13046     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","getIndex", 1, self ));
13047   }
13048   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13049   if (argc > 0) {
13050     ecode2 = SWIG_AsVal_int(argv[0], &val2);
13051     if (!SWIG_IsOK(ecode2)) {
13052       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getIndex", 2, argv[0] ));
13053     }
13054     arg2 = static_cast< int >(val2);
13055   }
13056   {
13057     try {
13058       result = (int)((Prelude::IDMEFPath const *)arg1)->getIndex(arg2);
13059     } catch(Prelude::PreludeError &e) {
13060       if ( e.getCode() == PRELUDE_ERROR_EOF )
13061       rb_raise(rb_eEOFError, "%s", e.what());
13062       else
13063       SWIG_exception(SWIG_RuntimeError, e.what());
13064 
13065       SWIG_fail;
13066     }
13067   }
13068   vresult = SWIG_From_int(static_cast< int >(result));
13069   return vresult;
13070 fail:
13071   return Qnil;
13072 }
13073 
13074 
13075 SWIGINTERN VALUE
13076 _wrap_IDMEFPath_makeChild(int argc, VALUE *argv, VALUE self) {
13077   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13078   char *arg2 = (char *) 0 ;
13079   unsigned int arg3 ;
13080   void *argp1 = 0 ;
13081   int res1 = 0 ;
13082   int res2 ;
13083   char *buf2 = 0 ;
13084   int alloc2 = 0 ;
13085   unsigned int val3 ;
13086   int ecode3 = 0 ;
13087   int result;
13088   VALUE vresult = Qnil;
13089 
13090   if ((argc < 2) || (argc > 2)) {
13091     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
13092   }
13093   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13094   if (!SWIG_IsOK(res1)) {
13095     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath *","makeChild", 1, self ));
13096   }
13097   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13098   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
13099   if (!SWIG_IsOK(res2)) {
13100     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","makeChild", 2, argv[0] ));
13101   }
13102   arg2 = reinterpret_cast< char * >(buf2);
13103   ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
13104   if (!SWIG_IsOK(ecode3)) {
13105     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "unsigned int","makeChild", 3, argv[1] ));
13106   }
13107   arg3 = static_cast< unsigned int >(val3);
13108   {
13109     try {
13110       result = (int)(arg1)->makeChild((char const *)arg2,arg3);
13111     } catch(Prelude::PreludeError &e) {
13112       if ( e.getCode() == PRELUDE_ERROR_EOF )
13113       rb_raise(rb_eEOFError, "%s", e.what());
13114       else
13115       SWIG_exception(SWIG_RuntimeError, e.what());
13116 
13117       SWIG_fail;
13118     }
13119   }
13120   vresult = SWIG_From_int(static_cast< int >(result));
13121   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
13122   return vresult;
13123 fail:
13124   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
13125   return Qnil;
13126 }
13127 
13128 
13129 SWIGINTERN VALUE
13130 _wrap_IDMEFPath_makeParent(int argc, VALUE *argv, VALUE self) {
13131   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13132   void *argp1 = 0 ;
13133   int res1 = 0 ;
13134   int result;
13135   VALUE vresult = Qnil;
13136 
13137   if ((argc < 0) || (argc > 0)) {
13138     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13139   }
13140   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13141   if (!SWIG_IsOK(res1)) {
13142     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath *","makeParent", 1, self ));
13143   }
13144   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13145   {
13146     try {
13147       result = (int)(arg1)->makeParent();
13148     } catch(Prelude::PreludeError &e) {
13149       if ( e.getCode() == PRELUDE_ERROR_EOF )
13150       rb_raise(rb_eEOFError, "%s", e.what());
13151       else
13152       SWIG_exception(SWIG_RuntimeError, e.what());
13153 
13154       SWIG_fail;
13155     }
13156   }
13157   vresult = SWIG_From_int(static_cast< int >(result));
13158   return vresult;
13159 fail:
13160   return Qnil;
13161 }
13162 
13163 
13164 SWIGINTERN VALUE
13165 _wrap_IDMEFPath_compare(int argc, VALUE *argv, VALUE self) {
13166   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13167   Prelude::IDMEFPath *arg2 = (Prelude::IDMEFPath *) 0 ;
13168   int arg3 = (int) -1 ;
13169   void *argp1 = 0 ;
13170   int res1 = 0 ;
13171   void *argp2 = 0 ;
13172   int res2 = 0 ;
13173   int val3 ;
13174   int ecode3 = 0 ;
13175   const char *kwnames[] = {
13176     "self","path","depth", NULL
13177   };
13178   int result;
13179   VALUE vresult = Qnil;
13180 
13181   if ((argc < 1) || (argc > 2)) {
13182     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13183   }
13184   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13185   if (!SWIG_IsOK(res1)) {
13186     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","compare", 1, self ));
13187   }
13188   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13189   res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13190   if (!SWIG_IsOK(res2)) {
13191     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFPath *","compare", 2, argv[0] ));
13192   }
13193   arg2 = reinterpret_cast< Prelude::IDMEFPath * >(argp2);
13194   if (argc > 1) {
13195     ecode3 = SWIG_AsVal_int(argv[1], &val3);
13196     if (!SWIG_IsOK(ecode3)) {
13197       SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","compare", 3, argv[1] ));
13198     }
13199     arg3 = static_cast< int >(val3);
13200   }
13201   {
13202     try {
13203       result = (int)((Prelude::IDMEFPath const *)arg1)->compare(arg2,arg3);
13204     } catch(Prelude::PreludeError &e) {
13205       if ( e.getCode() == PRELUDE_ERROR_EOF )
13206       rb_raise(rb_eEOFError, "%s", e.what());
13207       else
13208       SWIG_exception(SWIG_RuntimeError, e.what());
13209 
13210       SWIG_fail;
13211     }
13212   }
13213   vresult = SWIG_From_int(static_cast< int >(result));
13214   return vresult;
13215 fail:
13216   return Qnil;
13217 }
13218 
13219 
13220 
13221 /*
13222   Document-method: Prelude::IDMEFPath.clone
13223 
13224   call-seq:
13225     clone -> IDMEFPath
13226 
13227 Create a duplicate of the class.
13228 */
13229 SWIGINTERN VALUE
13230 _wrap_IDMEFPath_clone(int argc, VALUE *argv, VALUE self) {
13231   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13232   void *argp1 = 0 ;
13233   int res1 = 0 ;
13234   SwigValueWrapper< Prelude::IDMEFPath > result;
13235   VALUE vresult = Qnil;
13236 
13237   if ((argc < 0) || (argc > 0)) {
13238     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13239   }
13240   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13241   if (!SWIG_IsOK(res1)) {
13242     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","clone", 1, self ));
13243   }
13244   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13245   {
13246     try {
13247       result = ((Prelude::IDMEFPath const *)arg1)->clone();
13248     } catch(Prelude::PreludeError &e) {
13249       if ( e.getCode() == PRELUDE_ERROR_EOF )
13250       rb_raise(rb_eEOFError, "%s", e.what());
13251       else
13252       SWIG_exception(SWIG_RuntimeError, e.what());
13253 
13254       SWIG_fail;
13255     }
13256   }
13257   vresult = SWIG_NewPointerObj((new Prelude::IDMEFPath(static_cast< const Prelude::IDMEFPath& >(result))), SWIGTYPE_p_Prelude__IDMEFPath, SWIG_POINTER_OWN |  0 );
13258   return vresult;
13259 fail:
13260   return Qnil;
13261 }
13262 
13263 
13264 SWIGINTERN VALUE
13265 _wrap_IDMEFPath_checkOperator(int argc, VALUE *argv, VALUE self) {
13266   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13267   idmef_criterion_operator_t arg2 ;
13268   void *argp1 = 0 ;
13269   int res1 = 0 ;
13270   void *argp2 ;
13271   int res2 = 0 ;
13272   int result;
13273   VALUE vresult = Qnil;
13274 
13275   if ((argc < 1) || (argc > 1)) {
13276     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13277   }
13278   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13279   if (!SWIG_IsOK(res1)) {
13280     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","checkOperator", 1, self ));
13281   }
13282   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13283   {
13284     res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_idmef_criterion_operator_t,  0 );
13285     if (!SWIG_IsOK(res2)) {
13286       SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "idmef_criterion_operator_t","checkOperator", 2, argv[0] ));
13287     }
13288     if (!argp2) {
13289       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "idmef_criterion_operator_t","checkOperator", 2, argv[0]));
13290     } else {
13291       arg2 = *(reinterpret_cast< idmef_criterion_operator_t * >(argp2));
13292     }
13293   }
13294   {
13295     try {
13296       result = (int)((Prelude::IDMEFPath const *)arg1)->checkOperator(arg2);
13297     } catch(Prelude::PreludeError &e) {
13298       if ( e.getCode() == PRELUDE_ERROR_EOF )
13299       rb_raise(rb_eEOFError, "%s", e.what());
13300       else
13301       SWIG_exception(SWIG_RuntimeError, e.what());
13302 
13303       SWIG_fail;
13304     }
13305   }
13306   vresult = SWIG_From_int(static_cast< int >(result));
13307   return vresult;
13308 fail:
13309   return Qnil;
13310 }
13311 
13312 
13313 SWIGINTERN VALUE
13314 _wrap_IDMEFPath_getApplicableOperators(int argc, VALUE *argv, VALUE self) {
13315   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13316   void *argp1 = 0 ;
13317   int res1 = 0 ;
13318   idmef_criterion_operator_t result;
13319   VALUE vresult = Qnil;
13320 
13321   if ((argc < 0) || (argc > 0)) {
13322     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13323   }
13324   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13325   if (!SWIG_IsOK(res1)) {
13326     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","getApplicableOperators", 1, self ));
13327   }
13328   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13329   {
13330     try {
13331       result = ((Prelude::IDMEFPath const *)arg1)->getApplicableOperators();
13332     } catch(Prelude::PreludeError &e) {
13333       if ( e.getCode() == PRELUDE_ERROR_EOF )
13334       rb_raise(rb_eEOFError, "%s", e.what());
13335       else
13336       SWIG_exception(SWIG_RuntimeError, e.what());
13337 
13338       SWIG_fail;
13339     }
13340   }
13341   vresult = SWIG_NewPointerObj((new idmef_criterion_operator_t(static_cast< const idmef_criterion_operator_t& >(result))), SWIGTYPE_p_idmef_criterion_operator_t, SWIG_POINTER_OWN |  0 );
13342   return vresult;
13343 fail:
13344   return Qnil;
13345 }
13346 
13347 
13348 SWIGINTERN VALUE
13349 _wrap_IDMEFPath_getName(int argc, VALUE *argv, VALUE self) {
13350   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13351   int arg2 = (int) -1 ;
13352   void *argp1 = 0 ;
13353   int res1 = 0 ;
13354   int val2 ;
13355   int ecode2 = 0 ;
13356   const char *kwnames[] = {
13357     "self","depth", NULL
13358   };
13359   char *result = 0 ;
13360   VALUE vresult = Qnil;
13361 
13362   if ((argc < 0) || (argc > 1)) {
13363     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13364   }
13365   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13366   if (!SWIG_IsOK(res1)) {
13367     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","getName", 1, self ));
13368   }
13369   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13370   if (argc > 0) {
13371     ecode2 = SWIG_AsVal_int(argv[0], &val2);
13372     if (!SWIG_IsOK(ecode2)) {
13373       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getName", 2, argv[0] ));
13374     }
13375     arg2 = static_cast< int >(val2);
13376   }
13377   {
13378     try {
13379       result = (char *)((Prelude::IDMEFPath const *)arg1)->getName(arg2);
13380     } catch(Prelude::PreludeError &e) {
13381       if ( e.getCode() == PRELUDE_ERROR_EOF )
13382       rb_raise(rb_eEOFError, "%s", e.what());
13383       else
13384       SWIG_exception(SWIG_RuntimeError, e.what());
13385 
13386       SWIG_fail;
13387     }
13388   }
13389   vresult = SWIG_FromCharPtr((const char *)result);
13390   return vresult;
13391 fail:
13392   return Qnil;
13393 }
13394 
13395 
13396 SWIGINTERN VALUE
13397 _wrap_IDMEFPath_isAmbiguous(int argc, VALUE *argv, VALUE self) {
13398   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13399   void *argp1 = 0 ;
13400   int res1 = 0 ;
13401   bool result;
13402   VALUE vresult = Qnil;
13403 
13404   if ((argc < 0) || (argc > 0)) {
13405     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13406   }
13407   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13408   if (!SWIG_IsOK(res1)) {
13409     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","isAmbiguous", 1, self ));
13410   }
13411   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13412   {
13413     try {
13414       result = (bool)((Prelude::IDMEFPath const *)arg1)->isAmbiguous();
13415     } catch(Prelude::PreludeError &e) {
13416       if ( e.getCode() == PRELUDE_ERROR_EOF )
13417       rb_raise(rb_eEOFError, "%s", e.what());
13418       else
13419       SWIG_exception(SWIG_RuntimeError, e.what());
13420 
13421       SWIG_fail;
13422     }
13423   }
13424   vresult = SWIG_From_bool(static_cast< bool >(result));
13425   return vresult;
13426 fail:
13427   return Qnil;
13428 }
13429 
13430 
13431 SWIGINTERN VALUE
13432 _wrap_IDMEFPath_hasLists(int argc, VALUE *argv, VALUE self) {
13433   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13434   void *argp1 = 0 ;
13435   int res1 = 0 ;
13436   int result;
13437   VALUE vresult = Qnil;
13438 
13439   if ((argc < 0) || (argc > 0)) {
13440     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13441   }
13442   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13443   if (!SWIG_IsOK(res1)) {
13444     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","hasLists", 1, self ));
13445   }
13446   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13447   {
13448     try {
13449       result = (int)((Prelude::IDMEFPath const *)arg1)->hasLists();
13450     } catch(Prelude::PreludeError &e) {
13451       if ( e.getCode() == PRELUDE_ERROR_EOF )
13452       rb_raise(rb_eEOFError, "%s", e.what());
13453       else
13454       SWIG_exception(SWIG_RuntimeError, e.what());
13455 
13456       SWIG_fail;
13457     }
13458   }
13459   vresult = SWIG_From_int(static_cast< int >(result));
13460   return vresult;
13461 fail:
13462   return Qnil;
13463 }
13464 
13465 
13466 SWIGINTERN VALUE
13467 _wrap_IDMEFPath_isList(int argc, VALUE *argv, VALUE self) {
13468   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13469   int arg2 = (int) -1 ;
13470   void *argp1 = 0 ;
13471   int res1 = 0 ;
13472   int val2 ;
13473   int ecode2 = 0 ;
13474   const char *kwnames[] = {
13475     "self","depth", NULL
13476   };
13477   bool result;
13478   VALUE vresult = Qnil;
13479 
13480   if ((argc < 0) || (argc > 1)) {
13481     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13482   }
13483   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13484   if (!SWIG_IsOK(res1)) {
13485     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","isList", 1, self ));
13486   }
13487   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13488   if (argc > 0) {
13489     ecode2 = SWIG_AsVal_int(argv[0], &val2);
13490     if (!SWIG_IsOK(ecode2)) {
13491       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","isList", 2, argv[0] ));
13492     }
13493     arg2 = static_cast< int >(val2);
13494   }
13495   {
13496     try {
13497       result = (bool)((Prelude::IDMEFPath const *)arg1)->isList(arg2);
13498     } catch(Prelude::PreludeError &e) {
13499       if ( e.getCode() == PRELUDE_ERROR_EOF )
13500       rb_raise(rb_eEOFError, "%s", e.what());
13501       else
13502       SWIG_exception(SWIG_RuntimeError, e.what());
13503 
13504       SWIG_fail;
13505     }
13506   }
13507   vresult = SWIG_From_bool(static_cast< bool >(result));
13508   return vresult;
13509 fail:
13510   return Qnil;
13511 }
13512 
13513 
13514 SWIGINTERN VALUE
13515 _wrap_IDMEFPath_getDepth(int argc, VALUE *argv, VALUE self) {
13516   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13517   void *argp1 = 0 ;
13518   int res1 = 0 ;
13519   unsigned int result;
13520   VALUE vresult = Qnil;
13521 
13522   if ((argc < 0) || (argc > 0)) {
13523     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13524   }
13525   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13526   if (!SWIG_IsOK(res1)) {
13527     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const *","getDepth", 1, self ));
13528   }
13529   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13530   {
13531     try {
13532       result = (unsigned int)((Prelude::IDMEFPath const *)arg1)->getDepth();
13533     } catch(Prelude::PreludeError &e) {
13534       if ( e.getCode() == PRELUDE_ERROR_EOF )
13535       rb_raise(rb_eEOFError, "%s", e.what());
13536       else
13537       SWIG_exception(SWIG_RuntimeError, e.what());
13538 
13539       SWIG_fail;
13540     }
13541   }
13542   vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
13543   return vresult;
13544 fail:
13545   return Qnil;
13546 }
13547 
13548 
13549 SWIGINTERN VALUE
13550 _wrap_IDMEFPath_get(int argc, VALUE *argv, VALUE self) {
13551   Prelude::IDMEFPath *arg1 = (Prelude::IDMEFPath *) 0 ;
13552   Prelude::IDMEF *arg2 = 0 ;
13553   void *argp1 = 0 ;
13554   int res1 = 0 ;
13555   void *argp2 = 0 ;
13556   int res2 = 0 ;
13557   Prelude::IDMEFValue result;
13558   VALUE vresult = Qnil;
13559 
13560   if ((argc < 1) || (argc > 1)) {
13561     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13562   }
13563   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFPath, 0 |  0 );
13564   if (!SWIG_IsOK(res1)) {
13565     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath *","get", 1, self ));
13566   }
13567   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
13568   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEF,  0 );
13569   if (!SWIG_IsOK(res2)) {
13570     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF &","get", 2, argv[0] ));
13571   }
13572   if (!argp2) {
13573     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF &","get", 2, argv[0]));
13574   }
13575   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
13576   {
13577     try {
13578       result = Prelude_IDMEFPath_get(arg1,*arg2);
13579     } catch(Prelude::PreludeError &e) {
13580       if ( e.getCode() == PRELUDE_ERROR_EOF )
13581       rb_raise(rb_eEOFError, "%s", e.what());
13582       else
13583       SWIG_exception(SWIG_RuntimeError, e.what());
13584 
13585       SWIG_fail;
13586     }
13587   }
13588   {
13589     int ret;
13590 
13591     if ( (&result)->isNull() )
13592     vresult = Qnil;
13593     else {
13594       ret = IDMEFValue_to_SWIG(self, result, NULL, &vresult);
13595       if ( ret < 0 ) {
13596         std::stringstream s;
13597         s << "IDMEFValue typemap does not handle value of type '" << idmef_value_type_to_string((idmef_value_type_id_t) (&result)->getType()) << "'";
13598         SWIG_exception_fail(SWIG_ValueError, s.str().c_str());
13599       }
13600     }
13601   }
13602   return vresult;
13603 fail:
13604   return Qnil;
13605 }
13606 
13607 
13608 static swig_class SwigClassIDMEFTime;
13609 
13610 SWIGINTERN VALUE
13611 _wrap_new_IDMEFTime__SWIG_0(int argc, VALUE *argv, VALUE self) {
13612   Prelude::IDMEFTime *result = 0 ;
13613 
13614   if ((argc < 0) || (argc > 0)) {
13615     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13616   }
13617   {
13618     try {
13619       result = (Prelude::IDMEFTime *)new Prelude::IDMEFTime();
13620       DATA_PTR(self) = result;
13621     } catch(Prelude::PreludeError &e) {
13622       if ( e.getCode() == PRELUDE_ERROR_EOF )
13623       rb_raise(rb_eEOFError, "%s", e.what());
13624       else
13625       SWIG_exception(SWIG_RuntimeError, e.what());
13626 
13627       SWIG_fail;
13628     }
13629   }
13630   return self;
13631 fail:
13632   return Qnil;
13633 }
13634 
13635 
13636 SWIGINTERN VALUE
13637 _wrap_new_IDMEFTime__SWIG_1(int argc, VALUE *argv, VALUE self) {
13638   idmef_time_t *arg1 = (idmef_time_t *) 0 ;
13639   void *argp1 = 0 ;
13640   int res1 = 0 ;
13641   Prelude::IDMEFTime *result = 0 ;
13642 
13643   if ((argc < 1) || (argc > 1)) {
13644     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13645   }
13646   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_idmef_time_t, 0 |  0 );
13647   if (!SWIG_IsOK(res1)) {
13648     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "idmef_time_t *","IDMEFTime", 1, argv[0] ));
13649   }
13650   arg1 = reinterpret_cast< idmef_time_t * >(argp1);
13651   {
13652     try {
13653       result = (Prelude::IDMEFTime *)new Prelude::IDMEFTime(arg1);
13654       DATA_PTR(self) = result;
13655     } catch(Prelude::PreludeError &e) {
13656       if ( e.getCode() == PRELUDE_ERROR_EOF )
13657       rb_raise(rb_eEOFError, "%s", e.what());
13658       else
13659       SWIG_exception(SWIG_RuntimeError, e.what());
13660 
13661       SWIG_fail;
13662     }
13663   }
13664   return self;
13665 fail:
13666   return Qnil;
13667 }
13668 
13669 
13670 SWIGINTERN VALUE
13671 _wrap_new_IDMEFTime__SWIG_2(int argc, VALUE *argv, VALUE self) {
13672   time_t arg1 ;
13673   long long val1 ;
13674   int ecode1 = 0 ;
13675   Prelude::IDMEFTime *result = 0 ;
13676 
13677   if ((argc < 1) || (argc > 1)) {
13678     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13679   }
13680   ecode1 = SWIG_AsVal_long_SS_long(argv[0], &val1);
13681   if (!SWIG_IsOK(ecode1)) {
13682     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "time_t","IDMEFTime", 1, argv[0] ));
13683   }
13684   arg1 = static_cast< time_t >(val1);
13685   {
13686     try {
13687       result = (Prelude::IDMEFTime *)new Prelude::IDMEFTime(arg1);
13688       DATA_PTR(self) = result;
13689     } catch(Prelude::PreludeError &e) {
13690       if ( e.getCode() == PRELUDE_ERROR_EOF )
13691       rb_raise(rb_eEOFError, "%s", e.what());
13692       else
13693       SWIG_exception(SWIG_RuntimeError, e.what());
13694 
13695       SWIG_fail;
13696     }
13697   }
13698   return self;
13699 fail:
13700   return Qnil;
13701 }
13702 
13703 
13704 SWIGINTERN VALUE
13705 _wrap_new_IDMEFTime__SWIG_3(int argc, VALUE *argv, VALUE self) {
13706   char *arg1 = (char *) 0 ;
13707   int res1 ;
13708   char *buf1 = 0 ;
13709   int alloc1 = 0 ;
13710   Prelude::IDMEFTime *result = 0 ;
13711 
13712   if ((argc < 1) || (argc > 1)) {
13713     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13714   }
13715   res1 = SWIG_AsCharPtrAndSize(argv[0], &buf1, NULL, &alloc1);
13716   if (!SWIG_IsOK(res1)) {
13717     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "char const *","IDMEFTime", 1, argv[0] ));
13718   }
13719   arg1 = reinterpret_cast< char * >(buf1);
13720   {
13721     try {
13722       result = (Prelude::IDMEFTime *)new Prelude::IDMEFTime((char const *)arg1);
13723       DATA_PTR(self) = result;
13724     } catch(Prelude::PreludeError &e) {
13725       if ( e.getCode() == PRELUDE_ERROR_EOF )
13726       rb_raise(rb_eEOFError, "%s", e.what());
13727       else
13728       SWIG_exception(SWIG_RuntimeError, e.what());
13729 
13730       SWIG_fail;
13731     }
13732   }
13733   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
13734   return self;
13735 fail:
13736   if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
13737   return Qnil;
13738 }
13739 
13740 
13741 SWIGINTERN VALUE
13742 _wrap_new_IDMEFTime__SWIG_4(int argc, VALUE *argv, VALUE self) {
13743   timeval *arg1 = (timeval *) 0 ;
13744   void *argp1 = 0 ;
13745   int res1 = 0 ;
13746   Prelude::IDMEFTime *result = 0 ;
13747 
13748   if ((argc < 1) || (argc > 1)) {
13749     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13750   }
13751   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_timeval, 0 |  0 );
13752   if (!SWIG_IsOK(res1)) {
13753     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "timeval const *","IDMEFTime", 1, argv[0] ));
13754   }
13755   arg1 = reinterpret_cast< timeval * >(argp1);
13756   {
13757     try {
13758       result = (Prelude::IDMEFTime *)new Prelude::IDMEFTime((timeval const *)arg1);
13759       DATA_PTR(self) = result;
13760     } catch(Prelude::PreludeError &e) {
13761       if ( e.getCode() == PRELUDE_ERROR_EOF )
13762       rb_raise(rb_eEOFError, "%s", e.what());
13763       else
13764       SWIG_exception(SWIG_RuntimeError, e.what());
13765 
13766       SWIG_fail;
13767     }
13768   }
13769   return self;
13770 fail:
13771   return Qnil;
13772 }
13773 
13774 
13775 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
13776 SWIGINTERN VALUE
13777 _wrap_IDMEFTime_allocate(VALUE self) {
13778 #else
13779   SWIGINTERN VALUE
13780   _wrap_IDMEFTime_allocate(int argc, VALUE *argv, VALUE self) {
13781 #endif
13782 
13783 
13784     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__IDMEFTime);
13785 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
13786     rb_obj_call_init(vresult, argc, argv);
13787 #endif
13788     return vresult;
13789   }
13790 
13791 
13792 SWIGINTERN VALUE
13793 _wrap_new_IDMEFTime__SWIG_5(int argc, VALUE *argv, VALUE self) {
13794   Prelude::IDMEFTime *arg1 = 0 ;
13795   void *argp1 ;
13796   int res1 = 0 ;
13797   Prelude::IDMEFTime *result = 0 ;
13798 
13799   if ((argc < 1) || (argc > 1)) {
13800     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13801   }
13802   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
13803   if (!SWIG_IsOK(res1)) {
13804     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const &","IDMEFTime", 1, argv[0] ));
13805   }
13806   if (!argp1) {
13807     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime const &","IDMEFTime", 1, argv[0]));
13808   }
13809   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
13810   {
13811     try {
13812       result = (Prelude::IDMEFTime *)new Prelude::IDMEFTime((Prelude::IDMEFTime const &)*arg1);
13813       DATA_PTR(self) = result;
13814     } catch(Prelude::PreludeError &e) {
13815       if ( e.getCode() == PRELUDE_ERROR_EOF )
13816       rb_raise(rb_eEOFError, "%s", e.what());
13817       else
13818       SWIG_exception(SWIG_RuntimeError, e.what());
13819 
13820       SWIG_fail;
13821     }
13822   }
13823   return self;
13824 fail:
13825   return Qnil;
13826 }
13827 
13828 
13829 SWIGINTERN VALUE _wrap_new_IDMEFTime(int nargs, VALUE *args, VALUE self) {
13830   int argc;
13831   VALUE argv[1];
13832   int ii;
13833 
13834   argc = nargs;
13835   if (argc > 1) SWIG_fail;
13836   for (ii = 0; (ii < argc); ++ii) {
13837     argv[ii] = args[ii];
13838   }
13839   if (argc == 0) {
13840     return _wrap_new_IDMEFTime__SWIG_0(nargs, args, self);
13841   }
13842   if (argc == 1) {
13843     int _v;
13844     void *vptr = 0;
13845     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_idmef_time_t, 0);
13846     _v = SWIG_CheckState(res);
13847     if (_v) {
13848       return _wrap_new_IDMEFTime__SWIG_1(nargs, args, self);
13849     }
13850   }
13851   if (argc == 1) {
13852     int _v;
13853     void *vptr = 0;
13854     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_timeval, 0);
13855     _v = SWIG_CheckState(res);
13856     if (_v) {
13857       return _wrap_new_IDMEFTime__SWIG_4(nargs, args, self);
13858     }
13859   }
13860   if (argc == 1) {
13861     int _v;
13862     void *vptr = 0;
13863     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
13864     _v = SWIG_CheckState(res);
13865     if (_v) {
13866       return _wrap_new_IDMEFTime__SWIG_5(nargs, args, self);
13867     }
13868   }
13869   if (argc == 1) {
13870     int _v;
13871     {
13872       int res = SWIG_AsVal_long_SS_long(argv[0], NULL);
13873       _v = SWIG_CheckState(res);
13874     }
13875     if (_v) {
13876       return _wrap_new_IDMEFTime__SWIG_2(nargs, args, self);
13877     }
13878   }
13879   if (argc == 1) {
13880     int _v;
13881     int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
13882     _v = SWIG_CheckState(res);
13883     if (_v) {
13884       return _wrap_new_IDMEFTime__SWIG_3(nargs, args, self);
13885     }
13886   }
13887 
13888 fail:
13889   Ruby_Format_OverloadedError( argc, 1, "IDMEFTime.new",
13890     "    IDMEFTime.new()\n"
13891     "    IDMEFTime.new(idmef_time_t *time)\n"
13892     "    IDMEFTime.new(time_t const time)\n"
13893     "    IDMEFTime.new(char const *string)\n"
13894     "    IDMEFTime.new(timeval const *tv)\n"
13895     "    IDMEFTime.new(Prelude::IDMEFTime const &value)\n");
13896 
13897   return Qnil;
13898 }
13899 
13900 
13901 SWIGINTERN void
13902 free_Prelude_IDMEFTime(Prelude::IDMEFTime *arg1) {
13903     delete arg1;
13904 }
13905 
13906 SWIGINTERN VALUE
13907 _wrap_IDMEFTime_set__SWIG_0(int argc, VALUE *argv, VALUE self) {
13908   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
13909   void *argp1 = 0 ;
13910   int res1 = 0 ;
13911 
13912   if ((argc < 0) || (argc > 0)) {
13913     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
13914   }
13915   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
13916   if (!SWIG_IsOK(res1)) {
13917     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime *","set", 1, self ));
13918   }
13919   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
13920   {
13921     try {
13922       (arg1)->set();
13923     } catch(Prelude::PreludeError &e) {
13924       if ( e.getCode() == PRELUDE_ERROR_EOF )
13925       rb_raise(rb_eEOFError, "%s", e.what());
13926       else
13927       SWIG_exception(SWIG_RuntimeError, e.what());
13928 
13929       SWIG_fail;
13930     }
13931   }
13932   return Qnil;
13933 fail:
13934   return Qnil;
13935 }
13936 
13937 
13938 SWIGINTERN VALUE
13939 _wrap_IDMEFTime_set__SWIG_1(int argc, VALUE *argv, VALUE self) {
13940   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
13941   time_t *arg2 = (time_t *) 0 ;
13942   void *argp1 = 0 ;
13943   int res1 = 0 ;
13944   void *argp2 = 0 ;
13945   int res2 = 0 ;
13946 
13947   if ((argc < 1) || (argc > 1)) {
13948     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13949   }
13950   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
13951   if (!SWIG_IsOK(res1)) {
13952     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime *","set", 1, self ));
13953   }
13954   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
13955   res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_long_long, 0 |  0 );
13956   if (!SWIG_IsOK(res2)) {
13957     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "time_t const *","set", 2, argv[0] ));
13958   }
13959   arg2 = reinterpret_cast< time_t * >(argp2);
13960   {
13961     try {
13962       (arg1)->set((time_t const *)arg2);
13963     } catch(Prelude::PreludeError &e) {
13964       if ( e.getCode() == PRELUDE_ERROR_EOF )
13965       rb_raise(rb_eEOFError, "%s", e.what());
13966       else
13967       SWIG_exception(SWIG_RuntimeError, e.what());
13968 
13969       SWIG_fail;
13970     }
13971   }
13972   return Qnil;
13973 fail:
13974   return Qnil;
13975 }
13976 
13977 
13978 SWIGINTERN VALUE
13979 _wrap_IDMEFTime_set__SWIG_2(int argc, VALUE *argv, VALUE self) {
13980   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
13981   char *arg2 = (char *) 0 ;
13982   void *argp1 = 0 ;
13983   int res1 = 0 ;
13984   int res2 ;
13985   char *buf2 = 0 ;
13986   int alloc2 = 0 ;
13987 
13988   if ((argc < 1) || (argc > 1)) {
13989     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
13990   }
13991   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
13992   if (!SWIG_IsOK(res1)) {
13993     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime *","set", 1, self ));
13994   }
13995   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
13996   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
13997   if (!SWIG_IsOK(res2)) {
13998     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
13999   }
14000   arg2 = reinterpret_cast< char * >(buf2);
14001   {
14002     try {
14003       (arg1)->set((char const *)arg2);
14004     } catch(Prelude::PreludeError &e) {
14005       if ( e.getCode() == PRELUDE_ERROR_EOF )
14006       rb_raise(rb_eEOFError, "%s", e.what());
14007       else
14008       SWIG_exception(SWIG_RuntimeError, e.what());
14009 
14010       SWIG_fail;
14011     }
14012   }
14013   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
14014   return Qnil;
14015 fail:
14016   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
14017   return Qnil;
14018 }
14019 
14020 
14021 SWIGINTERN VALUE
14022 _wrap_IDMEFTime_set__SWIG_3(int argc, VALUE *argv, VALUE self) {
14023   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14024   timeval *arg2 = (timeval *) 0 ;
14025   void *argp1 = 0 ;
14026   int res1 = 0 ;
14027   void *argp2 = 0 ;
14028   int res2 = 0 ;
14029 
14030   if ((argc < 1) || (argc > 1)) {
14031     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14032   }
14033   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14034   if (!SWIG_IsOK(res1)) {
14035     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime *","set", 1, self ));
14036   }
14037   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14038   res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_timeval, 0 |  0 );
14039   if (!SWIG_IsOK(res2)) {
14040     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "timeval const *","set", 2, argv[0] ));
14041   }
14042   arg2 = reinterpret_cast< timeval * >(argp2);
14043   {
14044     try {
14045       (arg1)->set((timeval const *)arg2);
14046     } catch(Prelude::PreludeError &e) {
14047       if ( e.getCode() == PRELUDE_ERROR_EOF )
14048       rb_raise(rb_eEOFError, "%s", e.what());
14049       else
14050       SWIG_exception(SWIG_RuntimeError, e.what());
14051 
14052       SWIG_fail;
14053     }
14054   }
14055   return Qnil;
14056 fail:
14057   return Qnil;
14058 }
14059 
14060 
14061 SWIGINTERN VALUE _wrap_IDMEFTime_set(int nargs, VALUE *args, VALUE self) {
14062   int argc;
14063   VALUE argv[3];
14064   int ii;
14065 
14066   argc = nargs + 1;
14067   argv[0] = self;
14068   if (argc > 3) SWIG_fail;
14069   for (ii = 1; (ii < argc); ++ii) {
14070     argv[ii] = args[ii-1];
14071   }
14072   if (argc == 1) {
14073     int _v;
14074     void *vptr = 0;
14075     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
14076     _v = SWIG_CheckState(res);
14077     if (_v) {
14078       return _wrap_IDMEFTime_set__SWIG_0(nargs, args, self);
14079     }
14080   }
14081   if (argc == 2) {
14082     int _v;
14083     void *vptr = 0;
14084     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
14085     _v = SWIG_CheckState(res);
14086     if (_v) {
14087       void *vptr = 0;
14088       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_long_long, 0);
14089       _v = SWIG_CheckState(res);
14090       if (_v) {
14091         return _wrap_IDMEFTime_set__SWIG_1(nargs, args, self);
14092       }
14093     }
14094   }
14095   if (argc == 2) {
14096     int _v;
14097     void *vptr = 0;
14098     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
14099     _v = SWIG_CheckState(res);
14100     if (_v) {
14101       void *vptr = 0;
14102       int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_timeval, 0);
14103       _v = SWIG_CheckState(res);
14104       if (_v) {
14105         return _wrap_IDMEFTime_set__SWIG_3(nargs, args, self);
14106       }
14107     }
14108   }
14109   if (argc == 2) {
14110     int _v;
14111     void *vptr = 0;
14112     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
14113     _v = SWIG_CheckState(res);
14114     if (_v) {
14115       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
14116       _v = SWIG_CheckState(res);
14117       if (_v) {
14118         return _wrap_IDMEFTime_set__SWIG_2(nargs, args, self);
14119       }
14120     }
14121   }
14122 
14123 fail:
14124   Ruby_Format_OverloadedError( argc, 3, "IDMEFTime.set",
14125     "    void IDMEFTime.set()\n"
14126     "    void IDMEFTime.set(time_t const *time)\n"
14127     "    void IDMEFTime.set(char const *string)\n"
14128     "    void IDMEFTime.set(timeval const *tv)\n");
14129 
14130   return Qnil;
14131 }
14132 
14133 
14134 SWIGINTERN VALUE
14135 _wrap_IDMEFTime_setSec(int argc, VALUE *argv, VALUE self) {
14136   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14137   uint32_t arg2 ;
14138   void *argp1 = 0 ;
14139   int res1 = 0 ;
14140   unsigned int val2 ;
14141   int ecode2 = 0 ;
14142 
14143   if ((argc < 1) || (argc > 1)) {
14144     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14145   }
14146   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14147   if (!SWIG_IsOK(res1)) {
14148     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime *","setSec", 1, self ));
14149   }
14150   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14151   ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
14152   if (!SWIG_IsOK(ecode2)) {
14153     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","setSec", 2, argv[0] ));
14154   }
14155   arg2 = static_cast< uint32_t >(val2);
14156   {
14157     try {
14158       (arg1)->setSec(arg2);
14159     } catch(Prelude::PreludeError &e) {
14160       if ( e.getCode() == PRELUDE_ERROR_EOF )
14161       rb_raise(rb_eEOFError, "%s", e.what());
14162       else
14163       SWIG_exception(SWIG_RuntimeError, e.what());
14164 
14165       SWIG_fail;
14166     }
14167   }
14168   return Qnil;
14169 fail:
14170   return Qnil;
14171 }
14172 
14173 
14174 SWIGINTERN VALUE
14175 _wrap_IDMEFTime_setUSec(int argc, VALUE *argv, VALUE self) {
14176   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14177   uint32_t arg2 ;
14178   void *argp1 = 0 ;
14179   int res1 = 0 ;
14180   unsigned int val2 ;
14181   int ecode2 = 0 ;
14182 
14183   if ((argc < 1) || (argc > 1)) {
14184     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14185   }
14186   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14187   if (!SWIG_IsOK(res1)) {
14188     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime *","setUSec", 1, self ));
14189   }
14190   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14191   ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
14192   if (!SWIG_IsOK(ecode2)) {
14193     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","setUSec", 2, argv[0] ));
14194   }
14195   arg2 = static_cast< uint32_t >(val2);
14196   {
14197     try {
14198       (arg1)->setUSec(arg2);
14199     } catch(Prelude::PreludeError &e) {
14200       if ( e.getCode() == PRELUDE_ERROR_EOF )
14201       rb_raise(rb_eEOFError, "%s", e.what());
14202       else
14203       SWIG_exception(SWIG_RuntimeError, e.what());
14204 
14205       SWIG_fail;
14206     }
14207   }
14208   return Qnil;
14209 fail:
14210   return Qnil;
14211 }
14212 
14213 
14214 SWIGINTERN VALUE
14215 _wrap_IDMEFTime_setGmtOffset(int argc, VALUE *argv, VALUE self) {
14216   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14217   int32_t arg2 ;
14218   void *argp1 = 0 ;
14219   int res1 = 0 ;
14220   int val2 ;
14221   int ecode2 = 0 ;
14222 
14223   if ((argc < 1) || (argc > 1)) {
14224     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14225   }
14226   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14227   if (!SWIG_IsOK(res1)) {
14228     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime *","setGmtOffset", 1, self ));
14229   }
14230   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14231   ecode2 = SWIG_AsVal_int(argv[0], &val2);
14232   if (!SWIG_IsOK(ecode2)) {
14233     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int32_t","setGmtOffset", 2, argv[0] ));
14234   }
14235   arg2 = static_cast< int32_t >(val2);
14236   {
14237     try {
14238       (arg1)->setGmtOffset(arg2);
14239     } catch(Prelude::PreludeError &e) {
14240       if ( e.getCode() == PRELUDE_ERROR_EOF )
14241       rb_raise(rb_eEOFError, "%s", e.what());
14242       else
14243       SWIG_exception(SWIG_RuntimeError, e.what());
14244 
14245       SWIG_fail;
14246     }
14247   }
14248   return Qnil;
14249 fail:
14250   return Qnil;
14251 }
14252 
14253 
14254 SWIGINTERN VALUE
14255 _wrap_IDMEFTime_getSec(int argc, VALUE *argv, VALUE self) {
14256   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14257   void *argp1 = 0 ;
14258   int res1 = 0 ;
14259   uint32_t result;
14260   VALUE vresult = Qnil;
14261 
14262   if ((argc < 0) || (argc > 0)) {
14263     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14264   }
14265   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14266   if (!SWIG_IsOK(res1)) {
14267     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","getSec", 1, self ));
14268   }
14269   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14270   {
14271     try {
14272       result = (uint32_t)((Prelude::IDMEFTime const *)arg1)->getSec();
14273     } catch(Prelude::PreludeError &e) {
14274       if ( e.getCode() == PRELUDE_ERROR_EOF )
14275       rb_raise(rb_eEOFError, "%s", e.what());
14276       else
14277       SWIG_exception(SWIG_RuntimeError, e.what());
14278 
14279       SWIG_fail;
14280     }
14281   }
14282   vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
14283   return vresult;
14284 fail:
14285   return Qnil;
14286 }
14287 
14288 
14289 SWIGINTERN VALUE
14290 _wrap_IDMEFTime_getUSec(int argc, VALUE *argv, VALUE self) {
14291   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14292   void *argp1 = 0 ;
14293   int res1 = 0 ;
14294   uint32_t result;
14295   VALUE vresult = Qnil;
14296 
14297   if ((argc < 0) || (argc > 0)) {
14298     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14299   }
14300   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14301   if (!SWIG_IsOK(res1)) {
14302     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","getUSec", 1, self ));
14303   }
14304   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14305   {
14306     try {
14307       result = (uint32_t)((Prelude::IDMEFTime const *)arg1)->getUSec();
14308     } catch(Prelude::PreludeError &e) {
14309       if ( e.getCode() == PRELUDE_ERROR_EOF )
14310       rb_raise(rb_eEOFError, "%s", e.what());
14311       else
14312       SWIG_exception(SWIG_RuntimeError, e.what());
14313 
14314       SWIG_fail;
14315     }
14316   }
14317   vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
14318   return vresult;
14319 fail:
14320   return Qnil;
14321 }
14322 
14323 
14324 SWIGINTERN VALUE
14325 _wrap_IDMEFTime_getGmtOffset(int argc, VALUE *argv, VALUE self) {
14326   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14327   void *argp1 = 0 ;
14328   int res1 = 0 ;
14329   int32_t result;
14330   VALUE vresult = Qnil;
14331 
14332   if ((argc < 0) || (argc > 0)) {
14333     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14334   }
14335   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14336   if (!SWIG_IsOK(res1)) {
14337     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","getGmtOffset", 1, self ));
14338   }
14339   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14340   {
14341     try {
14342       result = (int32_t)((Prelude::IDMEFTime const *)arg1)->getGmtOffset();
14343     } catch(Prelude::PreludeError &e) {
14344       if ( e.getCode() == PRELUDE_ERROR_EOF )
14345       rb_raise(rb_eEOFError, "%s", e.what());
14346       else
14347       SWIG_exception(SWIG_RuntimeError, e.what());
14348 
14349       SWIG_fail;
14350     }
14351   }
14352   vresult = SWIG_From_int(static_cast< int >(result));
14353   return vresult;
14354 fail:
14355   return Qnil;
14356 }
14357 
14358 
14359 SWIGINTERN VALUE
14360 _wrap_IDMEFTime_getTime(int argc, VALUE *argv, VALUE self) {
14361   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14362   void *argp1 = 0 ;
14363   int res1 = 0 ;
14364   double result;
14365   VALUE vresult = Qnil;
14366 
14367   if ((argc < 0) || (argc > 0)) {
14368     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14369   }
14370   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14371   if (!SWIG_IsOK(res1)) {
14372     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","getTime", 1, self ));
14373   }
14374   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14375   {
14376     try {
14377       result = (double)((Prelude::IDMEFTime const *)arg1)->getTime();
14378     } catch(Prelude::PreludeError &e) {
14379       if ( e.getCode() == PRELUDE_ERROR_EOF )
14380       rb_raise(rb_eEOFError, "%s", e.what());
14381       else
14382       SWIG_exception(SWIG_RuntimeError, e.what());
14383 
14384       SWIG_fail;
14385     }
14386   }
14387   vresult = SWIG_From_double(static_cast< double >(result));
14388   return vresult;
14389 fail:
14390   return Qnil;
14391 }
14392 
14393 
14394 
14395 /*
14396   Document-method: Prelude::IDMEFTime.clone
14397 
14398   call-seq:
14399     clone -> IDMEFTime
14400 
14401 Create a duplicate of the class.
14402 */
14403 SWIGINTERN VALUE
14404 _wrap_IDMEFTime_clone(int argc, VALUE *argv, VALUE self) {
14405   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14406   void *argp1 = 0 ;
14407   int res1 = 0 ;
14408   Prelude::IDMEFTime result;
14409   VALUE vresult = Qnil;
14410 
14411   if ((argc < 0) || (argc > 0)) {
14412     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14413   }
14414   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14415   if (!SWIG_IsOK(res1)) {
14416     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","clone", 1, self ));
14417   }
14418   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14419   {
14420     try {
14421       result = ((Prelude::IDMEFTime const *)arg1)->clone();
14422     } catch(Prelude::PreludeError &e) {
14423       if ( e.getCode() == PRELUDE_ERROR_EOF )
14424       rb_raise(rb_eEOFError, "%s", e.what());
14425       else
14426       SWIG_exception(SWIG_RuntimeError, e.what());
14427 
14428       SWIG_fail;
14429     }
14430   }
14431   vresult = SWIG_NewPointerObj((new Prelude::IDMEFTime(static_cast< const Prelude::IDMEFTime& >(result))), SWIGTYPE_p_Prelude__IDMEFTime, SWIG_POINTER_OWN |  0 );
14432   return vresult;
14433 fail:
14434   return Qnil;
14435 }
14436 
14437 
14438 SWIGINTERN VALUE
14439 _wrap_IDMEFTime_toString(int argc, VALUE *argv, VALUE self) {
14440   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14441   void *argp1 = 0 ;
14442   int res1 = 0 ;
14443   std::string result;
14444   VALUE vresult = Qnil;
14445 
14446   if ((argc < 0) || (argc > 0)) {
14447     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14448   }
14449   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14450   if (!SWIG_IsOK(res1)) {
14451     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","toString", 1, self ));
14452   }
14453   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14454   {
14455     try {
14456       result = ((Prelude::IDMEFTime const *)arg1)->toString();
14457     } catch(Prelude::PreludeError &e) {
14458       if ( e.getCode() == PRELUDE_ERROR_EOF )
14459       rb_raise(rb_eEOFError, "%s", e.what());
14460       else
14461       SWIG_exception(SWIG_RuntimeError, e.what());
14462 
14463       SWIG_fail;
14464     }
14465   }
14466   vresult = SWIG_From_std_string(static_cast< std::string >(result));
14467   return vresult;
14468 fail:
14469   return Qnil;
14470 }
14471 
14472 
14473 SWIGINTERN VALUE
14474 _wrap_IDMEFTime___int__(int argc, VALUE *argv, VALUE self) {
14475   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14476   void *argp1 = 0 ;
14477   int res1 = 0 ;
14478   int result;
14479   VALUE vresult = Qnil;
14480 
14481   if ((argc < 0) || (argc > 0)) {
14482     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14483   }
14484   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14485   if (!SWIG_IsOK(res1)) {
14486     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator int", 1, self ));
14487   }
14488   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14489   {
14490     try {
14491       result = (int)((Prelude::IDMEFTime const *)arg1)->operator int();
14492     } catch(Prelude::PreludeError &e) {
14493       if ( e.getCode() == PRELUDE_ERROR_EOF )
14494       rb_raise(rb_eEOFError, "%s", e.what());
14495       else
14496       SWIG_exception(SWIG_RuntimeError, e.what());
14497 
14498       SWIG_fail;
14499     }
14500   }
14501   vresult = SWIG_From_int(static_cast< int >(result));
14502   return vresult;
14503 fail:
14504   return Qnil;
14505 }
14506 
14507 
14508 SWIGINTERN VALUE
14509 _wrap_IDMEFTime___long__(int argc, VALUE *argv, VALUE self) {
14510   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14511   void *argp1 = 0 ;
14512   int res1 = 0 ;
14513   long result;
14514   VALUE vresult = Qnil;
14515 
14516   if ((argc < 0) || (argc > 0)) {
14517     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14518   }
14519   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14520   if (!SWIG_IsOK(res1)) {
14521     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator long", 1, self ));
14522   }
14523   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14524   {
14525     try {
14526       result = (long)((Prelude::IDMEFTime const *)arg1)->operator long();
14527     } catch(Prelude::PreludeError &e) {
14528       if ( e.getCode() == PRELUDE_ERROR_EOF )
14529       rb_raise(rb_eEOFError, "%s", e.what());
14530       else
14531       SWIG_exception(SWIG_RuntimeError, e.what());
14532 
14533       SWIG_fail;
14534     }
14535   }
14536   vresult = SWIG_From_long(static_cast< long >(result));
14537   return vresult;
14538 fail:
14539   return Qnil;
14540 }
14541 
14542 
14543 SWIGINTERN VALUE
14544 _wrap_IDMEFTime___float__(int argc, VALUE *argv, VALUE self) {
14545   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14546   void *argp1 = 0 ;
14547   int res1 = 0 ;
14548   double result;
14549   VALUE vresult = Qnil;
14550 
14551   if ((argc < 0) || (argc > 0)) {
14552     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14553   }
14554   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14555   if (!SWIG_IsOK(res1)) {
14556     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator double", 1, self ));
14557   }
14558   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14559   {
14560     try {
14561       result = (double)((Prelude::IDMEFTime const *)arg1)->operator double();
14562     } catch(Prelude::PreludeError &e) {
14563       if ( e.getCode() == PRELUDE_ERROR_EOF )
14564       rb_raise(rb_eEOFError, "%s", e.what());
14565       else
14566       SWIG_exception(SWIG_RuntimeError, e.what());
14567 
14568       SWIG_fail;
14569     }
14570   }
14571   vresult = SWIG_From_double(static_cast< double >(result));
14572   return vresult;
14573 fail:
14574   return Qnil;
14575 }
14576 
14577 
14578 SWIGINTERN VALUE
14579 _wrap_IDMEFTime___str__(int argc, VALUE *argv, VALUE self) {
14580   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14581   void *argp1 = 0 ;
14582   int res1 = 0 ;
14583   std::string result;
14584   VALUE vresult = Qnil;
14585 
14586   if ((argc < 0) || (argc > 0)) {
14587     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14588   }
14589   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14590   if (!SWIG_IsOK(res1)) {
14591     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator const std::string", 1, self ));
14592   }
14593   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14594   {
14595     try {
14596       result = ((Prelude::IDMEFTime const *)arg1)->operator const std::string();
14597     } catch(Prelude::PreludeError &e) {
14598       if ( e.getCode() == PRELUDE_ERROR_EOF )
14599       rb_raise(rb_eEOFError, "%s", e.what());
14600       else
14601       SWIG_exception(SWIG_RuntimeError, e.what());
14602 
14603       SWIG_fail;
14604     }
14605   }
14606   vresult = SWIG_From_std_string(static_cast< std::string >(result));
14607   return vresult;
14608 fail:
14609   return Qnil;
14610 }
14611 
14612 
14613 
14614 /*
14615   Document-method: Prelude::IDMEFTime.>=
14616 
14617   call-seq:
14618     >=(time) -> bool
14619 
14620 Higher or equal comparison operator.
14621 */
14622 SWIGINTERN VALUE
14623 _wrap_IDMEFTime___ge__(int argc, VALUE *argv, VALUE self) {
14624   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14625   Prelude::IDMEFTime *arg2 = 0 ;
14626   void *argp1 = 0 ;
14627   int res1 = 0 ;
14628   void *argp2 ;
14629   int res2 = 0 ;
14630   bool result;
14631   VALUE vresult = Qnil;
14632 
14633   if ((argc < 1) || (argc > 1)) {
14634     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14635   }
14636   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14637   if (!SWIG_IsOK(res1)) {
14638     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator >=", 1, self ));
14639   }
14640   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14641   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
14642   if (!SWIG_IsOK(res2)) {
14643     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const &","operator >=", 2, argv[0] ));
14644   }
14645   if (!argp2) {
14646     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime const &","operator >=", 2, argv[0]));
14647   }
14648   arg2 = reinterpret_cast< Prelude::IDMEFTime * >(argp2);
14649   {
14650     try {
14651       result = (bool)((Prelude::IDMEFTime const *)arg1)->operator >=((Prelude::IDMEFTime const &)*arg2);
14652     } catch(Prelude::PreludeError &e) {
14653       if ( e.getCode() == PRELUDE_ERROR_EOF )
14654       rb_raise(rb_eEOFError, "%s", e.what());
14655       else
14656       SWIG_exception(SWIG_RuntimeError, e.what());
14657 
14658       SWIG_fail;
14659     }
14660   }
14661   vresult = SWIG_From_bool(static_cast< bool >(result));
14662   return vresult;
14663 fail:
14664   return Qnil;
14665 }
14666 
14667 
14668 
14669 /*
14670   Document-method: Prelude::IDMEFTime.<=
14671 
14672   call-seq:
14673     <=(time) -> bool
14674 
14675 Lower or equal comparison operator.
14676 */
14677 SWIGINTERN VALUE
14678 _wrap_IDMEFTime___le__(int argc, VALUE *argv, VALUE self) {
14679   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14680   Prelude::IDMEFTime *arg2 = 0 ;
14681   void *argp1 = 0 ;
14682   int res1 = 0 ;
14683   void *argp2 ;
14684   int res2 = 0 ;
14685   bool result;
14686   VALUE vresult = Qnil;
14687 
14688   if ((argc < 1) || (argc > 1)) {
14689     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14690   }
14691   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14692   if (!SWIG_IsOK(res1)) {
14693     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator <=", 1, self ));
14694   }
14695   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14696   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
14697   if (!SWIG_IsOK(res2)) {
14698     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const &","operator <=", 2, argv[0] ));
14699   }
14700   if (!argp2) {
14701     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime const &","operator <=", 2, argv[0]));
14702   }
14703   arg2 = reinterpret_cast< Prelude::IDMEFTime * >(argp2);
14704   {
14705     try {
14706       result = (bool)((Prelude::IDMEFTime const *)arg1)->operator <=((Prelude::IDMEFTime const &)*arg2);
14707     } catch(Prelude::PreludeError &e) {
14708       if ( e.getCode() == PRELUDE_ERROR_EOF )
14709       rb_raise(rb_eEOFError, "%s", e.what());
14710       else
14711       SWIG_exception(SWIG_RuntimeError, e.what());
14712 
14713       SWIG_fail;
14714     }
14715   }
14716   vresult = SWIG_From_bool(static_cast< bool >(result));
14717   return vresult;
14718 fail:
14719   return Qnil;
14720 }
14721 
14722 
14723 
14724 /*
14725   Document-method: Prelude::IDMEFTime.==
14726 
14727   call-seq:
14728     ==(time) -> bool
14729 
14730 Equality comparison operator.
14731 */
14732 SWIGINTERN VALUE
14733 _wrap_IDMEFTime___eq__(int argc, VALUE *argv, VALUE self) {
14734   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14735   Prelude::IDMEFTime *arg2 = 0 ;
14736   void *argp1 = 0 ;
14737   int res1 = 0 ;
14738   void *argp2 ;
14739   int res2 = 0 ;
14740   bool result;
14741   VALUE vresult = Qnil;
14742 
14743   if ((argc < 1) || (argc > 1)) {
14744     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14745   }
14746   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14747   if (!SWIG_IsOK(res1)) {
14748     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator ==", 1, self ));
14749   }
14750   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14751   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
14752   if (!SWIG_IsOK(res2)) {
14753     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const &","operator ==", 2, argv[0] ));
14754   }
14755   if (!argp2) {
14756     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime const &","operator ==", 2, argv[0]));
14757   }
14758   arg2 = reinterpret_cast< Prelude::IDMEFTime * >(argp2);
14759   {
14760     try {
14761       result = (bool)((Prelude::IDMEFTime const *)arg1)->operator ==((Prelude::IDMEFTime const &)*arg2);
14762     } catch(Prelude::PreludeError &e) {
14763       if ( e.getCode() == PRELUDE_ERROR_EOF )
14764       rb_raise(rb_eEOFError, "%s", e.what());
14765       else
14766       SWIG_exception(SWIG_RuntimeError, e.what());
14767 
14768       SWIG_fail;
14769     }
14770   }
14771   vresult = SWIG_From_bool(static_cast< bool >(result));
14772   return vresult;
14773 fail:
14774   return Qnil;
14775 }
14776 
14777 
14778 
14779 /*
14780   Document-method: Prelude::IDMEFTime.>
14781 
14782   call-seq:
14783     >(time) -> bool
14784 
14785 Higher than comparison operator.
14786 */
14787 SWIGINTERN VALUE
14788 _wrap_IDMEFTime___gt__(int argc, VALUE *argv, VALUE self) {
14789   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14790   Prelude::IDMEFTime *arg2 = 0 ;
14791   void *argp1 = 0 ;
14792   int res1 = 0 ;
14793   void *argp2 ;
14794   int res2 = 0 ;
14795   bool result;
14796   VALUE vresult = Qnil;
14797 
14798   if ((argc < 1) || (argc > 1)) {
14799     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14800   }
14801   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14802   if (!SWIG_IsOK(res1)) {
14803     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator >", 1, self ));
14804   }
14805   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14806   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
14807   if (!SWIG_IsOK(res2)) {
14808     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const &","operator >", 2, argv[0] ));
14809   }
14810   if (!argp2) {
14811     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime const &","operator >", 2, argv[0]));
14812   }
14813   arg2 = reinterpret_cast< Prelude::IDMEFTime * >(argp2);
14814   {
14815     try {
14816       result = (bool)((Prelude::IDMEFTime const *)arg1)->operator >((Prelude::IDMEFTime const &)*arg2);
14817     } catch(Prelude::PreludeError &e) {
14818       if ( e.getCode() == PRELUDE_ERROR_EOF )
14819       rb_raise(rb_eEOFError, "%s", e.what());
14820       else
14821       SWIG_exception(SWIG_RuntimeError, e.what());
14822 
14823       SWIG_fail;
14824     }
14825   }
14826   vresult = SWIG_From_bool(static_cast< bool >(result));
14827   return vresult;
14828 fail:
14829   return Qnil;
14830 }
14831 
14832 
14833 
14834 /*
14835   Document-method: Prelude::IDMEFTime.<
14836 
14837   call-seq:
14838     <(time) -> bool
14839 
14840 Lower than comparison operator.
14841 */
14842 SWIGINTERN VALUE
14843 _wrap_IDMEFTime___lt__(int argc, VALUE *argv, VALUE self) {
14844   Prelude::IDMEFTime *arg1 = (Prelude::IDMEFTime *) 0 ;
14845   Prelude::IDMEFTime *arg2 = 0 ;
14846   void *argp1 = 0 ;
14847   int res1 = 0 ;
14848   void *argp2 ;
14849   int res2 = 0 ;
14850   bool result;
14851   VALUE vresult = Qnil;
14852 
14853   if ((argc < 1) || (argc > 1)) {
14854     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14855   }
14856   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFTime, 0 |  0 );
14857   if (!SWIG_IsOK(res1)) {
14858     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const *","operator <", 1, self ));
14859   }
14860   arg1 = reinterpret_cast< Prelude::IDMEFTime * >(argp1);
14861   res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
14862   if (!SWIG_IsOK(res2)) {
14863     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEFTime const &","operator <", 2, argv[0] ));
14864   }
14865   if (!argp2) {
14866     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime const &","operator <", 2, argv[0]));
14867   }
14868   arg2 = reinterpret_cast< Prelude::IDMEFTime * >(argp2);
14869   {
14870     try {
14871       result = (bool)((Prelude::IDMEFTime const *)arg1)->operator <((Prelude::IDMEFTime const &)*arg2);
14872     } catch(Prelude::PreludeError &e) {
14873       if ( e.getCode() == PRELUDE_ERROR_EOF )
14874       rb_raise(rb_eEOFError, "%s", e.what());
14875       else
14876       SWIG_exception(SWIG_RuntimeError, e.what());
14877 
14878       SWIG_fail;
14879     }
14880   }
14881   vresult = SWIG_From_bool(static_cast< bool >(result));
14882   return vresult;
14883 fail:
14884   return Qnil;
14885 }
14886 
14887 
14888 static swig_class SwigClassIDMEFClass;
14889 
14890 SWIGINTERN VALUE
14891 _wrap_new_IDMEFClass__SWIG_0(int argc, VALUE *argv, VALUE self) {
14892   idmef_class_id_t arg1 ;
14893   int val1 ;
14894   int ecode1 = 0 ;
14895   Prelude::IDMEFClass *result = 0 ;
14896 
14897   if ((argc < 1) || (argc > 1)) {
14898     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14899   }
14900   ecode1 = SWIG_AsVal_int(argv[0], &val1);
14901   if (!SWIG_IsOK(ecode1)) {
14902     SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "idmef_class_id_t","IDMEFClass", 1, argv[0] ));
14903   }
14904   arg1 = static_cast< idmef_class_id_t >(val1);
14905   {
14906     try {
14907       result = (Prelude::IDMEFClass *)new Prelude::IDMEFClass(arg1);
14908       DATA_PTR(self) = result;
14909     } catch(Prelude::PreludeError &e) {
14910       if ( e.getCode() == PRELUDE_ERROR_EOF )
14911       rb_raise(rb_eEOFError, "%s", e.what());
14912       else
14913       SWIG_exception(SWIG_RuntimeError, e.what());
14914 
14915       SWIG_fail;
14916     }
14917   }
14918   return self;
14919 fail:
14920   return Qnil;
14921 }
14922 
14923 
14924 SWIGINTERN VALUE
14925 _wrap_new_IDMEFClass__SWIG_1(int argc, VALUE *argv, VALUE self) {
14926   Prelude::IDMEFClass *result = 0 ;
14927 
14928   if ((argc < 0) || (argc > 0)) {
14929     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
14930   }
14931   {
14932     try {
14933       result = (Prelude::IDMEFClass *)new Prelude::IDMEFClass();
14934       DATA_PTR(self) = result;
14935     } catch(Prelude::PreludeError &e) {
14936       if ( e.getCode() == PRELUDE_ERROR_EOF )
14937       rb_raise(rb_eEOFError, "%s", e.what());
14938       else
14939       SWIG_exception(SWIG_RuntimeError, e.what());
14940 
14941       SWIG_fail;
14942     }
14943   }
14944   return self;
14945 fail:
14946   return Qnil;
14947 }
14948 
14949 
14950 SWIGINTERN VALUE
14951 _wrap_new_IDMEFClass__SWIG_2(int argc, VALUE *argv, VALUE self) {
14952   Prelude::IDMEFPath *arg1 = 0 ;
14953   void *argp1 ;
14954   int res1 = 0 ;
14955   Prelude::IDMEFClass *result = 0 ;
14956 
14957   if ((argc < 1) || (argc > 1)) {
14958     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
14959   }
14960   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEFPath,  0 );
14961   if (!SWIG_IsOK(res1)) {
14962     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFPath const &","IDMEFClass", 1, argv[0] ));
14963   }
14964   if (!argp1) {
14965     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFPath const &","IDMEFClass", 1, argv[0]));
14966   }
14967   arg1 = reinterpret_cast< Prelude::IDMEFPath * >(argp1);
14968   {
14969     try {
14970       result = (Prelude::IDMEFClass *)new Prelude::IDMEFClass((Prelude::IDMEFPath const &)*arg1);
14971       DATA_PTR(self) = result;
14972     } catch(Prelude::PreludeError &e) {
14973       if ( e.getCode() == PRELUDE_ERROR_EOF )
14974       rb_raise(rb_eEOFError, "%s", e.what());
14975       else
14976       SWIG_exception(SWIG_RuntimeError, e.what());
14977 
14978       SWIG_fail;
14979     }
14980   }
14981   return self;
14982 fail:
14983   return Qnil;
14984 }
14985 
14986 
14987 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
14988 SWIGINTERN VALUE
14989 _wrap_IDMEFClass_allocate(VALUE self) {
14990 #else
14991   SWIGINTERN VALUE
14992   _wrap_IDMEFClass_allocate(int argc, VALUE *argv, VALUE self) {
14993 #endif
14994 
14995 
14996     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__IDMEFClass);
14997 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
14998     rb_obj_call_init(vresult, argc, argv);
14999 #endif
15000     return vresult;
15001   }
15002 
15003 
15004 SWIGINTERN VALUE
15005 _wrap_new_IDMEFClass__SWIG_3(int argc, VALUE *argv, VALUE self) {
15006   std::string *arg1 = 0 ;
15007   int res1 = SWIG_OLDOBJ ;
15008   Prelude::IDMEFClass *result = 0 ;
15009 
15010   if ((argc < 1) || (argc > 1)) {
15011     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15012   }
15013   {
15014     std::string *ptr = (std::string *)0;
15015     res1 = SWIG_AsPtr_std_string(argv[0], &ptr);
15016     if (!SWIG_IsOK(res1)) {
15017       SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "std::string const &","IDMEFClass", 1, argv[0] ));
15018     }
15019     if (!ptr) {
15020       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","IDMEFClass", 1, argv[0]));
15021     }
15022     arg1 = ptr;
15023   }
15024   {
15025     try {
15026       result = (Prelude::IDMEFClass *)new Prelude::IDMEFClass((std::string const &)*arg1);
15027       DATA_PTR(self) = result;
15028     } catch(Prelude::PreludeError &e) {
15029       if ( e.getCode() == PRELUDE_ERROR_EOF )
15030       rb_raise(rb_eEOFError, "%s", e.what());
15031       else
15032       SWIG_exception(SWIG_RuntimeError, e.what());
15033 
15034       SWIG_fail;
15035     }
15036   }
15037   if (SWIG_IsNewObj(res1)) delete arg1;
15038   return self;
15039 fail:
15040   if (SWIG_IsNewObj(res1)) delete arg1;
15041   return Qnil;
15042 }
15043 
15044 
15045 SWIGINTERN VALUE _wrap_new_IDMEFClass(int nargs, VALUE *args, VALUE self) {
15046   int argc;
15047   VALUE argv[1];
15048   int ii;
15049 
15050   argc = nargs;
15051   if (argc > 1) SWIG_fail;
15052   for (ii = 0; (ii < argc); ++ii) {
15053     argv[ii] = args[ii];
15054   }
15055   if (argc == 0) {
15056     return _wrap_new_IDMEFClass__SWIG_1(nargs, args, self);
15057   }
15058   if (argc == 1) {
15059     int _v;
15060     void *vptr = 0;
15061     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFPath, 0);
15062     _v = SWIG_CheckState(res);
15063     if (_v) {
15064       return _wrap_new_IDMEFClass__SWIG_2(nargs, args, self);
15065     }
15066   }
15067   if (argc == 1) {
15068     int _v;
15069     {
15070       int res = SWIG_AsVal_int(argv[0], NULL);
15071       _v = SWIG_CheckState(res);
15072     }
15073     if (_v) {
15074       return _wrap_new_IDMEFClass__SWIG_0(nargs, args, self);
15075     }
15076   }
15077   if (argc == 1) {
15078     int _v;
15079     int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
15080     _v = SWIG_CheckState(res);
15081     if (_v) {
15082       return _wrap_new_IDMEFClass__SWIG_3(nargs, args, self);
15083     }
15084   }
15085 
15086 fail:
15087   Ruby_Format_OverloadedError( argc, 1, "IDMEFClass.new",
15088     "    IDMEFClass.new(idmef_class_id_t id)\n"
15089     "    IDMEFClass.new()\n"
15090     "    IDMEFClass.new(Prelude::IDMEFPath const &path)\n"
15091     "    IDMEFClass.new(std::string const &path)\n");
15092 
15093   return Qnil;
15094 }
15095 
15096 
15097 SWIGINTERN VALUE
15098 _wrap_IDMEFClass_getDepth(int argc, VALUE *argv, VALUE self) {
15099   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15100   void *argp1 = 0 ;
15101   int res1 = 0 ;
15102   size_t result;
15103   VALUE vresult = Qnil;
15104 
15105   if ((argc < 0) || (argc > 0)) {
15106     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15107   }
15108   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15109   if (!SWIG_IsOK(res1)) {
15110     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","getDepth", 1, self ));
15111   }
15112   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15113   {
15114     try {
15115       result = (arg1)->getDepth();
15116     } catch(Prelude::PreludeError &e) {
15117       if ( e.getCode() == PRELUDE_ERROR_EOF )
15118       rb_raise(rb_eEOFError, "%s", e.what());
15119       else
15120       SWIG_exception(SWIG_RuntimeError, e.what());
15121 
15122       SWIG_fail;
15123     }
15124   }
15125   vresult = SWIG_From_size_t(static_cast< size_t >(result));
15126   return vresult;
15127 fail:
15128   return Qnil;
15129 }
15130 
15131 
15132 SWIGINTERN VALUE
15133 _wrap_IDMEFClass_get__SWIG_0(int argc, VALUE *argv, VALUE self) {
15134   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15135   int arg2 ;
15136   void *argp1 = 0 ;
15137   int res1 = 0 ;
15138   int val2 ;
15139   int ecode2 = 0 ;
15140   Prelude::IDMEFClass result;
15141   VALUE vresult = Qnil;
15142 
15143   if ((argc < 1) || (argc > 1)) {
15144     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15145   }
15146   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15147   if (!SWIG_IsOK(res1)) {
15148     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","get", 1, self ));
15149   }
15150   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15151   ecode2 = SWIG_AsVal_int(argv[0], &val2);
15152   if (!SWIG_IsOK(ecode2)) {
15153     SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","get", 2, argv[0] ));
15154   }
15155   arg2 = static_cast< int >(val2);
15156   {
15157     try {
15158       result = (arg1)->get(arg2);
15159     } catch(Prelude::PreludeError &e) {
15160       if ( e.getCode() == PRELUDE_ERROR_EOF )
15161       rb_raise(rb_eEOFError, "%s", e.what());
15162       else
15163       SWIG_exception(SWIG_RuntimeError, e.what());
15164 
15165       SWIG_fail;
15166     }
15167   }
15168   vresult = SWIG_NewPointerObj((new Prelude::IDMEFClass(static_cast< const Prelude::IDMEFClass& >(result))), SWIGTYPE_p_Prelude__IDMEFClass, SWIG_POINTER_OWN |  0 );
15169   return vresult;
15170 fail:
15171   return Qnil;
15172 }
15173 
15174 
15175 SWIGINTERN VALUE
15176 _wrap_IDMEFClass_get__SWIG_1(int argc, VALUE *argv, VALUE self) {
15177   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15178   std::string *arg2 = 0 ;
15179   void *argp1 = 0 ;
15180   int res1 = 0 ;
15181   int res2 = SWIG_OLDOBJ ;
15182   Prelude::IDMEFClass result;
15183   VALUE vresult = Qnil;
15184 
15185   if ((argc < 1) || (argc > 1)) {
15186     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15187   }
15188   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15189   if (!SWIG_IsOK(res1)) {
15190     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","get", 1, self ));
15191   }
15192   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15193   {
15194     std::string *ptr = (std::string *)0;
15195     res2 = SWIG_AsPtr_std_string(argv[0], &ptr);
15196     if (!SWIG_IsOK(res2)) {
15197       SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "std::string const &","get", 2, argv[0] ));
15198     }
15199     if (!ptr) {
15200       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","get", 2, argv[0]));
15201     }
15202     arg2 = ptr;
15203   }
15204   {
15205     try {
15206       result = (arg1)->get((std::string const &)*arg2);
15207     } catch(Prelude::PreludeError &e) {
15208       if ( e.getCode() == PRELUDE_ERROR_EOF )
15209       rb_raise(rb_eEOFError, "%s", e.what());
15210       else
15211       SWIG_exception(SWIG_RuntimeError, e.what());
15212 
15213       SWIG_fail;
15214     }
15215   }
15216   vresult = SWIG_NewPointerObj((new Prelude::IDMEFClass(static_cast< const Prelude::IDMEFClass& >(result))), SWIGTYPE_p_Prelude__IDMEFClass, SWIG_POINTER_OWN |  0 );
15217   if (SWIG_IsNewObj(res2)) delete arg2;
15218   return vresult;
15219 fail:
15220   if (SWIG_IsNewObj(res2)) delete arg2;
15221   return Qnil;
15222 }
15223 
15224 
15225 SWIGINTERN VALUE _wrap_IDMEFClass_get(int nargs, VALUE *args, VALUE self) {
15226   int argc;
15227   VALUE argv[3];
15228   int ii;
15229 
15230   argc = nargs + 1;
15231   argv[0] = self;
15232   if (argc > 3) SWIG_fail;
15233   for (ii = 1; (ii < argc); ++ii) {
15234     argv[ii] = args[ii-1];
15235   }
15236   if (argc == 2) {
15237     int _v;
15238     void *vptr = 0;
15239     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFClass, 0);
15240     _v = SWIG_CheckState(res);
15241     if (_v) {
15242       {
15243         int res = SWIG_AsVal_int(argv[1], NULL);
15244         _v = SWIG_CheckState(res);
15245       }
15246       if (_v) {
15247         return _wrap_IDMEFClass_get__SWIG_0(nargs, args, self);
15248       }
15249     }
15250   }
15251   if (argc == 2) {
15252     int _v;
15253     void *vptr = 0;
15254     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEFClass, 0);
15255     _v = SWIG_CheckState(res);
15256     if (_v) {
15257       int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
15258       _v = SWIG_CheckState(res);
15259       if (_v) {
15260         return _wrap_IDMEFClass_get__SWIG_1(nargs, args, self);
15261       }
15262     }
15263   }
15264 
15265 fail:
15266   Ruby_Format_OverloadedError( argc, 3, "IDMEFClass.get",
15267     "    Prelude::IDMEFClass IDMEFClass.get(int child)\n"
15268     "    Prelude::IDMEFClass IDMEFClass.get(std::string const &name)\n");
15269 
15270   return Qnil;
15271 }
15272 
15273 
15274 SWIGINTERN VALUE
15275 _wrap_IDMEFClass_getChildCount(int argc, VALUE *argv, VALUE self) {
15276   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15277   void *argp1 = 0 ;
15278   int res1 = 0 ;
15279   size_t result;
15280   VALUE vresult = Qnil;
15281 
15282   if ((argc < 0) || (argc > 0)) {
15283     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15284   }
15285   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15286   if (!SWIG_IsOK(res1)) {
15287     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","getChildCount", 1, self ));
15288   }
15289   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15290   {
15291     try {
15292       result = (arg1)->getChildCount();
15293     } catch(Prelude::PreludeError &e) {
15294       if ( e.getCode() == PRELUDE_ERROR_EOF )
15295       rb_raise(rb_eEOFError, "%s", e.what());
15296       else
15297       SWIG_exception(SWIG_RuntimeError, e.what());
15298 
15299       SWIG_fail;
15300     }
15301   }
15302   vresult = SWIG_From_size_t(static_cast< size_t >(result));
15303   return vresult;
15304 fail:
15305   return Qnil;
15306 }
15307 
15308 
15309 SWIGINTERN VALUE
15310 _wrap_IDMEFClass_isList(int argc, VALUE *argv, VALUE self) {
15311   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15312   void *argp1 = 0 ;
15313   int res1 = 0 ;
15314   bool result;
15315   VALUE vresult = Qnil;
15316 
15317   if ((argc < 0) || (argc > 0)) {
15318     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15319   }
15320   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15321   if (!SWIG_IsOK(res1)) {
15322     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","isList", 1, self ));
15323   }
15324   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15325   {
15326     try {
15327       result = (bool)(arg1)->isList();
15328     } catch(Prelude::PreludeError &e) {
15329       if ( e.getCode() == PRELUDE_ERROR_EOF )
15330       rb_raise(rb_eEOFError, "%s", e.what());
15331       else
15332       SWIG_exception(SWIG_RuntimeError, e.what());
15333 
15334       SWIG_fail;
15335     }
15336   }
15337   vresult = SWIG_From_bool(static_cast< bool >(result));
15338   return vresult;
15339 fail:
15340   return Qnil;
15341 }
15342 
15343 
15344 SWIGINTERN VALUE
15345 _wrap_IDMEFClass_isKeyedList(int argc, VALUE *argv, VALUE self) {
15346   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15347   void *argp1 = 0 ;
15348   int res1 = 0 ;
15349   bool result;
15350   VALUE vresult = Qnil;
15351 
15352   if ((argc < 0) || (argc > 0)) {
15353     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15354   }
15355   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15356   if (!SWIG_IsOK(res1)) {
15357     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","isKeyedList", 1, self ));
15358   }
15359   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15360   {
15361     try {
15362       result = (bool)(arg1)->isKeyedList();
15363     } catch(Prelude::PreludeError &e) {
15364       if ( e.getCode() == PRELUDE_ERROR_EOF )
15365       rb_raise(rb_eEOFError, "%s", e.what());
15366       else
15367       SWIG_exception(SWIG_RuntimeError, e.what());
15368 
15369       SWIG_fail;
15370     }
15371   }
15372   vresult = SWIG_From_bool(static_cast< bool >(result));
15373   return vresult;
15374 fail:
15375   return Qnil;
15376 }
15377 
15378 
15379 SWIGINTERN VALUE
15380 _wrap_IDMEFClass_getName(int argc, VALUE *argv, VALUE self) {
15381   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15382   void *argp1 = 0 ;
15383   int res1 = 0 ;
15384   std::string result;
15385   VALUE vresult = Qnil;
15386 
15387   if ((argc < 0) || (argc > 0)) {
15388     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15389   }
15390   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15391   if (!SWIG_IsOK(res1)) {
15392     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","getName", 1, self ));
15393   }
15394   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15395   {
15396     try {
15397       result = (arg1)->getName();
15398     } catch(Prelude::PreludeError &e) {
15399       if ( e.getCode() == PRELUDE_ERROR_EOF )
15400       rb_raise(rb_eEOFError, "%s", e.what());
15401       else
15402       SWIG_exception(SWIG_RuntimeError, e.what());
15403 
15404       SWIG_fail;
15405     }
15406   }
15407   vresult = SWIG_From_std_string(static_cast< std::string >(result));
15408   return vresult;
15409 fail:
15410   return Qnil;
15411 }
15412 
15413 
15414 SWIGINTERN VALUE
15415 _wrap_IDMEFClass_toString(int argc, VALUE *argv, VALUE self) {
15416   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15417   void *argp1 = 0 ;
15418   int res1 = 0 ;
15419   std::string result;
15420   VALUE vresult = Qnil;
15421 
15422   if ((argc < 0) || (argc > 0)) {
15423     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15424   }
15425   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15426   if (!SWIG_IsOK(res1)) {
15427     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","toString", 1, self ));
15428   }
15429   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15430   {
15431     try {
15432       result = (arg1)->toString();
15433     } catch(Prelude::PreludeError &e) {
15434       if ( e.getCode() == PRELUDE_ERROR_EOF )
15435       rb_raise(rb_eEOFError, "%s", e.what());
15436       else
15437       SWIG_exception(SWIG_RuntimeError, e.what());
15438 
15439       SWIG_fail;
15440     }
15441   }
15442   vresult = SWIG_From_std_string(static_cast< std::string >(result));
15443   return vresult;
15444 fail:
15445   return Qnil;
15446 }
15447 
15448 
15449 SWIGINTERN VALUE
15450 _wrap_IDMEFClass_getValueType(int argc, VALUE *argv, VALUE self) {
15451   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15452   void *argp1 = 0 ;
15453   int res1 = 0 ;
15454   Prelude::IDMEFValue::IDMEFValueTypeEnum result;
15455   VALUE vresult = Qnil;
15456 
15457   if ((argc < 0) || (argc > 0)) {
15458     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15459   }
15460   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15461   if (!SWIG_IsOK(res1)) {
15462     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","getValueType", 1, self ));
15463   }
15464   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15465   {
15466     try {
15467       result = (Prelude::IDMEFValue::IDMEFValueTypeEnum)(arg1)->getValueType();
15468     } catch(Prelude::PreludeError &e) {
15469       if ( e.getCode() == PRELUDE_ERROR_EOF )
15470       rb_raise(rb_eEOFError, "%s", e.what());
15471       else
15472       SWIG_exception(SWIG_RuntimeError, e.what());
15473 
15474       SWIG_fail;
15475     }
15476   }
15477   vresult = SWIG_From_int(static_cast< int >(result));
15478   return vresult;
15479 fail:
15480   return Qnil;
15481 }
15482 
15483 
15484 SWIGINTERN VALUE
15485 _wrap_IDMEFClass_getPath(int argc, VALUE *argv, VALUE self) {
15486   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15487   int arg2 = (int) 0 ;
15488   int arg3 = (int) -1 ;
15489   std::string const &arg4_defvalue = "." ;
15490   std::string *arg4 = (std::string *) &arg4_defvalue ;
15491   std::string const &arg5_defvalue = "" ;
15492   std::string *arg5 = (std::string *) &arg5_defvalue ;
15493   void *argp1 = 0 ;
15494   int res1 = 0 ;
15495   int val2 ;
15496   int ecode2 = 0 ;
15497   int val3 ;
15498   int ecode3 = 0 ;
15499   int res4 = SWIG_OLDOBJ ;
15500   int res5 = SWIG_OLDOBJ ;
15501   const char *kwnames[] = {
15502     "self","rootidx","depth","sep","listidx", NULL
15503   };
15504   std::string result;
15505   VALUE vresult = Qnil;
15506 
15507   if ((argc < 0) || (argc > 4)) {
15508     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15509   }
15510   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15511   if (!SWIG_IsOK(res1)) {
15512     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","getPath", 1, self ));
15513   }
15514   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15515   if (argc > 0) {
15516     ecode2 = SWIG_AsVal_int(argv[0], &val2);
15517     if (!SWIG_IsOK(ecode2)) {
15518       SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","getPath", 2, argv[0] ));
15519     }
15520     arg2 = static_cast< int >(val2);
15521   }
15522   if (argc > 1) {
15523     ecode3 = SWIG_AsVal_int(argv[1], &val3);
15524     if (!SWIG_IsOK(ecode3)) {
15525       SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","getPath", 3, argv[1] ));
15526     }
15527     arg3 = static_cast< int >(val3);
15528   }
15529   if (argc > 2) {
15530     {
15531       std::string *ptr = (std::string *)0;
15532       res4 = SWIG_AsPtr_std_string(argv[2], &ptr);
15533       if (!SWIG_IsOK(res4)) {
15534         SWIG_exception_fail(SWIG_ArgError(res4), Ruby_Format_TypeError( "", "std::string const &","getPath", 4, argv[2] ));
15535       }
15536       if (!ptr) {
15537         SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","getPath", 4, argv[2]));
15538       }
15539       arg4 = ptr;
15540     }
15541   }
15542   if (argc > 3) {
15543     {
15544       std::string *ptr = (std::string *)0;
15545       res5 = SWIG_AsPtr_std_string(argv[3], &ptr);
15546       if (!SWIG_IsOK(res5)) {
15547         SWIG_exception_fail(SWIG_ArgError(res5), Ruby_Format_TypeError( "", "std::string const &","getPath", 5, argv[3] ));
15548       }
15549       if (!ptr) {
15550         SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","getPath", 5, argv[3]));
15551       }
15552       arg5 = ptr;
15553     }
15554   }
15555   {
15556     try {
15557       result = (arg1)->getPath(arg2,arg3,(std::string const &)*arg4,(std::string const &)*arg5);
15558     } catch(Prelude::PreludeError &e) {
15559       if ( e.getCode() == PRELUDE_ERROR_EOF )
15560       rb_raise(rb_eEOFError, "%s", e.what());
15561       else
15562       SWIG_exception(SWIG_RuntimeError, e.what());
15563 
15564       SWIG_fail;
15565     }
15566   }
15567   vresult = SWIG_From_std_string(static_cast< std::string >(result));
15568   if (SWIG_IsNewObj(res4)) delete arg4;
15569   if (SWIG_IsNewObj(res5)) delete arg5;
15570   return vresult;
15571 fail:
15572   if (SWIG_IsNewObj(res4)) delete arg4;
15573   if (SWIG_IsNewObj(res5)) delete arg5;
15574   return Qnil;
15575 }
15576 
15577 
15578 SWIGINTERN VALUE
15579 _wrap_IDMEFClass_getEnumValues(int argc, VALUE *argv, VALUE self) {
15580   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15581   void *argp1 = 0 ;
15582   int res1 = 0 ;
15583   std::vector< std::string,std::allocator< std::string > > result;
15584   VALUE vresult = Qnil;
15585 
15586   if ((argc < 0) || (argc > 0)) {
15587     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15588   }
15589   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15590   if (!SWIG_IsOK(res1)) {
15591     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","getEnumValues", 1, self ));
15592   }
15593   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15594   {
15595     try {
15596       result = (arg1)->getEnumValues();
15597     } catch(Prelude::PreludeError &e) {
15598       if ( e.getCode() == PRELUDE_ERROR_EOF )
15599       rb_raise(rb_eEOFError, "%s", e.what());
15600       else
15601       SWIG_exception(SWIG_RuntimeError, e.what());
15602 
15603       SWIG_fail;
15604     }
15605   }
15606   vresult = swig::from(static_cast< std::vector<std::string,std::allocator< std::string > > >(result));
15607   return vresult;
15608 fail:
15609   return Qnil;
15610 }
15611 
15612 
15613 SWIGINTERN VALUE
15614 _wrap_IDMEFClass_getApplicableOperator(int argc, VALUE *argv, VALUE self) {
15615   Prelude::IDMEFClass *arg1 = (Prelude::IDMEFClass *) 0 ;
15616   void *argp1 = 0 ;
15617   int res1 = 0 ;
15618   Prelude::IDMEFCriterion::IDMEFCriterionOperatorEnum result;
15619   VALUE vresult = Qnil;
15620 
15621   if ((argc < 0) || (argc > 0)) {
15622     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15623   }
15624   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEFClass, 0 |  0 );
15625   if (!SWIG_IsOK(res1)) {
15626     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEFClass *","getApplicableOperator", 1, self ));
15627   }
15628   arg1 = reinterpret_cast< Prelude::IDMEFClass * >(argp1);
15629   {
15630     try {
15631       result = (Prelude::IDMEFCriterion::IDMEFCriterionOperatorEnum)(arg1)->getApplicableOperator();
15632     } catch(Prelude::PreludeError &e) {
15633       if ( e.getCode() == PRELUDE_ERROR_EOF )
15634       rb_raise(rb_eEOFError, "%s", e.what());
15635       else
15636       SWIG_exception(SWIG_RuntimeError, e.what());
15637 
15638       SWIG_fail;
15639     }
15640   }
15641   vresult = SWIG_From_int(static_cast< int >(result));
15642   return vresult;
15643 fail:
15644   return Qnil;
15645 }
15646 
15647 
15648 SWIGINTERN void
15649 free_Prelude_IDMEFClass(Prelude::IDMEFClass *arg1) {
15650     delete arg1;
15651 }
15652 
15653 static swig_class SwigClassIDMEF;
15654 
15655 SWIGINTERN void
15656 free_Prelude_IDMEF(Prelude::IDMEF *arg1) {
15657     delete arg1;
15658 }
15659 
15660 SWIGINTERN VALUE
15661 _wrap_new_IDMEF__SWIG_0(int argc, VALUE *argv, VALUE self) {
15662   Prelude::IDMEF *result = 0 ;
15663 
15664   if ((argc < 0) || (argc > 0)) {
15665     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
15666   }
15667   {
15668     try {
15669       result = (Prelude::IDMEF *)new Prelude::IDMEF();
15670       DATA_PTR(self) = result;
15671     } catch(Prelude::PreludeError &e) {
15672       if ( e.getCode() == PRELUDE_ERROR_EOF )
15673       rb_raise(rb_eEOFError, "%s", e.what());
15674       else
15675       SWIG_exception(SWIG_RuntimeError, e.what());
15676 
15677       SWIG_fail;
15678     }
15679   }
15680   return self;
15681 fail:
15682   return Qnil;
15683 }
15684 
15685 
15686 SWIGINTERN VALUE
15687 _wrap_new_IDMEF__SWIG_1(int argc, VALUE *argv, VALUE self) {
15688   Prelude::IDMEF *arg1 = 0 ;
15689   void *argp1 ;
15690   int res1 = 0 ;
15691   Prelude::IDMEF *result = 0 ;
15692 
15693   if ((argc < 1) || (argc > 1)) {
15694     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15695   }
15696   res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_Prelude__IDMEF,  0 );
15697   if (!SWIG_IsOK(res1)) {
15698     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF const &","IDMEF", 1, argv[0] ));
15699   }
15700   if (!argp1) {
15701     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEF const &","IDMEF", 1, argv[0]));
15702   }
15703   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
15704   {
15705     try {
15706       result = (Prelude::IDMEF *)new Prelude::IDMEF((Prelude::IDMEF const &)*arg1);
15707       DATA_PTR(self) = result;
15708     } catch(Prelude::PreludeError &e) {
15709       if ( e.getCode() == PRELUDE_ERROR_EOF )
15710       rb_raise(rb_eEOFError, "%s", e.what());
15711       else
15712       SWIG_exception(SWIG_RuntimeError, e.what());
15713 
15714       SWIG_fail;
15715     }
15716   }
15717   return self;
15718 fail:
15719   return Qnil;
15720 }
15721 
15722 
15723 #ifdef HAVE_RB_DEFINE_ALLOC_FUNC
15724 SWIGINTERN VALUE
15725 _wrap_IDMEF_allocate(VALUE self) {
15726 #else
15727   SWIGINTERN VALUE
15728   _wrap_IDMEF_allocate(int argc, VALUE *argv, VALUE self) {
15729 #endif
15730 
15731 
15732     VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Prelude__IDMEF);
15733 #ifndef HAVE_RB_DEFINE_ALLOC_FUNC
15734     rb_obj_call_init(vresult, argc, argv);
15735 #endif
15736     return vresult;
15737   }
15738 
15739 
15740 SWIGINTERN VALUE
15741 _wrap_new_IDMEF__SWIG_2(int argc, VALUE *argv, VALUE self) {
15742   idmef_object_t *arg1 = (idmef_object_t *) 0 ;
15743   void *argp1 = 0 ;
15744   int res1 = 0 ;
15745   Prelude::IDMEF *result = 0 ;
15746 
15747   if ((argc < 1) || (argc > 1)) {
15748     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
15749   }
15750   res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_idmef_object_t, 0 |  0 );
15751   if (!SWIG_IsOK(res1)) {
15752     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "idmef_object_t *","IDMEF", 1, argv[0] ));
15753   }
15754   arg1 = reinterpret_cast< idmef_object_t * >(argp1);
15755   {
15756     try {
15757       result = (Prelude::IDMEF *)new Prelude::IDMEF(arg1);
15758       DATA_PTR(self) = result;
15759     } catch(Prelude::PreludeError &e) {
15760       if ( e.getCode() == PRELUDE_ERROR_EOF )
15761       rb_raise(rb_eEOFError, "%s", e.what());
15762       else
15763       SWIG_exception(SWIG_RuntimeError, e.what());
15764 
15765       SWIG_fail;
15766     }
15767   }
15768   return self;
15769 fail:
15770   return Qnil;
15771 }
15772 
15773 
15774 SWIGINTERN VALUE _wrap_new_IDMEF(int nargs, VALUE *args, VALUE self) {
15775   int argc;
15776   VALUE argv[1];
15777   int ii;
15778 
15779   argc = nargs;
15780   if (argc > 1) SWIG_fail;
15781   for (ii = 0; (ii < argc); ++ii) {
15782     argv[ii] = args[ii];
15783   }
15784   if (argc == 0) {
15785     return _wrap_new_IDMEF__SWIG_0(nargs, args, self);
15786   }
15787   if (argc == 1) {
15788     int _v;
15789     void *vptr = 0;
15790     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
15791     _v = SWIG_CheckState(res);
15792     if (_v) {
15793       return _wrap_new_IDMEF__SWIG_1(nargs, args, self);
15794     }
15795   }
15796   if (argc == 1) {
15797     int _v;
15798     void *vptr = 0;
15799     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_idmef_object_t, 0);
15800     _v = SWIG_CheckState(res);
15801     if (_v) {
15802       return _wrap_new_IDMEF__SWIG_2(nargs, args, self);
15803     }
15804   }
15805 
15806 fail:
15807   Ruby_Format_OverloadedError( argc, 1, "IDMEF.new",
15808     "    IDMEF.new()\n"
15809     "    IDMEF.new(Prelude::IDMEF const &idmef)\n"
15810     "    IDMEF.new(idmef_object_t *message)\n");
15811 
15812   return Qnil;
15813 }
15814 
15815 
15816 SWIGINTERN VALUE
15817 _wrap_IDMEF_set__SWIG_0(int argc, VALUE *argv, VALUE self) {
15818   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
15819   char *arg2 = (char *) 0 ;
15820   std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *arg3 = 0 ;
15821   void *argp1 = 0 ;
15822   int res1 = 0 ;
15823   int res2 ;
15824   char *buf2 = 0 ;
15825   int alloc2 = 0 ;
15826   int res3 = SWIG_OLDOBJ ;
15827 
15828   if ((argc < 2) || (argc > 2)) {
15829     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
15830   }
15831   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
15832   if (!SWIG_IsOK(res1)) {
15833     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
15834   }
15835   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
15836   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
15837   if (!SWIG_IsOK(res2)) {
15838     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
15839   }
15840   arg2 = reinterpret_cast< char * >(buf2);
15841   {
15842     std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *ptr = (std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > > *)0;
15843     res3 = swig::asptr(argv[1], &ptr);
15844     if (!SWIG_IsOK(res3)) {
15845       SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &","set", 3, argv[1] ));
15846     }
15847     if (!ptr) {
15848       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &","set", 3, argv[1]));
15849     }
15850     arg3 = ptr;
15851   }
15852   {
15853     try {
15854       (arg1)->set((char const *)arg2,(std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &)*arg3);
15855     } catch(Prelude::PreludeError &e) {
15856       if ( e.getCode() == PRELUDE_ERROR_EOF )
15857       rb_raise(rb_eEOFError, "%s", e.what());
15858       else
15859       SWIG_exception(SWIG_RuntimeError, e.what());
15860 
15861       SWIG_fail;
15862     }
15863   }
15864   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15865   if (SWIG_IsNewObj(res3)) delete arg3;
15866   return Qnil;
15867 fail:
15868   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15869   if (SWIG_IsNewObj(res3)) delete arg3;
15870   return Qnil;
15871 }
15872 
15873 
15874 SWIGINTERN VALUE
15875 _wrap_IDMEF_set__SWIG_1(int argc, VALUE *argv, VALUE self) {
15876   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
15877   char *arg2 = (char *) 0 ;
15878   Prelude::IDMEF *arg3 = (Prelude::IDMEF *) 0 ;
15879   void *argp1 = 0 ;
15880   int res1 = 0 ;
15881   int res2 ;
15882   char *buf2 = 0 ;
15883   int alloc2 = 0 ;
15884   void *argp3 = 0 ;
15885   int res3 = 0 ;
15886 
15887   if ((argc < 2) || (argc > 2)) {
15888     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
15889   }
15890   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
15891   if (!SWIG_IsOK(res1)) {
15892     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
15893   }
15894   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
15895   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
15896   if (!SWIG_IsOK(res2)) {
15897     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
15898   }
15899   arg2 = reinterpret_cast< char * >(buf2);
15900   res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
15901   if (!SWIG_IsOK(res3)) {
15902     SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 3, argv[1] ));
15903   }
15904   arg3 = reinterpret_cast< Prelude::IDMEF * >(argp3);
15905   {
15906     try {
15907       (arg1)->set((char const *)arg2,arg3);
15908     } catch(Prelude::PreludeError &e) {
15909       if ( e.getCode() == PRELUDE_ERROR_EOF )
15910       rb_raise(rb_eEOFError, "%s", e.what());
15911       else
15912       SWIG_exception(SWIG_RuntimeError, e.what());
15913 
15914       SWIG_fail;
15915     }
15916   }
15917   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15918   return Qnil;
15919 fail:
15920   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15921   return Qnil;
15922 }
15923 
15924 
15925 SWIGINTERN VALUE
15926 _wrap_IDMEF_set__SWIG_2(int argc, VALUE *argv, VALUE self) {
15927   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
15928   char *arg2 = (char *) 0 ;
15929   std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *arg3 = 0 ;
15930   void *argp1 = 0 ;
15931   int res1 = 0 ;
15932   int res2 ;
15933   char *buf2 = 0 ;
15934   int alloc2 = 0 ;
15935   int res3 = SWIG_OLDOBJ ;
15936 
15937   if ((argc < 2) || (argc > 2)) {
15938     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
15939   }
15940   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
15941   if (!SWIG_IsOK(res1)) {
15942     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
15943   }
15944   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
15945   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
15946   if (!SWIG_IsOK(res2)) {
15947     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
15948   }
15949   arg2 = reinterpret_cast< char * >(buf2);
15950   {
15951     std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *ptr = (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > *)0;
15952     res3 = swig::asptr(argv[1], &ptr);
15953     if (!SWIG_IsOK(res3)) {
15954       SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","set", 3, argv[1] ));
15955     }
15956     if (!ptr) {
15957       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &","set", 3, argv[1]));
15958     }
15959     arg3 = ptr;
15960   }
15961   {
15962     try {
15963       (arg1)->set((char const *)arg2,(std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &)*arg3);
15964     } catch(Prelude::PreludeError &e) {
15965       if ( e.getCode() == PRELUDE_ERROR_EOF )
15966       rb_raise(rb_eEOFError, "%s", e.what());
15967       else
15968       SWIG_exception(SWIG_RuntimeError, e.what());
15969 
15970       SWIG_fail;
15971     }
15972   }
15973   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15974   if (SWIG_IsNewObj(res3)) delete arg3;
15975   return Qnil;
15976 fail:
15977   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
15978   if (SWIG_IsNewObj(res3)) delete arg3;
15979   return Qnil;
15980 }
15981 
15982 
15983 SWIGINTERN VALUE
15984 _wrap_IDMEF_set__SWIG_3(int argc, VALUE *argv, VALUE self) {
15985   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
15986   char *arg2 = (char *) 0 ;
15987   std::string *arg3 = 0 ;
15988   void *argp1 = 0 ;
15989   int res1 = 0 ;
15990   int res2 ;
15991   char *buf2 = 0 ;
15992   int alloc2 = 0 ;
15993   int res3 = SWIG_OLDOBJ ;
15994 
15995   if ((argc < 2) || (argc > 2)) {
15996     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
15997   }
15998   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
15999   if (!SWIG_IsOK(res1)) {
16000     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16001   }
16002   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16003   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16004   if (!SWIG_IsOK(res2)) {
16005     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16006   }
16007   arg2 = reinterpret_cast< char * >(buf2);
16008   {
16009     std::string *ptr = (std::string *)0;
16010     res3 = SWIG_AsPtr_std_string(argv[1], &ptr);
16011     if (!SWIG_IsOK(res3)) {
16012       SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "std::string const &","set", 3, argv[1] ));
16013     }
16014     if (!ptr) {
16015       SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "std::string const &","set", 3, argv[1]));
16016     }
16017     arg3 = ptr;
16018   }
16019   {
16020     try {
16021       (arg1)->set((char const *)arg2,(std::string const &)*arg3);
16022     } catch(Prelude::PreludeError &e) {
16023       if ( e.getCode() == PRELUDE_ERROR_EOF )
16024       rb_raise(rb_eEOFError, "%s", e.what());
16025       else
16026       SWIG_exception(SWIG_RuntimeError, e.what());
16027 
16028       SWIG_fail;
16029     }
16030   }
16031   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16032   if (SWIG_IsNewObj(res3)) delete arg3;
16033   return Qnil;
16034 fail:
16035   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16036   if (SWIG_IsNewObj(res3)) delete arg3;
16037   return Qnil;
16038 }
16039 
16040 
16041 SWIGINTERN VALUE
16042 _wrap_IDMEF_set__SWIG_4(int argc, VALUE *argv, VALUE self) {
16043   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16044   char *arg2 = (char *) 0 ;
16045   Prelude::IDMEFValue *arg3 = (Prelude::IDMEFValue *) 0 ;
16046   void *argp1 = 0 ;
16047   int res1 = 0 ;
16048   int res2 ;
16049   char *buf2 = 0 ;
16050   int alloc2 = 0 ;
16051   void *argp3 = 0 ;
16052   int res3 = 0 ;
16053 
16054   if ((argc < 2) || (argc > 2)) {
16055     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
16056   }
16057   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16058   if (!SWIG_IsOK(res1)) {
16059     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16060   }
16061   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16062   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16063   if (!SWIG_IsOK(res2)) {
16064     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16065   }
16066   arg2 = reinterpret_cast< char * >(buf2);
16067   res3 = SWIG_ConvertPtr(argv[1], &argp3,SWIGTYPE_p_Prelude__IDMEFValue, 0 |  0 );
16068   if (!SWIG_IsOK(res3)) {
16069     SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Prelude::IDMEFValue *","set", 3, argv[1] ));
16070   }
16071   arg3 = reinterpret_cast< Prelude::IDMEFValue * >(argp3);
16072   {
16073     try {
16074       (arg1)->set((char const *)arg2,arg3);
16075     } catch(Prelude::PreludeError &e) {
16076       if ( e.getCode() == PRELUDE_ERROR_EOF )
16077       rb_raise(rb_eEOFError, "%s", e.what());
16078       else
16079       SWIG_exception(SWIG_RuntimeError, e.what());
16080 
16081       SWIG_fail;
16082     }
16083   }
16084   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16085   return Qnil;
16086 fail:
16087   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16088   return Qnil;
16089 }
16090 
16091 
16092 SWIGINTERN VALUE
16093 _wrap_IDMEF_set__SWIG_5(int argc, VALUE *argv, VALUE self) {
16094   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16095   char *arg2 = (char *) 0 ;
16096   Prelude::IDMEFTime *arg3 = 0 ;
16097   void *argp1 = 0 ;
16098   int res1 = 0 ;
16099   int res2 ;
16100   char *buf2 = 0 ;
16101   int alloc2 = 0 ;
16102   void *argp3 = 0 ;
16103   int res3 = 0 ;
16104 
16105   if ((argc < 2) || (argc > 2)) {
16106     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
16107   }
16108   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16109   if (!SWIG_IsOK(res1)) {
16110     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16111   }
16112   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16113   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16114   if (!SWIG_IsOK(res2)) {
16115     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16116   }
16117   arg2 = reinterpret_cast< char * >(buf2);
16118   res3 = SWIG_ConvertPtr(argv[1], &argp3, SWIGTYPE_p_Prelude__IDMEFTime,  0 );
16119   if (!SWIG_IsOK(res3)) {
16120     SWIG_exception_fail(SWIG_ArgError(res3), Ruby_Format_TypeError( "", "Prelude::IDMEFTime &","set", 3, argv[1] ));
16121   }
16122   if (!argp3) {
16123     SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "Prelude::IDMEFTime &","set", 3, argv[1]));
16124   }
16125   arg3 = reinterpret_cast< Prelude::IDMEFTime * >(argp3);
16126   {
16127     try {
16128       (arg1)->set((char const *)arg2,*arg3);
16129     } catch(Prelude::PreludeError &e) {
16130       if ( e.getCode() == PRELUDE_ERROR_EOF )
16131       rb_raise(rb_eEOFError, "%s", e.what());
16132       else
16133       SWIG_exception(SWIG_RuntimeError, e.what());
16134 
16135       SWIG_fail;
16136     }
16137   }
16138   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16139   return Qnil;
16140 fail:
16141   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16142   return Qnil;
16143 }
16144 
16145 
16146 SWIGINTERN VALUE
16147 _wrap_IDMEF_set__SWIG_6(int argc, VALUE *argv, VALUE self) {
16148   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16149   char *arg2 = (char *) 0 ;
16150   int32_t arg3 ;
16151   void *argp1 = 0 ;
16152   int res1 = 0 ;
16153   int res2 ;
16154   char *buf2 = 0 ;
16155   int alloc2 = 0 ;
16156   int val3 ;
16157   int ecode3 = 0 ;
16158 
16159   if ((argc < 2) || (argc > 2)) {
16160     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
16161   }
16162   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16163   if (!SWIG_IsOK(res1)) {
16164     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16165   }
16166   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16167   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16168   if (!SWIG_IsOK(res2)) {
16169     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16170   }
16171   arg2 = reinterpret_cast< char * >(buf2);
16172   ecode3 = SWIG_AsVal_int(argv[1], &val3);
16173   if (!SWIG_IsOK(ecode3)) {
16174     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int32_t","set", 3, argv[1] ));
16175   }
16176   arg3 = static_cast< int32_t >(val3);
16177   {
16178     try {
16179       (arg1)->set((char const *)arg2,arg3);
16180     } catch(Prelude::PreludeError &e) {
16181       if ( e.getCode() == PRELUDE_ERROR_EOF )
16182       rb_raise(rb_eEOFError, "%s", e.what());
16183       else
16184       SWIG_exception(SWIG_RuntimeError, e.what());
16185 
16186       SWIG_fail;
16187     }
16188   }
16189   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16190   return Qnil;
16191 fail:
16192   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16193   return Qnil;
16194 }
16195 
16196 
16197 SWIGINTERN VALUE
16198 _wrap_IDMEF_set__SWIG_7(int argc, VALUE *argv, VALUE self) {
16199   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16200   char *arg2 = (char *) 0 ;
16201   int64_t arg3 ;
16202   void *argp1 = 0 ;
16203   int res1 = 0 ;
16204   int res2 ;
16205   char *buf2 = 0 ;
16206   int alloc2 = 0 ;
16207   long long val3 ;
16208   int ecode3 = 0 ;
16209 
16210   if ((argc < 2) || (argc > 2)) {
16211     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
16212   }
16213   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16214   if (!SWIG_IsOK(res1)) {
16215     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16216   }
16217   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16218   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16219   if (!SWIG_IsOK(res2)) {
16220     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16221   }
16222   arg2 = reinterpret_cast< char * >(buf2);
16223   ecode3 = SWIG_AsVal_long_SS_long(argv[1], &val3);
16224   if (!SWIG_IsOK(ecode3)) {
16225     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int64_t","set", 3, argv[1] ));
16226   }
16227   arg3 = static_cast< int64_t >(val3);
16228   {
16229     try {
16230       (arg1)->set((char const *)arg2,arg3);
16231     } catch(Prelude::PreludeError &e) {
16232       if ( e.getCode() == PRELUDE_ERROR_EOF )
16233       rb_raise(rb_eEOFError, "%s", e.what());
16234       else
16235       SWIG_exception(SWIG_RuntimeError, e.what());
16236 
16237       SWIG_fail;
16238     }
16239   }
16240   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16241   return Qnil;
16242 fail:
16243   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16244   return Qnil;
16245 }
16246 
16247 
16248 SWIGINTERN VALUE
16249 _wrap_IDMEF_set__SWIG_8(int argc, VALUE *argv, VALUE self) {
16250   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16251   char *arg2 = (char *) 0 ;
16252   uint64_t arg3 ;
16253   void *argp1 = 0 ;
16254   int res1 = 0 ;
16255   int res2 ;
16256   char *buf2 = 0 ;
16257   int alloc2 = 0 ;
16258   unsigned long long val3 ;
16259   int ecode3 = 0 ;
16260 
16261   if ((argc < 2) || (argc > 2)) {
16262     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
16263   }
16264   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16265   if (!SWIG_IsOK(res1)) {
16266     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16267   }
16268   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16269   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16270   if (!SWIG_IsOK(res2)) {
16271     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16272   }
16273   arg2 = reinterpret_cast< char * >(buf2);
16274   ecode3 = SWIG_AsVal_unsigned_SS_long_SS_long(argv[1], &val3);
16275   if (!SWIG_IsOK(ecode3)) {
16276     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint64_t","set", 3, argv[1] ));
16277   }
16278   arg3 = static_cast< uint64_t >(val3);
16279   {
16280     try {
16281       (arg1)->set((char const *)arg2,arg3);
16282     } catch(Prelude::PreludeError &e) {
16283       if ( e.getCode() == PRELUDE_ERROR_EOF )
16284       rb_raise(rb_eEOFError, "%s", e.what());
16285       else
16286       SWIG_exception(SWIG_RuntimeError, e.what());
16287 
16288       SWIG_fail;
16289     }
16290   }
16291   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16292   return Qnil;
16293 fail:
16294   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16295   return Qnil;
16296 }
16297 
16298 
16299 SWIGINTERN VALUE
16300 _wrap_IDMEF_set__SWIG_9(int argc, VALUE *argv, VALUE self) {
16301   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16302   char *arg2 = (char *) 0 ;
16303   float arg3 ;
16304   void *argp1 = 0 ;
16305   int res1 = 0 ;
16306   int res2 ;
16307   char *buf2 = 0 ;
16308   int alloc2 = 0 ;
16309   float val3 ;
16310   int ecode3 = 0 ;
16311 
16312   if ((argc < 2) || (argc > 2)) {
16313     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
16314   }
16315   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16316   if (!SWIG_IsOK(res1)) {
16317     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16318   }
16319   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16320   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16321   if (!SWIG_IsOK(res2)) {
16322     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16323   }
16324   arg2 = reinterpret_cast< char * >(buf2);
16325   ecode3 = SWIG_AsVal_float(argv[1], &val3);
16326   if (!SWIG_IsOK(ecode3)) {
16327     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","set", 3, argv[1] ));
16328   }
16329   arg3 = static_cast< float >(val3);
16330   {
16331     try {
16332       (arg1)->set((char const *)arg2,arg3);
16333     } catch(Prelude::PreludeError &e) {
16334       if ( e.getCode() == PRELUDE_ERROR_EOF )
16335       rb_raise(rb_eEOFError, "%s", e.what());
16336       else
16337       SWIG_exception(SWIG_RuntimeError, e.what());
16338 
16339       SWIG_fail;
16340     }
16341   }
16342   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16343   return Qnil;
16344 fail:
16345   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16346   return Qnil;
16347 }
16348 
16349 
16350 SWIGINTERN VALUE
16351 _wrap_IDMEF_set__SWIG_10(int argc, VALUE *argv, VALUE self) {
16352   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16353   char *arg2 = (char *) 0 ;
16354   double arg3 ;
16355   void *argp1 = 0 ;
16356   int res1 = 0 ;
16357   int res2 ;
16358   char *buf2 = 0 ;
16359   int alloc2 = 0 ;
16360   double val3 ;
16361   int ecode3 = 0 ;
16362 
16363   if ((argc < 2) || (argc > 2)) {
16364     rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
16365   }
16366   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16367   if (!SWIG_IsOK(res1)) {
16368     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","set", 1, self ));
16369   }
16370   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16371   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
16372   if (!SWIG_IsOK(res2)) {
16373     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","set", 2, argv[0] ));
16374   }
16375   arg2 = reinterpret_cast< char * >(buf2);
16376   ecode3 = SWIG_AsVal_double(argv[1], &val3);
16377   if (!SWIG_IsOK(ecode3)) {
16378     SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "double","set", 3, argv[1] ));
16379   }
16380   arg3 = static_cast< double >(val3);
16381   {
16382     try {
16383       (arg1)->set((char const *)arg2,arg3);
16384     } catch(Prelude::PreludeError &e) {
16385       if ( e.getCode() == PRELUDE_ERROR_EOF )
16386       rb_raise(rb_eEOFError, "%s", e.what());
16387       else
16388       SWIG_exception(SWIG_RuntimeError, e.what());
16389 
16390       SWIG_fail;
16391     }
16392   }
16393   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16394   return Qnil;
16395 fail:
16396   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
16397   return Qnil;
16398 }
16399 
16400 
16401 SWIGINTERN VALUE _wrap_IDMEF_set(int nargs, VALUE *args, VALUE self) {
16402   int argc;
16403   VALUE argv[4];
16404   int ii;
16405 
16406   argc = nargs + 1;
16407   argv[0] = self;
16408   if (argc > 4) SWIG_fail;
16409   for (ii = 1; (ii < argc); ++ii) {
16410     argv[ii] = args[ii-1];
16411   }
16412   if (argc == 3) {
16413     int _v;
16414     void *vptr = 0;
16415     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16416     _v = SWIG_CheckState(res);
16417     if (_v) {
16418       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16419       _v = SWIG_CheckState(res);
16420       if (_v) {
16421         void *vptr = 0;
16422         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16423         _v = SWIG_CheckState(res);
16424         if (_v) {
16425           return _wrap_IDMEF_set__SWIG_1(nargs, args, self);
16426         }
16427       }
16428     }
16429   }
16430   if (argc == 3) {
16431     int _v;
16432     void *vptr = 0;
16433     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16434     _v = SWIG_CheckState(res);
16435     if (_v) {
16436       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16437       _v = SWIG_CheckState(res);
16438       if (_v) {
16439         void *vptr = 0;
16440         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Prelude__IDMEFValue, 0);
16441         _v = SWIG_CheckState(res);
16442         if (_v) {
16443           return _wrap_IDMEF_set__SWIG_4(nargs, args, self);
16444         }
16445       }
16446     }
16447   }
16448   if (argc == 3) {
16449     int _v;
16450     void *vptr = 0;
16451     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16452     _v = SWIG_CheckState(res);
16453     if (_v) {
16454       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16455       _v = SWIG_CheckState(res);
16456       if (_v) {
16457         void *vptr = 0;
16458         int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_Prelude__IDMEFTime, 0);
16459         _v = SWIG_CheckState(res);
16460         if (_v) {
16461           return _wrap_IDMEF_set__SWIG_5(nargs, args, self);
16462         }
16463       }
16464     }
16465   }
16466   if (argc == 3) {
16467     int _v;
16468     void *vptr = 0;
16469     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16470     _v = SWIG_CheckState(res);
16471     if (_v) {
16472       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16473       _v = SWIG_CheckState(res);
16474       if (_v) {
16475         {
16476           int res = SWIG_AsVal_int(argv[2], NULL);
16477           _v = SWIG_CheckState(res);
16478         }
16479         if (_v) {
16480           return _wrap_IDMEF_set__SWIG_6(nargs, args, self);
16481         }
16482       }
16483     }
16484   }
16485   if (argc == 3) {
16486     int _v;
16487     void *vptr = 0;
16488     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16489     _v = SWIG_CheckState(res);
16490     if (_v) {
16491       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16492       _v = SWIG_CheckState(res);
16493       if (_v) {
16494         {
16495           int res = SWIG_AsVal_unsigned_SS_long_SS_long(argv[2], NULL);
16496           _v = SWIG_CheckState(res);
16497         }
16498         if (_v) {
16499           return _wrap_IDMEF_set__SWIG_8(nargs, args, self);
16500         }
16501       }
16502     }
16503   }
16504   if (argc == 3) {
16505     int _v;
16506     void *vptr = 0;
16507     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16508     _v = SWIG_CheckState(res);
16509     if (_v) {
16510       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16511       _v = SWIG_CheckState(res);
16512       if (_v) {
16513         {
16514           int res = SWIG_AsVal_long_SS_long(argv[2], NULL);
16515           _v = SWIG_CheckState(res);
16516         }
16517         if (_v) {
16518           return _wrap_IDMEF_set__SWIG_7(nargs, args, self);
16519         }
16520       }
16521     }
16522   }
16523   if (argc == 3) {
16524     int _v;
16525     void *vptr = 0;
16526     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16527     _v = SWIG_CheckState(res);
16528     if (_v) {
16529       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16530       _v = SWIG_CheckState(res);
16531       if (_v) {
16532         {
16533           int res = SWIG_AsVal_float(argv[2], NULL);
16534           _v = SWIG_CheckState(res);
16535         }
16536         if (_v) {
16537           return _wrap_IDMEF_set__SWIG_9(nargs, args, self);
16538         }
16539       }
16540     }
16541   }
16542   if (argc == 3) {
16543     int _v;
16544     void *vptr = 0;
16545     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16546     _v = SWIG_CheckState(res);
16547     if (_v) {
16548       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16549       _v = SWIG_CheckState(res);
16550       if (_v) {
16551         {
16552           int res = SWIG_AsVal_double(argv[2], NULL);
16553           _v = SWIG_CheckState(res);
16554         }
16555         if (_v) {
16556           return _wrap_IDMEF_set__SWIG_10(nargs, args, self);
16557         }
16558       }
16559     }
16560   }
16561   if (argc == 3) {
16562     int _v;
16563     void *vptr = 0;
16564     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16565     _v = SWIG_CheckState(res);
16566     if (_v) {
16567       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16568       _v = SWIG_CheckState(res);
16569       if (_v) {
16570         int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
16571         _v = SWIG_CheckState(res);
16572         if (_v) {
16573           return _wrap_IDMEF_set__SWIG_3(nargs, args, self);
16574         }
16575       }
16576     }
16577   }
16578   if (argc == 3) {
16579     int _v;
16580     void *vptr = 0;
16581     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16582     _v = SWIG_CheckState(res);
16583     if (_v) {
16584       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16585       _v = SWIG_CheckState(res);
16586       if (_v) {
16587         int res = swig::asptr(argv[2], (std::vector<Prelude::IDMEF,std::allocator< Prelude::IDMEF > >**)(0));
16588         _v = SWIG_CheckState(res);
16589         if (_v) {
16590           return _wrap_IDMEF_set__SWIG_0(nargs, args, self);
16591         }
16592       }
16593     }
16594   }
16595   if (argc == 3) {
16596     int _v;
16597     void *vptr = 0;
16598     int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_Prelude__IDMEF, 0);
16599     _v = SWIG_CheckState(res);
16600     if (_v) {
16601       int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
16602       _v = SWIG_CheckState(res);
16603       if (_v) {
16604         int res = swig::asptr(argv[2], (std::vector<Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > >**)(0));
16605         _v = SWIG_CheckState(res);
16606         if (_v) {
16607           return _wrap_IDMEF_set__SWIG_2(nargs, args, self);
16608         }
16609       }
16610     }
16611   }
16612 
16613 fail:
16614   Ruby_Format_OverloadedError( argc, 4, "IDMEF.set",
16615     "    void IDMEF.set(char const *path, std::vector< Prelude::IDMEF,std::allocator< Prelude::IDMEF > > const &value)\n"
16616     "    void IDMEF.set(char const *path, Prelude::IDMEF *value)\n"
16617     "    void IDMEF.set(char const *path, std::vector< Prelude::IDMEFValue,std::allocator< Prelude::IDMEFValue > > const &value)\n"
16618     "    void IDMEF.set(char const *path, std::string const &value)\n"
16619     "    void IDMEF.set(char const *path, Prelude::IDMEFValue *value)\n"
16620     "    void IDMEF.set(char const *path, Prelude::IDMEFTime &value)\n"
16621     "    void IDMEF.set(char const *path, int32_t value)\n"
16622     "    void IDMEF.set(char const *path, int64_t value)\n"
16623     "    void IDMEF.set(char const *path, uint64_t value)\n"
16624     "    void IDMEF.set(char const *path, float value)\n"
16625     "    void IDMEF.set(char const *path, double value)\n");
16626 
16627   return Qnil;
16628 }
16629 
16630 
16631 
16632 /*
16633   Document-method: Prelude::IDMEF.clone
16634 
16635   call-seq:
16636     clone -> IDMEF
16637 
16638 Create a duplicate of the class.
16639 */
16640 SWIGINTERN VALUE
16641 _wrap_IDMEF_clone(int argc, VALUE *argv, VALUE self) {
16642   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16643   void *argp1 = 0 ;
16644   int res1 = 0 ;
16645   Prelude::IDMEF result;
16646   VALUE vresult = Qnil;
16647 
16648   if ((argc < 0) || (argc > 0)) {
16649     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
16650   }
16651   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16652   if (!SWIG_IsOK(res1)) {
16653     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","clone", 1, self ));
16654   }
16655   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16656   {
16657     try {
16658       result = (arg1)->clone();
16659     } catch(Prelude::PreludeError &e) {
16660       if ( e.getCode() == PRELUDE_ERROR_EOF )
16661       rb_raise(rb_eEOFError, "%s", e.what());
16662       else
16663       SWIG_exception(SWIG_RuntimeError, e.what());
16664 
16665       SWIG_fail;
16666     }
16667   }
16668   vresult = SWIG_NewPointerObj((new Prelude::IDMEF(static_cast< const Prelude::IDMEF& >(result))), SWIGTYPE_p_Prelude__IDMEF, SWIG_POINTER_OWN |  0 );
16669   return vresult;
16670 fail:
16671   return Qnil;
16672 }
16673 
16674 
16675 SWIGINTERN VALUE
16676 _wrap_IDMEF_getId(int argc, VALUE *argv, VALUE self) {
16677   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16678   void *argp1 = 0 ;
16679   int res1 = 0 ;
16680   idmef_class_id_t result;
16681   VALUE vresult = Qnil;
16682 
16683   if ((argc < 0) || (argc > 0)) {
16684     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
16685   }
16686   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16687   if (!SWIG_IsOK(res1)) {
16688     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF const *","getId", 1, self ));
16689   }
16690   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16691   {
16692     try {
16693       result = (idmef_class_id_t)((Prelude::IDMEF const *)arg1)->getId();
16694     } catch(Prelude::PreludeError &e) {
16695       if ( e.getCode() == PRELUDE_ERROR_EOF )
16696       rb_raise(rb_eEOFError, "%s", e.what());
16697       else
16698       SWIG_exception(SWIG_RuntimeError, e.what());
16699 
16700       SWIG_fail;
16701     }
16702   }
16703   vresult = SWIG_From_int(static_cast< int >(result));
16704   return vresult;
16705 fail:
16706   return Qnil;
16707 }
16708 
16709 
16710 SWIGINTERN VALUE
16711 _wrap_IDMEF_toString(int argc, VALUE *argv, VALUE self) {
16712   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16713   void *argp1 = 0 ;
16714   int res1 = 0 ;
16715   std::string result;
16716   VALUE vresult = Qnil;
16717 
16718   if ((argc < 0) || (argc > 0)) {
16719     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
16720   }
16721   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16722   if (!SWIG_IsOK(res1)) {
16723     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF const *","toString", 1, self ));
16724   }
16725   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16726   {
16727     try {
16728       result = ((Prelude::IDMEF const *)arg1)->toString();
16729     } catch(Prelude::PreludeError &e) {
16730       if ( e.getCode() == PRELUDE_ERROR_EOF )
16731       rb_raise(rb_eEOFError, "%s", e.what());
16732       else
16733       SWIG_exception(SWIG_RuntimeError, e.what());
16734 
16735       SWIG_fail;
16736     }
16737   }
16738   vresult = SWIG_From_std_string(static_cast< std::string >(result));
16739   return vresult;
16740 fail:
16741   return Qnil;
16742 }
16743 
16744 
16745 SWIGINTERN VALUE
16746 _wrap_IDMEF___str__(int argc, VALUE *argv, VALUE self) {
16747   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16748   void *argp1 = 0 ;
16749   int res1 = 0 ;
16750   std::string result;
16751   VALUE vresult = Qnil;
16752 
16753   if ((argc < 0) || (argc > 0)) {
16754     rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
16755   }
16756   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16757   if (!SWIG_IsOK(res1)) {
16758     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF const *","operator const std::string", 1, self ));
16759   }
16760   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16761   {
16762     try {
16763       result = ((Prelude::IDMEF const *)arg1)->operator const std::string();
16764     } catch(Prelude::PreludeError &e) {
16765       if ( e.getCode() == PRELUDE_ERROR_EOF )
16766       rb_raise(rb_eEOFError, "%s", e.what());
16767       else
16768       SWIG_exception(SWIG_RuntimeError, e.what());
16769 
16770       SWIG_fail;
16771     }
16772   }
16773   vresult = SWIG_From_std_string(static_cast< std::string >(result));
16774   return vresult;
16775 fail:
16776   return Qnil;
16777 }
16778 
16779 
16780 
16781 /*
16782   Document-method: Prelude::IDMEF.==
16783 
16784   call-seq:
16785     ==(idmef) -> int
16786 
16787 Equality comparison operator.
16788 */
16789 SWIGINTERN VALUE
16790 _wrap_IDMEF___eq__(int argc, VALUE *argv, VALUE self) {
16791   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16792   Prelude::IDMEF *arg2 = (Prelude::IDMEF *) 0 ;
16793   void *argp1 = 0 ;
16794   int res1 = 0 ;
16795   void *argp2 = 0 ;
16796   int res2 = 0 ;
16797   int result;
16798   VALUE vresult = Qnil;
16799 
16800   if ((argc < 1) || (argc > 1)) {
16801     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
16802   }
16803   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16804   if (!SWIG_IsOK(res1)) {
16805     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","operator ==", 1, self ));
16806   }
16807   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16808   res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16809   if (!SWIG_IsOK(res2)) {
16810     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Prelude::IDMEF const *","operator ==", 2, argv[0] ));
16811   }
16812   arg2 = reinterpret_cast< Prelude::IDMEF * >(argp2);
16813   {
16814     try {
16815       result = (int)(arg1)->operator ==((Prelude::IDMEF const *)arg2);
16816     } catch(Prelude::PreludeError &e) {
16817       if ( e.getCode() == PRELUDE_ERROR_EOF )
16818       rb_raise(rb_eEOFError, "%s", e.what());
16819       else
16820       SWIG_exception(SWIG_RuntimeError, e.what());
16821 
16822       SWIG_fail;
16823     }
16824   }
16825   vresult = SWIG_From_int(static_cast< int >(result));
16826   return vresult;
16827 fail:
16828   return Qnil;
16829 }
16830 
16831 
16832 SWIGINTERN VALUE
16833 _wrap_IDMEF_write(int argc, VALUE *argv, VALUE self) {
16834   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16835   void *arg2 = (void *) 0 ;
16836   void *argp1 = 0 ;
16837   int res1 = 0 ;
16838 
16839   if ((argc < 1) || (argc > 1)) {
16840     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
16841   }
16842   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16843   if (!SWIG_IsOK(res1)) {
16844     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","write", 1, self ));
16845   }
16846   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16847   {
16848     Check_Type(argv[0], T_FILE);
16849     arg2 = &argv[0];
16850   }
16851   {
16852     try {
16853       Prelude_IDMEF_write(arg1,arg2);
16854     } catch(Prelude::PreludeError &e) {
16855       if ( e.getCode() == PRELUDE_ERROR_EOF )
16856       rb_raise(rb_eEOFError, "%s", e.what());
16857       else
16858       SWIG_exception(SWIG_RuntimeError, e.what());
16859 
16860       SWIG_fail;
16861     }
16862   }
16863   return Qnil;
16864 fail:
16865   return Qnil;
16866 }
16867 
16868 
16869 SWIGINTERN VALUE
16870 _wrap_IDMEF_read(int argc, VALUE *argv, VALUE self) {
16871   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16872   void *arg2 = (void *) 0 ;
16873   void *argp1 = 0 ;
16874   int res1 = 0 ;
16875   int result;
16876   VALUE vresult = Qnil;
16877 
16878   if ((argc < 1) || (argc > 1)) {
16879     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
16880   }
16881   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16882   if (!SWIG_IsOK(res1)) {
16883     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","read", 1, self ));
16884   }
16885   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16886   {
16887     Check_Type(argv[0], T_FILE);
16888     arg2 = &argv[0];
16889   }
16890   {
16891     try {
16892       result = (int)Prelude_IDMEF_read(arg1,arg2);
16893     } catch(Prelude::PreludeError &e) {
16894       if ( e.getCode() == PRELUDE_ERROR_EOF ) {
16895         result = 0;
16896       } else
16897       SWIG_exception_fail(SWIG_RuntimeError, e.what());
16898     }
16899   }
16900   vresult = SWIG_From_int(static_cast< int >(result));
16901   return vresult;
16902 fail:
16903   return Qnil;
16904 }
16905 
16906 
16907 
16908 /*
16909   Document-method: Prelude::IDMEF.>>
16910 
16911   call-seq:
16912     >>(nocast_p) -> IDMEF
16913 
16914 Right shifting operator or extracting operator.
16915 */
16916 SWIGINTERN VALUE
16917 _wrap_IDMEF___rshift__(int argc, VALUE *argv, VALUE self) {
16918   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16919   void *arg2 = (void *) 0 ;
16920   void *argp1 = 0 ;
16921   int res1 = 0 ;
16922   Prelude::IDMEF *result = 0 ;
16923   VALUE vresult = Qnil;
16924 
16925   if ((argc < 1) || (argc > 1)) {
16926     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
16927   }
16928   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16929   if (!SWIG_IsOK(res1)) {
16930     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","operator >>", 1, self ));
16931   }
16932   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16933   {
16934     Check_Type(argv[0], T_FILE);
16935     arg2 = &argv[0];
16936   }
16937   {
16938     try {
16939       result = (Prelude::IDMEF *) &Prelude_IDMEF_operator_Sg__Sg_(arg1,arg2);
16940     } catch(Prelude::PreludeError &e) {
16941       if ( e.getCode() == PRELUDE_ERROR_EOF )
16942       rb_raise(rb_eEOFError, "%s", e.what());
16943       else
16944       SWIG_exception(SWIG_RuntimeError, e.what());
16945 
16946       SWIG_fail;
16947     }
16948   }
16949   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16950   return vresult;
16951 fail:
16952   return Qnil;
16953 }
16954 
16955 
16956 
16957 /*
16958   Document-method: Prelude::IDMEF.<<
16959 
16960   call-seq:
16961     <<(nocast_p) -> IDMEF
16962 
16963 Left shifting or appending operator.
16964 */
16965 SWIGINTERN VALUE
16966 _wrap_IDMEF___lshift__(int argc, VALUE *argv, VALUE self) {
16967   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
16968   void *arg2 = (void *) 0 ;
16969   void *argp1 = 0 ;
16970   int res1 = 0 ;
16971   Prelude::IDMEF *result = 0 ;
16972   VALUE vresult = Qnil;
16973 
16974   if ((argc < 1) || (argc > 1)) {
16975     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
16976   }
16977   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16978   if (!SWIG_IsOK(res1)) {
16979     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","operator <<", 1, self ));
16980   }
16981   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
16982   {
16983     Check_Type(argv[0], T_FILE);
16984     arg2 = &argv[0];
16985   }
16986   {
16987     try {
16988       result = (Prelude::IDMEF *) &Prelude_IDMEF_operator_Sl__Sl_(arg1,arg2);
16989     } catch(Prelude::PreludeError &e) {
16990       if ( e.getCode() == PRELUDE_ERROR_EOF )
16991       rb_raise(rb_eEOFError, "%s", e.what());
16992       else
16993       SWIG_exception(SWIG_RuntimeError, e.what());
16994 
16995       SWIG_fail;
16996     }
16997   }
16998   vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
16999   return vresult;
17000 fail:
17001   return Qnil;
17002 }
17003 
17004 
17005 SWIGINTERN VALUE
17006 _wrap_IDMEF_get(int argc, VALUE *argv, VALUE self) {
17007   Prelude::IDMEF *arg1 = (Prelude::IDMEF *) 0 ;
17008   char *arg2 = (char *) 0 ;
17009   void *argp1 = 0 ;
17010   int res1 = 0 ;
17011   int res2 ;
17012   char *buf2 = 0 ;
17013   int alloc2 = 0 ;
17014   Prelude::IDMEFValue result;
17015   VALUE vresult = Qnil;
17016 
17017   if ((argc < 1) || (argc > 1)) {
17018     rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
17019   }
17020   res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Prelude__IDMEF, 0 |  0 );
17021   if (!SWIG_IsOK(res1)) {
17022     SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Prelude::IDMEF *","get", 1, self ));
17023   }
17024   arg1 = reinterpret_cast< Prelude::IDMEF * >(argp1);
17025   res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
17026   if (!SWIG_IsOK(res2)) {
17027     SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","get", 2, argv[0] ));
17028   }
17029   arg2 = reinterpret_cast< char * >(buf2);
17030   {
17031     try {
17032       result = Prelude_IDMEF_get(arg1,(char const *)arg2);
17033     } catch(Prelude::PreludeError &e) {
17034       if ( e.getCode() == PRELUDE_ERROR_EOF )
17035       rb_raise(rb_eEOFError, "%s", e.what());
17036       else
17037       SWIG_exception(SWIG_RuntimeError, e.what());
17038 
17039       SWIG_fail;
17040     }
17041   }
17042   {
17043     int ret;
17044 
17045     if ( (&result)->isNull() )
17046     vresult = Qnil;
17047     else {
17048       ret = IDMEFValue_to_SWIG(self, result, NULL, &vresult);
17049       if ( ret < 0 ) {
17050         std::stringstream s;
17051         s << "IDMEFValue typemap does not handle value of type '" << idmef_value_type_to_string((idmef_value_type_id_t) (&result)->getType()) << "'";
17052         SWIG_exception_fail(SWIG_ValueError, s.str().c_str());
17053       }
17054     }
17055   }
17056   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
17057   return vresult;
17058 fail:
17059   if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
17060   return Qnil;
17061 }
17062 
17063 
17064 
17065 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
17066 
17067 static void *_p_swig__IteratorTo_p_swig__ConstIterator(void *x, int *SWIGUNUSEDPARM(newmemory)) {
17068     return (void *)((swig::ConstIterator *)  ((swig::Iterator *) x));
17069 }
17070 static void *_p_Prelude__ClientTo_p_Prelude__ClientProfile(void *x, int *SWIGUNUSEDPARM(newmemory)) {
17071     return (void *)((Prelude::ClientProfile *)  ((Prelude::Client *) x));
17072 }
17073 static void *_p_Prelude__ClientEasyTo_p_Prelude__ClientProfile(void *x, int *SWIGUNUSEDPARM(newmemory)) {
17074     return (void *)((Prelude::ClientProfile *) (Prelude::Client *) ((Prelude::ClientEasy *) x));
17075 }
17076 static void *_p_Prelude__PreludeErrorTo_p_std__exception(void *x, int *SWIGUNUSEDPARM(newmemory)) {
17077     return (void *)((std::exception *)  ((Prelude::PreludeError *) x));
17078 }
17079 static void *_p_Prelude__ClientEasyTo_p_Prelude__Client(void *x, int *SWIGUNUSEDPARM(newmemory)) {
17080     return (void *)((Prelude::Client *)  ((Prelude::ClientEasy *) x));
17081 }
17082 static swig_type_info _swigt__p_Prelude__Client = {"_p_Prelude__Client", "Prelude::Client *", 0, 0, (void*)0, 0};
17083 static swig_type_info _swigt__p_Prelude__ClientEasy = {"_p_Prelude__ClientEasy", "Prelude::ClientEasy *", 0, 0, (void*)0, 0};
17084 static swig_type_info _swigt__p_Prelude__ClientProfile = {"_p_Prelude__ClientProfile", "Prelude::ClientProfile *", 0, 0, (void*)0, 0};
17085 static swig_type_info _swigt__p_Prelude__Connection = {"_p_Prelude__Connection", "Prelude::Connection *", 0, 0, (void*)0, 0};
17086 static swig_type_info _swigt__p_Prelude__ConnectionPool = {"_p_Prelude__ConnectionPool", "Prelude::ConnectionPool *", 0, 0, (void*)0, 0};
17087 static swig_type_info _swigt__p_Prelude__IDMEF = {"_p_Prelude__IDMEF", "Prelude::IDMEF *", 0, 0, (void*)0, 0};
17088 static swig_type_info _swigt__p_Prelude__IDMEFClass = {"_p_Prelude__IDMEFClass", "Prelude::IDMEFClass *", 0, 0, (void*)0, 0};
17089 static swig_type_info _swigt__p_Prelude__IDMEFCriteria = {"_p_Prelude__IDMEFCriteria", "Prelude::IDMEFCriteria *", 0, 0, (void*)0, 0};
17090 static swig_type_info _swigt__p_Prelude__IDMEFCriterion = {"_p_Prelude__IDMEFCriterion", "Prelude::IDMEFCriterion *", 0, 0, (void*)0, 0};
17091 static swig_type_info _swigt__p_Prelude__IDMEFPath = {"_p_Prelude__IDMEFPath", "Prelude::IDMEFPath *", 0, 0, (void*)0, 0};
17092 static swig_type_info _swigt__p_Prelude__IDMEFTime = {"_p_Prelude__IDMEFTime", "Prelude::IDMEFTime *", 0, 0, (void*)0, 0};
17093 static swig_type_info _swigt__p_Prelude__IDMEFValue = {"_p_Prelude__IDMEFValue", "Prelude::IDMEFValue *", 0, 0, (void*)0, 0};
17094 static swig_type_info _swigt__p_Prelude__PreludeError = {"_p_Prelude__PreludeError", "Prelude::PreludeError *", 0, 0, (void*)0, 0};
17095 static swig_type_info _swigt__p_Prelude__PreludeLog = {"_p_Prelude__PreludeLog", "Prelude::PreludeLog *", 0, 0, (void*)0, 0};
17096 static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
17097 static swig_type_info _swigt__p_char = {"_p_char", "char *|int8_t *", 0, 0, (void*)0, 0};
17098 static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
17099 static swig_type_info _swigt__p_f_int_p_q_const__char__void = {"_p_f_int_p_q_const__char__void", "void (*)(int,char const *)", 0, 0, (void*)0, 0};
17100 static swig_type_info _swigt__p_idmef_criteria_t = {"_p_idmef_criteria_t", "idmef_criteria_t *", 0, 0, (void*)0, 0};
17101 static swig_type_info _swigt__p_idmef_criterion_operator_t = {"_p_idmef_criterion_operator_t", "idmef_criterion_operator_t *", 0, 0, (void*)0, 0};
17102 static swig_type_info _swigt__p_idmef_object_t = {"_p_idmef_object_t", "idmef_object_t *", 0, 0, (void*)0, 0};
17103 static swig_type_info _swigt__p_idmef_path_t = {"_p_idmef_path_t", "idmef_path_t *", 0, 0, (void*)0, 0};
17104 static swig_type_info _swigt__p_idmef_time_t = {"_p_idmef_time_t", "idmef_time_t *", 0, 0, (void*)0, 0};
17105 static swig_type_info _swigt__p_idmef_value_t = {"_p_idmef_value_t", "idmef_value_t *", 0, 0, (void*)0, 0};
17106 static swig_type_info _swigt__p_int = {"_p_int", "int *|int32_t *", 0, 0, (void*)0, 0};
17107 static swig_type_info _swigt__p_long_long = {"_p_long_long", "int64_t *|long long *|time_t *", 0, 0, (void*)0, 0};
17108 static swig_type_info _swigt__p_prelude_client_profile_t = {"_p_prelude_client_profile_t", "prelude_client_profile_t *", 0, 0, (void*)0, 0};
17109 static swig_type_info _swigt__p_prelude_client_t = {"_p_prelude_client_t", "prelude_client_t *", 0, 0, (void*)0, 0};
17110 static swig_type_info _swigt__p_prelude_connection_pool_t = {"_p_prelude_connection_pool_t", "prelude_connection_pool_t *", 0, 0, (void*)0, 0};
17111 static swig_type_info _swigt__p_prelude_connection_t = {"_p_prelude_connection_t", "prelude_connection_t *", 0, 0, (void*)0, 0};
17112 static swig_type_info _swigt__p_short = {"_p_short", "short *|int16_t *", 0, 0, (void*)0, 0};
17113 static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
17114 static swig_type_info _swigt__p_std__exception = {"_p_std__exception", "std::exception *", 0, 0, (void*)0, 0};
17115 static swig_type_info _swigt__p_swig__ConstIterator = {"_p_swig__ConstIterator", "swig::ConstIterator *", 0, 0, (void*)0, 0};
17116 static swig_type_info _swigt__p_swig__GC_VALUE = {"_p_swig__GC_VALUE", "swig::GC_VALUE *", 0, 0, (void*)0, 0};
17117 static swig_type_info _swigt__p_swig__Iterator = {"_p_swig__Iterator", "swig::Iterator *", 0, 0, (void*)0, 0};
17118 static swig_type_info _swigt__p_timeval = {"_p_timeval", "timeval *", 0, 0, (void*)0, 0};
17119 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|uint8_t *", 0, 0, (void*)0, 0};
17120 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uint32_t *|unsigned int *", 0, 0, (void*)0, 0};
17121 static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint64_t *|unsigned long long *", 0, 0, (void*)0, 0};
17122 static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint16_t *", 0, 0, (void*)0, 0};
17123 static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
17124 static swig_type_info _swigt__p_void = {"_p_void", "VALUE|void *", 0, 0, (void*)0, 0};
17125 
17126 static swig_type_info *swig_type_initial[] = {
17127   &_swigt__p_Prelude__Client,
17128   &_swigt__p_Prelude__ClientEasy,
17129   &_swigt__p_Prelude__ClientProfile,
17130   &_swigt__p_Prelude__Connection,
17131   &_swigt__p_Prelude__ConnectionPool,
17132   &_swigt__p_Prelude__IDMEF,
17133   &_swigt__p_Prelude__IDMEFClass,
17134   &_swigt__p_Prelude__IDMEFCriteria,
17135   &_swigt__p_Prelude__IDMEFCriterion,
17136   &_swigt__p_Prelude__IDMEFPath,
17137   &_swigt__p_Prelude__IDMEFTime,
17138   &_swigt__p_Prelude__IDMEFValue,
17139   &_swigt__p_Prelude__PreludeError,
17140   &_swigt__p_Prelude__PreludeLog,
17141   &_swigt__p_allocator_type,
17142   &_swigt__p_char,
17143   &_swigt__p_difference_type,
17144   &_swigt__p_f_int_p_q_const__char__void,
17145   &_swigt__p_idmef_criteria_t,
17146   &_swigt__p_idmef_criterion_operator_t,
17147   &_swigt__p_idmef_object_t,
17148   &_swigt__p_idmef_path_t,
17149   &_swigt__p_idmef_time_t,
17150   &_swigt__p_idmef_value_t,
17151   &_swigt__p_int,
17152   &_swigt__p_long_long,
17153   &_swigt__p_prelude_client_profile_t,
17154   &_swigt__p_prelude_client_t,
17155   &_swigt__p_prelude_connection_pool_t,
17156   &_swigt__p_prelude_connection_t,
17157   &_swigt__p_short,
17158   &_swigt__p_size_type,
17159   &_swigt__p_std__exception,
17160   &_swigt__p_swig__ConstIterator,
17161   &_swigt__p_swig__GC_VALUE,
17162   &_swigt__p_swig__Iterator,
17163   &_swigt__p_timeval,
17164   &_swigt__p_unsigned_char,
17165   &_swigt__p_unsigned_int,
17166   &_swigt__p_unsigned_long_long,
17167   &_swigt__p_unsigned_short,
17168   &_swigt__p_value_type,
17169   &_swigt__p_void,
17170 };
17171 
17172 static swig_cast_info _swigc__p_Prelude__Client[] = {  {&_swigt__p_Prelude__Client, 0, 0, 0},  {&_swigt__p_Prelude__ClientEasy, _p_Prelude__ClientEasyTo_p_Prelude__Client, 0, 0},{0, 0, 0, 0}};
17173 static swig_cast_info _swigc__p_Prelude__ClientEasy[] = {  {&_swigt__p_Prelude__ClientEasy, 0, 0, 0},{0, 0, 0, 0}};
17174 static swig_cast_info _swigc__p_Prelude__ClientProfile[] = {  {&_swigt__p_Prelude__Client, _p_Prelude__ClientTo_p_Prelude__ClientProfile, 0, 0},  {&_swigt__p_Prelude__ClientProfile, 0, 0, 0},  {&_swigt__p_Prelude__ClientEasy, _p_Prelude__ClientEasyTo_p_Prelude__ClientProfile, 0, 0},{0, 0, 0, 0}};
17175 static swig_cast_info _swigc__p_Prelude__Connection[] = {  {&_swigt__p_Prelude__Connection, 0, 0, 0},{0, 0, 0, 0}};
17176 static swig_cast_info _swigc__p_Prelude__ConnectionPool[] = {  {&_swigt__p_Prelude__ConnectionPool, 0, 0, 0},{0, 0, 0, 0}};
17177 static swig_cast_info _swigc__p_Prelude__IDMEF[] = {  {&_swigt__p_Prelude__IDMEF, 0, 0, 0},{0, 0, 0, 0}};
17178 static swig_cast_info _swigc__p_Prelude__IDMEFClass[] = {  {&_swigt__p_Prelude__IDMEFClass, 0, 0, 0},{0, 0, 0, 0}};
17179 static swig_cast_info _swigc__p_Prelude__IDMEFCriteria[] = {  {&_swigt__p_Prelude__IDMEFCriteria, 0, 0, 0},{0, 0, 0, 0}};
17180 static swig_cast_info _swigc__p_Prelude__IDMEFCriterion[] = {  {&_swigt__p_Prelude__IDMEFCriterion, 0, 0, 0},{0, 0, 0, 0}};
17181 static swig_cast_info _swigc__p_Prelude__IDMEFPath[] = {  {&_swigt__p_Prelude__IDMEFPath, 0, 0, 0},{0, 0, 0, 0}};
17182 static swig_cast_info _swigc__p_Prelude__IDMEFTime[] = {  {&_swigt__p_Prelude__IDMEFTime, 0, 0, 0},{0, 0, 0, 0}};
17183 static swig_cast_info _swigc__p_Prelude__IDMEFValue[] = {  {&_swigt__p_Prelude__IDMEFValue, 0, 0, 0},{0, 0, 0, 0}};
17184 static swig_cast_info _swigc__p_Prelude__PreludeError[] = {  {&_swigt__p_Prelude__PreludeError, 0, 0, 0},{0, 0, 0, 0}};
17185 static swig_cast_info _swigc__p_Prelude__PreludeLog[] = {  {&_swigt__p_Prelude__PreludeLog, 0, 0, 0},{0, 0, 0, 0}};
17186 static swig_cast_info _swigc__p_allocator_type[] = {  {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
17187 static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
17188 static swig_cast_info _swigc__p_difference_type[] = {  {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
17189 static swig_cast_info _swigc__p_f_int_p_q_const__char__void[] = {  {&_swigt__p_f_int_p_q_const__char__void, 0, 0, 0},{0, 0, 0, 0}};
17190 static swig_cast_info _swigc__p_idmef_criteria_t[] = {  {&_swigt__p_idmef_criteria_t, 0, 0, 0},{0, 0, 0, 0}};
17191 static swig_cast_info _swigc__p_idmef_criterion_operator_t[] = {  {&_swigt__p_idmef_criterion_operator_t, 0, 0, 0},{0, 0, 0, 0}};
17192 static swig_cast_info _swigc__p_idmef_object_t[] = {  {&_swigt__p_idmef_object_t, 0, 0, 0},{0, 0, 0, 0}};
17193 static swig_cast_info _swigc__p_idmef_path_t[] = {  {&_swigt__p_idmef_path_t, 0, 0, 0},{0, 0, 0, 0}};
17194 static swig_cast_info _swigc__p_idmef_time_t[] = {  {&_swigt__p_idmef_time_t, 0, 0, 0},{0, 0, 0, 0}};
17195 static swig_cast_info _swigc__p_idmef_value_t[] = {  {&_swigt__p_idmef_value_t, 0, 0, 0},{0, 0, 0, 0}};
17196 static swig_cast_info _swigc__p_int[] = {  {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
17197 static swig_cast_info _swigc__p_long_long[] = {  {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
17198 static swig_cast_info _swigc__p_prelude_client_profile_t[] = {  {&_swigt__p_prelude_client_profile_t, 0, 0, 0},{0, 0, 0, 0}};
17199 static swig_cast_info _swigc__p_prelude_client_t[] = {  {&_swigt__p_prelude_client_t, 0, 0, 0},{0, 0, 0, 0}};
17200 static swig_cast_info _swigc__p_prelude_connection_pool_t[] = {  {&_swigt__p_prelude_connection_pool_t, 0, 0, 0},{0, 0, 0, 0}};
17201 static swig_cast_info _swigc__p_prelude_connection_t[] = {  {&_swigt__p_prelude_connection_t, 0, 0, 0},{0, 0, 0, 0}};
17202 static swig_cast_info _swigc__p_short[] = {  {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
17203 static swig_cast_info _swigc__p_size_type[] = {  {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
17204 static swig_cast_info _swigc__p_std__exception[] = {  {&_swigt__p_std__exception, 0, 0, 0},  {&_swigt__p_Prelude__PreludeError, _p_Prelude__PreludeErrorTo_p_std__exception, 0, 0},{0, 0, 0, 0}};
17205 static swig_cast_info _swigc__p_swig__ConstIterator[] = {  {&_swigt__p_swig__ConstIterator, 0, 0, 0},  {&_swigt__p_swig__Iterator, _p_swig__IteratorTo_p_swig__ConstIterator, 0, 0},{0, 0, 0, 0}};
17206 static swig_cast_info _swigc__p_swig__GC_VALUE[] = {  {&_swigt__p_swig__GC_VALUE, 0, 0, 0},{0, 0, 0, 0}};
17207 static swig_cast_info _swigc__p_swig__Iterator[] = {  {&_swigt__p_swig__Iterator, 0, 0, 0},{0, 0, 0, 0}};
17208 static swig_cast_info _swigc__p_timeval[] = {  {&_swigt__p_timeval, 0, 0, 0},{0, 0, 0, 0}};
17209 static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
17210 static swig_cast_info _swigc__p_unsigned_int[] = {  {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
17211 static swig_cast_info _swigc__p_unsigned_long_long[] = {  {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
17212 static swig_cast_info _swigc__p_unsigned_short[] = {  {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
17213 static swig_cast_info _swigc__p_value_type[] = {  {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
17214 static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
17215 
17216 static swig_cast_info *swig_cast_initial[] = {
17217   _swigc__p_Prelude__Client,
17218   _swigc__p_Prelude__ClientEasy,
17219   _swigc__p_Prelude__ClientProfile,
17220   _swigc__p_Prelude__Connection,
17221   _swigc__p_Prelude__ConnectionPool,
17222   _swigc__p_Prelude__IDMEF,
17223   _swigc__p_Prelude__IDMEFClass,
17224   _swigc__p_Prelude__IDMEFCriteria,
17225   _swigc__p_Prelude__IDMEFCriterion,
17226   _swigc__p_Prelude__IDMEFPath,
17227   _swigc__p_Prelude__IDMEFTime,
17228   _swigc__p_Prelude__IDMEFValue,
17229   _swigc__p_Prelude__PreludeError,
17230   _swigc__p_Prelude__PreludeLog,
17231   _swigc__p_allocator_type,
17232   _swigc__p_char,
17233   _swigc__p_difference_type,
17234   _swigc__p_f_int_p_q_const__char__void,
17235   _swigc__p_idmef_criteria_t,
17236   _swigc__p_idmef_criterion_operator_t,
17237   _swigc__p_idmef_object_t,
17238   _swigc__p_idmef_path_t,
17239   _swigc__p_idmef_time_t,
17240   _swigc__p_idmef_value_t,
17241   _swigc__p_int,
17242   _swigc__p_long_long,
17243   _swigc__p_prelude_client_profile_t,
17244   _swigc__p_prelude_client_t,
17245   _swigc__p_prelude_connection_pool_t,
17246   _swigc__p_prelude_connection_t,
17247   _swigc__p_short,
17248   _swigc__p_size_type,
17249   _swigc__p_std__exception,
17250   _swigc__p_swig__ConstIterator,
17251   _swigc__p_swig__GC_VALUE,
17252   _swigc__p_swig__Iterator,
17253   _swigc__p_timeval,
17254   _swigc__p_unsigned_char,
17255   _swigc__p_unsigned_int,
17256   _swigc__p_unsigned_long_long,
17257   _swigc__p_unsigned_short,
17258   _swigc__p_value_type,
17259   _swigc__p_void,
17260 };
17261 
17262 
17263 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
17264 
17265 /* -----------------------------------------------------------------------------
17266  * Type initialization:
17267  * This problem is tough by the requirement that no dynamic
17268  * memory is used. Also, since swig_type_info structures store pointers to
17269  * swig_cast_info structures and swig_cast_info structures store pointers back
17270  * to swig_type_info structures, we need some lookup code at initialization.
17271  * The idea is that swig generates all the structures that are needed.
17272  * The runtime then collects these partially filled structures.
17273  * The SWIG_InitializeModule function takes these initial arrays out of
17274  * swig_module, and does all the lookup, filling in the swig_module.types
17275  * array with the correct data and linking the correct swig_cast_info
17276  * structures together.
17277  *
17278  * The generated swig_type_info structures are assigned statically to an initial
17279  * array. We just loop through that array, and handle each type individually.
17280  * First we lookup if this type has been already loaded, and if so, use the
17281  * loaded structure instead of the generated one. Then we have to fill in the
17282  * cast linked list. The cast data is initially stored in something like a
17283  * two-dimensional array. Each row corresponds to a type (there are the same
17284  * number of rows as there are in the swig_type_initial array). Each entry in
17285  * a column is one of the swig_cast_info structures for that type.
17286  * The cast_initial array is actually an array of arrays, because each row has
17287  * a variable number of columns. So to actually build the cast linked list,
17288  * we find the array of casts associated with the type, and loop through it
17289  * adding the casts to the list. The one last trick we need to do is making
17290  * sure the type pointer in the swig_cast_info struct is correct.
17291  *
17292  * First off, we lookup the cast->type name to see if it is already loaded.
17293  * There are three cases to handle:
17294  *  1) If the cast->type has already been loaded AND the type we are adding
17295  *     casting info to has not been loaded (it is in this module), THEN we
17296  *     replace the cast->type pointer with the type pointer that has already
17297  *     been loaded.
17298  *  2) If BOTH types (the one we are adding casting info to, and the
17299  *     cast->type) are loaded, THEN the cast info has already been loaded by
17300  *     the previous module so we just ignore it.
17301  *  3) Finally, if cast->type has not already been loaded, then we add that
17302  *     swig_cast_info to the linked list (because the cast->type) pointer will
17303  *     be correct.
17304  * ----------------------------------------------------------------------------- */
17305 
17306 #ifdef __cplusplus
17307 extern "C" {
17308 #if 0
17309 } /* c-mode */
17310 #endif
17311 #endif
17312 
17313 #if 0
17314 #define SWIGRUNTIME_DEBUG
17315 #endif
17316 
17317 
17318 SWIGRUNTIME void
17319 SWIG_InitializeModule(void *clientdata) {
17320   size_t i;
17321   swig_module_info *module_head, *iter;
17322   int init;
17323 
17324   /* check to see if the circular list has been setup, if not, set it up */
17325   if (swig_module.next==0) {
17326     /* Initialize the swig_module */
17327     swig_module.type_initial = swig_type_initial;
17328     swig_module.cast_initial = swig_cast_initial;
17329     swig_module.next = &swig_module;
17330     init = 1;
17331   } else {
17332     init = 0;
17333   }
17334 
17335   /* Try and load any already created modules */
17336   module_head = SWIG_GetModule(clientdata);
17337   if (!module_head) {
17338     /* This is the first module loaded for this interpreter */
17339     /* so set the swig module into the interpreter */
17340     SWIG_SetModule(clientdata, &swig_module);
17341   } else {
17342     /* the interpreter has loaded a SWIG module, but has it loaded this one? */
17343     iter=module_head;
17344     do {
17345       if (iter==&swig_module) {
17346         /* Our module is already in the list, so there's nothing more to do. */
17347         return;
17348       }
17349       iter=iter->next;
17350     } while (iter!= module_head);
17351 
17352     /* otherwise we must add our module into the list */
17353     swig_module.next = module_head->next;
17354     module_head->next = &swig_module;
17355   }
17356 
17357   /* When multiple interpreters are used, a module could have already been initialized in
17358      a different interpreter, but not yet have a pointer in this interpreter.
17359      In this case, we do not want to continue adding types... everything should be
17360      set up already */
17361   if (init == 0) return;
17362 
17363   /* Now work on filling in swig_module.types */
17364 #ifdef SWIGRUNTIME_DEBUG
17365   printf("SWIG_InitializeModule: size %d\n", swig_module.size);
17366 #endif
17367   for (i = 0; i < swig_module.size; ++i) {
17368     swig_type_info *type = 0;
17369     swig_type_info *ret;
17370     swig_cast_info *cast;
17371 
17372 #ifdef SWIGRUNTIME_DEBUG
17373     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
17374 #endif
17375 
17376     /* if there is another module already loaded */
17377     if (swig_module.next != &swig_module) {
17378       type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
17379     }
17380     if (type) {
17381       /* Overwrite clientdata field */
17382 #ifdef SWIGRUNTIME_DEBUG
17383       printf("SWIG_InitializeModule: found type %s\n", type->name);
17384 #endif
17385       if (swig_module.type_initial[i]->clientdata) {
17386 	type->clientdata = swig_module.type_initial[i]->clientdata;
17387 #ifdef SWIGRUNTIME_DEBUG
17388       printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
17389 #endif
17390       }
17391     } else {
17392       type = swig_module.type_initial[i];
17393     }
17394 
17395     /* Insert casting types */
17396     cast = swig_module.cast_initial[i];
17397     while (cast->type) {
17398 
17399       /* Don't need to add information already in the list */
17400       ret = 0;
17401 #ifdef SWIGRUNTIME_DEBUG
17402       printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
17403 #endif
17404       if (swig_module.next != &swig_module) {
17405         ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
17406 #ifdef SWIGRUNTIME_DEBUG
17407 	if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
17408 #endif
17409       }
17410       if (ret) {
17411 	if (type == swig_module.type_initial[i]) {
17412 #ifdef SWIGRUNTIME_DEBUG
17413 	  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
17414 #endif
17415 	  cast->type = ret;
17416 	  ret = 0;
17417 	} else {
17418 	  /* Check for casting already in the list */
17419 	  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
17420 #ifdef SWIGRUNTIME_DEBUG
17421 	  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
17422 #endif
17423 	  if (!ocast) ret = 0;
17424 	}
17425       }
17426 
17427       if (!ret) {
17428 #ifdef SWIGRUNTIME_DEBUG
17429 	printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
17430 #endif
17431         if (type->cast) {
17432           type->cast->prev = cast;
17433           cast->next = type->cast;
17434         }
17435         type->cast = cast;
17436       }
17437       cast++;
17438     }
17439     /* Set entry in modules->types array equal to the type */
17440     swig_module.types[i] = type;
17441   }
17442   swig_module.types[i] = 0;
17443 
17444 #ifdef SWIGRUNTIME_DEBUG
17445   printf("**** SWIG_InitializeModule: Cast List ******\n");
17446   for (i = 0; i < swig_module.size; ++i) {
17447     int j = 0;
17448     swig_cast_info *cast = swig_module.cast_initial[i];
17449     printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
17450     while (cast->type) {
17451       printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
17452       cast++;
17453       ++j;
17454     }
17455   printf("---- Total casts: %d\n",j);
17456   }
17457   printf("**** SWIG_InitializeModule: Cast List ******\n");
17458 #endif
17459 }
17460 
17461 /* This function will propagate the clientdata field of type to
17462 * any new swig_type_info structures that have been added into the list
17463 * of equivalent types.  It is like calling
17464 * SWIG_TypeClientData(type, clientdata) a second time.
17465 */
17466 SWIGRUNTIME void
17467 SWIG_PropagateClientData(void) {
17468   size_t i;
17469   swig_cast_info *equiv;
17470   static int init_run = 0;
17471 
17472   if (init_run) return;
17473   init_run = 1;
17474 
17475   for (i = 0; i < swig_module.size; i++) {
17476     if (swig_module.types[i]->clientdata) {
17477       equiv = swig_module.types[i]->cast;
17478       while (equiv) {
17479         if (!equiv->converter) {
17480           if (equiv->type && !equiv->type->clientdata)
17481             SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
17482         }
17483         equiv = equiv->next;
17484       }
17485     }
17486   }
17487 }
17488 
17489 #ifdef __cplusplus
17490 #if 0
17491 { /* c-mode */
17492 #endif
17493 }
17494 #endif
17495 
17496 /*
17497 
17498 */
17499 #ifdef __cplusplus
17500 extern "C"
17501 #endif
17502 SWIGEXPORT void Init_Prelude(void) {
17503   size_t i;
17504 
17505   SWIG_InitRuntime();
17506   mPrelude = rb_define_module("Prelude");
17507 
17508   SWIG_InitializeModule(0);
17509   for (i = 0; i < swig_module.size; i++) {
17510     SWIG_define_class(swig_module.types[i]);
17511   }
17512 
17513   SWIG_RubyInitializeTrackings();
17514 
17515   SwigClassGC_VALUE.klass = rb_define_class_under(mPrelude, "GC_VALUE", rb_cObject);
17516   SWIG_TypeClientData(SWIGTYPE_p_swig__GC_VALUE, (void *) &SwigClassGC_VALUE);
17517   rb_undef_alloc_func(SwigClassGC_VALUE.klass);
17518   rb_define_method(SwigClassGC_VALUE.klass, "inspect", VALUEFUNC(_wrap_GC_VALUE_inspect), -1);
17519   rb_define_method(SwigClassGC_VALUE.klass, "to_s", VALUEFUNC(_wrap_GC_VALUE_to_s), -1);
17520   SwigClassGC_VALUE.mark = 0;
17521   SwigClassGC_VALUE.trackObjects = 0;
17522 
17523   swig::SwigGCReferences::initialize();
17524 
17525 
17526   SwigClassConstIterator.klass = rb_define_class_under(mPrelude, "ConstIterator", rb_cObject);
17527   SWIG_TypeClientData(SWIGTYPE_p_swig__ConstIterator, (void *) &SwigClassConstIterator);
17528   rb_undef_alloc_func(SwigClassConstIterator.klass);
17529   rb_define_method(SwigClassConstIterator.klass, "value", VALUEFUNC(_wrap_ConstIterator_value), -1);
17530   rb_define_method(SwigClassConstIterator.klass, "dup", VALUEFUNC(_wrap_ConstIterator_dup), -1);
17531   rb_define_method(SwigClassConstIterator.klass, "inspect", VALUEFUNC(_wrap_ConstIterator_inspect), -1);
17532   rb_define_method(SwigClassConstIterator.klass, "to_s", VALUEFUNC(_wrap_ConstIterator_to_s), -1);
17533   rb_define_method(SwigClassConstIterator.klass, "next", VALUEFUNC(_wrap_ConstIterator_next), -1);
17534   rb_define_method(SwigClassConstIterator.klass, "previous", VALUEFUNC(_wrap_ConstIterator_previous), -1);
17535   rb_define_method(SwigClassConstIterator.klass, "==", VALUEFUNC(_wrap_ConstIterator___eq__), -1);
17536   rb_define_method(SwigClassConstIterator.klass, "+", VALUEFUNC(_wrap_ConstIterator___add__), -1);
17537   rb_define_method(SwigClassConstIterator.klass, "-", VALUEFUNC(_wrap_ConstIterator___sub__), -1);
17538   SwigClassConstIterator.mark = 0;
17539   SwigClassConstIterator.destroy = (void (*)(void *)) free_swig_ConstIterator;
17540   SwigClassConstIterator.trackObjects = 0;
17541 
17542   SwigClassIterator.klass = rb_define_class_under(mPrelude, "Iterator", ((swig_class *) SWIGTYPE_p_swig__ConstIterator->clientdata)->klass);
17543   SWIG_TypeClientData(SWIGTYPE_p_swig__Iterator, (void *) &SwigClassIterator);
17544   rb_undef_alloc_func(SwigClassIterator.klass);
17545   rb_define_method(SwigClassIterator.klass, "value=", VALUEFUNC(_wrap_Iterator_valuee___), -1);
17546   rb_define_method(SwigClassIterator.klass, "dup", VALUEFUNC(_wrap_Iterator_dup), -1);
17547   rb_define_method(SwigClassIterator.klass, "next", VALUEFUNC(_wrap_Iterator_next), -1);
17548   rb_define_method(SwigClassIterator.klass, "previous", VALUEFUNC(_wrap_Iterator_previous), -1);
17549   rb_define_method(SwigClassIterator.klass, "inspect", VALUEFUNC(_wrap_Iterator_inspect), -1);
17550   rb_define_method(SwigClassIterator.klass, "to_s", VALUEFUNC(_wrap_Iterator_to_s), -1);
17551   rb_define_method(SwigClassIterator.klass, "==", VALUEFUNC(_wrap_Iterator___eq__), -1);
17552   rb_define_method(SwigClassIterator.klass, "+", VALUEFUNC(_wrap_Iterator___add__), -1);
17553   rb_define_method(SwigClassIterator.klass, "-", VALUEFUNC(_wrap_Iterator___sub__), -1);
17554   SwigClassIterator.mark = 0;
17555   SwigClassIterator.destroy = (void (*)(void *)) free_swig_Iterator;
17556   SwigClassIterator.trackObjects = 0;
17557 
17558   int ret;
17559   char **argv;
17560   int _i, argc;
17561   VALUE rbargv, *ptr, tmp;
17562 
17563   __initial_thread = (gl_thread_t) gl_thread_self();
17564 
17565   rbargv = rb_const_get(rb_cObject, rb_intern("ARGV"));
17566   argc = RARRAY_LEN(rbargv) + 1;
17567 
17568   if ( argc + 1 < 0 )
17569   throw PreludeError("Invalid argc length");
17570 
17571   argv = (char **) malloc((argc + 1) * sizeof(char *));
17572   if ( ! argv )
17573   throw PreludeError("Allocation failure");
17574 
17575   tmp = rb_gv_get("$0");
17576   argv[0] = StringValuePtr(tmp);
17577 
17578   for ( ptr = RARRAY_PTR(rbargv), _i = 1; _i < argc; _i++, ptr++ )
17579   argv[_i] = StringValuePtr(*ptr);
17580 
17581   argv[_i] = NULL;
17582 
17583   ret = prelude_init(&argc, argv);
17584   if ( ret < 0 ) {
17585     free(argv);
17586     throw PreludeError(ret);
17587   }
17588 
17589   free(argv);
17590 
17591   rb_define_module_function(mPrelude, "checkVersion", VALUEFUNC(_wrap_checkVersion), -1);
17592 
17593   SwigClassClientProfile.klass = rb_define_class_under(mPrelude, "ClientProfile", rb_cObject);
17594   SWIG_TypeClientData(SWIGTYPE_p_Prelude__ClientProfile, (void *) &SwigClassClientProfile);
17595   rb_define_alloc_func(SwigClassClientProfile.klass, _wrap_ClientProfile_allocate);
17596   rb_define_method(SwigClassClientProfile.klass, "initialize", VALUEFUNC(_wrap_new_ClientProfile), -1);
17597   rb_define_method(SwigClassClientProfile.klass, "getUid", VALUEFUNC(_wrap_ClientProfile_getUid), -1);
17598   rb_define_method(SwigClassClientProfile.klass, "getGid", VALUEFUNC(_wrap_ClientProfile_getGid), -1);
17599   rb_define_method(SwigClassClientProfile.klass, "getName", VALUEFUNC(_wrap_ClientProfile_getName), -1);
17600   rb_define_method(SwigClassClientProfile.klass, "setName", VALUEFUNC(_wrap_ClientProfile_setName), -1);
17601   rb_define_method(SwigClassClientProfile.klass, "getAnalyzerId", VALUEFUNC(_wrap_ClientProfile_getAnalyzerId), -1);
17602   rb_define_method(SwigClassClientProfile.klass, "setAnalyzerId", VALUEFUNC(_wrap_ClientProfile_setAnalyzerId), -1);
17603   rb_define_method(SwigClassClientProfile.klass, "getConfigFilename", VALUEFUNC(_wrap_ClientProfile_getConfigFilename), -1);
17604   rb_define_method(SwigClassClientProfile.klass, "getAnalyzeridFilename", VALUEFUNC(_wrap_ClientProfile_getAnalyzeridFilename), -1);
17605   rb_define_method(SwigClassClientProfile.klass, "getTlsKeyFilename", VALUEFUNC(_wrap_ClientProfile_getTlsKeyFilename), -1);
17606   rb_define_method(SwigClassClientProfile.klass, "getTlsServerCaCertFilename", VALUEFUNC(_wrap_ClientProfile_getTlsServerCaCertFilename), -1);
17607   rb_define_method(SwigClassClientProfile.klass, "getTlsServerKeyCertFilename", VALUEFUNC(_wrap_ClientProfile_getTlsServerKeyCertFilename), -1);
17608   rb_define_method(SwigClassClientProfile.klass, "getTlsServerCrlFilename", VALUEFUNC(_wrap_ClientProfile_getTlsServerCrlFilename), -1);
17609   rb_define_method(SwigClassClientProfile.klass, "getTlsClientKeyCertFilename", VALUEFUNC(_wrap_ClientProfile_getTlsClientKeyCertFilename), -1);
17610   rb_define_method(SwigClassClientProfile.klass, "getTlsClientTrustedCertFilename", VALUEFUNC(_wrap_ClientProfile_getTlsClientTrustedCertFilename), -1);
17611   rb_define_method(SwigClassClientProfile.klass, "getBackupDirname", VALUEFUNC(_wrap_ClientProfile_getBackupDirname), -1);
17612   rb_define_method(SwigClassClientProfile.klass, "getProfileDirname", VALUEFUNC(_wrap_ClientProfile_getProfileDirname), -1);
17613   rb_define_method(SwigClassClientProfile.klass, "setPrefix", VALUEFUNC(_wrap_ClientProfile_setPrefix), -1);
17614   rb_define_method(SwigClassClientProfile.klass, "getPrefix", VALUEFUNC(_wrap_ClientProfile_getPrefix), -1);
17615   SwigClassClientProfile.mark = 0;
17616   SwigClassClientProfile.destroy = (void (*)(void *)) free_Prelude_ClientProfile;
17617   SwigClassClientProfile.trackObjects = 0;
17618 
17619   SwigClassConnection.klass = rb_define_class_under(mPrelude, "Connection", rb_cObject);
17620   SWIG_TypeClientData(SWIGTYPE_p_Prelude__Connection, (void *) &SwigClassConnection);
17621   rb_define_alloc_func(SwigClassConnection.klass, _wrap_Connection_allocate);
17622   rb_define_method(SwigClassConnection.klass, "initialize", VALUEFUNC(_wrap_new_Connection), -1);
17623   rb_define_method(SwigClassConnection.klass, "getConnection", VALUEFUNC(_wrap_Connection_getConnection), -1);
17624   rb_define_method(SwigClassConnection.klass, "close", VALUEFUNC(_wrap_Connection_close), -1);
17625   rb_define_method(SwigClassConnection.klass, "connect", VALUEFUNC(_wrap_Connection_connect), -1);
17626   rb_define_method(SwigClassConnection.klass, "setState", VALUEFUNC(_wrap_Connection_setState), -1);
17627   rb_define_method(SwigClassConnection.klass, "getState", VALUEFUNC(_wrap_Connection_getState), -1);
17628   rb_define_method(SwigClassConnection.klass, "setData", VALUEFUNC(_wrap_Connection_setData), -1);
17629   rb_define_method(SwigClassConnection.klass, "getData", VALUEFUNC(_wrap_Connection_getData), -1);
17630   rb_define_method(SwigClassConnection.klass, "getPermission", VALUEFUNC(_wrap_Connection_getPermission), -1);
17631   rb_define_method(SwigClassConnection.klass, "setPeerAnalyzerid", VALUEFUNC(_wrap_Connection_setPeerAnalyzerid), -1);
17632   rb_define_method(SwigClassConnection.klass, "getPeerAnalyzerid", VALUEFUNC(_wrap_Connection_getPeerAnalyzerid), -1);
17633   rb_define_method(SwigClassConnection.klass, "getLocalAddr", VALUEFUNC(_wrap_Connection_getLocalAddr), -1);
17634   rb_define_method(SwigClassConnection.klass, "getLocalPort", VALUEFUNC(_wrap_Connection_getLocalPort), -1);
17635   rb_define_method(SwigClassConnection.klass, "getPeerAddr", VALUEFUNC(_wrap_Connection_getPeerAddr), -1);
17636   rb_define_method(SwigClassConnection.klass, "getPeerPort", VALUEFUNC(_wrap_Connection_getPeerPort), -1);
17637   rb_define_method(SwigClassConnection.klass, "isAlive", VALUEFUNC(_wrap_Connection_isAlive), -1);
17638   rb_define_method(SwigClassConnection.klass, "getFd", VALUEFUNC(_wrap_Connection_getFd), -1);
17639   rb_define_method(SwigClassConnection.klass, "recvIDMEF", VALUEFUNC(_wrap_Connection_recvIDMEF), -1);
17640   SwigClassConnection.mark = 0;
17641   SwigClassConnection.destroy = (void (*)(void *)) free_Prelude_Connection;
17642   SwigClassConnection.trackObjects = 0;
17643 
17644   SwigClassConnectionPool.klass = rb_define_class_under(mPrelude, "ConnectionPool", rb_cObject);
17645   SWIG_TypeClientData(SWIGTYPE_p_Prelude__ConnectionPool, (void *) &SwigClassConnectionPool);
17646   rb_define_alloc_func(SwigClassConnectionPool.klass, _wrap_ConnectionPool_allocate);
17647   rb_define_method(SwigClassConnectionPool.klass, "initialize", VALUEFUNC(_wrap_new_ConnectionPool), -1);
17648   rb_define_method(SwigClassConnectionPool.klass, "init", VALUEFUNC(_wrap_ConnectionPool_init), -1);
17649   rb_define_method(SwigClassConnectionPool.klass, "setConnectionString", VALUEFUNC(_wrap_ConnectionPool_setConnectionString), -1);
17650   rb_define_method(SwigClassConnectionPool.klass, "getConnectionString", VALUEFUNC(_wrap_ConnectionPool_getConnectionString), -1);
17651   rb_define_method(SwigClassConnectionPool.klass, "getConnectionList", VALUEFUNC(_wrap_ConnectionPool_getConnectionList), -1);
17652   rb_define_method(SwigClassConnectionPool.klass, "setFlags", VALUEFUNC(_wrap_ConnectionPool_setFlags), -1);
17653   rb_define_method(SwigClassConnectionPool.klass, "getFlags", VALUEFUNC(_wrap_ConnectionPool_getFlags), -1);
17654   rb_define_method(SwigClassConnectionPool.klass, "setData", VALUEFUNC(_wrap_ConnectionPool_setData), -1);
17655   rb_define_method(SwigClassConnectionPool.klass, "getData", VALUEFUNC(_wrap_ConnectionPool_getData), -1);
17656   rb_define_method(SwigClassConnectionPool.klass, "addConnection", VALUEFUNC(_wrap_ConnectionPool_addConnection), -1);
17657   rb_define_method(SwigClassConnectionPool.klass, "delConnection", VALUEFUNC(_wrap_ConnectionPool_delConnection), -1);
17658   rb_define_method(SwigClassConnectionPool.klass, "setConnectionAlive", VALUEFUNC(_wrap_ConnectionPool_setConnectionAlive), -1);
17659   rb_define_method(SwigClassConnectionPool.klass, "setConnectionDead", VALUEFUNC(_wrap_ConnectionPool_setConnectionDead), -1);
17660   rb_define_method(SwigClassConnectionPool.klass, "setRequiredPermission", VALUEFUNC(_wrap_ConnectionPool_setRequiredPermission), -1);
17661   SwigClassConnectionPool.mark = 0;
17662   SwigClassConnectionPool.destroy = (void (*)(void *)) free_Prelude_ConnectionPool;
17663   SwigClassConnectionPool.trackObjects = 0;
17664 
17665   SwigClassClient.klass = rb_define_class_under(mPrelude, "Client", ((swig_class *) SWIGTYPE_p_Prelude__ClientProfile->clientdata)->klass);
17666   SWIG_TypeClientData(SWIGTYPE_p_Prelude__Client, (void *) &SwigClassClient);
17667   rb_define_alloc_func(SwigClassClient.klass, _wrap_Client_allocate);
17668   rb_define_method(SwigClassClient.klass, "initialize", VALUEFUNC(_wrap_new_Client), -1);
17669   rb_define_const(SwigClassClient.klass, "ASYNC_SEND", SWIG_From_int(static_cast< int >(Prelude::Client::ASYNC_SEND)));
17670   rb_define_const(SwigClassClient.klass, "FLAGS_ASYNC_SEND", SWIG_From_int(static_cast< int >(Prelude::Client::FLAGS_ASYNC_SEND)));
17671   rb_define_const(SwigClassClient.klass, "ASYNC_TIMER", SWIG_From_int(static_cast< int >(Prelude::Client::ASYNC_TIMER)));
17672   rb_define_const(SwigClassClient.klass, "FLAGS_ASYNC_TIMER", SWIG_From_int(static_cast< int >(Prelude::Client::FLAGS_ASYNC_TIMER)));
17673   rb_define_const(SwigClassClient.klass, "HEARTBEAT", SWIG_From_int(static_cast< int >(Prelude::Client::HEARTBEAT)));
17674   rb_define_const(SwigClassClient.klass, "FLAGS_HEARTBEAT", SWIG_From_int(static_cast< int >(Prelude::Client::FLAGS_HEARTBEAT)));
17675   rb_define_const(SwigClassClient.klass, "CONNECT", SWIG_From_int(static_cast< int >(Prelude::Client::CONNECT)));
17676   rb_define_const(SwigClassClient.klass, "FLAGS_CONNECT", SWIG_From_int(static_cast< int >(Prelude::Client::FLAGS_CONNECT)));
17677   rb_define_const(SwigClassClient.klass, "AUTOCONFIG", SWIG_From_int(static_cast< int >(Prelude::Client::AUTOCONFIG)));
17678   rb_define_const(SwigClassClient.klass, "FLAGS_AUTOCONFIG", SWIG_From_int(static_cast< int >(Prelude::Client::FLAGS_AUTOCONFIG)));
17679   rb_define_const(SwigClassClient.klass, "IDMEF_READ", SWIG_From_int(static_cast< int >(Prelude::Client::IDMEF_READ)));
17680   rb_define_const(SwigClassClient.klass, "PERMISSION_IDMEF_READ", SWIG_From_int(static_cast< int >(Prelude::Client::PERMISSION_IDMEF_READ)));
17681   rb_define_const(SwigClassClient.klass, "ADMIN_READ", SWIG_From_int(static_cast< int >(Prelude::Client::ADMIN_READ)));
17682   rb_define_const(SwigClassClient.klass, "PERMISSION_ADMIN_READ", SWIG_From_int(static_cast< int >(Prelude::Client::PERMISSION_ADMIN_READ)));
17683   rb_define_const(SwigClassClient.klass, "IDMEF_WRITE", SWIG_From_int(static_cast< int >(Prelude::Client::IDMEF_WRITE)));
17684   rb_define_const(SwigClassClient.klass, "PERMISSION_IDMEF_WRITE", SWIG_From_int(static_cast< int >(Prelude::Client::PERMISSION_IDMEF_WRITE)));
17685   rb_define_const(SwigClassClient.klass, "ADMIN_WRITE", SWIG_From_int(static_cast< int >(Prelude::Client::ADMIN_WRITE)));
17686   rb_define_const(SwigClassClient.klass, "PERMISSION_ADMIN_WRITE", SWIG_From_int(static_cast< int >(Prelude::Client::PERMISSION_ADMIN_WRITE)));
17687   rb_define_method(SwigClassClient.klass, "start", VALUEFUNC(_wrap_Client_start), -1);
17688   rb_define_method(SwigClassClient.klass, "init", VALUEFUNC(_wrap_Client_init), -1);
17689   rb_define_method(SwigClassClient.klass, "getClient", VALUEFUNC(_wrap_Client_getClient), -1);
17690   rb_define_method(SwigClassClient.klass, "sendIDMEF", VALUEFUNC(_wrap_Client_sendIDMEF), -1);
17691   rb_define_method(SwigClassClient.klass, "recvIDMEF", VALUEFUNC(_wrap_Client_recvIDMEF), -1);
17692   rb_define_method(SwigClassClient.klass, "getFlags", VALUEFUNC(_wrap_Client_getFlags), -1);
17693   rb_define_method(SwigClassClient.klass, "setFlags", VALUEFUNC(_wrap_Client_setFlags), -1);
17694   rb_define_method(SwigClassClient.klass, "getRequiredPermission", VALUEFUNC(_wrap_Client_getRequiredPermission), -1);
17695   rb_define_method(SwigClassClient.klass, "setRequiredPermission", VALUEFUNC(_wrap_Client_setRequiredPermission), -1);
17696   rb_define_method(SwigClassClient.klass, "getConfigFilename", VALUEFUNC(_wrap_Client_getConfigFilename), -1);
17697   rb_define_method(SwigClassClient.klass, "setConfigFilename", VALUEFUNC(_wrap_Client_setConfigFilename), -1);
17698   rb_define_method(SwigClassClient.klass, "getConnectionPool", VALUEFUNC(_wrap_Client_getConnectionPool), -1);
17699   rb_define_method(SwigClassClient.klass, "setConnectionPool", VALUEFUNC(_wrap_Client_setConnectionPool), -1);
17700   rb_define_method(SwigClassClient.klass, "<<", VALUEFUNC(_wrap_Client___lshift__), -1);
17701   rb_define_method(SwigClassClient.klass, ">>", VALUEFUNC(_wrap_Client___rshift__), -1);
17702   rb_define_singleton_method(SwigClassClient.klass, "setRecvTimeout", VALUEFUNC(_wrap_Client_setRecvTimeout), -1);
17703   SwigClassClient.mark = 0;
17704   SwigClassClient.destroy = (void (*)(void *)) free_Prelude_Client;
17705   SwigClassClient.trackObjects = 0;
17706 
17707   SwigClassPreludeLog.klass = rb_define_class_under(mPrelude, "PreludeLog", rb_cObject);
17708   SWIG_TypeClientData(SWIGTYPE_p_Prelude__PreludeLog, (void *) &SwigClassPreludeLog);
17709   rb_define_alloc_func(SwigClassPreludeLog.klass, _wrap_PreludeLog_allocate);
17710   rb_define_method(SwigClassPreludeLog.klass, "initialize", VALUEFUNC(_wrap_new_PreludeLog), -1);
17711   rb_define_const(SwigClassPreludeLog.klass, "DEBUG", SWIG_From_int(static_cast< int >(Prelude::PreludeLog::DEBUG)));
17712   rb_define_const(SwigClassPreludeLog.klass, "INFO", SWIG_From_int(static_cast< int >(Prelude::PreludeLog::INFO)));
17713   rb_define_const(SwigClassPreludeLog.klass, "WARNING", SWIG_From_int(static_cast< int >(Prelude::PreludeLog::WARNING)));
17714   rb_define_const(SwigClassPreludeLog.klass, "ERROR", SWIG_From_int(static_cast< int >(Prelude::PreludeLog::ERROR)));
17715   rb_define_const(SwigClassPreludeLog.klass, "CRITICAL", SWIG_From_int(static_cast< int >(Prelude::PreludeLog::CRITICAL)));
17716   rb_define_const(SwigClassPreludeLog.klass, "QUIET", SWIG_From_int(static_cast< int >(Prelude::PreludeLog::QUIET)));
17717   rb_define_const(SwigClassPreludeLog.klass, "SYSLOG", SWIG_From_int(static_cast< int >(Prelude::PreludeLog::SYSLOG)));
17718   rb_define_singleton_method(SwigClassPreludeLog.klass, "setLevel", VALUEFUNC(_wrap_PreludeLog_setLevel), -1);
17719   rb_define_singleton_method(SwigClassPreludeLog.klass, "setDebugLevel", VALUEFUNC(_wrap_PreludeLog_setDebugLevel), -1);
17720   rb_define_singleton_method(SwigClassPreludeLog.klass, "setFlags", VALUEFUNC(_wrap_PreludeLog_setFlags), -1);
17721   rb_define_singleton_method(SwigClassPreludeLog.klass, "getFlags", VALUEFUNC(_wrap_PreludeLog_getFlags), -1);
17722   rb_define_singleton_method(SwigClassPreludeLog.klass, "setLogfile", VALUEFUNC(_wrap_PreludeLog_setLogfile), -1);
17723   rb_define_singleton_method(SwigClassPreludeLog.klass, "setCallback", VALUEFUNC(_wrap_PreludeLog_setCallback), -1);
17724   SwigClassPreludeLog.mark = 0;
17725   SwigClassPreludeLog.destroy = (void (*)(void *)) free_Prelude_PreludeLog;
17726   SwigClassPreludeLog.trackObjects = 0;
17727 
17728   SwigClassPreludeError.klass = rb_define_class_under(mPrelude, "PreludeError", rb_eRuntimeError);
17729   SWIG_TypeClientData(SWIGTYPE_p_Prelude__PreludeError, (void *) &SwigClassPreludeError);
17730   rb_define_alloc_func(SwigClassPreludeError.klass, _wrap_PreludeError_allocate);
17731   rb_define_method(SwigClassPreludeError.klass, "initialize", VALUEFUNC(_wrap_new_PreludeError), -1);
17732   rb_define_method(SwigClassPreludeError.klass, "getCode", VALUEFUNC(_wrap_PreludeError_getCode), -1);
17733   rb_define_method(SwigClassPreludeError.klass, "what", VALUEFUNC(_wrap_PreludeError_what), -1);
17734   rb_define_method(SwigClassPreludeError.klass, "to_s", VALUEFUNC(_wrap_PreludeError___str__), -1);
17735   rb_define_method(SwigClassPreludeError.klass, "to_i", VALUEFUNC(_wrap_PreludeError___int__), -1);
17736   SwigClassPreludeError.mark = 0;
17737   SwigClassPreludeError.destroy = (void (*)(void *)) free_Prelude_PreludeError;
17738   SwigClassPreludeError.trackObjects = 0;
17739 
17740   SwigClassClientEasy.klass = rb_define_class_under(mPrelude, "ClientEasy", ((swig_class *) SWIGTYPE_p_Prelude__Client->clientdata)->klass);
17741   SWIG_TypeClientData(SWIGTYPE_p_Prelude__ClientEasy, (void *) &SwigClassClientEasy);
17742   rb_define_alloc_func(SwigClassClientEasy.klass, _wrap_ClientEasy_allocate);
17743   rb_define_method(SwigClassClientEasy.klass, "initialize", VALUEFUNC(_wrap_new_ClientEasy), -1);
17744   SwigClassClientEasy.mark = 0;
17745   SwigClassClientEasy.destroy = (void (*)(void *)) free_Prelude_ClientEasy;
17746   SwigClassClientEasy.trackObjects = 0;
17747 
17748   SwigClassIDMEFCriterion.klass = rb_define_class_under(mPrelude, "IDMEFCriterion", rb_cObject);
17749   SWIG_TypeClientData(SWIGTYPE_p_Prelude__IDMEFCriterion, (void *) &SwigClassIDMEFCriterion);
17750   rb_define_alloc_func(SwigClassIDMEFCriterion.klass, _wrap_IDMEFCriterion_allocate);
17751   rb_define_method(SwigClassIDMEFCriterion.klass, "initialize", VALUEFUNC(_wrap_new_IDMEFCriterion), -1);
17752   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT)));
17753   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOCASE", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOCASE)));
17754   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_EQUAL", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_EQUAL)));
17755   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_EQUAL_NOCASE", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_EQUAL_NOCASE)));
17756   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT_EQUAL", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT_EQUAL)));
17757   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT_EQUAL_NOCASE", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT_EQUAL_NOCASE)));
17758   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_LESSER", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_LESSER)));
17759   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_LESSER_OR_EQUAL", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_LESSER_OR_EQUAL)));
17760   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_GREATER", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_GREATER)));
17761   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_GREATER_OR_EQUAL", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_GREATER_OR_EQUAL)));
17762   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_SUBSTR", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_SUBSTR)));
17763   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_SUBSTR_NOCASE", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_SUBSTR_NOCASE)));
17764   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT_SUBSTR", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT_SUBSTR)));
17765   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT_SUBSTR_NOCASE", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT_SUBSTR_NOCASE)));
17766   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_REGEX", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_REGEX)));
17767   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_REGEX_NOCASE", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_REGEX_NOCASE)));
17768   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT_REGEX", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT_REGEX)));
17769   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT_REGEX_NOCASE", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT_REGEX_NOCASE)));
17770   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NULL", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NULL)));
17771   rb_define_const(SwigClassIDMEFCriterion.klass, "OPERATOR_NOT_NULL", SWIG_From_int(static_cast< int >(Prelude::IDMEFCriterion::OPERATOR_NOT_NULL)));
17772   SwigClassIDMEFCriterion.mark = 0;
17773   SwigClassIDMEFCriterion.destroy = (void (*)(void *)) free_Prelude_IDMEFCriterion;
17774   SwigClassIDMEFCriterion.trackObjects = 0;
17775 
17776   SwigClassIDMEFCriteria.klass = rb_define_class_under(mPrelude, "IDMEFCriteria", rb_cObject);
17777   SWIG_TypeClientData(SWIGTYPE_p_Prelude__IDMEFCriteria, (void *) &SwigClassIDMEFCriteria);
17778   rb_define_alloc_func(SwigClassIDMEFCriteria.klass, _wrap_IDMEFCriteria_allocate);
17779   rb_define_method(SwigClassIDMEFCriteria.klass, "initialize", VALUEFUNC(_wrap_new_IDMEFCriteria), -1);
17780   rb_define_method(SwigClassIDMEFCriteria.klass, "match", VALUEFUNC(_wrap_IDMEFCriteria_match), -1);
17781   rb_define_method(SwigClassIDMEFCriteria.klass, "clone", VALUEFUNC(_wrap_IDMEFCriteria_clone), -1);
17782   rb_define_method(SwigClassIDMEFCriteria.klass, "andCriteria", VALUEFUNC(_wrap_IDMEFCriteria_andCriteria), -1);
17783   rb_define_method(SwigClassIDMEFCriteria.klass, "orCriteria", VALUEFUNC(_wrap_IDMEFCriteria_orCriteria), -1);
17784   rb_define_method(SwigClassIDMEFCriteria.klass, "toString", VALUEFUNC(_wrap_IDMEFCriteria_toString), -1);
17785   rb_define_method(SwigClassIDMEFCriteria.klass, "to_s", VALUEFUNC(_wrap_IDMEFCriteria___str__), -1);
17786   SwigClassIDMEFCriteria.mark = 0;
17787   SwigClassIDMEFCriteria.destroy = (void (*)(void *)) free_Prelude_IDMEFCriteria;
17788   SwigClassIDMEFCriteria.trackObjects = 0;
17789 
17790   SwigClassIDMEFValue.klass = rb_define_class_under(mPrelude, "IDMEFValue", rb_cObject);
17791   SWIG_TypeClientData(SWIGTYPE_p_Prelude__IDMEFValue, (void *) &SwigClassIDMEFValue);
17792   rb_define_alloc_func(SwigClassIDMEFValue.klass, _wrap_IDMEFValue_allocate);
17793   rb_define_method(SwigClassIDMEFValue.klass, "initialize", VALUEFUNC(_wrap_new_IDMEFValue), -1);
17794   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_UNKNOWN", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_UNKNOWN)));
17795   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_INT8", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_INT8)));
17796   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_UINT8", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_UINT8)));
17797   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_INT16", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_INT16)));
17798   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_UINT16", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_UINT16)));
17799   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_INT32", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_INT32)));
17800   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_UINT32", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_UINT32)));
17801   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_INT64", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_INT64)));
17802   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_UINT64", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_UINT64)));
17803   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_FLOAT", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_FLOAT)));
17804   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_DOUBLE", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_DOUBLE)));
17805   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_STRING", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_STRING)));
17806   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_TIME", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_TIME)));
17807   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_DATA", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_DATA)));
17808   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_ENUM", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_ENUM)));
17809   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_LIST", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_LIST)));
17810   rb_define_const(SwigClassIDMEFValue.klass, "TYPE_CLASS", SWIG_From_int(static_cast< int >(Prelude::IDMEFValue::TYPE_CLASS)));
17811   rb_define_method(SwigClassIDMEFValue.klass, "getType", VALUEFUNC(_wrap_IDMEFValue_getType), -1);
17812   rb_define_method(SwigClassIDMEFValue.klass, "isNull", VALUEFUNC(_wrap_IDMEFValue_isNull), -1);
17813   rb_define_method(SwigClassIDMEFValue.klass, "match", VALUEFUNC(_wrap_IDMEFValue_match), -1);
17814   rb_define_method(SwigClassIDMEFValue.klass, "clone", VALUEFUNC(_wrap_IDMEFValue_clone), -1);
17815   rb_define_method(SwigClassIDMEFValue.klass, "toString", VALUEFUNC(_wrap_IDMEFValue_toString), -1);
17816   rb_define_method(SwigClassIDMEFValue.klass, "<=", VALUEFUNC(_wrap_IDMEFValue___le__), -1);
17817   rb_define_method(SwigClassIDMEFValue.klass, ">=", VALUEFUNC(_wrap_IDMEFValue___ge__), -1);
17818   rb_define_method(SwigClassIDMEFValue.klass, "<", VALUEFUNC(_wrap_IDMEFValue___lt__), -1);
17819   rb_define_method(SwigClassIDMEFValue.klass, ">", VALUEFUNC(_wrap_IDMEFValue___gt__), -1);
17820   rb_define_method(SwigClassIDMEFValue.klass, "==", VALUEFUNC(_wrap_IDMEFValue___eq__), -1);
17821   SwigClassIDMEFValue.mark = 0;
17822   SwigClassIDMEFValue.destroy = (void (*)(void *)) free_Prelude_IDMEFValue;
17823   SwigClassIDMEFValue.trackObjects = 0;
17824 
17825   SwigClassIDMEFPath.klass = rb_define_class_under(mPrelude, "IDMEFPath", rb_cObject);
17826   SWIG_TypeClientData(SWIGTYPE_p_Prelude__IDMEFPath, (void *) &SwigClassIDMEFPath);
17827   rb_define_alloc_func(SwigClassIDMEFPath.klass, _wrap_IDMEFPath_allocate);
17828   rb_define_method(SwigClassIDMEFPath.klass, "initialize", VALUEFUNC(_wrap_new_IDMEFPath), -1);
17829   rb_define_method(SwigClassIDMEFPath.klass, "set", VALUEFUNC(_wrap_IDMEFPath_set), -1);
17830   rb_define_method(SwigClassIDMEFPath.klass, "getClass", VALUEFUNC(_wrap_IDMEFPath_getClass), -1);
17831   rb_define_method(SwigClassIDMEFPath.klass, "getValueType", VALUEFUNC(_wrap_IDMEFPath_getValueType), -1);
17832   rb_define_method(SwigClassIDMEFPath.klass, "setIndex", VALUEFUNC(_wrap_IDMEFPath_setIndex), -1);
17833   rb_define_method(SwigClassIDMEFPath.klass, "undefineIndex", VALUEFUNC(_wrap_IDMEFPath_undefineIndex), -1);
17834   rb_define_method(SwigClassIDMEFPath.klass, "getIndex", VALUEFUNC(_wrap_IDMEFPath_getIndex), -1);
17835   rb_define_method(SwigClassIDMEFPath.klass, "makeChild", VALUEFUNC(_wrap_IDMEFPath_makeChild), -1);
17836   rb_define_method(SwigClassIDMEFPath.klass, "makeParent", VALUEFUNC(_wrap_IDMEFPath_makeParent), -1);
17837   rb_define_method(SwigClassIDMEFPath.klass, "compare", VALUEFUNC(_wrap_IDMEFPath_compare), -1);
17838   rb_define_method(SwigClassIDMEFPath.klass, "clone", VALUEFUNC(_wrap_IDMEFPath_clone), -1);
17839   rb_define_method(SwigClassIDMEFPath.klass, "checkOperator", VALUEFUNC(_wrap_IDMEFPath_checkOperator), -1);
17840   rb_define_method(SwigClassIDMEFPath.klass, "getApplicableOperators", VALUEFUNC(_wrap_IDMEFPath_getApplicableOperators), -1);
17841   rb_define_method(SwigClassIDMEFPath.klass, "getName", VALUEFUNC(_wrap_IDMEFPath_getName), -1);
17842   rb_define_method(SwigClassIDMEFPath.klass, "isAmbiguous", VALUEFUNC(_wrap_IDMEFPath_isAmbiguous), -1);
17843   rb_define_method(SwigClassIDMEFPath.klass, "hasLists", VALUEFUNC(_wrap_IDMEFPath_hasLists), -1);
17844   rb_define_method(SwigClassIDMEFPath.klass, "isList", VALUEFUNC(_wrap_IDMEFPath_isList), -1);
17845   rb_define_method(SwigClassIDMEFPath.klass, "getDepth", VALUEFUNC(_wrap_IDMEFPath_getDepth), -1);
17846   rb_define_method(SwigClassIDMEFPath.klass, "get", VALUEFUNC(_wrap_IDMEFPath_get), -1);
17847   SwigClassIDMEFPath.mark = 0;
17848   SwigClassIDMEFPath.destroy = (void (*)(void *)) free_Prelude_IDMEFPath;
17849   SwigClassIDMEFPath.trackObjects = 0;
17850 
17851   SwigClassIDMEFTime.klass = rb_define_class_under(mPrelude, "IDMEFTime", rb_cObject);
17852   SWIG_TypeClientData(SWIGTYPE_p_Prelude__IDMEFTime, (void *) &SwigClassIDMEFTime);
17853   rb_define_alloc_func(SwigClassIDMEFTime.klass, _wrap_IDMEFTime_allocate);
17854   rb_define_method(SwigClassIDMEFTime.klass, "initialize", VALUEFUNC(_wrap_new_IDMEFTime), -1);
17855   rb_define_method(SwigClassIDMEFTime.klass, "set", VALUEFUNC(_wrap_IDMEFTime_set), -1);
17856   rb_define_method(SwigClassIDMEFTime.klass, "setSec", VALUEFUNC(_wrap_IDMEFTime_setSec), -1);
17857   rb_define_method(SwigClassIDMEFTime.klass, "setUSec", VALUEFUNC(_wrap_IDMEFTime_setUSec), -1);
17858   rb_define_method(SwigClassIDMEFTime.klass, "setGmtOffset", VALUEFUNC(_wrap_IDMEFTime_setGmtOffset), -1);
17859   rb_define_method(SwigClassIDMEFTime.klass, "getSec", VALUEFUNC(_wrap_IDMEFTime_getSec), -1);
17860   rb_define_method(SwigClassIDMEFTime.klass, "getUSec", VALUEFUNC(_wrap_IDMEFTime_getUSec), -1);
17861   rb_define_method(SwigClassIDMEFTime.klass, "getGmtOffset", VALUEFUNC(_wrap_IDMEFTime_getGmtOffset), -1);
17862   rb_define_method(SwigClassIDMEFTime.klass, "getTime", VALUEFUNC(_wrap_IDMEFTime_getTime), -1);
17863   rb_define_method(SwigClassIDMEFTime.klass, "clone", VALUEFUNC(_wrap_IDMEFTime_clone), -1);
17864   rb_define_method(SwigClassIDMEFTime.klass, "toString", VALUEFUNC(_wrap_IDMEFTime_toString), -1);
17865   rb_define_method(SwigClassIDMEFTime.klass, "to_i", VALUEFUNC(_wrap_IDMEFTime___int__), -1);
17866   rb_define_method(SwigClassIDMEFTime.klass, "__long__", VALUEFUNC(_wrap_IDMEFTime___long__), -1);
17867   rb_define_method(SwigClassIDMEFTime.klass, "to_f", VALUEFUNC(_wrap_IDMEFTime___float__), -1);
17868   rb_define_method(SwigClassIDMEFTime.klass, "to_s", VALUEFUNC(_wrap_IDMEFTime___str__), -1);
17869   rb_define_method(SwigClassIDMEFTime.klass, ">=", VALUEFUNC(_wrap_IDMEFTime___ge__), -1);
17870   rb_define_method(SwigClassIDMEFTime.klass, "<=", VALUEFUNC(_wrap_IDMEFTime___le__), -1);
17871   rb_define_method(SwigClassIDMEFTime.klass, "==", VALUEFUNC(_wrap_IDMEFTime___eq__), -1);
17872   rb_define_method(SwigClassIDMEFTime.klass, ">", VALUEFUNC(_wrap_IDMEFTime___gt__), -1);
17873   rb_define_method(SwigClassIDMEFTime.klass, "<", VALUEFUNC(_wrap_IDMEFTime___lt__), -1);
17874   SwigClassIDMEFTime.mark = 0;
17875   SwigClassIDMEFTime.destroy = (void (*)(void *)) free_Prelude_IDMEFTime;
17876   SwigClassIDMEFTime.trackObjects = 0;
17877 
17878   SwigClassIDMEFClass.klass = rb_define_class_under(mPrelude, "IDMEFClass", rb_cObject);
17879   SWIG_TypeClientData(SWIGTYPE_p_Prelude__IDMEFClass, (void *) &SwigClassIDMEFClass);
17880   rb_define_alloc_func(SwigClassIDMEFClass.klass, _wrap_IDMEFClass_allocate);
17881   rb_define_method(SwigClassIDMEFClass.klass, "initialize", VALUEFUNC(_wrap_new_IDMEFClass), -1);
17882   rb_define_method(SwigClassIDMEFClass.klass, "getDepth", VALUEFUNC(_wrap_IDMEFClass_getDepth), -1);
17883   rb_define_method(SwigClassIDMEFClass.klass, "get", VALUEFUNC(_wrap_IDMEFClass_get), -1);
17884   rb_define_method(SwigClassIDMEFClass.klass, "getChildCount", VALUEFUNC(_wrap_IDMEFClass_getChildCount), -1);
17885   rb_define_method(SwigClassIDMEFClass.klass, "isList", VALUEFUNC(_wrap_IDMEFClass_isList), -1);
17886   rb_define_method(SwigClassIDMEFClass.klass, "isKeyedList", VALUEFUNC(_wrap_IDMEFClass_isKeyedList), -1);
17887   rb_define_method(SwigClassIDMEFClass.klass, "getName", VALUEFUNC(_wrap_IDMEFClass_getName), -1);
17888   rb_define_method(SwigClassIDMEFClass.klass, "toString", VALUEFUNC(_wrap_IDMEFClass_toString), -1);
17889   rb_define_method(SwigClassIDMEFClass.klass, "getValueType", VALUEFUNC(_wrap_IDMEFClass_getValueType), -1);
17890   rb_define_method(SwigClassIDMEFClass.klass, "getPath", VALUEFUNC(_wrap_IDMEFClass_getPath), -1);
17891   rb_define_method(SwigClassIDMEFClass.klass, "getEnumValues", VALUEFUNC(_wrap_IDMEFClass_getEnumValues), -1);
17892   rb_define_method(SwigClassIDMEFClass.klass, "getApplicableOperator", VALUEFUNC(_wrap_IDMEFClass_getApplicableOperator), -1);
17893   SwigClassIDMEFClass.mark = 0;
17894   SwigClassIDMEFClass.destroy = (void (*)(void *)) free_Prelude_IDMEFClass;
17895   SwigClassIDMEFClass.trackObjects = 0;
17896 
17897   SwigClassIDMEF.klass = rb_define_class_under(mPrelude, "IDMEF", rb_cObject);
17898   SWIG_TypeClientData(SWIGTYPE_p_Prelude__IDMEF, (void *) &SwigClassIDMEF);
17899   rb_define_alloc_func(SwigClassIDMEF.klass, _wrap_IDMEF_allocate);
17900   rb_define_method(SwigClassIDMEF.klass, "initialize", VALUEFUNC(_wrap_new_IDMEF), -1);
17901   rb_define_method(SwigClassIDMEF.klass, "set", VALUEFUNC(_wrap_IDMEF_set), -1);
17902   rb_define_method(SwigClassIDMEF.klass, "clone", VALUEFUNC(_wrap_IDMEF_clone), -1);
17903   rb_define_method(SwigClassIDMEF.klass, "getId", VALUEFUNC(_wrap_IDMEF_getId), -1);
17904   rb_define_method(SwigClassIDMEF.klass, "toString", VALUEFUNC(_wrap_IDMEF_toString), -1);
17905   rb_define_method(SwigClassIDMEF.klass, "to_s", VALUEFUNC(_wrap_IDMEF___str__), -1);
17906   rb_define_method(SwigClassIDMEF.klass, "==", VALUEFUNC(_wrap_IDMEF___eq__), -1);
17907   rb_define_method(SwigClassIDMEF.klass, "write", VALUEFUNC(_wrap_IDMEF_write), -1);
17908   rb_define_method(SwigClassIDMEF.klass, "read", VALUEFUNC(_wrap_IDMEF_read), -1);
17909   rb_define_method(SwigClassIDMEF.klass, ">>", VALUEFUNC(_wrap_IDMEF___rshift__), -1);
17910   rb_define_method(SwigClassIDMEF.klass, "<<", VALUEFUNC(_wrap_IDMEF___lshift__), -1);
17911   rb_define_method(SwigClassIDMEF.klass, "get", VALUEFUNC(_wrap_IDMEF_get), -1);
17912   SwigClassIDMEF.mark = 0;
17913   SwigClassIDMEF.destroy = (void (*)(void *)) free_Prelude_IDMEF;
17914   SwigClassIDMEF.trackObjects = 0;
17915 }
17916 
17917