ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
Revision: 1.10
Committed: Mon Oct 30 10:59:40 2006 UTC (18 years, 6 months ago) by gcodispo
Content type: text/plain
Branch: MAIN
Changes since 1.9: +4998 -24044 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 yzhang 1.1 /* ----------------------------------------------------------------------------
2     * This file was automatically generated by SWIG (http://www.swig.org).
3 gcodispo 1.10 * Version 1.3.19
4 yzhang 1.1 *
5     * This file is not intended to be easily readable and contains a number of
6     * coding conventions designed to improve portability and efficiency. Do not make
7     * changes to this file unless you know what you are doing--modify the SWIG
8     * interface file instead.
9     * ----------------------------------------------------------------------------- */
10    
11     #define SWIGPYTHON
12    
13     #ifdef __cplusplus
14     template<class T> class SwigValueWrapper {
15     T *tt;
16     public:
17 gcodispo 1.10 inline SwigValueWrapper() : tt(0) { }
18     inline ~SwigValueWrapper() { if (tt) delete tt; }
19     inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
20     inline operator T&() const { return *tt; }
21     inline T *operator&() { return tt; }
22     };
23 gcodispo 1.9 #endif
24    
25    
26 gcodispo 1.10 #include "Python.h"
27 gcodispo 1.9
28 gcodispo 1.10 /***********************************************************************
29     * common.swg
30     *
31     * This file contains generic SWIG runtime support for pointer
32     * type checking as well as a few commonly used macros to control
33     * external linkage.
34     *
35     * Author : David Beazley (beazley@cs.uchicago.edu)
36     *
37     * Copyright (c) 1999-2000, The University of Chicago
38     *
39     * This file may be freely redistributed without license or fee provided
40     * this copyright message remains intact.
41     ************************************************************************/
42 gcodispo 1.9
43 gcodispo 1.10 #include <string.h>
44 gcodispo 1.9
45 gcodispo 1.10 #if defined(_WIN32) || defined(__WIN32__)
46     # if defined(_MSC_VER)
47     # if defined(STATIC_LINKED)
48     # define SWIGEXPORT(a) a
49     # define SWIGIMPORT(a) extern a
50     # else
51     # define SWIGEXPORT(a) __declspec(dllexport) a
52     # define SWIGIMPORT(a) extern a
53     # endif
54     # else
55     # if defined(__BORLANDC__)
56     # define SWIGEXPORT(a) a _export
57     # define SWIGIMPORT(a) a _export
58     # else
59     # define SWIGEXPORT(a) a
60     # define SWIGIMPORT(a) a
61     # endif
62     # endif
63     #else
64     # define SWIGEXPORT(a) a
65     # define SWIGIMPORT(a) a
66 gcodispo 1.9 #endif
67    
68 gcodispo 1.10 #ifdef SWIG_GLOBAL
69     #define SWIGRUNTIME(a) SWIGEXPORT(a)
70 gcodispo 1.9 #else
71 gcodispo 1.10 #define SWIGRUNTIME(a) static a
72 yzhang 1.1 #endif
73    
74     #ifdef __cplusplus
75     extern "C" {
76     #endif
77    
78     typedef void *(*swig_converter_func)(void *);
79     typedef struct swig_type_info *(*swig_dycast_func)(void **);
80    
81     typedef struct swig_type_info {
82 gcodispo 1.10 const char *name;
83     swig_converter_func converter;
84     const char *str;
85     void *clientdata;
86     swig_dycast_func dcast;
87     struct swig_type_info *next;
88     struct swig_type_info *prev;
89 yzhang 1.1 } swig_type_info;
90    
91 gcodispo 1.10 #ifdef SWIG_NOINCLUDE
92    
93     SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
94     SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
95     SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
96     SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
97     SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
98     SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
99     SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
100    
101     #else
102    
103     static swig_type_info *swig_type_list = 0;
104 yzhang 1.1
105 gcodispo 1.10 /* Register a type mapping with the type-checking */
106     SWIGRUNTIME(swig_type_info *)
107     SWIG_TypeRegister(swig_type_info *ti)
108     {
109     swig_type_info *tc, *head, *ret, *next;
110     /* Check to see if this type has already been registered */
111     tc = swig_type_list;
112     while (tc) {
113     if (strcmp(tc->name, ti->name) == 0) {
114     /* Already exists in the table. Just add additional types to the list */
115     if (tc->clientdata) ti->clientdata = tc->clientdata;
116     head = tc;
117     next = tc->next;
118     goto l1;
119     }
120     tc = tc->prev;
121     }
122     head = ti;
123     next = 0;
124    
125     /* Place in list */
126     ti->prev = swig_type_list;
127     swig_type_list = ti;
128    
129     /* Build linked lists */
130     l1:
131     ret = head;
132     tc = ti + 1;
133     /* Patch up the rest of the links */
134     while (tc->name) {
135     head->next = tc;
136     tc->prev = head;
137     head = tc;
138     tc++;
139     }
140     if (next) next->prev = head; /**/
141     head->next = next;
142     return ret;
143     }
144    
145     /* Check the typename */
146     SWIGRUNTIME(swig_type_info *)
147     SWIG_TypeCheck(char *c, swig_type_info *ty)
148     {
149     swig_type_info *s;
150     if (!ty) return 0; /* Void pointer */
151     s = ty->next; /* First element always just a name */
152     do {
153     if (strcmp(s->name,c) == 0) {
154     if (s == ty->next) return s;
155     /* Move s to the top of the linked list */
156     s->prev->next = s->next;
157     if (s->next) {
158     s->next->prev = s->prev;
159     }
160     /* Insert s as second element in the list */
161     s->next = ty->next;
162     if (ty->next) ty->next->prev = s;
163     ty->next = s;
164     s->prev = ty; /**/
165     return s;
166 gcodispo 1.9 }
167 gcodispo 1.10 s = s->next;
168     } while (s && (s != ty->next));
169     return 0;
170 gcodispo 1.9 }
171 yzhang 1.1
172 gcodispo 1.10 /* Cast a pointer up an inheritance hierarchy */
173     SWIGRUNTIME(void *)
174     SWIG_TypeCast(swig_type_info *ty, void *ptr)
175     {
176     if ((!ty) || (!ty->converter)) return ptr;
177     return (*ty->converter)(ptr);
178 yzhang 1.1 }
179    
180 gcodispo 1.10 /* Dynamic pointer casting. Down an inheritance hierarchy */
181     SWIGRUNTIME(swig_type_info *)
182     SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
183     {
184 yzhang 1.1 swig_type_info *lastty = ty;
185     if (!ty || !ty->dcast) return ty;
186     while (ty && (ty->dcast)) {
187 gcodispo 1.10 ty = (*ty->dcast)(ptr);
188     if (ty) lastty = ty;
189 yzhang 1.1 }
190     return lastty;
191     }
192    
193 gcodispo 1.10 /* Return the name associated with this type */
194     SWIGRUNTIME(const char *)
195 yzhang 1.1 SWIG_TypeName(const swig_type_info *ty) {
196     return ty->name;
197     }
198    
199 gcodispo 1.10 /* Search for a swig_type_info structure */
200     SWIGRUNTIME(swig_type_info *)
201     SWIG_TypeQuery(const char *name) {
202     swig_type_info *ty = swig_type_list;
203     while (ty) {
204     if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
205     if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
206     ty = ty->prev;
207 yzhang 1.1 }
208 gcodispo 1.10 return 0;
209 yzhang 1.1 }
210    
211 gcodispo 1.10 /* Set the clientdata field for a type */
212     SWIGRUNTIME(void)
213 yzhang 1.1 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
214 gcodispo 1.10 swig_type_info *tc, *equiv;
215     if (ti->clientdata == clientdata) return;
216 yzhang 1.1 ti->clientdata = clientdata;
217 gcodispo 1.10 equiv = ti->next;
218     while (equiv) {
219     if (!equiv->converter) {
220     tc = swig_type_list;
221     while (tc) {
222     if ((strcmp(tc->name, equiv->name) == 0))
223     SWIG_TypeClientData(tc,clientdata);
224     tc = tc->prev;
225 yzhang 1.1 }
226 gcodispo 1.10 }
227     equiv = equiv->next;
228 yzhang 1.1 }
229     }
230 gcodispo 1.10 #endif
231    
232     #ifdef __cplusplus
233 yzhang 1.1 }
234 gcodispo 1.10
235     #endif
236    
237     /***********************************************************************
238     * python.swg
239     *
240     * This file contains the runtime support for Python modules
241     * and includes code for managing global variables and pointer
242     * type checking.
243     *
244     * Author : David Beazley (beazley@cs.uchicago.edu)
245     ************************************************************************/
246    
247     #include "Python.h"
248    
249     #ifdef __cplusplus
250     extern "C" {
251     #endif
252    
253     #define SWIG_PY_INT 1
254     #define SWIG_PY_FLOAT 2
255     #define SWIG_PY_STRING 3
256     #define SWIG_PY_POINTER 4
257     #define SWIG_PY_BINARY 5
258    
259     /* Flags for pointer conversion */
260    
261     #define SWIG_POINTER_EXCEPTION 0x1
262     #define SWIG_POINTER_DISOWN 0x2
263    
264     /* Exception handling in wrappers */
265     #define SWIG_fail goto fail
266    
267     /* Constant information structure */
268     typedef struct swig_const_info {
269     int type;
270     char *name;
271     long lvalue;
272     double dvalue;
273     void *pvalue;
274     swig_type_info **ptype;
275     } swig_const_info;
276    
277     #ifdef SWIG_NOINCLUDE
278    
279     SWIGEXPORT(PyObject *) SWIG_newvarlink(void);
280     SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
281     SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
282     SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
283     SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
284     SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
285     SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
286     SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
287     SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
288     #else
289    
290     /* -----------------------------------------------------------------------------
291     * global variable support code.
292     * ----------------------------------------------------------------------------- */
293    
294     typedef struct swig_globalvar {
295     char *name; /* Name of global variable */
296     PyObject *(*get_attr)(void); /* Return the current value */
297     int (*set_attr)(PyObject *); /* Set the value */
298     struct swig_globalvar *next;
299     } swig_globalvar;
300    
301     typedef struct swig_varlinkobject {
302     PyObject_HEAD
303     swig_globalvar *vars;
304     } swig_varlinkobject;
305    
306     static PyObject *
307     swig_varlink_repr(swig_varlinkobject *v) {
308     v = v;
309     return PyString_FromString("<Global variables>");
310 yzhang 1.1 }
311    
312 gcodispo 1.10 static int
313     swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
314     swig_globalvar *var;
315     flags = flags;
316     fprintf(fp,"Global variables { ");
317     for (var = v->vars; var; var=var->next) {
318     fprintf(fp,"%s", var->name);
319     if (var->next) fprintf(fp,", ");
320 yzhang 1.1 }
321 gcodispo 1.10 fprintf(fp," }\n");
322 yzhang 1.1 return 0;
323     }
324    
325 gcodispo 1.10 static PyObject *
326     swig_varlink_getattr(swig_varlinkobject *v, char *n) {
327     swig_globalvar *var = v->vars;
328     while (var) {
329     if (strcmp(var->name,n) == 0) {
330     return (*var->get_attr)();
331     }
332     var = var->next;
333     }
334     PyErr_SetString(PyExc_NameError,"Unknown C global variable");
335     return NULL;
336     }
337    
338     static int
339     swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
340     swig_globalvar *var = v->vars;
341     while (var) {
342     if (strcmp(var->name,n) == 0) {
343     return (*var->set_attr)(p);
344     }
345     var = var->next;
346     }
347     PyErr_SetString(PyExc_NameError,"Unknown C global variable");
348     return 1;
349     }
350    
351     statichere PyTypeObject varlinktype = {
352     PyObject_HEAD_INIT(0)
353     0,
354     (char *)"swigvarlink", /* Type name */
355     sizeof(swig_varlinkobject), /* Basic size */
356     0, /* Itemsize */
357     0, /* Deallocator */
358     (printfunc) swig_varlink_print, /* Print */
359     (getattrfunc) swig_varlink_getattr, /* get attr */
360     (setattrfunc) swig_varlink_setattr, /* Set attr */
361     0, /* tp_compare */
362     (reprfunc) swig_varlink_repr, /* tp_repr */
363     0, /* tp_as_number */
364     0, /* tp_as_mapping*/
365     0, /* tp_hash */
366     };
367    
368     /* Create a variable linking object for use later */
369     SWIGRUNTIME(PyObject *)
370     SWIG_newvarlink(void) {
371     swig_varlinkobject *result = 0;
372     result = PyMem_NEW(swig_varlinkobject,1);
373     varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
374     result->ob_type = &varlinktype;
375     result->vars = 0;
376     result->ob_refcnt = 0;
377     Py_XINCREF((PyObject *) result);
378     return ((PyObject*) result);
379     }
380    
381     SWIGRUNTIME(void)
382     SWIG_addvarlink(PyObject *p, char *name,
383     PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
384     swig_varlinkobject *v;
385     swig_globalvar *gv;
386     v= (swig_varlinkobject *) p;
387     gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
388     gv->name = (char *) malloc(strlen(name)+1);
389     strcpy(gv->name,name);
390     gv->get_attr = get_attr;
391     gv->set_attr = set_attr;
392     gv->next = v->vars;
393     v->vars = gv;
394     }
395    
396     /* Pack binary data into a string */
397     SWIGRUNTIME(char *)
398     SWIG_PackData(char *c, void *ptr, int sz) {
399     static char hex[17] = "0123456789abcdef";
400     int i;
401     unsigned char *u = (unsigned char *) ptr;
402     register unsigned char uu;
403     for (i = 0; i < sz; i++,u++) {
404     uu = *u;
405 yzhang 1.1 *(c++) = hex[(uu & 0xf0) >> 4];
406     *(c++) = hex[uu & 0xf];
407     }
408     return c;
409     }
410    
411 gcodispo 1.10 /* Unpack binary data from a string */
412     SWIGRUNTIME(char *)
413     SWIG_UnpackData(char *c, void *ptr, int sz) {
414     register unsigned char uu = 0;
415     register int d;
416     unsigned char *u = (unsigned char *) ptr;
417     int i;
418     for (i = 0; i < sz; i++, u++) {
419     d = *(c++);
420 yzhang 1.1 if ((d >= '0') && (d <= '9'))
421     uu = ((d - '0') << 4);
422     else if ((d >= 'a') && (d <= 'f'))
423     uu = ((d - ('a'-10)) << 4);
424     d = *(c++);
425     if ((d >= '0') && (d <= '9'))
426     uu |= (d - '0');
427     else if ((d >= 'a') && (d <= 'f'))
428     uu |= (d - ('a'-10));
429     *u = uu;
430     }
431     return c;
432     }
433    
434 gcodispo 1.10 /* Convert a pointer value */
435     SWIGRUNTIME(int)
436     SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
437     swig_type_info *tc;
438     char *c;
439     static PyObject *SWIG_this = 0;
440     int newref = 0;
441     PyObject *pyobj = 0;
442 yzhang 1.1
443 gcodispo 1.10 if (!obj) return 0;
444     if (obj == Py_None) {
445     *ptr = 0;
446     return 0;
447     }
448     #ifdef SWIG_COBJECT_TYPES
449     if (!(PyCObject_Check(obj))) {
450     if (!SWIG_this)
451     SWIG_this = PyString_FromString("this");
452     pyobj = obj;
453     obj = PyObject_GetAttr(obj,SWIG_this);
454     newref = 1;
455     if (!obj) goto type_error;
456     if (!PyCObject_Check(obj)) {
457     Py_DECREF(obj);
458     goto type_error;
459     }
460     }
461     *ptr = PyCObject_AsVoidPtr(obj);
462     c = (char *) PyCObject_GetDesc(obj);
463     if (newref) Py_DECREF(obj);
464     goto cobject;
465     #else
466     if (!(PyString_Check(obj))) {
467     if (!SWIG_this)
468     SWIG_this = PyString_FromString("this");
469     pyobj = obj;
470     obj = PyObject_GetAttr(obj,SWIG_this);
471     newref = 1;
472     if (!obj) goto type_error;
473     if (!PyString_Check(obj)) {
474     Py_DECREF(obj);
475     goto type_error;
476     }
477     }
478     c = PyString_AsString(obj);
479     /* Pointer values must start with leading underscore */
480 yzhang 1.1 if (*c != '_') {
481 gcodispo 1.10 *ptr = (void *) 0;
482 yzhang 1.1 if (strcmp(c,"NULL") == 0) {
483 gcodispo 1.10 if (newref) { Py_DECREF(obj); }
484     return 0;
485     } else {
486     if (newref) { Py_DECREF(obj); }
487     goto type_error;
488     }
489     }
490     c++;
491     c = SWIG_UnpackData(c,ptr,sizeof(void *));
492     if (newref) { Py_DECREF(obj); }
493     #endif
494    
495     #ifdef SWIG_COBJECT_TYPES
496     cobject:
497     #endif
498    
499     if (ty) {
500     tc = SWIG_TypeCheck(c,ty);
501     if (!tc) goto type_error;
502     *ptr = SWIG_TypeCast(tc,(void*) *ptr);
503     }
504    
505     if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
506     PyObject *zero = PyInt_FromLong(0);
507     PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
508     Py_DECREF(zero);
509     }
510     return 0;
511    
512     type_error:
513     if (flags & SWIG_POINTER_EXCEPTION) {
514     if (ty) {
515     char *temp = (char *) malloc(64+strlen(ty->name));
516     sprintf(temp,"Type error. Expected %s", ty->name);
517     PyErr_SetString(PyExc_TypeError, temp);
518     free((char *) temp);
519     } else {
520     PyErr_SetString(PyExc_TypeError,"Expected a pointer");
521     }
522     }
523     return -1;
524     }
525    
526     /* Convert a packed value value */
527     SWIGRUNTIME(int)
528     SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
529     swig_type_info *tc;
530     char *c;
531    
532     if ((!obj) || (!PyString_Check(obj))) goto type_error;
533     c = PyString_AsString(obj);
534     /* Pointer values must start with leading underscore */
535     if (*c != '_') goto type_error;
536     c++;
537     c = SWIG_UnpackData(c,ptr,sz);
538     if (ty) {
539     tc = SWIG_TypeCheck(c,ty);
540     if (!tc) goto type_error;
541     }
542     return 0;
543    
544     type_error:
545    
546     if (flags) {
547     if (ty) {
548     char *temp = (char *) malloc(64+strlen(ty->name));
549     sprintf(temp,"Type error. Expected %s", ty->name);
550     PyErr_SetString(PyExc_TypeError, temp);
551     free((char *) temp);
552 gcodispo 1.9 } else {
553 gcodispo 1.10 PyErr_SetString(PyExc_TypeError,"Expected a pointer");
554     }
555     }
556     return -1;
557     }
558    
559     /* Create a new pointer object */
560     SWIGRUNTIME(PyObject *)
561     SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
562     PyObject *robj;
563     if (!ptr) {
564     Py_INCREF(Py_None);
565     return Py_None;
566     }
567     #ifdef SWIG_COBJECT_TYPES
568     robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
569     #else
570     {
571     char result[1024];
572     char *r = result;
573     *(r++) = '_';
574     r = SWIG_PackData(r,&ptr,sizeof(void *));
575     strcpy(r,type->name);
576     robj = PyString_FromString(result);
577     }
578     #endif
579     if (!robj || (robj == Py_None)) return robj;
580     if (type->clientdata) {
581     PyObject *inst;
582     PyObject *args = Py_BuildValue((char*)"(O)", robj);
583     Py_DECREF(robj);
584     inst = PyObject_CallObject((PyObject *) type->clientdata, args);
585     Py_DECREF(args);
586     if (inst) {
587     if (own) {
588     PyObject *n = PyInt_FromLong(1);
589     PyObject_SetAttrString(inst,(char*)"thisown",n);
590     Py_DECREF(n);
591     }
592     robj = inst;
593 yzhang 1.1 }
594     }
595 gcodispo 1.10 return robj;
596 yzhang 1.1 }
597    
598 gcodispo 1.10 SWIGRUNTIME(PyObject *)
599     SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
600     char result[1024];
601     char *r = result;
602     if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
603 yzhang 1.1 *(r++) = '_';
604     r = SWIG_PackData(r,ptr,sz);
605 gcodispo 1.10 strcpy(r,type->name);
606     return PyString_FromString(result);
607 yzhang 1.1 }
608    
609 gcodispo 1.10 /* Install Constants */
610     SWIGRUNTIME(void)
611     SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
612     int i;
613     PyObject *obj;
614     for (i = 0; constants[i].type; i++) {
615     switch(constants[i].type) {
616     case SWIG_PY_INT:
617     obj = PyInt_FromLong(constants[i].lvalue);
618     break;
619     case SWIG_PY_FLOAT:
620     obj = PyFloat_FromDouble(constants[i].dvalue);
621     break;
622     case SWIG_PY_STRING:
623     obj = PyString_FromString((char *) constants[i].pvalue);
624     break;
625     case SWIG_PY_POINTER:
626     obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
627     break;
628     case SWIG_PY_BINARY:
629     obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
630     break;
631     default:
632     obj = 0;
633     break;
634     }
635     if (obj) {
636     PyDict_SetItemString(d,constants[i].name,obj);
637     Py_DECREF(obj);
638 yzhang 1.1 }
639     }
640     }
641    
642 gcodispo 1.10 #endif
643    
644 yzhang 1.1 #ifdef __cplusplus
645     }
646     #endif
647    
648    
649    
650    
651 gcodispo 1.9
652 yzhang 1.1
653    
654    
655 gcodispo 1.10 /* -------- TYPES TABLE (BEGIN) -------- */
656 yzhang 1.1
657 gcodispo 1.10 #define SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t swig_types[0]
658     #define SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator swig_types[1]
659     #define SWIGTYPE_p_XMLDoc swig_types[2]
660     #define SWIGTYPE_p_std__vectorTBossTask_p_t swig_types[3]
661     #define SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t swig_types[4]
662     #define SWIGTYPE_p_BossTask swig_types[5]
663     #define SWIGTYPE_p_BossTaskException swig_types[6]
664     #define SWIGTYPE_p_std__ostream swig_types[7]
665     #define SWIGTYPE_p_BossAttributeContainer swig_types[8]
666     #define SWIGTYPE_p_printOption swig_types[9]
667     #define SWIGTYPE_p_BossJob swig_types[10]
668     #define SWIGTYPE_p_BossDatabase swig_types[11]
669     #define SWIGTYPE_p_BossSession swig_types[12]
670     #define SWIGTYPE_p_std__vectorTstd__string_t swig_types[13]
671     #define SWIGTYPE_p_std__mapTstd__string_std__string_t swig_types[14]
672     #define SWIGTYPE_p_BossAdministratorSession swig_types[15]
673     #define SWIGTYPE_p_BossTask__job_iterator swig_types[16]
674     #define SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[17]
675     #define SWIGTYPE_p_jobStates swig_types[18]
676     static swig_type_info *swig_types[20];
677 yzhang 1.1
678 gcodispo 1.10 /* -------- TYPES TABLE (END) -------- */
679 yzhang 1.1
680    
681 gcodispo 1.10 /*-----------------------------------------------
682     @(target):= _BossSession.so
683     ------------------------------------------------*/
684     #define SWIG_init init_BossSession
685 yzhang 1.1
686 gcodispo 1.10 #define SWIG_name "_BossSession"
687 yzhang 1.1
688 gcodispo 1.10 #define SWIG_MemoryError 1
689     #define SWIG_IOError 2
690     #define SWIG_RuntimeError 3
691     #define SWIG_IndexError 4
692     #define SWIG_TypeError 5
693     #define SWIG_DivisionByZero 6
694     #define SWIG_OverflowError 7
695     #define SWIG_SyntaxError 8
696     #define SWIG_ValueError 9
697     #define SWIG_SystemError 10
698     #define SWIG_UnknownError 99
699 yzhang 1.1
700    
701 gcodispo 1.10 static void _SWIG_exception(int code, const char *msg) {
702 yzhang 1.1 switch(code) {
703     case SWIG_MemoryError:
704 gcodispo 1.10 PyErr_SetString(PyExc_MemoryError,msg);
705 yzhang 1.1 break;
706     case SWIG_IOError:
707 gcodispo 1.10 PyErr_SetString(PyExc_IOError,msg);
708 yzhang 1.1 break;
709     case SWIG_RuntimeError:
710 gcodispo 1.10 PyErr_SetString(PyExc_RuntimeError,msg);
711 yzhang 1.1 break;
712     case SWIG_IndexError:
713 gcodispo 1.10 PyErr_SetString(PyExc_IndexError,msg);
714 yzhang 1.1 break;
715     case SWIG_TypeError:
716 gcodispo 1.10 PyErr_SetString(PyExc_TypeError,msg);
717 yzhang 1.1 break;
718     case SWIG_DivisionByZero:
719 gcodispo 1.10 PyErr_SetString(PyExc_ZeroDivisionError,msg);
720 yzhang 1.1 break;
721     case SWIG_OverflowError:
722 gcodispo 1.10 PyErr_SetString(PyExc_OverflowError,msg);
723 yzhang 1.1 break;
724     case SWIG_SyntaxError:
725 gcodispo 1.10 PyErr_SetString(PyExc_SyntaxError,msg);
726 yzhang 1.1 break;
727     case SWIG_ValueError:
728 gcodispo 1.10 PyErr_SetString(PyExc_ValueError,msg);
729 yzhang 1.1 break;
730     case SWIG_SystemError:
731 gcodispo 1.10 PyErr_SetString(PyExc_SystemError,msg);
732 gcodispo 1.9 break;
733 gcodispo 1.10 default:
734     PyErr_SetString(PyExc_RuntimeError,msg);
735 yzhang 1.1 break;
736 gcodispo 1.9 }
737     }
738    
739 gcodispo 1.10 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
740 gcodispo 1.9
741 yzhang 1.1
742 gcodispo 1.10 #include <string>
743 yzhang 1.1
744    
745 gcodispo 1.10 #include <string>
746 yzhang 1.1
747 gcodispo 1.10 PyObject* SwigInt_FromBool(bool b) {
748     return PyInt_FromLong(b ? 1L : 0L);
749     }
750     double SwigNumber_Check(PyObject* o) {
751     return PyFloat_Check(o) || PyInt_Check(o) || PyLong_Check(o);
752     }
753     double SwigNumber_AsDouble(PyObject* o) {
754     return PyFloat_Check(o) ? PyFloat_AsDouble(o)
755     : (PyInt_Check(o) ? double(PyInt_AsLong(o))
756     : double(PyLong_AsLong(o)));
757     }
758     PyObject* SwigString_FromString(const std::string& s) {
759     return PyString_FromStringAndSize(s.data(),s.size());
760     }
761     std::string SwigString_AsString(PyObject* o) {
762     return std::string(PyString_AsString(o));
763     }
764 yzhang 1.1
765    
766 gcodispo 1.10 #include <vector>
767     #include <algorithm>
768     #include <stdexcept>
769 yzhang 1.1
770    
771 gcodispo 1.10 #include <map>
772     #include <algorithm>
773     #include <stdexcept>
774 yzhang 1.1
775 gcodispo 1.10 bool std_maplstd_stringcstd_string_g___nonzero_____(std::map<std::string,std::string > *self){
776     return !(self->empty());
777     }
778     std::string std_maplstd_stringcstd_string_g___getitem_____(std::map<std::string,std::string > *self,std::string key){
779     std::map<std::string,std::string >::iterator i = self->find(key);
780     if (i != self->end())
781     return i->second;
782     else
783     throw std::out_of_range("key not found");
784     }
785     void std_maplstd_stringcstd_string_g___setitem_____(std::map<std::string,std::string > *self,std::string key,std::string x){
786     (*self)[key] = x;
787     }
788     void std_maplstd_stringcstd_string_g___delitem_____(std::map<std::string,std::string > *self,std::string key){
789     std::map<std::string,std::string >::iterator i = self->find(key);
790     if (i != self->end())
791     self->erase(i);
792     else
793     throw std::out_of_range("key not found");
794     }
795     bool std_maplstd_stringcstd_string_g_has_key___(std::map<std::string,std::string > *self,std::string key){
796     std::map<std::string,std::string >::iterator i = self->find(key);
797     return i != self->end();
798     }
799     PyObject *std_maplstd_stringcstd_string_g_keys___(std::map<std::string,std::string > *self){
800     PyObject* keyList = PyList_New(self->size());
801     std::map<std::string,std::string >::iterator i;
802     unsigned int j;
803     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
804     PyList_SetItem(keyList,j,
805     SwigString_FromString(i->first));
806     }
807     return keyList;
808     }
809     PyObject *std_maplstd_stringcstd_string_g_values___(std::map<std::string,std::string > *self){
810     PyObject* valueList = PyList_New(self->size());
811     std::map<std::string,std::string >::iterator i;
812     unsigned int j;
813     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
814     PyList_SetItem(valueList,j,
815     SwigString_FromString(i->second));
816     }
817     return valueList;
818     }
819     PyObject *std_maplstd_stringcstd_string_g_items___(std::map<std::string,std::string > *self){
820     PyObject* itemList = PyList_New(self->size());
821     std::map<std::string,std::string >::iterator i;
822     unsigned int j;
823     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
824     PyObject* item = PyTuple_New(2);
825     PyTuple_SetItem(item,0,
826     SwigString_FromString(i->first));
827     PyTuple_SetItem(item,1,
828     SwigString_FromString(i->second));
829     PyList_SetItem(itemList,j,item);
830     }
831     return itemList;
832     }
833     bool std_maplstd_stringcstd_string_g___contains_____(std::map<std::string,std::string > *self,std::string key){
834     std::map<std::string,std::string >::iterator i = self->find(key);
835     return i != self->end();
836     }
837     PyObject *std_maplstd_stringcstd_string_g___iter_____(std::map<std::string,std::string > *self){
838     #if PY_VERSION_HEX >= 0x02020000
839     PyObject* keyList = PyList_New(self->size());
840     std::map<std::string,std::string >::iterator i;
841     unsigned int j;
842     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
843     PyList_SetItem(keyList,j,
844     SwigString_FromString(i->first));
845 gcodispo 1.9 }
846 gcodispo 1.10 PyObject* iter = PyObject_GetIter(keyList);
847     Py_DECREF(keyList);
848     return iter;
849     #else
850     throw std::runtime_error("Python 2.2 or later is needed"
851     " for iterator support");
852     #endif
853     }
854     std::string std_vectorlstd_string_g_pop___(std::vector<std::string > *self){
855     if (self->size() == 0)
856     throw std::out_of_range("pop from empty vector");
857     std::string x = self->back();
858     self->pop_back();
859     return x;
860     }
861     std::string std_vectorlstd_string_g___getitem_____(std::vector<std::string > *self,int i){
862     int size = int(self->size());
863     if (i<0) i += size;
864     if (i>=0 && i<size)
865     return (*self)[i];
866     else
867     throw std::out_of_range("vector index out of range");
868     }
869     std::vector<std::string > std_vectorlstd_string_g___getslice_____(std::vector<std::string > *self,int i,int j){
870     int size = int(self->size());
871     if (i<0) i = size+i;
872     if (j<0) j = size+j;
873     if (i<0) i = 0;
874     if (j>size) j = size;
875     std::vector<std::string > tmp(j-i);
876     std::copy(self->begin()+i,self->begin()+j,tmp.begin());
877     return tmp;
878     }
879     void std_vectorlstd_string_g___setitem_____(std::vector<std::string > *self,int i,std::string x){
880     int size = int(self->size());
881     if (i<0) i+= size;
882     if (i>=0 && i<size)
883     (*self)[i] = x;
884     else
885     throw std::out_of_range("vector index out of range");
886     }
887     void std_vectorlstd_string_g___setslice_____(std::vector<std::string > *self,int i,int j,std::vector<std::string > const &v){
888     int size = int(self->size());
889     if (i<0) i = size+i;
890     if (j<0) j = size+j;
891     if (i<0) i = 0;
892     if (j>size) j = size;
893     if (int(v.size()) == j-i) {
894     std::copy(v.begin(),v.end(),self->begin()+i);
895     } else {
896     self->erase(self->begin()+i,self->begin()+j);
897     if (i+1 <= int(self->size()))
898     self->insert(self->begin()+i,v.begin(),v.end());
899     else
900     self->insert(self->end(),v.begin(),v.end());
901 gcodispo 1.9 }
902     }
903 gcodispo 1.10 void std_vectorlstd_string_g___delitem_____(std::vector<std::string > *self,int i){
904     int size = int(self->size());
905     if (i<0) i+= size;
906     if (i>=0 && i<size)
907     self->erase(self->begin()+i);
908     else
909     throw std::out_of_range("vector index out of range");
910     }
911     void std_vectorlstd_string_g___delslice_____(std::vector<std::string > *self,int i,int j){
912     int size = int(self->size());
913     if (i<0) i = size+i;
914     if (j<0) j = size+j;
915     if (i<0) i = 0;
916     if (j>size) j = size;
917     self->erase(self->begin()+i,self->begin()+j);
918 gcodispo 1.9 }
919    
920 gcodispo 1.10 #include "BossSession.h"
921     #include "BossAdministratorSession.h"
922     #include "BossTask.h"
923     #include "BossJob.h"
924     #include "BossTaskCore.h"
925     #include "BossAttributeContainer.h"
926     #include "BossDBObject.h"
927     #include "BossProgram.h"
928     #include "BossProgramExec.h"
929     #include "BossDatabase.h"
930 gcodispo 1.9
931 gcodispo 1.10 PyObject *BossSession_show(BossSession *self,std::vector<std::string > &my_vec){
932     PyObject * my_list = PyList_New( my_vec.size());
933     unsigned int index = 0;
934     for ( std::vector<std::string>::const_iterator it = my_vec.begin ();
935     it != my_vec.end(); ++it, ++index) {
936     PyList_SetItem( my_list, index, PyString_FromString( it->c_str() ));
937 gcodispo 1.9 }
938 gcodispo 1.10 return my_list;
939 gcodispo 1.9 }
940 gcodispo 1.10 PyObject *BossSession_CHTools(BossSession *self){
941     std::vector<std::string> my_vec = self->showCHTools();
942     return BossSession_show( self, my_vec );
943 gcodispo 1.9 }
944 gcodispo 1.10 PyObject *BossSession_ProgramTypes(BossSession *self){
945     std::vector<std::string> my_vec = self->showProgramTypes();
946     return BossSession_show( self, my_vec );
947 gcodispo 1.9 }
948 gcodispo 1.10 PyObject *BossSession_RTMons(BossSession *self){
949     std::vector<std::string> my_vec = self->showRTMon();
950     return BossSession_show( self, my_vec );
951 gcodispo 1.9 }
952 gcodispo 1.10 PyObject *BossSession_schedulers(BossSession *self){
953     std::vector<std::string> my_vec = self->showSchedulers();
954     return BossSession_show( self, my_vec );
955 gcodispo 1.9 }
956 gcodispo 1.10 PyObject *BossSession_schedListMatch(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,bool keepfile){
957     std::vector<std::string> my_vec = self->listMatch( scheduler,
958     schclassad,
959     keepfile,
960     taskid,
961     jobid);
962     return BossSession_show( self, my_vec );
963 gcodispo 1.9 }
964 gcodispo 1.10 PyObject *BossSession_queryTasks(BossSession *self,int filter_opt,std::string const &taskRange,std::string const &jobRange,std::string const &subn,std::string type,std::string user,std::string after,std::string before,bool avoidCheck){
965     if ( !avoidCheck ) {
966     self->schedulerQuery ( filter_opt, taskRange, jobRange, subn,
967     type, user, after, before);
968     }
969     PyObject * job_dict = PyList_New(0);
970     std::vector <std::string>
971     taskList = self->selectTasks( taskRange, before, after, user);
972     for ( std::vector <std::string>::const_iterator it= taskList.begin();
973     it!= taskList.end(); ++it ) {
974     PyList_Append( job_dict, PyString_FromString(it->c_str() ) );
975     }
976    
977     // int size = taskList.size();
978     // PyObject * job_dict = PyList_New(0);
979     // for ( unsigned int i = 0; i < size; ++i ) {
980     // PyList_SetItem(job_dict,i, );
981     // self->makeBossTask( *it );
982     // }
983     return job_dict;
984     }
985     PyObject *BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){
986     std::string tmp;
987     BossAttributeContainer::const_iterator it_end = obj.end ();
988     for (BossAttributeContainer::const_iterator it = obj.begin ();
989     it != it_end; ++it) {
990     tmp = (*it).first.name ();
991     char * key = new char[ tmp.size() ];
992     key = strdup(tmp.c_str());
993     tmp = (*it).second.value ();
994     PyObject * val = PyString_FromString( tmp.c_str() );
995     PyDict_SetItemString( dict, key, val );
996     delete [] key;
997     }
998     return dict;
999 gcodispo 1.9 }
1000 gcodispo 1.10 PyObject *BossTask_jobDict(BossTask const *self,std::vector<BossJob * >::const_iterator &jit){
1001 gcodispo 1.9
1002 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1003     std::string tmp;
1004 gcodispo 1.9
1005 gcodispo 1.10 BossAttributeContainer obj = (*jit)->getTableEntries("JOB");
1006     job_dict = BossTask_appendToPyDict ( self, job_dict, obj );
1007 gcodispo 1.9
1008 gcodispo 1.10 std::set<std::string> sch = (*jit)->getSchedulerElements();
1009     std::set<std::string>::const_iterator sch_end = sch.end();
1010     for (std::set<std::string>::const_iterator it =sch.begin();
1011     it != sch_end; ++ it ) {
1012     tmp = (*it);
1013     char * key = new char[ tmp.size() ];
1014     key = strdup(tmp.c_str());
1015     tmp = (**jit)["JOB_SCHED_INFO."+(*it)];
1016     PyObject * val = PyString_FromString( tmp.c_str() );
1017     PyDict_SetItemString( job_dict, key, val );
1018     delete [] key;
1019 gcodispo 1.9 }
1020 gcodispo 1.10 return job_dict;
1021 gcodispo 1.9 }
1022 gcodispo 1.10 PyObject *BossTask_jobsDict(BossTask const *self){
1023 gcodispo 1.9
1024 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1025     for (BossTask::job_iterator jit = self->job_begin ();
1026     jit != self->job_end (); ++jit) {
1027     std::string id = (*jit)->chainId();
1028     PyObject * tmp = BossTask_jobDict( self, jit );
1029     PyObject * myid = PyString_FromString(id.c_str() );
1030     PyDict_SetItem( job_dict, myid,tmp );
1031 gcodispo 1.9 }
1032 gcodispo 1.10 return job_dict;
1033 gcodispo 1.9 }
1034 gcodispo 1.10 PyObject *BossTask_progDict(BossTask const *self,std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator &programs_it){
1035 gcodispo 1.9
1036 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1037 gcodispo 1.9
1038 gcodispo 1.10 std::string tmp;
1039 gcodispo 1.9
1040 gcodispo 1.10 // PROGRAM
1041     BossAttributeContainer obj =
1042     (programs_it->first).getTableEntries("PROGRAM");
1043     BossTask_appendToPyDict ( self, job_dict, obj );
1044 gcodispo 1.9
1045 gcodispo 1.10 // PROGRAM_EXEC
1046     obj.clear();
1047     obj = (programs_it->second).getTableEntries("PROGRAM_EXEC");
1048     BossTask_appendToPyDict ( self, job_dict, obj );
1049 gcodispo 1.9
1050 gcodispo 1.10 // SPECIFICS
1051     std::vector < BossAttributeContainer >::const_iterator it;
1052     std::vector < BossAttributeContainer >::const_iterator it_end = (programs_it->second).specEnd ();
1053     for ( it = (programs_it->second).specBegin (); it != it_end; ++it) {
1054     BossTask_appendToPyDict ( self, job_dict, *it );
1055 gcodispo 1.9 }
1056 gcodispo 1.10 return job_dict;
1057 gcodispo 1.9 }
1058 gcodispo 1.10 PyObject *BossTask_jobPrograms(BossTask const *self,std::string const &jobid){
1059    
1060     const BossJob * jH = &((*self)[atoi( jobid.c_str() )]);
1061     std::map< std::string, std::map< std::string, std::string > > ret_val;
1062     std::vector< std::pair<BossProgram, BossProgramExec > >
1063     programs = self->queryJobPrograms ( jH );
1064     std::vector< std::pair<BossProgram, BossProgramExec > >::const_iterator
1065     programs_it_end = programs.end();
1066     std::vector< std::pair<BossProgram, BossProgramExec > >::const_iterator
1067     programs_it;
1068    
1069 gcodispo 1.9
1070 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1071 gcodispo 1.9
1072 gcodispo 1.10 for ( programs_it = programs.begin(); programs_it != programs_it_end;
1073     ++programs_it ) {
1074     std::string id = (programs_it->first)["PROGRAM.ID"];
1075     PyObject * tmp = BossTask_progDict( self, programs_it );
1076     PyObject * myid = PyString_FromString(id.c_str() );
1077     PyDict_SetItem( job_dict, myid,tmp );
1078 gcodispo 1.9 }
1079 gcodispo 1.10 return job_dict;
1080 gcodispo 1.9 }
1081 gcodispo 1.10 #ifdef __cplusplus
1082     extern "C" {
1083     #endif
1084     static PyObject *_wrap_new_objectMap__SWIG_0(PyObject *self, PyObject *args) {
1085     PyObject *resultobj;
1086     std::map<std::string,std::string > *result;
1087    
1088     if(!PyArg_ParseTuple(args,(char *)":new_objectMap")) goto fail;
1089     {
1090     try {
1091     result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >();
1092    
1093     }catch (const std::exception& e) {
1094     SWIG_exception(SWIG_RuntimeError, e.what());
1095     }
1096 gcodispo 1.9 }
1097 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1);
1098     return resultobj;
1099     fail:
1100     return NULL;
1101 gcodispo 1.9 }
1102    
1103    
1104 gcodispo 1.10 static PyObject *_wrap_new_objectMap__SWIG_1(PyObject *self, PyObject *args) {
1105     PyObject *resultobj;
1106     std::map<std::string,std::string > *arg1 = 0 ;
1107     std::map<std::string,std::string > *result;
1108     std::map<std::string,std::string > temp1 ;
1109     std::map<std::string,std::string > *m1 ;
1110     PyObject * obj0 = 0 ;
1111    
1112     if(!PyArg_ParseTuple(args,(char *)"O:new_objectMap",&obj0)) goto fail;
1113     {
1114     if (PyDict_Check(obj0)) {
1115     PyObject* items = PyMapping_Items(obj0);
1116     unsigned int size = PyList_Size(items);
1117     temp1 = std::map<std::string,std::string >();
1118     arg1 = &temp1;
1119     for (unsigned int i=0; i<size; i++) {
1120     PyObject* pair = PySequence_GetItem(items,i);
1121     PyObject* key = PySequence_GetItem(pair,0);
1122     PyObject* o = PySequence_GetItem(pair,1);
1123     if (PyString_Check(key) && PyString_Check(o)) {
1124     temp1[SwigString_AsString(key)] = SwigString_AsString(o);
1125     Py_DECREF(key);
1126     Py_DECREF(o);
1127     Py_DECREF(pair);
1128     }else {
1129     Py_DECREF(key);
1130     Py_DECREF(o);
1131     Py_DECREF(pair);
1132     Py_DECREF(items);
1133     PyErr_SetString(PyExc_TypeError,
1134     "map<""std::string"",""std::string""> expected");
1135     SWIG_fail;
1136     }
1137     }
1138     Py_DECREF(items);
1139     }else if (SWIG_ConvertPtr(obj0,(void **) &m1,
1140     SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1) {
1141     arg1 = m1;
1142     }else {
1143     PyErr_SetString(PyExc_TypeError,
1144     "map<""std::string"",""std::string""> expected");
1145     SWIG_fail;
1146     }
1147 gcodispo 1.9 }
1148 gcodispo 1.10 {
1149     try {
1150     result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >((std::map<std::string,std::string > const &)*arg1);
1151    
1152     }catch (const std::exception& e) {
1153     SWIG_exception(SWIG_RuntimeError, e.what());
1154     }
1155 gcodispo 1.9 }
1156 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1);
1157     return resultobj;
1158     fail:
1159     return NULL;
1160 gcodispo 1.9 }
1161    
1162    
1163 gcodispo 1.10 static PyObject *_wrap_new_objectMap(PyObject *self, PyObject *args) {
1164     int argc;
1165     PyObject *argv[2];
1166     int ii;
1167    
1168     argc = PyObject_Length(args);
1169     for (ii = 0; (ii < argc) && (ii < 1); ii++) {
1170     argv[ii] = PyTuple_GetItem(args,ii);
1171     }
1172     if (argc == 0) {
1173     return _wrap_new_objectMap__SWIG_0(self,args);
1174 gcodispo 1.9 }
1175 gcodispo 1.10 if (argc == 1) {
1176     int _v;
1177 gcodispo 1.9 {
1178 gcodispo 1.10 /* native sequence? */
1179     if (PyDict_Check(argv[0])) {
1180     PyObject* items = PyMapping_Items(argv[0]);
1181     unsigned int size = PyList_Size(items);
1182     if (size == 0) {
1183     /* an empty dictionary can be of any type */
1184     _v = 1;
1185     }else {
1186     /* check the first element only */
1187     PyObject* pair = PySequence_GetItem(items,0);
1188     PyObject* key = PySequence_GetItem(pair,0);
1189     PyObject* o = PySequence_GetItem(pair,1);
1190     if (PyString_Check(key) && PyString_Check(o))
1191     _v = 1;
1192     else
1193     _v = 0;
1194     Py_DECREF(key);
1195     Py_DECREF(o);
1196     Py_DECREF(pair);
1197     }
1198     Py_DECREF(items);
1199     }else {
1200     /* wrapped map? */
1201     std::map<std::string,std::string >* m;
1202     if (SWIG_ConvertPtr(argv[0],(void **) &m,
1203     SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1)
1204     _v = 1;
1205     else
1206     _v = 0;
1207     }
1208 gcodispo 1.9 }
1209     if (_v) {
1210 gcodispo 1.10 return _wrap_new_objectMap__SWIG_1(self,args);
1211 gcodispo 1.9 }
1212     }
1213 gcodispo 1.10
1214     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_objectMap'");
1215     return NULL;
1216 gcodispo 1.9 }
1217    
1218    
1219 gcodispo 1.10 static PyObject *_wrap_objectMap___len__(PyObject *self, PyObject *args) {
1220     PyObject *resultobj;
1221     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1222     unsigned int result;
1223     std::map<std::string,std::string > temp1 ;
1224     std::map<std::string,std::string > *m1 ;
1225     PyObject * obj0 = 0 ;
1226    
1227     if(!PyArg_ParseTuple(args,(char *)"O:objectMap___len__",&obj0)) goto fail;
1228     {
1229     if (PyDict_Check(obj0)) {
1230     PyObject* items = PyMapping_Items(obj0);
1231     unsigned int size = PyList_Size(items);
1232     temp1 = std::map<std::string,std::string >();
1233     arg1 = &temp1;
1234     for (unsigned int i=0; i<size; i++) {
1235     PyObject* pair = PySequence_GetItem(items,i);
1236     PyObject* key = PySequence_GetItem(pair,0);
1237     PyObject* o = PySequence_GetItem(pair,1);
1238     if (PyString_Check(key) && PyString_Check(o)) {
1239     temp1[SwigString_AsString(key)] = SwigString_AsString(o);
1240     Py_DECREF(key);
1241     Py_DECREF(o);
1242     Py_DECREF(pair);
1243     }else {
1244     Py_DECREF(key);
1245     Py_DECREF(o);
1246     Py_DECREF(pair);
1247     Py_DECREF(items);
1248     PyErr_SetString(PyExc_TypeError,
1249     "map<""std::string"",""std::string""> expected");
1250     SWIG_fail;
1251     }
1252     }
1253     Py_DECREF(items);
1254     }else if (SWIG_ConvertPtr(obj0,(void **) &m1,
1255     SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1) {
1256     arg1 = m1;
1257     }else {
1258     PyErr_SetString(PyExc_TypeError,
1259     "map<""std::string"",""std::string""> expected");
1260     SWIG_fail;
1261     }
1262 gcodispo 1.9 }
1263 gcodispo 1.10 {
1264     try {
1265     result = (unsigned int)((std::map<std::string,std::string > const *)arg1)->size();
1266    
1267     }catch (const std::exception& e) {
1268     SWIG_exception(SWIG_RuntimeError, e.what());
1269     }
1270 gcodispo 1.9 }
1271 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1272     return resultobj;
1273     fail:
1274     return NULL;
1275 gcodispo 1.9 }
1276    
1277    
1278 gcodispo 1.10 static PyObject *_wrap_objectMap_clear(PyObject *self, PyObject *args) {
1279     PyObject *resultobj;
1280     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1281     PyObject * obj0 = 0 ;
1282    
1283     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_clear",&obj0)) goto fail;
1284     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1285     {
1286     try {
1287     (arg1)->clear();
1288    
1289     }catch (const std::exception& e) {
1290     SWIG_exception(SWIG_RuntimeError, e.what());
1291     }
1292 gcodispo 1.9 }
1293 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1294     return resultobj;
1295     fail:
1296     return NULL;
1297 gcodispo 1.9 }
1298    
1299    
1300 gcodispo 1.10 static PyObject *_wrap_objectMap___nonzero__(PyObject *self, PyObject *args) {
1301     PyObject *resultobj;
1302     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1303     bool result;
1304     PyObject * obj0 = 0 ;
1305    
1306     if(!PyArg_ParseTuple(args,(char *)"O:objectMap___nonzero__",&obj0)) goto fail;
1307     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1308     {
1309     try {
1310     result = (bool)std_maplstd_stringcstd_string_g___nonzero_____(arg1);
1311    
1312     }catch (const std::exception& e) {
1313     SWIG_exception(SWIG_RuntimeError, e.what());
1314 gcodispo 1.9 }
1315     }
1316 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1317     return resultobj;
1318     fail:
1319     return NULL;
1320 gcodispo 1.9 }
1321    
1322    
1323 gcodispo 1.10 static PyObject *_wrap_objectMap___getitem__(PyObject *self, PyObject *args) {
1324     PyObject *resultobj;
1325     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1326     std::string arg2 ;
1327     std::string result;
1328     PyObject * obj0 = 0 ;
1329     PyObject * obj1 = 0 ;
1330    
1331     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___getitem__",&obj0,&obj1)) goto fail;
1332     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1333     {
1334     if (PyString_Check(obj1))
1335     arg2 = std::string(PyString_AsString(obj1));
1336     else
1337     SWIG_exception(SWIG_TypeError, "string expected");
1338 gcodispo 1.9 }
1339 gcodispo 1.10 {
1340     try {
1341     result = std_maplstd_stringcstd_string_g___getitem_____(arg1,arg2);
1342    
1343     }catch (std::out_of_range& e) {
1344     PyErr_SetString(PyExc_KeyError,const_cast<char*>(e.what()));
1345     SWIG_fail;
1346     }
1347 gcodispo 1.9 }
1348 gcodispo 1.10 {
1349     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
1350 gcodispo 1.9 }
1351 gcodispo 1.10 return resultobj;
1352     fail:
1353     return NULL;
1354 gcodispo 1.9 }
1355    
1356    
1357 gcodispo 1.10 static PyObject *_wrap_objectMap___setitem__(PyObject *self, PyObject *args) {
1358     PyObject *resultobj;
1359     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1360     std::string arg2 ;
1361     std::string arg3 ;
1362     PyObject * obj0 = 0 ;
1363     PyObject * obj1 = 0 ;
1364     PyObject * obj2 = 0 ;
1365    
1366     if(!PyArg_ParseTuple(args,(char *)"OOO:objectMap___setitem__",&obj0,&obj1,&obj2)) goto fail;
1367     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1368     {
1369     if (PyString_Check(obj1))
1370     arg2 = std::string(PyString_AsString(obj1));
1371     else
1372     SWIG_exception(SWIG_TypeError, "string expected");
1373 gcodispo 1.9 }
1374 gcodispo 1.10 {
1375     if (PyString_Check(obj2))
1376     arg3 = std::string(PyString_AsString(obj2));
1377     else
1378     SWIG_exception(SWIG_TypeError, "string expected");
1379 gcodispo 1.9 }
1380 gcodispo 1.10 {
1381     try {
1382     std_maplstd_stringcstd_string_g___setitem_____(arg1,arg2,arg3);
1383    
1384     }catch (const std::exception& e) {
1385     SWIG_exception(SWIG_RuntimeError, e.what());
1386     }
1387 gcodispo 1.9 }
1388 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1389     return resultobj;
1390     fail:
1391     return NULL;
1392     }
1393    
1394    
1395     static PyObject *_wrap_objectMap___delitem__(PyObject *self, PyObject *args) {
1396     PyObject *resultobj;
1397     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1398     std::string arg2 ;
1399     PyObject * obj0 = 0 ;
1400     PyObject * obj1 = 0 ;
1401    
1402     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___delitem__",&obj0,&obj1)) goto fail;
1403     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1404     {
1405     if (PyString_Check(obj1))
1406     arg2 = std::string(PyString_AsString(obj1));
1407     else
1408     SWIG_exception(SWIG_TypeError, "string expected");
1409 gcodispo 1.9 }
1410 gcodispo 1.10 {
1411     try {
1412     std_maplstd_stringcstd_string_g___delitem_____(arg1,arg2);
1413    
1414     }catch (std::out_of_range& e) {
1415     PyErr_SetString(PyExc_KeyError,const_cast<char*>(e.what()));
1416     SWIG_fail;
1417     }
1418 gcodispo 1.9 }
1419 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1420     return resultobj;
1421     fail:
1422     return NULL;
1423 gcodispo 1.9 }
1424    
1425    
1426 gcodispo 1.10 static PyObject *_wrap_objectMap_has_key(PyObject *self, PyObject *args) {
1427     PyObject *resultobj;
1428     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1429     std::string arg2 ;
1430     bool result;
1431     PyObject * obj0 = 0 ;
1432     PyObject * obj1 = 0 ;
1433    
1434     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap_has_key",&obj0,&obj1)) goto fail;
1435     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1436     {
1437     if (PyString_Check(obj1))
1438     arg2 = std::string(PyString_AsString(obj1));
1439     else
1440     SWIG_exception(SWIG_TypeError, "string expected");
1441 gcodispo 1.9 }
1442 gcodispo 1.10 {
1443     try {
1444     result = (bool)std_maplstd_stringcstd_string_g_has_key___(arg1,arg2);
1445    
1446     }catch (const std::exception& e) {
1447     SWIG_exception(SWIG_RuntimeError, e.what());
1448     }
1449 gcodispo 1.9 }
1450 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1451     return resultobj;
1452     fail:
1453     return NULL;
1454 gcodispo 1.9 }
1455    
1456    
1457 gcodispo 1.10 static PyObject *_wrap_objectMap_keys(PyObject *self, PyObject *args) {
1458     PyObject *resultobj;
1459     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1460     PyObject *result;
1461     PyObject * obj0 = 0 ;
1462    
1463     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_keys",&obj0)) goto fail;
1464     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1465     {
1466     try {
1467     result = (PyObject *)std_maplstd_stringcstd_string_g_keys___(arg1);
1468    
1469     }catch (const std::exception& e) {
1470     SWIG_exception(SWIG_RuntimeError, e.what());
1471     }
1472 gcodispo 1.9 }
1473 gcodispo 1.10 resultobj = result;
1474     return resultobj;
1475     fail:
1476     return NULL;
1477 gcodispo 1.9 }
1478    
1479    
1480 gcodispo 1.10 static PyObject *_wrap_objectMap_values(PyObject *self, PyObject *args) {
1481     PyObject *resultobj;
1482     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1483     PyObject *result;
1484     PyObject * obj0 = 0 ;
1485    
1486     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_values",&obj0)) goto fail;
1487     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1488     {
1489     try {
1490     result = (PyObject *)std_maplstd_stringcstd_string_g_values___(arg1);
1491    
1492     }catch (const std::exception& e) {
1493     SWIG_exception(SWIG_RuntimeError, e.what());
1494     }
1495 gcodispo 1.9 }
1496 gcodispo 1.10 resultobj = result;
1497     return resultobj;
1498     fail:
1499     return NULL;
1500 gcodispo 1.9 }
1501    
1502    
1503 gcodispo 1.10 static PyObject *_wrap_objectMap_items(PyObject *self, PyObject *args) {
1504     PyObject *resultobj;
1505     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1506     PyObject *result;
1507     PyObject * obj0 = 0 ;
1508    
1509     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_items",&obj0)) goto fail;
1510     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1511     {
1512     try {
1513     result = (PyObject *)std_maplstd_stringcstd_string_g_items___(arg1);
1514    
1515     }catch (const std::exception& e) {
1516     SWIG_exception(SWIG_RuntimeError, e.what());
1517 gcodispo 1.9 }
1518     }
1519 gcodispo 1.10 resultobj = result;
1520     return resultobj;
1521     fail:
1522     return NULL;
1523     }
1524    
1525    
1526     static PyObject *_wrap_objectMap___contains__(PyObject *self, PyObject *args) {
1527     PyObject *resultobj;
1528     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1529     std::string arg2 ;
1530     bool result;
1531     PyObject * obj0 = 0 ;
1532     PyObject * obj1 = 0 ;
1533    
1534     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___contains__",&obj0,&obj1)) goto fail;
1535     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1536     {
1537     if (PyString_Check(obj1))
1538     arg2 = std::string(PyString_AsString(obj1));
1539     else
1540     SWIG_exception(SWIG_TypeError, "string expected");
1541 gcodispo 1.9 }
1542 gcodispo 1.10 {
1543     try {
1544     result = (bool)std_maplstd_stringcstd_string_g___contains_____(arg1,arg2);
1545    
1546     }catch (const std::exception& e) {
1547     SWIG_exception(SWIG_RuntimeError, e.what());
1548 gcodispo 1.9 }
1549     }
1550 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1551     return resultobj;
1552     fail:
1553     return NULL;
1554 gcodispo 1.9 }
1555    
1556    
1557 gcodispo 1.10 static PyObject *_wrap_objectMap___iter__(PyObject *self, PyObject *args) {
1558     PyObject *resultobj;
1559     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1560     PyObject *result;
1561     PyObject * obj0 = 0 ;
1562    
1563     if(!PyArg_ParseTuple(args,(char *)"O:objectMap___iter__",&obj0)) goto fail;
1564     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1565     {
1566     try {
1567     result = (PyObject *)std_maplstd_stringcstd_string_g___iter_____(arg1);
1568    
1569     }catch (std::runtime_error& e) {
1570     PyErr_SetString(PyExc_RuntimeError,const_cast<char*>(e.what()));
1571     SWIG_fail;
1572     }
1573 gcodispo 1.9 }
1574 gcodispo 1.10 resultobj = result;
1575     return resultobj;
1576     fail:
1577     return NULL;
1578 gcodispo 1.9 }
1579    
1580    
1581 gcodispo 1.10 static PyObject *_wrap_delete_objectMap(PyObject *self, PyObject *args) {
1582     PyObject *resultobj;
1583     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1584     PyObject * obj0 = 0 ;
1585    
1586     if(!PyArg_ParseTuple(args,(char *)"O:delete_objectMap",&obj0)) goto fail;
1587     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1588     {
1589     try {
1590     delete arg1;
1591    
1592     }catch (const std::exception& e) {
1593     SWIG_exception(SWIG_RuntimeError, e.what());
1594     }
1595 gcodispo 1.9 }
1596 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1597     return resultobj;
1598     fail:
1599     return NULL;
1600     }
1601    
1602    
1603     static PyObject * objectMap_swigregister(PyObject *self, PyObject *args) {
1604     PyObject *obj;
1605     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1606     SWIG_TypeClientData(SWIGTYPE_p_std__mapTstd__string_std__string_t, obj);
1607     Py_INCREF(obj);
1608     return Py_BuildValue((char *)"");
1609     }
1610     static PyObject *_wrap_new_vector_string__SWIG_0(PyObject *self, PyObject *args) {
1611     PyObject *resultobj;
1612     unsigned int arg1 = (unsigned int) 0 ;
1613     std::vector<std::string > *result;
1614     PyObject * obj0 = 0 ;
1615    
1616     if(!PyArg_ParseTuple(args,(char *)"|O:new_vector_string",&obj0)) goto fail;
1617     if (obj0) {
1618     arg1 = (unsigned int) PyInt_AsLong(obj0);
1619     if (PyErr_Occurred()) SWIG_fail;
1620 gcodispo 1.9 }
1621 gcodispo 1.10 {
1622     try {
1623     result = (std::vector<std::string > *)new std::vector<std::string >(arg1);
1624    
1625     }catch (const std::exception& e) {
1626     SWIG_exception(SWIG_RuntimeError, e.what());
1627     }
1628 gcodispo 1.9 }
1629 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
1630     return resultobj;
1631     fail:
1632     return NULL;
1633 gcodispo 1.9 }
1634    
1635    
1636 gcodispo 1.10 static PyObject *_wrap_new_vector_string__SWIG_1(PyObject *self, PyObject *args) {
1637     PyObject *resultobj;
1638     unsigned int arg1 ;
1639     std::string *arg2 = 0 ;
1640     std::vector<std::string > *result;
1641     std::string temp2 ;
1642     PyObject * obj0 = 0 ;
1643     PyObject * obj1 = 0 ;
1644    
1645     if(!PyArg_ParseTuple(args,(char *)"OO:new_vector_string",&obj0,&obj1)) goto fail;
1646     arg1 = (unsigned int) PyInt_AsLong(obj0);
1647     if (PyErr_Occurred()) SWIG_fail;
1648     {
1649     if (PyString_Check(obj1)) {
1650     temp2 = std::string(PyString_AsString(obj1));
1651     arg2 = &temp2;
1652     }else {
1653     SWIG_exception(SWIG_TypeError, "string expected");
1654     }
1655 gcodispo 1.9 }
1656 gcodispo 1.10 {
1657     try {
1658     result = (std::vector<std::string > *)new std::vector<std::string >(arg1,(std::string const &)*arg2);
1659    
1660     }catch (const std::exception& e) {
1661     SWIG_exception(SWIG_RuntimeError, e.what());
1662     }
1663 gcodispo 1.9 }
1664 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
1665     return resultobj;
1666     fail:
1667     return NULL;
1668 gcodispo 1.9 }
1669    
1670    
1671 gcodispo 1.10 static PyObject *_wrap_new_vector_string__SWIG_2(PyObject *self, PyObject *args) {
1672     PyObject *resultobj;
1673     std::vector<std::string > *arg1 = 0 ;
1674     std::vector<std::string > *result;
1675     std::vector<std::string > temp1 ;
1676     std::vector<std::string > *v1 ;
1677     PyObject * obj0 = 0 ;
1678    
1679     if(!PyArg_ParseTuple(args,(char *)"O:new_vector_string",&obj0)) goto fail;
1680     {
1681     if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
1682     unsigned int size = (PyTuple_Check(obj0) ?
1683     PyTuple_Size(obj0) :
1684     PyList_Size(obj0));
1685     temp1 = std::vector<std::string >(size);
1686     arg1 = &temp1;
1687     for (unsigned int i=0; i<size; i++) {
1688     PyObject* o = PySequence_GetItem(obj0,i);
1689     if (PyString_Check(o)) {
1690     temp1[i] = (std::string)(\
1691     SwigString_AsString(o));
1692     Py_DECREF(o);
1693     }else {
1694     Py_DECREF(o);
1695     PyErr_SetString(PyExc_TypeError,
1696     "vector<""std::string""> expected");
1697     SWIG_fail;
1698     }
1699     }
1700     }else if (SWIG_ConvertPtr(obj0,(void **) &v1,
1701     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
1702     arg1 = v1;
1703     }else {
1704     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
1705     SWIG_fail;
1706     }
1707     }
1708     {
1709     try {
1710     result = (std::vector<std::string > *)new std::vector<std::string >((std::vector<std::string > const &)*arg1);
1711    
1712     }catch (const std::exception& e) {
1713     SWIG_exception(SWIG_RuntimeError, e.what());
1714     }
1715 gcodispo 1.9 }
1716 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
1717     return resultobj;
1718     fail:
1719     return NULL;
1720 gcodispo 1.9 }
1721    
1722    
1723 gcodispo 1.10 static PyObject *_wrap_new_vector_string(PyObject *self, PyObject *args) {
1724     int argc;
1725     PyObject *argv[3];
1726     int ii;
1727    
1728     argc = PyObject_Length(args);
1729     for (ii = 0; (ii < argc) && (ii < 2); ii++) {
1730     argv[ii] = PyTuple_GetItem(args,ii);
1731     }
1732     if ((argc >= 0) && (argc <= 1)) {
1733     int _v;
1734     if (argc <= 0) {
1735     return _wrap_new_vector_string__SWIG_0(self,args);
1736     }
1737     {
1738     _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
1739     }
1740     if (_v) {
1741     return _wrap_new_vector_string__SWIG_0(self,args);
1742     }
1743 gcodispo 1.9 }
1744 gcodispo 1.10 if (argc == 1) {
1745     int _v;
1746 gcodispo 1.9 {
1747 gcodispo 1.10 /* native sequence? */
1748     if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
1749     unsigned int size = (PyTuple_Check(argv[0]) ?
1750     PyTuple_Size(argv[0]) :
1751     PyList_Size(argv[0]));
1752     if (size == 0) {
1753     /* an empty sequence can be of any type */
1754     _v = 1;
1755     }else {
1756     /* check the first element only */
1757     PyObject* o = PySequence_GetItem(argv[0],0);
1758     if (PyString_Check(o))
1759     _v = 1;
1760     else
1761     _v = 0;
1762     Py_DECREF(o);
1763     }
1764     }else {
1765     /* wrapped vector? */
1766     std::vector<std::string >* v;
1767     if (SWIG_ConvertPtr(argv[0],(void **) &v,
1768     SWIGTYPE_p_std__vectorTstd__string_t,0) != -1)
1769     _v = 1;
1770     else
1771     _v = 0;
1772     }
1773 gcodispo 1.9 }
1774     if (_v) {
1775 gcodispo 1.10 return _wrap_new_vector_string__SWIG_2(self,args);
1776 gcodispo 1.9 }
1777     }
1778 gcodispo 1.10 if (argc == 2) {
1779     int _v;
1780 gcodispo 1.9 {
1781 gcodispo 1.10 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
1782 gcodispo 1.9 }
1783     if (_v) {
1784 gcodispo 1.10 {
1785     _v = PyString_Check(argv[1]) ? 1 : 0;
1786     }
1787     if (_v) {
1788     return _wrap_new_vector_string__SWIG_1(self,args);
1789     }
1790 gcodispo 1.9 }
1791     }
1792 gcodispo 1.10
1793     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_vector_string'");
1794     return NULL;
1795 gcodispo 1.9 }
1796    
1797    
1798 gcodispo 1.10 static PyObject *_wrap_vector_string___len__(PyObject *self, PyObject *args) {
1799     PyObject *resultobj;
1800     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1801     unsigned int result;
1802     std::vector<std::string > temp1 ;
1803     std::vector<std::string > *v1 ;
1804     PyObject * obj0 = 0 ;
1805    
1806     if(!PyArg_ParseTuple(args,(char *)"O:vector_string___len__",&obj0)) goto fail;
1807     {
1808     if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
1809     unsigned int size = (PyTuple_Check(obj0) ?
1810     PyTuple_Size(obj0) :
1811     PyList_Size(obj0));
1812     temp1 = std::vector<std::string >(size);
1813     arg1 = &temp1;
1814     for (unsigned int i=0; i<size; i++) {
1815     PyObject* o = PySequence_GetItem(obj0,i);
1816     if (PyString_Check(o)) {
1817     temp1[i] = (std::string)(\
1818     SwigString_AsString(o));
1819     Py_DECREF(o);
1820     }else {
1821     Py_DECREF(o);
1822     PyErr_SetString(PyExc_TypeError,
1823     "vector<""std::string""> expected");
1824     SWIG_fail;
1825     }
1826     }
1827     }else if (SWIG_ConvertPtr(obj0,(void **) &v1,
1828     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
1829     arg1 = v1;
1830     }else {
1831     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
1832     SWIG_fail;
1833     }
1834 gcodispo 1.9 }
1835 gcodispo 1.10 {
1836     try {
1837     result = (unsigned int)((std::vector<std::string > const *)arg1)->size();
1838    
1839     }catch (const std::exception& e) {
1840     SWIG_exception(SWIG_RuntimeError, e.what());
1841     }
1842 gcodispo 1.9 }
1843 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1844     return resultobj;
1845     fail:
1846     return NULL;
1847 gcodispo 1.9 }
1848    
1849    
1850 gcodispo 1.10 static PyObject *_wrap_vector_string___nonzero__(PyObject *self, PyObject *args) {
1851     PyObject *resultobj;
1852     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1853     bool result;
1854     std::vector<std::string > temp1 ;
1855     std::vector<std::string > *v1 ;
1856     PyObject * obj0 = 0 ;
1857    
1858     if(!PyArg_ParseTuple(args,(char *)"O:vector_string___nonzero__",&obj0)) goto fail;
1859     {
1860     if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
1861     unsigned int size = (PyTuple_Check(obj0) ?
1862     PyTuple_Size(obj0) :
1863     PyList_Size(obj0));
1864     temp1 = std::vector<std::string >(size);
1865     arg1 = &temp1;
1866     for (unsigned int i=0; i<size; i++) {
1867     PyObject* o = PySequence_GetItem(obj0,i);
1868     if (PyString_Check(o)) {
1869     temp1[i] = (std::string)(\
1870     SwigString_AsString(o));
1871     Py_DECREF(o);
1872     }else {
1873     Py_DECREF(o);
1874     PyErr_SetString(PyExc_TypeError,
1875     "vector<""std::string""> expected");
1876     SWIG_fail;
1877     }
1878     }
1879     }else if (SWIG_ConvertPtr(obj0,(void **) &v1,
1880     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
1881     arg1 = v1;
1882     }else {
1883     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
1884     SWIG_fail;
1885     }
1886 gcodispo 1.9 }
1887 gcodispo 1.10 {
1888     try {
1889     result = (bool)((std::vector<std::string > const *)arg1)->empty();
1890    
1891     }catch (const std::exception& e) {
1892     SWIG_exception(SWIG_RuntimeError, e.what());
1893     }
1894 gcodispo 1.9 }
1895 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1896     return resultobj;
1897     fail:
1898     return NULL;
1899 gcodispo 1.9 }
1900    
1901    
1902 gcodispo 1.10 static PyObject *_wrap_vector_string_clear(PyObject *self, PyObject *args) {
1903     PyObject *resultobj;
1904     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1905     PyObject * obj0 = 0 ;
1906    
1907     if(!PyArg_ParseTuple(args,(char *)"O:vector_string_clear",&obj0)) goto fail;
1908     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1909     {
1910     try {
1911     (arg1)->clear();
1912    
1913     }catch (const std::exception& e) {
1914     SWIG_exception(SWIG_RuntimeError, e.what());
1915     }
1916 gcodispo 1.9 }
1917 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1918     return resultobj;
1919     fail:
1920     return NULL;
1921 gcodispo 1.9 }
1922    
1923    
1924 gcodispo 1.10 static PyObject *_wrap_vector_string_append(PyObject *self, PyObject *args) {
1925     PyObject *resultobj;
1926     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1927     std::string arg2 ;
1928     PyObject * obj0 = 0 ;
1929     PyObject * obj1 = 0 ;
1930    
1931     if(!PyArg_ParseTuple(args,(char *)"OO:vector_string_append",&obj0,&obj1)) goto fail;
1932     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1933     {
1934     if (PyString_Check(obj1))
1935     arg2 = std::string(PyString_AsString(obj1));
1936     else
1937     SWIG_exception(SWIG_TypeError, "string expected");
1938 gcodispo 1.9 }
1939 gcodispo 1.10 {
1940     try {
1941     (arg1)->push_back(arg2);
1942    
1943     }catch (const std::exception& e) {
1944     SWIG_exception(SWIG_RuntimeError, e.what());
1945     }
1946 gcodispo 1.9 }
1947 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1948     return resultobj;
1949     fail:
1950     return NULL;
1951 gcodispo 1.9 }
1952    
1953    
1954 gcodispo 1.10 static PyObject *_wrap_vector_string_pop(PyObject *self, PyObject *args) {
1955     PyObject *resultobj;
1956     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1957     std::string result;
1958     PyObject * obj0 = 0 ;
1959    
1960     if(!PyArg_ParseTuple(args,(char *)"O:vector_string_pop",&obj0)) goto fail;
1961     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1962     {
1963     try {
1964     result = std_vectorlstd_string_g_pop___(arg1);
1965    
1966     }catch (std::out_of_range& e) {
1967     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
1968     }
1969 gcodispo 1.9 }
1970 gcodispo 1.10 {
1971     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
1972 gcodispo 1.9 }
1973 gcodispo 1.10 return resultobj;
1974     fail:
1975     return NULL;
1976 gcodispo 1.9 }
1977    
1978    
1979 gcodispo 1.10 static PyObject *_wrap_vector_string___getitem__(PyObject *self, PyObject *args) {
1980     PyObject *resultobj;
1981     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1982     int arg2 ;
1983     std::string result;
1984     PyObject * obj0 = 0 ;
1985    
1986     if(!PyArg_ParseTuple(args,(char *)"Oi:vector_string___getitem__",&obj0,&arg2)) goto fail;
1987     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1988     {
1989     try {
1990     result = std_vectorlstd_string_g___getitem_____(arg1,arg2);
1991    
1992     }catch (std::out_of_range& e) {
1993     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
1994     }
1995     }
1996     {
1997     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
1998 gcodispo 1.9 }
1999 gcodispo 1.10 return resultobj;
2000     fail:
2001     return NULL;
2002 gcodispo 1.9 }
2003    
2004    
2005 gcodispo 1.10 static PyObject *_wrap_vector_string___getslice__(PyObject *self, PyObject *args) {
2006     PyObject *resultobj;
2007     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2008     int arg2 ;
2009     int arg3 ;
2010     std::vector<std::string > result;
2011     PyObject * obj0 = 0 ;
2012    
2013     if(!PyArg_ParseTuple(args,(char *)"Oii:vector_string___getslice__",&obj0,&arg2,&arg3)) goto fail;
2014     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2015     {
2016     try {
2017     result = std_vectorlstd_string_g___getslice_____(arg1,arg2,arg3);
2018    
2019     }catch (const std::exception& e) {
2020     SWIG_exception(SWIG_RuntimeError, e.what());
2021     }
2022     }
2023     {
2024     resultobj = PyTuple_New((&result)->size());
2025     for (unsigned int i=0; i<(&result)->size(); i++)
2026     PyTuple_SetItem(resultobj,i,
2027     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2028 gcodispo 1.9 }
2029 gcodispo 1.10 return resultobj;
2030     fail:
2031     return NULL;
2032 gcodispo 1.9 }
2033 gcodispo 1.3
2034    
2035 gcodispo 1.10 static PyObject *_wrap_vector_string___setitem__(PyObject *self, PyObject *args) {
2036     PyObject *resultobj;
2037     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2038     int arg2 ;
2039     std::string arg3 ;
2040     PyObject * obj0 = 0 ;
2041     PyObject * obj2 = 0 ;
2042    
2043     if(!PyArg_ParseTuple(args,(char *)"OiO:vector_string___setitem__",&obj0,&arg2,&obj2)) goto fail;
2044     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2045     {
2046     if (PyString_Check(obj2))
2047     arg3 = std::string(PyString_AsString(obj2));
2048     else
2049     SWIG_exception(SWIG_TypeError, "string expected");
2050 gcodispo 1.9 }
2051 gcodispo 1.10 {
2052     try {
2053     std_vectorlstd_string_g___setitem_____(arg1,arg2,arg3);
2054    
2055     }catch (std::out_of_range& e) {
2056     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
2057 gcodispo 1.9 }
2058 gcodispo 1.4 }
2059 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2060     return resultobj;
2061     fail:
2062     return NULL;
2063     }
2064    
2065    
2066     static PyObject *_wrap_vector_string___setslice__(PyObject *self, PyObject *args) {
2067     PyObject *resultobj;
2068     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2069     int arg2 ;
2070     int arg3 ;
2071     std::vector<std::string > *arg4 = 0 ;
2072     std::vector<std::string > temp4 ;
2073     std::vector<std::string > *v4 ;
2074     PyObject * obj0 = 0 ;
2075     PyObject * obj3 = 0 ;
2076    
2077     if(!PyArg_ParseTuple(args,(char *)"OiiO:vector_string___setslice__",&obj0,&arg2,&arg3,&obj3)) goto fail;
2078     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2079     {
2080     if (PyTuple_Check(obj3) || PyList_Check(obj3)) {
2081     unsigned int size = (PyTuple_Check(obj3) ?
2082     PyTuple_Size(obj3) :
2083     PyList_Size(obj3));
2084     temp4 = std::vector<std::string >(size);
2085     arg4 = &temp4;
2086     for (unsigned int i=0; i<size; i++) {
2087     PyObject* o = PySequence_GetItem(obj3,i);
2088     if (PyString_Check(o)) {
2089     temp4[i] = (std::string)(\
2090     SwigString_AsString(o));
2091     Py_DECREF(o);
2092     }else {
2093     Py_DECREF(o);
2094     PyErr_SetString(PyExc_TypeError,
2095     "vector<""std::string""> expected");
2096     SWIG_fail;
2097     }
2098 gcodispo 1.9 }
2099 gcodispo 1.10 }else if (SWIG_ConvertPtr(obj3,(void **) &v4,
2100     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
2101     arg4 = v4;
2102     }else {
2103     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
2104     SWIG_fail;
2105 gcodispo 1.9 }
2106     }
2107 gcodispo 1.10 {
2108     try {
2109     std_vectorlstd_string_g___setslice_____(arg1,arg2,arg3,(std::vector<std::string > const &)*arg4);
2110    
2111     }catch (const std::exception& e) {
2112     SWIG_exception(SWIG_RuntimeError, e.what());
2113 gcodispo 1.9 }
2114     }
2115 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2116     return resultobj;
2117     fail:
2118     return NULL;
2119     }
2120    
2121    
2122     static PyObject *_wrap_vector_string___delitem__(PyObject *self, PyObject *args) {
2123     PyObject *resultobj;
2124     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2125     int arg2 ;
2126     PyObject * obj0 = 0 ;
2127    
2128     if(!PyArg_ParseTuple(args,(char *)"Oi:vector_string___delitem__",&obj0,&arg2)) goto fail;
2129     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2130     {
2131     try {
2132     std_vectorlstd_string_g___delitem_____(arg1,arg2);
2133    
2134     }catch (std::out_of_range& e) {
2135     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
2136 gcodispo 1.9 }
2137     }
2138 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2139     return resultobj;
2140     fail:
2141     return NULL;
2142     }
2143    
2144    
2145     static PyObject *_wrap_vector_string___delslice__(PyObject *self, PyObject *args) {
2146     PyObject *resultobj;
2147     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2148     int arg2 ;
2149     int arg3 ;
2150     PyObject * obj0 = 0 ;
2151    
2152     if(!PyArg_ParseTuple(args,(char *)"Oii:vector_string___delslice__",&obj0,&arg2,&arg3)) goto fail;
2153     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2154     {
2155     try {
2156     std_vectorlstd_string_g___delslice_____(arg1,arg2,arg3);
2157    
2158     }catch (const std::exception& e) {
2159     SWIG_exception(SWIG_RuntimeError, e.what());
2160 gcodispo 1.9 }
2161     }
2162 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2163     return resultobj;
2164     fail:
2165     return NULL;
2166     }
2167    
2168    
2169     static PyObject *_wrap_delete_vector_string(PyObject *self, PyObject *args) {
2170     PyObject *resultobj;
2171     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2172     PyObject * obj0 = 0 ;
2173    
2174     if(!PyArg_ParseTuple(args,(char *)"O:delete_vector_string",&obj0)) goto fail;
2175     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2176     {
2177     try {
2178     delete arg1;
2179    
2180     }catch (const std::exception& e) {
2181     SWIG_exception(SWIG_RuntimeError, e.what());
2182 gcodispo 1.9 }
2183 gcodispo 1.4 }
2184 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2185     return resultobj;
2186     fail:
2187     return NULL;
2188 gcodispo 1.9 }
2189 gcodispo 1.3
2190    
2191 gcodispo 1.10 static PyObject * vector_string_swigregister(PyObject *self, PyObject *args) {
2192     PyObject *obj;
2193     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2194     SWIG_TypeClientData(SWIGTYPE_p_std__vectorTstd__string_t, obj);
2195     Py_INCREF(obj);
2196     return Py_BuildValue((char *)"");
2197     }
2198     static PyObject *_wrap_BossSession_show(PyObject *self, PyObject *args) {
2199     PyObject *resultobj;
2200     BossSession *arg1 = (BossSession *) 0 ;
2201     std::vector<std::string > *arg2 = 0 ;
2202     PyObject *result;
2203     PyObject * obj0 = 0 ;
2204     PyObject * obj1 = 0 ;
2205    
2206     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_show",&obj0,&obj1)) goto fail;
2207     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2208     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2209     if (arg2 == NULL) {
2210     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2211 gcodispo 1.3 }
2212 gcodispo 1.10 {
2213     try {
2214     result = (PyObject *)BossSession_show(arg1,*arg2);
2215    
2216     }catch (const std::exception& e) {
2217     SWIG_exception(SWIG_RuntimeError, e.what());
2218     }
2219 gcodispo 1.3 }
2220 gcodispo 1.10 resultobj = result;
2221     return resultobj;
2222     fail:
2223     return NULL;
2224 gcodispo 1.9 }
2225 gcodispo 1.3
2226    
2227 gcodispo 1.10 static PyObject *_wrap_BossSession_CHTools(PyObject *self, PyObject *args) {
2228     PyObject *resultobj;
2229     BossSession *arg1 = (BossSession *) 0 ;
2230     PyObject *result;
2231     PyObject * obj0 = 0 ;
2232    
2233     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_CHTools",&obj0)) goto fail;
2234     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2235     {
2236     try {
2237     result = (PyObject *)BossSession_CHTools(arg1);
2238    
2239     }catch (const std::exception& e) {
2240     SWIG_exception(SWIG_RuntimeError, e.what());
2241     }
2242 gcodispo 1.9 }
2243 gcodispo 1.10 resultobj = result;
2244     return resultobj;
2245     fail:
2246     return NULL;
2247 gcodispo 1.9 }
2248 gcodispo 1.3
2249    
2250 gcodispo 1.10 static PyObject *_wrap_BossSession_ProgramTypes(PyObject *self, PyObject *args) {
2251     PyObject *resultobj;
2252     BossSession *arg1 = (BossSession *) 0 ;
2253     PyObject *result;
2254     PyObject * obj0 = 0 ;
2255    
2256     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_ProgramTypes",&obj0)) goto fail;
2257     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2258     {
2259     try {
2260     result = (PyObject *)BossSession_ProgramTypes(arg1);
2261    
2262     }catch (const std::exception& e) {
2263     SWIG_exception(SWIG_RuntimeError, e.what());
2264     }
2265 gcodispo 1.3 }
2266 gcodispo 1.10 resultobj = result;
2267     return resultobj;
2268     fail:
2269     return NULL;
2270 gcodispo 1.9 }
2271 gcodispo 1.3
2272    
2273 gcodispo 1.10 static PyObject *_wrap_BossSession_RTMons(PyObject *self, PyObject *args) {
2274     PyObject *resultobj;
2275     BossSession *arg1 = (BossSession *) 0 ;
2276     PyObject *result;
2277     PyObject * obj0 = 0 ;
2278    
2279     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_RTMons",&obj0)) goto fail;
2280     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2281     {
2282     try {
2283     result = (PyObject *)BossSession_RTMons(arg1);
2284    
2285     }catch (const std::exception& e) {
2286     SWIG_exception(SWIG_RuntimeError, e.what());
2287     }
2288 gcodispo 1.3 }
2289 gcodispo 1.10 resultobj = result;
2290     return resultobj;
2291     fail:
2292     return NULL;
2293 yzhang 1.1 }
2294    
2295    
2296 gcodispo 1.10 static PyObject *_wrap_BossSession_schedulers(PyObject *self, PyObject *args) {
2297     PyObject *resultobj;
2298     BossSession *arg1 = (BossSession *) 0 ;
2299     PyObject *result;
2300     PyObject * obj0 = 0 ;
2301    
2302     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_schedulers",&obj0)) goto fail;
2303     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2304     {
2305     try {
2306     result = (PyObject *)BossSession_schedulers(arg1);
2307    
2308     }catch (const std::exception& e) {
2309     SWIG_exception(SWIG_RuntimeError, e.what());
2310     }
2311 gcodispo 1.3 }
2312 gcodispo 1.10 resultobj = result;
2313     return resultobj;
2314     fail:
2315     return NULL;
2316 yzhang 1.1 }
2317    
2318    
2319 gcodispo 1.10 static PyObject *_wrap_BossSession_schedListMatch(PyObject *self, PyObject *args) {
2320     PyObject *resultobj;
2321     BossSession *arg1 = (BossSession *) 0 ;
2322     std::string *arg2 = 0 ;
2323     std::string *arg3 = 0 ;
2324     std::string const &arg4_defvalue = "" ;
2325     std::string *arg4 = (std::string *) &arg4_defvalue ;
2326     std::string const &arg5_defvalue = "" ;
2327     std::string *arg5 = (std::string *) &arg5_defvalue ;
2328     bool arg6 = (bool) false ;
2329     PyObject *result;
2330     std::string temp2 ;
2331     std::string temp3 ;
2332     std::string temp4 ;
2333     std::string temp5 ;
2334     PyObject * obj0 = 0 ;
2335     PyObject * obj1 = 0 ;
2336     PyObject * obj2 = 0 ;
2337     PyObject * obj3 = 0 ;
2338     PyObject * obj4 = 0 ;
2339     PyObject * obj5 = 0 ;
2340    
2341     if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2342     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2343     {
2344     if (PyString_Check(obj1)) {
2345     temp2 = std::string(PyString_AsString(obj1));
2346     arg2 = &temp2;
2347     }else {
2348     SWIG_exception(SWIG_TypeError, "string expected");
2349     }
2350 gcodispo 1.3 }
2351 gcodispo 1.10 {
2352     if (PyString_Check(obj2)) {
2353     temp3 = std::string(PyString_AsString(obj2));
2354     arg3 = &temp3;
2355     }else {
2356     SWIG_exception(SWIG_TypeError, "string expected");
2357 gcodispo 1.3 }
2358     }
2359 gcodispo 1.10 if (obj3) {
2360 gcodispo 1.9 {
2361 gcodispo 1.10 if (PyString_Check(obj3)) {
2362     temp4 = std::string(PyString_AsString(obj3));
2363     arg4 = &temp4;
2364     }else {
2365     SWIG_exception(SWIG_TypeError, "string expected");
2366     }
2367 gcodispo 1.3 }
2368     }
2369 gcodispo 1.10 if (obj4) {
2370 gcodispo 1.9 {
2371 gcodispo 1.10 if (PyString_Check(obj4)) {
2372     temp5 = std::string(PyString_AsString(obj4));
2373     arg5 = &temp5;
2374     }else {
2375     SWIG_exception(SWIG_TypeError, "string expected");
2376 gcodispo 1.9 }
2377 gcodispo 1.3 }
2378 yzhang 1.1 }
2379 gcodispo 1.10 if (obj5) {
2380     arg6 = PyInt_AsLong(obj5) ? true : false;
2381     if (PyErr_Occurred()) SWIG_fail;
2382 gcodispo 1.3 }
2383 gcodispo 1.10 {
2384     try {
2385     result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6);
2386    
2387     }catch (const std::exception& e) {
2388     SWIG_exception(SWIG_RuntimeError, e.what());
2389     }
2390 gcodispo 1.3 }
2391 gcodispo 1.10 resultobj = result;
2392     return resultobj;
2393     fail:
2394     return NULL;
2395 yzhang 1.1 }
2396    
2397    
2398 gcodispo 1.10 static PyObject *_wrap_BossSession_queryTasks(PyObject *self, PyObject *args) {
2399     PyObject *resultobj;
2400     BossSession *arg1 = (BossSession *) 0 ;
2401     int arg2 = (int) SCHEDULED ;
2402     std::string const &arg3_defvalue = "all" ;
2403     std::string *arg3 = (std::string *) &arg3_defvalue ;
2404     std::string const &arg4_defvalue = "all" ;
2405     std::string *arg4 = (std::string *) &arg4_defvalue ;
2406     std::string const &arg5_defvalue = "" ;
2407     std::string *arg5 = (std::string *) &arg5_defvalue ;
2408     std::string arg6 = (std::string) "" ;
2409     std::string arg7 = (std::string) "" ;
2410     std::string arg8 = (std::string) "" ;
2411     std::string arg9 = (std::string) "" ;
2412     bool arg10 = (bool) false ;
2413     PyObject *result;
2414     std::string temp3 ;
2415     std::string temp4 ;
2416     std::string temp5 ;
2417     PyObject * obj0 = 0 ;
2418     PyObject * obj2 = 0 ;
2419     PyObject * obj3 = 0 ;
2420     PyObject * obj4 = 0 ;
2421     PyObject * obj5 = 0 ;
2422     PyObject * obj6 = 0 ;
2423     PyObject * obj7 = 0 ;
2424     PyObject * obj8 = 0 ;
2425     PyObject * obj9 = 0 ;
2426    
2427     if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_queryTasks",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2428     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2429     if (obj2) {
2430     {
2431     if (PyString_Check(obj2)) {
2432     temp3 = std::string(PyString_AsString(obj2));
2433     arg3 = &temp3;
2434     }else {
2435     SWIG_exception(SWIG_TypeError, "string expected");
2436     }
2437     }
2438 gcodispo 1.3 }
2439 gcodispo 1.10 if (obj3) {
2440     {
2441     if (PyString_Check(obj3)) {
2442     temp4 = std::string(PyString_AsString(obj3));
2443     arg4 = &temp4;
2444     }else {
2445     SWIG_exception(SWIG_TypeError, "string expected");
2446     }
2447     }
2448 gcodispo 1.3 }
2449 gcodispo 1.10 if (obj4) {
2450     {
2451     if (PyString_Check(obj4)) {
2452     temp5 = std::string(PyString_AsString(obj4));
2453     arg5 = &temp5;
2454     }else {
2455     SWIG_exception(SWIG_TypeError, "string expected");
2456     }
2457     }
2458 yzhang 1.1 }
2459 gcodispo 1.10 if (obj5) {
2460     {
2461     if (PyString_Check(obj5))
2462     arg6 = std::string(PyString_AsString(obj5));
2463     else
2464     SWIG_exception(SWIG_TypeError, "string expected");
2465     }
2466 gcodispo 1.3 }
2467 gcodispo 1.10 if (obj6) {
2468     {
2469     if (PyString_Check(obj6))
2470     arg7 = std::string(PyString_AsString(obj6));
2471     else
2472     SWIG_exception(SWIG_TypeError, "string expected");
2473     }
2474 gcodispo 1.3 }
2475 gcodispo 1.10 if (obj7) {
2476     {
2477     if (PyString_Check(obj7))
2478     arg8 = std::string(PyString_AsString(obj7));
2479     else
2480     SWIG_exception(SWIG_TypeError, "string expected");
2481     }
2482 yzhang 1.1 }
2483 gcodispo 1.10 if (obj8) {
2484     {
2485     if (PyString_Check(obj8))
2486     arg9 = std::string(PyString_AsString(obj8));
2487     else
2488     SWIG_exception(SWIG_TypeError, "string expected");
2489     }
2490 gcodispo 1.9 }
2491 gcodispo 1.10 if (obj9) {
2492     arg10 = PyInt_AsLong(obj9) ? true : false;
2493     if (PyErr_Occurred()) SWIG_fail;
2494 yzhang 1.1 }
2495 gcodispo 1.10 {
2496     try {
2497     result = (PyObject *)BossSession_queryTasks(arg1,arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10);
2498    
2499     }catch (const std::exception& e) {
2500     SWIG_exception(SWIG_RuntimeError, e.what());
2501     }
2502 yzhang 1.1 }
2503 gcodispo 1.10 resultobj = result;
2504     return resultobj;
2505     fail:
2506     return NULL;
2507 yzhang 1.1 }
2508    
2509    
2510 gcodispo 1.10 static PyObject *_wrap_new_BossSession(PyObject *self, PyObject *args) {
2511     PyObject *resultobj;
2512     std::string arg1 = (std::string) "" ;
2513     BossSession *result;
2514     PyObject * obj0 = 0 ;
2515    
2516     if(!PyArg_ParseTuple(args,(char *)"|O:new_BossSession",&obj0)) goto fail;
2517     if (obj0) {
2518     {
2519     if (PyString_Check(obj0))
2520     arg1 = std::string(PyString_AsString(obj0));
2521     else
2522     SWIG_exception(SWIG_TypeError, "string expected");
2523     }
2524 yzhang 1.1 }
2525 gcodispo 1.10 {
2526     try {
2527     result = (BossSession *)new BossSession(arg1);
2528    
2529     }catch (const std::exception& e) {
2530     SWIG_exception(SWIG_RuntimeError, e.what());
2531     }
2532 yzhang 1.1 }
2533 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossSession, 1);
2534     return resultobj;
2535     fail:
2536     return NULL;
2537 yzhang 1.1 }
2538    
2539    
2540 gcodispo 1.10 static PyObject *_wrap_delete_BossSession(PyObject *self, PyObject *args) {
2541     PyObject *resultobj;
2542     BossSession *arg1 = (BossSession *) 0 ;
2543     PyObject * obj0 = 0 ;
2544    
2545     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossSession",&obj0)) goto fail;
2546     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2547     {
2548     try {
2549     delete arg1;
2550    
2551     }catch (const std::exception& e) {
2552     SWIG_exception(SWIG_RuntimeError, e.what());
2553     }
2554 gcodispo 1.9 }
2555 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2556     return resultobj;
2557     fail:
2558     return NULL;
2559 gcodispo 1.3 }
2560    
2561    
2562 gcodispo 1.10 static PyObject *_wrap_BossSession_clear(PyObject *self, PyObject *args) {
2563     PyObject *resultobj;
2564     BossSession *arg1 = (BossSession *) 0 ;
2565     PyObject * obj0 = 0 ;
2566    
2567     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clear",&obj0)) goto fail;
2568     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2569     {
2570     try {
2571     (arg1)->clear();
2572    
2573     }catch (const std::exception& e) {
2574     SWIG_exception(SWIG_RuntimeError, e.what());
2575     }
2576 yzhang 1.1 }
2577 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2578     return resultobj;
2579     fail:
2580     return NULL;
2581 yzhang 1.1 }
2582    
2583    
2584 gcodispo 1.10 static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) {
2585     PyObject *resultobj;
2586     BossSession *arg1 = (BossSession *) 0 ;
2587     std::string const &arg2_defvalue = "" ;
2588     std::string *arg2 = (std::string *) &arg2_defvalue ;
2589     BossTask *result;
2590     std::string temp2 ;
2591     PyObject * obj0 = 0 ;
2592     PyObject * obj1 = 0 ;
2593    
2594     if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_makeBossTask",&obj0,&obj1)) goto fail;
2595     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2596     if (obj1) {
2597     {
2598     if (PyString_Check(obj1)) {
2599     temp2 = std::string(PyString_AsString(obj1));
2600     arg2 = &temp2;
2601     }else {
2602     SWIG_exception(SWIG_TypeError, "string expected");
2603     }
2604     }
2605 gcodispo 1.9 }
2606 gcodispo 1.10 {
2607     try {
2608     result = (BossTask *)(arg1)->makeBossTask((std::string const &)*arg2);
2609    
2610     }catch (const std::exception& e) {
2611     SWIG_exception(SWIG_RuntimeError, e.what());
2612     }
2613 yzhang 1.1 }
2614 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0);
2615     return resultobj;
2616     fail:
2617     return NULL;
2618 yzhang 1.1 }
2619    
2620    
2621 gcodispo 1.10 static PyObject *_wrap_BossSession_destroyBossTask(PyObject *self, PyObject *args) {
2622     PyObject *resultobj;
2623     BossSession *arg1 = (BossSession *) 0 ;
2624     BossTask *arg2 = (BossTask *) 0 ;
2625     PyObject * obj0 = 0 ;
2626     PyObject * obj1 = 0 ;
2627    
2628     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_destroyBossTask",&obj0,&obj1)) goto fail;
2629     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2630     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2631     {
2632     try {
2633     (arg1)->destroyBossTask(arg2);
2634    
2635     }catch (const std::exception& e) {
2636     SWIG_exception(SWIG_RuntimeError, e.what());
2637     }
2638 yzhang 1.1 }
2639 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2640     return resultobj;
2641     fail:
2642     return NULL;
2643 yzhang 1.1 }
2644    
2645    
2646 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultCHTool(PyObject *self, PyObject *args) {
2647     PyObject *resultobj;
2648     BossSession *arg1 = (BossSession *) 0 ;
2649     std::string result;
2650     PyObject * obj0 = 0 ;
2651    
2652     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultCHTool",&obj0)) goto fail;
2653     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2654     {
2655     try {
2656     result = (arg1)->defaultCHTool();
2657    
2658     }catch (const std::exception& e) {
2659     SWIG_exception(SWIG_RuntimeError, e.what());
2660     }
2661     }
2662     {
2663     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2664 yzhang 1.1 }
2665 gcodispo 1.10 return resultobj;
2666     fail:
2667     return NULL;
2668 yzhang 1.1 }
2669    
2670    
2671 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultProgramType(PyObject *self, PyObject *args) {
2672     PyObject *resultobj;
2673     BossSession *arg1 = (BossSession *) 0 ;
2674     std::string result;
2675     PyObject * obj0 = 0 ;
2676    
2677     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultProgramType",&obj0)) goto fail;
2678     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2679     {
2680     try {
2681     result = (arg1)->defaultProgramType();
2682    
2683     }catch (const std::exception& e) {
2684     SWIG_exception(SWIG_RuntimeError, e.what());
2685     }
2686 gcodispo 1.9 }
2687 gcodispo 1.10 {
2688     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2689 gcodispo 1.9 }
2690 gcodispo 1.10 return resultobj;
2691     fail:
2692     return NULL;
2693 yzhang 1.1 }
2694    
2695    
2696 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultRTMon(PyObject *self, PyObject *args) {
2697     PyObject *resultobj;
2698     BossSession *arg1 = (BossSession *) 0 ;
2699     std::string result;
2700     PyObject * obj0 = 0 ;
2701    
2702     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultRTMon",&obj0)) goto fail;
2703     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2704     {
2705     try {
2706     result = (arg1)->defaultRTMon();
2707    
2708     }catch (const std::exception& e) {
2709     SWIG_exception(SWIG_RuntimeError, e.what());
2710     }
2711 gcodispo 1.9 }
2712 gcodispo 1.10 {
2713     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2714 gcodispo 1.4 }
2715 gcodispo 1.10 return resultobj;
2716     fail:
2717     return NULL;
2718 gcodispo 1.4 }
2719    
2720    
2721 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultScheduler(PyObject *self, PyObject *args) {
2722     PyObject *resultobj;
2723     BossSession *arg1 = (BossSession *) 0 ;
2724     std::string result;
2725     PyObject * obj0 = 0 ;
2726    
2727     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultScheduler",&obj0)) goto fail;
2728     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2729     {
2730     try {
2731     result = (arg1)->defaultScheduler();
2732    
2733     }catch (const std::exception& e) {
2734     SWIG_exception(SWIG_RuntimeError, e.what());
2735     }
2736 gcodispo 1.9 }
2737 gcodispo 1.10 {
2738     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2739 gcodispo 1.9 }
2740 gcodispo 1.10 return resultobj;
2741     fail:
2742     return NULL;
2743 gcodispo 1.4 }
2744    
2745    
2746 gcodispo 1.10 static PyObject *_wrap_BossSession_version(PyObject *self, PyObject *args) {
2747     PyObject *resultobj;
2748     BossSession *arg1 = (BossSession *) 0 ;
2749     std::string result;
2750     PyObject * obj0 = 0 ;
2751    
2752     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_version",&obj0)) goto fail;
2753     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2754     {
2755     try {
2756     result = (arg1)->version();
2757    
2758     }catch (const std::exception& e) {
2759     SWIG_exception(SWIG_RuntimeError, e.what());
2760     }
2761 gcodispo 1.9 }
2762 gcodispo 1.10 {
2763     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2764 gcodispo 1.4 }
2765 gcodispo 1.10 return resultobj;
2766     fail:
2767     return NULL;
2768 gcodispo 1.4 }
2769    
2770    
2771 gcodispo 1.10 static PyObject *_wrap_BossSession_clientID(PyObject *self, PyObject *args) {
2772     PyObject *resultobj;
2773     BossSession *arg1 = (BossSession *) 0 ;
2774     std::string result;
2775     PyObject * obj0 = 0 ;
2776    
2777     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clientID",&obj0)) goto fail;
2778     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2779     {
2780     try {
2781     result = (arg1)->clientID();
2782    
2783     }catch (const std::exception& e) {
2784     SWIG_exception(SWIG_RuntimeError, e.what());
2785     }
2786 gcodispo 1.9 }
2787 gcodispo 1.10 {
2788     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2789 gcodispo 1.9 }
2790 gcodispo 1.10 return resultobj;
2791     fail:
2792     return NULL;
2793 gcodispo 1.4 }
2794    
2795    
2796 gcodispo 1.10 static PyObject *_wrap_BossSession_showConfigs(PyObject *self, PyObject *args) {
2797     PyObject *resultobj;
2798     BossSession *arg1 = (BossSession *) 0 ;
2799     bool arg2 = (bool) false ;
2800     int result;
2801     PyObject * obj0 = 0 ;
2802     PyObject * obj1 = 0 ;
2803    
2804     if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_showConfigs",&obj0,&obj1)) goto fail;
2805     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2806     if (obj1) {
2807     arg2 = PyInt_AsLong(obj1) ? true : false;
2808     if (PyErr_Occurred()) SWIG_fail;
2809 gcodispo 1.9 }
2810 gcodispo 1.10 {
2811     try {
2812     result = (int)(arg1)->showConfigs(arg2);
2813    
2814     }catch (const std::exception& e) {
2815     SWIG_exception(SWIG_RuntimeError, e.what());
2816     }
2817 gcodispo 1.9 }
2818 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
2819     return resultobj;
2820     fail:
2821     return NULL;
2822 gcodispo 1.4 }
2823    
2824    
2825 gcodispo 1.10 static PyObject *_wrap_BossSession_RTupdate(PyObject *self, PyObject *args) {
2826     PyObject *resultobj;
2827     BossSession *arg1 = (BossSession *) 0 ;
2828     std::string arg2 = (std::string) "all" ;
2829     std::string arg3 = (std::string) "all" ;
2830     std::string arg4 = (std::string) "" ;
2831     int result;
2832     PyObject * obj0 = 0 ;
2833     PyObject * obj1 = 0 ;
2834     PyObject * obj2 = 0 ;
2835     PyObject * obj3 = 0 ;
2836    
2837     if(!PyArg_ParseTuple(args,(char *)"O|OOO:BossSession_RTupdate",&obj0,&obj1,&obj2,&obj3)) goto fail;
2838     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2839     if (obj1) {
2840     {
2841     if (PyString_Check(obj1))
2842     arg2 = std::string(PyString_AsString(obj1));
2843     else
2844     SWIG_exception(SWIG_TypeError, "string expected");
2845     }
2846 gcodispo 1.9 }
2847 gcodispo 1.10 if (obj2) {
2848     {
2849     if (PyString_Check(obj2))
2850     arg3 = std::string(PyString_AsString(obj2));
2851     else
2852     SWIG_exception(SWIG_TypeError, "string expected");
2853     }
2854 gcodispo 1.9 }
2855 gcodispo 1.10 if (obj3) {
2856     {
2857     if (PyString_Check(obj3))
2858     arg4 = std::string(PyString_AsString(obj3));
2859     else
2860     SWIG_exception(SWIG_TypeError, "string expected");
2861     }
2862 gcodispo 1.9 }
2863 gcodispo 1.10 {
2864     try {
2865     result = (int)(arg1)->RTupdate(arg2,arg3,arg4);
2866    
2867     }catch (const std::exception& e) {
2868     SWIG_exception(SWIG_RuntimeError, e.what());
2869     }
2870 gcodispo 1.9 }
2871 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
2872     return resultobj;
2873     fail:
2874     return NULL;
2875 gcodispo 1.4 }
2876    
2877    
2878 gcodispo 1.10 static PyObject *_wrap_BossSession_listMatch(PyObject *self, PyObject *args) {
2879     PyObject *resultobj;
2880     BossSession *arg1 = (BossSession *) 0 ;
2881     std::string *arg2 = 0 ;
2882     std::string *arg3 = 0 ;
2883     bool arg4 = (bool) false ;
2884     std::string const &arg5_defvalue = "" ;
2885     std::string *arg5 = (std::string *) &arg5_defvalue ;
2886     std::string const &arg6_defvalue = "" ;
2887     std::string *arg6 = (std::string *) &arg6_defvalue ;
2888     std::vector<std::string > result;
2889     std::string temp2 ;
2890     std::string temp3 ;
2891     std::string temp5 ;
2892     std::string temp6 ;
2893     PyObject * obj0 = 0 ;
2894     PyObject * obj1 = 0 ;
2895     PyObject * obj2 = 0 ;
2896     PyObject * obj3 = 0 ;
2897     PyObject * obj4 = 0 ;
2898     PyObject * obj5 = 0 ;
2899    
2900     if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
2901     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2902     {
2903     if (PyString_Check(obj1)) {
2904     temp2 = std::string(PyString_AsString(obj1));
2905     arg2 = &temp2;
2906     }else {
2907     SWIG_exception(SWIG_TypeError, "string expected");
2908     }
2909     }
2910     {
2911     if (PyString_Check(obj2)) {
2912     temp3 = std::string(PyString_AsString(obj2));
2913     arg3 = &temp3;
2914     }else {
2915     SWIG_exception(SWIG_TypeError, "string expected");
2916     }
2917     }
2918     if (obj3) {
2919     arg4 = PyInt_AsLong(obj3) ? true : false;
2920     if (PyErr_Occurred()) SWIG_fail;
2921 gcodispo 1.9 }
2922 gcodispo 1.10 if (obj4) {
2923     {
2924     if (PyString_Check(obj4)) {
2925     temp5 = std::string(PyString_AsString(obj4));
2926     arg5 = &temp5;
2927     }else {
2928     SWIG_exception(SWIG_TypeError, "string expected");
2929     }
2930     }
2931 gcodispo 1.9 }
2932 gcodispo 1.10 if (obj5) {
2933     {
2934     if (PyString_Check(obj5)) {
2935     temp6 = std::string(PyString_AsString(obj5));
2936     arg6 = &temp6;
2937     }else {
2938     SWIG_exception(SWIG_TypeError, "string expected");
2939     }
2940     }
2941 gcodispo 1.9 }
2942 gcodispo 1.10 {
2943     try {
2944     result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6);
2945    
2946     }catch (const std::exception& e) {
2947     SWIG_exception(SWIG_RuntimeError, e.what());
2948     }
2949 gcodispo 1.4 }
2950 gcodispo 1.10 {
2951     resultobj = PyTuple_New((&result)->size());
2952     for (unsigned int i=0; i<(&result)->size(); i++)
2953     PyTuple_SetItem(resultobj,i,
2954     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2955 gcodispo 1.4 }
2956 gcodispo 1.10 return resultobj;
2957     fail:
2958     return NULL;
2959 gcodispo 1.4 }
2960    
2961    
2962 gcodispo 1.10 static PyObject *_wrap_BossSession_schedulerQuery(PyObject *self, PyObject *args) {
2963     PyObject *resultobj;
2964     BossSession *arg1 = (BossSession *) 0 ;
2965     int arg2 = (int) SCHEDULED ;
2966     std::string const &arg3_defvalue = "all" ;
2967     std::string *arg3 = (std::string *) &arg3_defvalue ;
2968     std::string const &arg4_defvalue = "all" ;
2969     std::string *arg4 = (std::string *) &arg4_defvalue ;
2970     std::string const &arg5_defvalue = "" ;
2971     std::string *arg5 = (std::string *) &arg5_defvalue ;
2972     std::string arg6 = (std::string) "" ;
2973     std::string arg7 = (std::string) "" ;
2974     std::string arg8 = (std::string) "" ;
2975     std::string arg9 = (std::string) "" ;
2976     std::string temp3 ;
2977     std::string temp4 ;
2978     std::string temp5 ;
2979     PyObject * obj0 = 0 ;
2980     PyObject * obj2 = 0 ;
2981     PyObject * obj3 = 0 ;
2982     PyObject * obj4 = 0 ;
2983     PyObject * obj5 = 0 ;
2984     PyObject * obj6 = 0 ;
2985     PyObject * obj7 = 0 ;
2986     PyObject * obj8 = 0 ;
2987    
2988     if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2989     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2990     if (obj2) {
2991     {
2992     if (PyString_Check(obj2)) {
2993     temp3 = std::string(PyString_AsString(obj2));
2994     arg3 = &temp3;
2995     }else {
2996     SWIG_exception(SWIG_TypeError, "string expected");
2997     }
2998     }
2999     }
3000     if (obj3) {
3001     {
3002     if (PyString_Check(obj3)) {
3003     temp4 = std::string(PyString_AsString(obj3));
3004     arg4 = &temp4;
3005     }else {
3006     SWIG_exception(SWIG_TypeError, "string expected");
3007     }
3008     }
3009 gcodispo 1.9 }
3010 gcodispo 1.10 if (obj4) {
3011     {
3012     if (PyString_Check(obj4)) {
3013     temp5 = std::string(PyString_AsString(obj4));
3014     arg5 = &temp5;
3015     }else {
3016     SWIG_exception(SWIG_TypeError, "string expected");
3017     }
3018     }
3019 gcodispo 1.9 }
3020 gcodispo 1.10 if (obj5) {
3021     {
3022     if (PyString_Check(obj5))
3023     arg6 = std::string(PyString_AsString(obj5));
3024     else
3025     SWIG_exception(SWIG_TypeError, "string expected");
3026     }
3027 gcodispo 1.9 }
3028 gcodispo 1.10 if (obj6) {
3029     {
3030     if (PyString_Check(obj6))
3031     arg7 = std::string(PyString_AsString(obj6));
3032     else
3033     SWIG_exception(SWIG_TypeError, "string expected");
3034     }
3035 gcodispo 1.4 }
3036 gcodispo 1.10 if (obj7) {
3037     {
3038     if (PyString_Check(obj7))
3039     arg8 = std::string(PyString_AsString(obj7));
3040     else
3041     SWIG_exception(SWIG_TypeError, "string expected");
3042     }
3043 gcodispo 1.9 }
3044 gcodispo 1.10 if (obj8) {
3045     {
3046     if (PyString_Check(obj8))
3047     arg9 = std::string(PyString_AsString(obj8));
3048     else
3049     SWIG_exception(SWIG_TypeError, "string expected");
3050     }
3051 gcodispo 1.4 }
3052 gcodispo 1.10 {
3053     try {
3054     (arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9);
3055    
3056     }catch (const std::exception& e) {
3057     SWIG_exception(SWIG_RuntimeError, e.what());
3058     }
3059 gcodispo 1.4 }
3060 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
3061     return resultobj;
3062     fail:
3063     return NULL;
3064 gcodispo 1.4 }
3065    
3066    
3067 gcodispo 1.10 static PyObject *_wrap_BossSession_selectTasks(PyObject *self, PyObject *args) {
3068     PyObject *resultobj;
3069     BossSession *arg1 = (BossSession *) 0 ;
3070     std::string const &arg2_defvalue = "all" ;
3071     std::string *arg2 = (std::string *) &arg2_defvalue ;
3072     std::string const &arg3_defvalue = "" ;
3073     std::string *arg3 = (std::string *) &arg3_defvalue ;
3074     std::string const &arg4_defvalue = "" ;
3075     std::string *arg4 = (std::string *) &arg4_defvalue ;
3076     std::string const &arg5_defvalue = "" ;
3077     std::string *arg5 = (std::string *) &arg5_defvalue ;
3078     std::vector<std::string > result;
3079     std::string temp2 ;
3080     std::string temp3 ;
3081     std::string temp4 ;
3082     std::string temp5 ;
3083     PyObject * obj0 = 0 ;
3084     PyObject * obj1 = 0 ;
3085     PyObject * obj2 = 0 ;
3086     PyObject * obj3 = 0 ;
3087     PyObject * obj4 = 0 ;
3088    
3089     if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossSession_selectTasks",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3090     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3091     if (obj1) {
3092     {
3093     if (PyString_Check(obj1)) {
3094     temp2 = std::string(PyString_AsString(obj1));
3095     arg2 = &temp2;
3096     }else {
3097     SWIG_exception(SWIG_TypeError, "string expected");
3098     }
3099     }
3100 gcodispo 1.9 }
3101 gcodispo 1.10 if (obj2) {
3102     {
3103     if (PyString_Check(obj2)) {
3104     temp3 = std::string(PyString_AsString(obj2));
3105     arg3 = &temp3;
3106     }else {
3107     SWIG_exception(SWIG_TypeError, "string expected");
3108     }
3109 gcodispo 1.8 }
3110     }
3111 gcodispo 1.10 if (obj3) {
3112     {
3113     if (PyString_Check(obj3)) {
3114     temp4 = std::string(PyString_AsString(obj3));
3115     arg4 = &temp4;
3116     }else {
3117     SWIG_exception(SWIG_TypeError, "string expected");
3118     }
3119 gcodispo 1.8 }
3120     }
3121 gcodispo 1.10 if (obj4) {
3122     {
3123     if (PyString_Check(obj4)) {
3124     temp5 = std::string(PyString_AsString(obj4));
3125     arg5 = &temp5;
3126     }else {
3127     SWIG_exception(SWIG_TypeError, "string expected");
3128 gcodispo 1.8 }
3129     }
3130     }
3131 gcodispo 1.10 {
3132     try {
3133     result = (arg1)->selectTasks((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
3134    
3135     }catch (const std::exception& e) {
3136     SWIG_exception(SWIG_RuntimeError, e.what());
3137 gcodispo 1.8 }
3138     }
3139 gcodispo 1.10 {
3140     resultobj = PyTuple_New((&result)->size());
3141     for (unsigned int i=0; i<(&result)->size(); i++)
3142     PyTuple_SetItem(resultobj,i,
3143     SwigString_FromString(((std::vector<std::string > &)result)[i]));
3144     }
3145     return resultobj;
3146     fail:
3147     return NULL;
3148 gcodispo 1.8 }
3149    
3150    
3151 gcodispo 1.10 static PyObject *_wrap_BossSession_query(PyObject *self, PyObject *args) {
3152     PyObject *resultobj;
3153     BossSession *arg1 = (BossSession *) 0 ;
3154     int arg2 = (int) SCHEDULED ;
3155     std::string const &arg3_defvalue = "all" ;
3156     std::string *arg3 = (std::string *) &arg3_defvalue ;
3157     std::string const &arg4_defvalue = "all" ;
3158     std::string *arg4 = (std::string *) &arg4_defvalue ;
3159     std::string const &arg5_defvalue = "" ;
3160     std::string *arg5 = (std::string *) &arg5_defvalue ;
3161     std::string arg6 = (std::string) "" ;
3162     std::string arg7 = (std::string) "" ;
3163     std::string arg8 = (std::string) "" ;
3164     std::string arg9 = (std::string) "" ;
3165     bool arg10 = (bool) false ;
3166     SwigValueWrapper< std::vector<BossTask * > > result;
3167     std::string temp3 ;
3168     std::string temp4 ;
3169     std::string temp5 ;
3170     PyObject * obj0 = 0 ;
3171     PyObject * obj2 = 0 ;
3172     PyObject * obj3 = 0 ;
3173     PyObject * obj4 = 0 ;
3174     PyObject * obj5 = 0 ;
3175     PyObject * obj6 = 0 ;
3176     PyObject * obj7 = 0 ;
3177     PyObject * obj8 = 0 ;
3178     PyObject * obj9 = 0 ;
3179    
3180     if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3181     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3182     if (obj2) {
3183     {
3184     if (PyString_Check(obj2)) {
3185     temp3 = std::string(PyString_AsString(obj2));
3186     arg3 = &temp3;
3187     }else {
3188     SWIG_exception(SWIG_TypeError, "string expected");
3189     }
3190     }
3191     }
3192     if (obj3) {
3193     {
3194     if (PyString_Check(obj3)) {
3195     temp4 = std::string(PyString_AsString(obj3));
3196     arg4 = &temp4;
3197     }else {
3198     SWIG_exception(SWIG_TypeError, "string expected");
3199     }
3200     }
3201     }
3202     if (obj4) {
3203     {
3204     if (PyString_Check(obj4)) {
3205     temp5 = std::string(PyString_AsString(obj4));
3206     arg5 = &temp5;
3207     }else {
3208     SWIG_exception(SWIG_TypeError, "string expected");
3209     }
3210     }
3211 gcodispo 1.3 }
3212 gcodispo 1.10 if (obj5) {
3213     {
3214     if (PyString_Check(obj5))
3215     arg6 = std::string(PyString_AsString(obj5));
3216     else
3217     SWIG_exception(SWIG_TypeError, "string expected");
3218     }
3219 gcodispo 1.3 }
3220 gcodispo 1.10 if (obj6) {
3221     {
3222     if (PyString_Check(obj6))
3223     arg7 = std::string(PyString_AsString(obj6));
3224     else
3225     SWIG_exception(SWIG_TypeError, "string expected");
3226     }
3227 gcodispo 1.3 }
3228 gcodispo 1.10 if (obj7) {
3229     {
3230     if (PyString_Check(obj7))
3231     arg8 = std::string(PyString_AsString(obj7));
3232     else
3233     SWIG_exception(SWIG_TypeError, "string expected");
3234     }
3235 gcodispo 1.3 }
3236 gcodispo 1.10 if (obj8) {
3237     {
3238     if (PyString_Check(obj8))
3239     arg9 = std::string(PyString_AsString(obj8));
3240     else
3241     SWIG_exception(SWIG_TypeError, "string expected");
3242     }
3243 gcodispo 1.3 }
3244 gcodispo 1.10 if (obj9) {
3245     arg10 = PyInt_AsLong(obj9) ? true : false;
3246     if (PyErr_Occurred()) SWIG_fail;
3247 gcodispo 1.3 }
3248 gcodispo 1.10 {
3249     try {
3250     result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10);
3251    
3252     }catch (const std::exception& e) {
3253     SWIG_exception(SWIG_RuntimeError, e.what());
3254     }
3255 yzhang 1.1 }
3256 gcodispo 1.10 {
3257     std::vector<BossTask * > * resultptr;
3258     resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result);
3259     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1);
3260 gcodispo 1.3 }
3261 gcodispo 1.10 return resultobj;
3262     fail:
3263     return NULL;
3264 yzhang 1.1 }
3265    
3266    
3267 gcodispo 1.10 static PyObject * BossSession_swigregister(PyObject *self, PyObject *args) {
3268     PyObject *obj;
3269     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3270     SWIG_TypeClientData(SWIGTYPE_p_BossSession, obj);
3271     Py_INCREF(obj);
3272     return Py_BuildValue((char *)"");
3273     }
3274     static PyObject *_wrap_BossTaskException_key_set(PyObject *self, PyObject *args) {
3275     PyObject *resultobj;
3276     BossTaskException *arg1 = (BossTaskException *) 0 ;
3277     char *arg2 ;
3278     PyObject * obj0 = 0 ;
3279    
3280     if(!PyArg_ParseTuple(args,(char *)"Os:BossTaskException_key_set",&obj0,&arg2)) goto fail;
3281     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3282     {
3283     if (arg2) {
3284     arg1->key = (char const *) (new char[strlen(arg2)+1]);
3285     strcpy((char *) arg1->key,arg2);
3286     }else {
3287     arg1->key = 0;
3288     }
3289 yzhang 1.2 }
3290 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
3291     return resultobj;
3292     fail:
3293     return NULL;
3294     }
3295    
3296    
3297     static PyObject *_wrap_BossTaskException_key_get(PyObject *self, PyObject *args) {
3298     PyObject *resultobj;
3299     BossTaskException *arg1 = (BossTaskException *) 0 ;
3300     char *result;
3301     PyObject * obj0 = 0 ;
3302    
3303     if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_key_get",&obj0)) goto fail;
3304     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3305     result = (char *) ((arg1)->key);
3306    
3307     resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3308     return resultobj;
3309     fail:
3310     return NULL;
3311     }
3312    
3313    
3314     static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) {
3315     PyObject *resultobj;
3316     char *arg1 ;
3317     BossTaskException *result;
3318    
3319     if(!PyArg_ParseTuple(args,(char *)"s:new_BossTaskException",&arg1)) goto fail;
3320     {
3321     try {
3322     result = (BossTaskException *)new BossTaskException((char const *)arg1);
3323    
3324     }catch (const std::exception& e) {
3325     SWIG_exception(SWIG_RuntimeError, e.what());
3326     }
3327 yzhang 1.2 }
3328 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTaskException, 1);
3329     return resultobj;
3330     fail:
3331     return NULL;
3332     }
3333    
3334    
3335     static PyObject *_wrap_BossTaskException_what(PyObject *self, PyObject *args) {
3336     PyObject *resultobj;
3337     BossTaskException *arg1 = (BossTaskException *) 0 ;
3338     char *result;
3339     PyObject * obj0 = 0 ;
3340    
3341     if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_what",&obj0)) goto fail;
3342     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3343     {
3344     try {
3345     result = (char *)((BossTaskException const *)arg1)->what();
3346    
3347     }catch (const std::exception& e) {
3348     SWIG_exception(SWIG_RuntimeError, e.what());
3349     }
3350 gcodispo 1.3 }
3351 gcodispo 1.10 resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3352     return resultobj;
3353     fail:
3354     return NULL;
3355     }
3356    
3357    
3358     static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) {
3359     PyObject *resultobj;
3360     BossTaskException *arg1 = (BossTaskException *) 0 ;
3361     PyObject * obj0 = 0 ;
3362    
3363     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTaskException",&obj0)) goto fail;
3364     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3365     {
3366     try {
3367     delete arg1;
3368    
3369     }catch (const std::exception& e) {
3370     SWIG_exception(SWIG_RuntimeError, e.what());
3371     }
3372 gcodispo 1.6 }
3373 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
3374     return resultobj;
3375     fail:
3376     return NULL;
3377     }
3378    
3379    
3380     static PyObject * BossTaskException_swigregister(PyObject *self, PyObject *args) {
3381     PyObject *obj;
3382     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3383     SWIG_TypeClientData(SWIGTYPE_p_BossTaskException, obj);
3384     Py_INCREF(obj);
3385     return Py_BuildValue((char *)"");
3386     }
3387     static PyObject *_wrap_BossTask_appendToPyDict(PyObject *self, PyObject *args) {
3388     PyObject *resultobj;
3389     BossTask *arg1 = (BossTask *) 0 ;
3390     PyObject *arg2 = (PyObject *) 0 ;
3391     BossAttributeContainer *arg3 = 0 ;
3392     PyObject *result;
3393     PyObject * obj0 = 0 ;
3394     PyObject * obj1 = 0 ;
3395     PyObject * obj2 = 0 ;
3396    
3397     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_appendToPyDict",&obj0,&obj1,&obj2)) goto fail;
3398     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3399     arg2 = obj1;
3400     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_BossAttributeContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3401     if (arg3 == NULL) {
3402     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3403 gcodispo 1.3 }
3404 gcodispo 1.10 {
3405     try {
3406     result = (PyObject *)BossTask_appendToPyDict((BossTask const *)arg1,arg2,(BossAttributeContainer const &)*arg3);
3407    
3408     }catch (const std::exception& e) {
3409     SWIG_exception(SWIG_RuntimeError, e.what());
3410     }
3411 gcodispo 1.3 }
3412 gcodispo 1.10 resultobj = result;
3413     return resultobj;
3414     fail:
3415     return NULL;
3416     }
3417    
3418    
3419     static PyObject *_wrap_BossTask_jobDict(PyObject *self, PyObject *args) {
3420     PyObject *resultobj;
3421     BossTask *arg1 = (BossTask *) 0 ;
3422     std::vector<BossJob * >::const_iterator *arg2 = 0 ;
3423     PyObject *result;
3424     PyObject * obj0 = 0 ;
3425     PyObject * obj1 = 0 ;
3426    
3427     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobDict",&obj0,&obj1)) goto fail;
3428     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3429     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3430     if (arg2 == NULL) {
3431     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3432 gcodispo 1.3 }
3433 gcodispo 1.10 {
3434     try {
3435     result = (PyObject *)BossTask_jobDict((BossTask const *)arg1,*arg2);
3436    
3437     }catch (const std::exception& e) {
3438     SWIG_exception(SWIG_RuntimeError, e.what());
3439     }
3440 gcodispo 1.3 }
3441 gcodispo 1.10 resultobj = result;
3442     return resultobj;
3443     fail:
3444     return NULL;
3445 gcodispo 1.3 }
3446    
3447    
3448 gcodispo 1.10 static PyObject *_wrap_BossTask_jobsDict(PyObject *self, PyObject *args) {
3449     PyObject *resultobj;
3450     BossTask *arg1 = (BossTask *) 0 ;
3451     PyObject *result;
3452     PyObject * obj0 = 0 ;
3453    
3454     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsDict",&obj0)) goto fail;
3455     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3456     {
3457     try {
3458     result = (PyObject *)BossTask_jobsDict((BossTask const *)arg1);
3459    
3460     }catch (const std::exception& e) {
3461     SWIG_exception(SWIG_RuntimeError, e.what());
3462     }
3463 gcodispo 1.3 }
3464 gcodispo 1.10 resultobj = result;
3465     return resultobj;
3466     fail:
3467     return NULL;
3468     }
3469    
3470    
3471     static PyObject *_wrap_BossTask_progDict(PyObject *self, PyObject *args) {
3472     PyObject *resultobj;
3473     BossTask *arg1 = (BossTask *) 0 ;
3474     std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *arg2 = 0 ;
3475     PyObject *result;
3476     PyObject * obj0 = 0 ;
3477     PyObject * obj1 = 0 ;
3478    
3479     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_progDict",&obj0,&obj1)) goto fail;
3480     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3481     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3482     if (arg2 == NULL) {
3483     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3484 gcodispo 1.3 }
3485 gcodispo 1.10 {
3486     try {
3487     result = (PyObject *)BossTask_progDict((BossTask const *)arg1,*arg2);
3488    
3489     }catch (const std::exception& e) {
3490     SWIG_exception(SWIG_RuntimeError, e.what());
3491     }
3492 gcodispo 1.3 }
3493 gcodispo 1.10 resultobj = result;
3494     return resultobj;
3495     fail:
3496     return NULL;
3497     }
3498    
3499    
3500     static PyObject *_wrap_BossTask_jobPrograms(PyObject *self, PyObject *args) {
3501     PyObject *resultobj;
3502     BossTask *arg1 = (BossTask *) 0 ;
3503     std::string *arg2 = 0 ;
3504     PyObject *result;
3505     std::string temp2 ;
3506     PyObject * obj0 = 0 ;
3507     PyObject * obj1 = 0 ;
3508    
3509     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobPrograms",&obj0,&obj1)) goto fail;
3510     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3511     {
3512     if (PyString_Check(obj1)) {
3513     temp2 = std::string(PyString_AsString(obj1));
3514     arg2 = &temp2;
3515     }else {
3516     SWIG_exception(SWIG_TypeError, "string expected");
3517     }
3518 gcodispo 1.3 }
3519 gcodispo 1.10 {
3520     try {
3521     result = (PyObject *)BossTask_jobPrograms((BossTask const *)arg1,(std::string const &)*arg2);
3522    
3523     }catch (const std::exception& e) {
3524     SWIG_exception(SWIG_RuntimeError, e.what());
3525     }
3526 gcodispo 1.3 }
3527 gcodispo 1.10 resultobj = result;
3528     return resultobj;
3529     fail:
3530     return NULL;
3531 gcodispo 1.3 }
3532    
3533    
3534 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_0(PyObject *self, PyObject *args) {
3535     PyObject *resultobj;
3536     BossDatabase *arg1 = (BossDatabase *) 0 ;
3537     BossTask *result;
3538     PyObject * obj0 = 0 ;
3539    
3540     if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail;
3541     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3542     {
3543     try {
3544     result = (BossTask *)new BossTask(arg1);
3545    
3546     }catch (const std::exception& e) {
3547     SWIG_exception(SWIG_RuntimeError, e.what());
3548     }
3549 gcodispo 1.3 }
3550 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
3551     return resultobj;
3552     fail:
3553     return NULL;
3554 gcodispo 1.3 }
3555    
3556    
3557 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_1(PyObject *self, PyObject *args) {
3558     PyObject *resultobj;
3559     BossDatabase *arg1 = (BossDatabase *) 0 ;
3560     std::string *arg2 = 0 ;
3561     BossTask *result;
3562     std::string temp2 ;
3563     PyObject * obj0 = 0 ;
3564     PyObject * obj1 = 0 ;
3565    
3566     if(!PyArg_ParseTuple(args,(char *)"OO:new_BossTask",&obj0,&obj1)) goto fail;
3567     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3568     {
3569     if (PyString_Check(obj1)) {
3570     temp2 = std::string(PyString_AsString(obj1));
3571     arg2 = &temp2;
3572     }else {
3573     SWIG_exception(SWIG_TypeError, "string expected");
3574     }
3575 gcodispo 1.9 }
3576 gcodispo 1.10 {
3577     try {
3578     result = (BossTask *)new BossTask(arg1,(std::string const &)*arg2);
3579    
3580     }catch (const std::exception& e) {
3581     SWIG_exception(SWIG_RuntimeError, e.what());
3582     }
3583 gcodispo 1.9 }
3584 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
3585     return resultobj;
3586     fail:
3587     return NULL;
3588 gcodispo 1.3 }
3589    
3590    
3591 gcodispo 1.10 static PyObject *_wrap_delete_BossTask(PyObject *self, PyObject *args) {
3592     PyObject *resultobj;
3593     BossTask *arg1 = (BossTask *) 0 ;
3594     PyObject * obj0 = 0 ;
3595    
3596     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTask",&obj0)) goto fail;
3597     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3598     {
3599     try {
3600     delete arg1;
3601    
3602     }catch (const std::exception& e) {
3603     SWIG_exception(SWIG_RuntimeError, e.what());
3604     }
3605 gcodispo 1.3 }
3606 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
3607     return resultobj;
3608     fail:
3609     return NULL;
3610 gcodispo 1.3 }
3611    
3612    
3613 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_2(PyObject *self, PyObject *args) {
3614     PyObject *resultobj;
3615     BossTask *arg1 = 0 ;
3616     BossTask *result;
3617     PyObject * obj0 = 0 ;
3618    
3619     if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail;
3620     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3621     if (arg1 == NULL) {
3622     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3623 gcodispo 1.3 }
3624 gcodispo 1.10 {
3625     try {
3626     result = (BossTask *)new BossTask((BossTask const &)*arg1);
3627    
3628     }catch (const std::exception& e) {
3629     SWIG_exception(SWIG_RuntimeError, e.what());
3630     }
3631 gcodispo 1.3 }
3632 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
3633     return resultobj;
3634     fail:
3635     return NULL;
3636 gcodispo 1.3 }
3637    
3638    
3639 gcodispo 1.10 static PyObject *_wrap_new_BossTask(PyObject *self, PyObject *args) {
3640     int argc;
3641     PyObject *argv[3];
3642     int ii;
3643    
3644     argc = PyObject_Length(args);
3645     for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3646     argv[ii] = PyTuple_GetItem(args,ii);
3647 gcodispo 1.3 }
3648 gcodispo 1.10 if (argc == 1) {
3649     int _v;
3650     {
3651     void *ptr;
3652     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) {
3653     _v = 0;
3654     PyErr_Clear();
3655     }else {
3656     _v = 1;
3657     }
3658 gcodispo 1.3 }
3659 gcodispo 1.9 if (_v) {
3660 gcodispo 1.10 return _wrap_new_BossTask__SWIG_0(self,args);
3661 gcodispo 1.3 }
3662     }
3663 gcodispo 1.10 if (argc == 1) {
3664     int _v;
3665     {
3666     void *ptr;
3667     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
3668     _v = 0;
3669     PyErr_Clear();
3670     }else {
3671     _v = 1;
3672 gcodispo 1.3 }
3673     }
3674 gcodispo 1.9 if (_v) {
3675 gcodispo 1.10 return _wrap_new_BossTask__SWIG_2(self,args);
3676 gcodispo 1.3 }
3677     }
3678 gcodispo 1.10 if (argc == 2) {
3679     int _v;
3680     {
3681     void *ptr;
3682     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) {
3683     _v = 0;
3684     PyErr_Clear();
3685     }else {
3686     _v = 1;
3687 gcodispo 1.3 }
3688     }
3689 gcodispo 1.9 if (_v) {
3690 gcodispo 1.10 {
3691     _v = PyString_Check(argv[1]) ? 1 : 0;
3692     }
3693 gcodispo 1.9 if (_v) {
3694 gcodispo 1.10 return _wrap_new_BossTask__SWIG_1(self,args);
3695 gcodispo 1.3 }
3696     }
3697     }
3698 gcodispo 1.10
3699     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BossTask'");
3700     return NULL;
3701 gcodispo 1.3 }
3702    
3703    
3704 gcodispo 1.10 static PyObject *_wrap_BossTask_id(PyObject *self, PyObject *args) {
3705     PyObject *resultobj;
3706     BossTask *arg1 = (BossTask *) 0 ;
3707     std::string *result;
3708     PyObject * obj0 = 0 ;
3709    
3710     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_id",&obj0)) goto fail;
3711     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3712     {
3713     try {
3714     {
3715     std::string const &_result_ref = ((BossTask const *)arg1)->id();
3716     result = (std::string *) &_result_ref;
3717     }
3718    
3719     }catch (const std::exception& e) {
3720     SWIG_exception(SWIG_RuntimeError, e.what());
3721     }
3722 gcodispo 1.3 }
3723 gcodispo 1.10 {
3724     resultobj = PyString_FromStringAndSize(result->data(),result->size());
3725 gcodispo 1.3 }
3726 gcodispo 1.10 return resultobj;
3727     fail:
3728     return NULL;
3729     }
3730    
3731    
3732     static PyObject *_wrap_BossTask_name(PyObject *self, PyObject *args) {
3733     PyObject *resultobj;
3734     BossTask *arg1 = (BossTask *) 0 ;
3735     std::string *result;
3736     PyObject * obj0 = 0 ;
3737    
3738     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_name",&obj0)) goto fail;
3739     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3740     {
3741     try {
3742     {
3743     std::string const &_result_ref = ((BossTask const *)arg1)->name();
3744     result = (std::string *) &_result_ref;
3745     }
3746    
3747     }catch (const std::exception& e) {
3748     SWIG_exception(SWIG_RuntimeError, e.what());
3749     }
3750 gcodispo 1.3 }
3751 gcodispo 1.10 {
3752     resultobj = PyString_FromStringAndSize(result->data(),result->size());
3753 gcodispo 1.3 }
3754 gcodispo 1.10 return resultobj;
3755     fail:
3756     return NULL;
3757 gcodispo 1.3 }
3758    
3759    
3760 gcodispo 1.10 static PyObject *_wrap_BossTask_taskMap(PyObject *self, PyObject *args) {
3761     PyObject *resultobj;
3762     BossTask *arg1 = (BossTask *) 0 ;
3763     std::map<std::string,std::string > result;
3764     PyObject * obj0 = 0 ;
3765    
3766     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_taskMap",&obj0)) goto fail;
3767     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3768     {
3769     try {
3770     result = ((BossTask const *)arg1)->taskMap();
3771    
3772     }catch (const std::exception& e) {
3773     SWIG_exception(SWIG_RuntimeError, e.what());
3774     }
3775 gcodispo 1.3 }
3776 gcodispo 1.10 {
3777     resultobj = PyDict_New();
3778     for (std::map<std::string,std::string >::iterator i=(&result)->begin(); i!=(&result)->end(); ++i) {
3779     PyDict_SetItem(resultobj,
3780     SwigString_FromString(i->first),
3781     SwigString_FromString(i->second));
3782     }
3783 gcodispo 1.3 }
3784 gcodispo 1.10 return resultobj;
3785     fail:
3786     return NULL;
3787 gcodispo 1.4 }
3788    
3789    
3790 gcodispo 1.10 static PyObject *_wrap_BossTask_job_begin(PyObject *self, PyObject *args) {
3791     PyObject *resultobj;
3792     BossTask *arg1 = (BossTask *) 0 ;
3793     BossTask::job_iterator result;
3794     PyObject * obj0 = 0 ;
3795    
3796     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_begin",&obj0)) goto fail;
3797     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3798     {
3799     try {
3800     result = ((BossTask const *)arg1)->job_begin();
3801    
3802     }catch (const std::exception& e) {
3803     SWIG_exception(SWIG_RuntimeError, e.what());
3804     }
3805 gcodispo 1.9 }
3806 gcodispo 1.10 {
3807     BossTask::job_iterator * resultptr;
3808     resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result);
3809     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1);
3810 gcodispo 1.3 }
3811 gcodispo 1.10 return resultobj;
3812     fail:
3813     return NULL;
3814 gcodispo 1.3 }
3815    
3816    
3817 gcodispo 1.10 static PyObject *_wrap_BossTask_job_end(PyObject *self, PyObject *args) {
3818     PyObject *resultobj;
3819     BossTask *arg1 = (BossTask *) 0 ;
3820     BossTask::job_iterator result;
3821     PyObject * obj0 = 0 ;
3822    
3823     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_end",&obj0)) goto fail;
3824     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3825     {
3826     try {
3827     result = ((BossTask const *)arg1)->job_end();
3828    
3829     }catch (const std::exception& e) {
3830     SWIG_exception(SWIG_RuntimeError, e.what());
3831     }
3832 gcodispo 1.9 }
3833 gcodispo 1.10 {
3834     BossTask::job_iterator * resultptr;
3835     resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result);
3836     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1);
3837 gcodispo 1.3 }
3838 gcodispo 1.10 return resultobj;
3839     fail:
3840     return NULL;
3841 gcodispo 1.3 }
3842    
3843    
3844 gcodispo 1.10 static PyObject *_wrap_BossTask_jobsMap(PyObject *self, PyObject *args) {
3845     PyObject *resultobj;
3846     BossTask *arg1 = (BossTask *) 0 ;
3847     SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result;
3848     PyObject * obj0 = 0 ;
3849    
3850     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsMap",&obj0)) goto fail;
3851     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3852     {
3853     try {
3854     result = ((BossTask const *)arg1)->jobsMap();
3855    
3856     }catch (const std::exception& e) {
3857     SWIG_exception(SWIG_RuntimeError, e.what());
3858     }
3859 gcodispo 1.9 }
3860 gcodispo 1.10 {
3861     std::map<std::string,std::map<std::string,std::string > > * resultptr;
3862     resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result);
3863     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1);
3864 gcodispo 1.3 }
3865 gcodispo 1.10 return resultobj;
3866     fail:
3867     return NULL;
3868 gcodispo 1.3 }
3869    
3870    
3871 gcodispo 1.10 static PyObject *_wrap_BossTask_jobMap__SWIG_0(PyObject *self, PyObject *args) {
3872     PyObject *resultobj;
3873     BossTask *arg1 = (BossTask *) 0 ;
3874     SwigValueWrapper< std::vector<BossJob * >::const_iterator > arg2 ;
3875     std::map<std::string,std::string > *arg3 = 0 ;
3876     std::string result;
3877     std::vector<BossJob * >::const_iterator *argp2 ;
3878     PyObject * obj0 = 0 ;
3879     PyObject * obj1 = 0 ;
3880     PyObject * obj2 = 0 ;
3881    
3882     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobMap",&obj0,&obj1,&obj2)) goto fail;
3883     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3884     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
3885     arg2 = *argp2;
3886     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3887     if (arg3 == NULL) {
3888     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3889 gcodispo 1.3 }
3890 gcodispo 1.10 {
3891     try {
3892     result = ((BossTask const *)arg1)->jobMap(arg2,*arg3);
3893    
3894     }catch (const std::exception& e) {
3895     SWIG_exception(SWIG_RuntimeError, e.what());
3896     }
3897 gcodispo 1.3 }
3898 gcodispo 1.10 {
3899     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
3900 gcodispo 1.3 }
3901 gcodispo 1.10 return resultobj;
3902     fail:
3903     return NULL;
3904 gcodispo 1.3 }
3905    
3906    
3907 gcodispo 1.10 static PyObject *_wrap_BossTask_jobMap__SWIG_1(PyObject *self, PyObject *args) {
3908     PyObject *resultobj;
3909     BossTask *arg1 = (BossTask *) 0 ;
3910     unsigned int arg2 ;
3911     std::map<std::string,std::string > result;
3912     PyObject * obj0 = 0 ;
3913     PyObject * obj1 = 0 ;
3914    
3915     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobMap",&obj0,&obj1)) goto fail;
3916     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3917     arg2 = (unsigned int) PyInt_AsLong(obj1);
3918     if (PyErr_Occurred()) SWIG_fail;
3919     {
3920     try {
3921     result = ((BossTask const *)arg1)->jobMap(arg2);
3922    
3923     }catch (const std::exception& e) {
3924     SWIG_exception(SWIG_RuntimeError, e.what());
3925     }
3926 gcodispo 1.3 }
3927 gcodispo 1.10 {
3928     resultobj = PyDict_New();
3929     for (std::map<std::string,std::string >::iterator i=(&result)->begin(); i!=(&result)->end(); ++i) {
3930     PyDict_SetItem(resultobj,
3931     SwigString_FromString(i->first),
3932     SwigString_FromString(i->second));
3933 gcodispo 1.3 }
3934 gcodispo 1.9 }
3935 gcodispo 1.10 return resultobj;
3936     fail:
3937     return NULL;
3938     }
3939    
3940    
3941     static PyObject *_wrap_BossTask_jobMap(PyObject *self, PyObject *args) {
3942     int argc;
3943     PyObject *argv[4];
3944     int ii;
3945    
3946     argc = PyObject_Length(args);
3947     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
3948     argv[ii] = PyTuple_GetItem(args,ii);
3949 gcodispo 1.3 }
3950 gcodispo 1.10 if (argc == 2) {
3951     int _v;
3952     {
3953     void *ptr;
3954     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
3955     _v = 0;
3956     PyErr_Clear();
3957     }else {
3958     _v = 1;
3959 gcodispo 1.3 }
3960     }
3961     if (_v) {
3962 gcodispo 1.10 {
3963     _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
3964     }
3965 gcodispo 1.9 if (_v) {
3966 gcodispo 1.10 return _wrap_BossTask_jobMap__SWIG_1(self,args);
3967 gcodispo 1.9 }
3968 gcodispo 1.3 }
3969     }
3970 gcodispo 1.10 if (argc == 3) {
3971     int _v;
3972     {
3973     void *ptr;
3974     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
3975     _v = 0;
3976     PyErr_Clear();
3977     }else {
3978     _v = 1;
3979     }
3980     }
3981 gcodispo 1.3 if (_v) {
3982 gcodispo 1.10 {
3983     void *ptr;
3984     if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator, 0) == -1) {
3985     _v = 0;
3986     PyErr_Clear();
3987     }else {
3988     _v = 1;
3989     }
3990     }
3991 gcodispo 1.3 if (_v) {
3992 gcodispo 1.9 {
3993 gcodispo 1.10 void *ptr;
3994     if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__mapTstd__string_std__string_t, 0) == -1) {
3995     _v = 0;
3996     PyErr_Clear();
3997     }else {
3998     _v = 1;
3999     }
4000 gcodispo 1.9 }
4001     if (_v) {
4002 gcodispo 1.10 return _wrap_BossTask_jobMap__SWIG_0(self,args);
4003 gcodispo 1.9 }
4004 gcodispo 1.3 }
4005     }
4006     }
4007 gcodispo 1.10
4008     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_jobMap'");
4009     return NULL;
4010 gcodispo 1.3 }
4011    
4012    
4013 gcodispo 1.10 static PyObject *_wrap_BossTask_programsMap(PyObject *self, PyObject *args) {
4014     PyObject *resultobj;
4015     BossTask *arg1 = (BossTask *) 0 ;
4016     BossJob *arg2 = (BossJob *) 0 ;
4017     SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result;
4018     PyObject * obj0 = 0 ;
4019     PyObject * obj1 = 0 ;
4020    
4021     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_programsMap",&obj0,&obj1)) goto fail;
4022     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4023     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4024     {
4025     try {
4026     result = ((BossTask const *)arg1)->programsMap((BossJob const *)arg2);
4027    
4028     }catch (const std::exception& e) {
4029     SWIG_exception(SWIG_RuntimeError, e.what());
4030     }
4031 gcodispo 1.9 }
4032 gcodispo 1.10 {
4033     std::map<std::string,std::map<std::string,std::string > > * resultptr;
4034     resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result);
4035     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1);
4036 gcodispo 1.9 }
4037 gcodispo 1.10 return resultobj;
4038     fail:
4039     return NULL;
4040     }
4041    
4042    
4043     static PyObject *_wrap_BossTask_queryJobPrograms(PyObject *self, PyObject *args) {
4044     PyObject *resultobj;
4045     BossTask *arg1 = (BossTask *) 0 ;
4046     BossJob *arg2 = (BossJob *) 0 ;
4047     SwigValueWrapper< std::vector<std::pair<BossProgram,BossProgramExec > > > result;
4048     PyObject * obj0 = 0 ;
4049     PyObject * obj1 = 0 ;
4050    
4051     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_queryJobPrograms",&obj0,&obj1)) goto fail;
4052     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4053     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4054     {
4055     try {
4056     result = ((BossTask const *)arg1)->queryJobPrograms((BossJob const *)arg2);
4057    
4058     }catch (const std::exception& e) {
4059     SWIG_exception(SWIG_RuntimeError, e.what());
4060     }
4061 gcodispo 1.9 }
4062 gcodispo 1.10 {
4063     std::vector<std::pair<BossProgram,BossProgramExec > > * resultptr;
4064     resultptr = new std::vector<std::pair<BossProgram,BossProgramExec > >((std::vector<std::pair<BossProgram,BossProgramExec > > &) result);
4065     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t, 1);
4066 gcodispo 1.9 }
4067 gcodispo 1.10 return resultobj;
4068     fail:
4069     return NULL;
4070     }
4071    
4072    
4073     static PyObject *_wrap_BossTask_declare__SWIG_0(PyObject *self, PyObject *args) {
4074     PyObject *resultobj;
4075     BossTask *arg1 = (BossTask *) 0 ;
4076     std::string *arg2 = 0 ;
4077     std::string const &arg3_defvalue = "" ;
4078     std::string *arg3 = (std::string *) &arg3_defvalue ;
4079     std::string temp2 ;
4080     std::string temp3 ;
4081     PyObject * obj0 = 0 ;
4082     PyObject * obj1 = 0 ;
4083     PyObject * obj2 = 0 ;
4084    
4085     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail;
4086     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4087     {
4088     if (PyString_Check(obj1)) {
4089     temp2 = std::string(PyString_AsString(obj1));
4090     arg2 = &temp2;
4091     }else {
4092     SWIG_exception(SWIG_TypeError, "string expected");
4093     }
4094 gcodispo 1.9 }
4095 gcodispo 1.10 if (obj2) {
4096     {
4097     if (PyString_Check(obj2)) {
4098     temp3 = std::string(PyString_AsString(obj2));
4099     arg3 = &temp3;
4100     }else {
4101     SWIG_exception(SWIG_TypeError, "string expected");
4102     }
4103     }
4104 gcodispo 1.9 }
4105 gcodispo 1.10 {
4106     try {
4107     (arg1)->declare((std::string const &)*arg2,(std::string const &)*arg3);
4108    
4109     }catch (const std::exception& e) {
4110     SWIG_exception(SWIG_RuntimeError, e.what());
4111     }
4112 gcodispo 1.9 }
4113 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4114     return resultobj;
4115     fail:
4116     return NULL;
4117     }
4118    
4119    
4120     static PyObject *_wrap_BossTask_declare__SWIG_1(PyObject *self, PyObject *args) {
4121     PyObject *resultobj;
4122     BossTask *arg1 = (BossTask *) 0 ;
4123     XMLDoc *arg2 = (XMLDoc *) 0 ;
4124     std::string const &arg3_defvalue = "" ;
4125     std::string *arg3 = (std::string *) &arg3_defvalue ;
4126     std::string temp3 ;
4127     PyObject * obj0 = 0 ;
4128     PyObject * obj1 = 0 ;
4129     PyObject * obj2 = 0 ;
4130    
4131     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail;
4132     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4133     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMLDoc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4134     if (obj2) {
4135     {
4136     if (PyString_Check(obj2)) {
4137     temp3 = std::string(PyString_AsString(obj2));
4138     arg3 = &temp3;
4139     }else {
4140     SWIG_exception(SWIG_TypeError, "string expected");
4141     }
4142     }
4143 gcodispo 1.9 }
4144 gcodispo 1.10 {
4145     try {
4146     (arg1)->declare(arg2,(std::string const &)*arg3);
4147    
4148     }catch (const std::exception& e) {
4149     SWIG_exception(SWIG_RuntimeError, e.what());
4150     }
4151 gcodispo 1.9 }
4152 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4153     return resultobj;
4154     fail:
4155     return NULL;
4156 gcodispo 1.3 }
4157    
4158    
4159 gcodispo 1.10 static PyObject *_wrap_BossTask_declare(PyObject *self, PyObject *args) {
4160     int argc;
4161     PyObject *argv[4];
4162     int ii;
4163    
4164     argc = PyObject_Length(args);
4165     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
4166     argv[ii] = PyTuple_GetItem(args,ii);
4167 gcodispo 1.9 }
4168 gcodispo 1.10 if ((argc >= 2) && (argc <= 3)) {
4169     int _v;
4170     {
4171     void *ptr;
4172     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4173     _v = 0;
4174     PyErr_Clear();
4175     }else {
4176     _v = 1;
4177     }
4178     }
4179     if (_v) {
4180     {
4181     void *ptr;
4182     if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XMLDoc, 0) == -1) {
4183     _v = 0;
4184     PyErr_Clear();
4185     }else {
4186     _v = 1;
4187     }
4188     }
4189     if (_v) {
4190     if (argc <= 2) {
4191     return _wrap_BossTask_declare__SWIG_1(self,args);
4192     }
4193     {
4194     _v = PyString_Check(argv[2]) ? 1 : 0;
4195     }
4196     if (_v) {
4197     return _wrap_BossTask_declare__SWIG_1(self,args);
4198     }
4199     }
4200     }
4201 gcodispo 1.9 }
4202 gcodispo 1.10 if ((argc >= 2) && (argc <= 3)) {
4203     int _v;
4204     {
4205     void *ptr;
4206     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4207     _v = 0;
4208     PyErr_Clear();
4209     }else {
4210     _v = 1;
4211     }
4212     }
4213     if (_v) {
4214     {
4215     _v = PyString_Check(argv[1]) ? 1 : 0;
4216     }
4217     if (_v) {
4218     if (argc <= 2) {
4219     return _wrap_BossTask_declare__SWIG_0(self,args);
4220     }
4221     {
4222     _v = PyString_Check(argv[2]) ? 1 : 0;
4223     }
4224     if (_v) {
4225     return _wrap_BossTask_declare__SWIG_0(self,args);
4226     }
4227     }
4228     }
4229 gcodispo 1.9 }
4230 gcodispo 1.10
4231     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_declare'");
4232     return NULL;
4233 gcodispo 1.3 }
4234    
4235    
4236 gcodispo 1.10 static PyObject *_wrap_BossTask_remove(PyObject *self, PyObject *args) {
4237     PyObject *resultobj;
4238     BossTask *arg1 = (BossTask *) 0 ;
4239     PyObject * obj0 = 0 ;
4240    
4241     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_remove",&obj0)) goto fail;
4242     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4243     {
4244     try {
4245     (arg1)->remove();
4246    
4247     }catch (const std::exception& e) {
4248     SWIG_exception(SWIG_RuntimeError, e.what());
4249     }
4250 gcodispo 1.9 }
4251 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4252     return resultobj;
4253     fail:
4254     return NULL;
4255 gcodispo 1.7 }
4256    
4257    
4258 gcodispo 1.10 static PyObject *_wrap_BossTask_archive(PyObject *self, PyObject *args) {
4259     PyObject *resultobj;
4260     BossTask *arg1 = (BossTask *) 0 ;
4261     std::string const &arg2_defvalue = "all" ;
4262     std::string *arg2 = (std::string *) &arg2_defvalue ;
4263     std::string temp2 ;
4264     PyObject * obj0 = 0 ;
4265     PyObject * obj1 = 0 ;
4266    
4267     if(!PyArg_ParseTuple(args,(char *)"O|O:BossTask_archive",&obj0,&obj1)) goto fail;
4268     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4269     if (obj1) {
4270     {
4271     if (PyString_Check(obj1)) {
4272     temp2 = std::string(PyString_AsString(obj1));
4273     arg2 = &temp2;
4274     }else {
4275     SWIG_exception(SWIG_TypeError, "string expected");
4276     }
4277     }
4278 gcodispo 1.3 }
4279 gcodispo 1.10 {
4280     try {
4281     (arg1)->archive((std::string const &)*arg2);
4282    
4283     }catch (const std::exception& e) {
4284     SWIG_exception(SWIG_RuntimeError, e.what());
4285     }
4286 gcodispo 1.3 }
4287 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4288     return resultobj;
4289     fail:
4290     return NULL;
4291 gcodispo 1.3 }
4292    
4293    
4294 gcodispo 1.10 static PyObject *_wrap_BossTask_submit(PyObject *self, PyObject *args) {
4295     PyObject *resultobj;
4296     BossTask *arg1 = (BossTask *) 0 ;
4297     std::string const &arg2_defvalue = "all" ;
4298     std::string *arg2 = (std::string *) &arg2_defvalue ;
4299     std::string const &arg3_defvalue = "" ;
4300     std::string *arg3 = (std::string *) &arg3_defvalue ;
4301     std::string const &arg4_defvalue = "" ;
4302     std::string *arg4 = (std::string *) &arg4_defvalue ;
4303     std::string const &arg5_defvalue = "" ;
4304     std::string *arg5 = (std::string *) &arg5_defvalue ;
4305     std::string const &arg6_defvalue = "" ;
4306     std::string *arg6 = (std::string *) &arg6_defvalue ;
4307     bool arg7 = (bool) false ;
4308     int result;
4309     std::string temp2 ;
4310     std::string temp3 ;
4311     std::string temp4 ;
4312     std::string temp5 ;
4313     std::string temp6 ;
4314     PyObject * obj0 = 0 ;
4315     PyObject * obj1 = 0 ;
4316     PyObject * obj2 = 0 ;
4317     PyObject * obj3 = 0 ;
4318     PyObject * obj4 = 0 ;
4319     PyObject * obj5 = 0 ;
4320     PyObject * obj6 = 0 ;
4321    
4322     if(!PyArg_ParseTuple(args,(char *)"O|OOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4323     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4324     if (obj1) {
4325     {
4326     if (PyString_Check(obj1)) {
4327     temp2 = std::string(PyString_AsString(obj1));
4328     arg2 = &temp2;
4329     }else {
4330     SWIG_exception(SWIG_TypeError, "string expected");
4331     }
4332     }
4333 gcodispo 1.9 }
4334 gcodispo 1.10 if (obj2) {
4335     {
4336     if (PyString_Check(obj2)) {
4337     temp3 = std::string(PyString_AsString(obj2));
4338     arg3 = &temp3;
4339     }else {
4340     SWIG_exception(SWIG_TypeError, "string expected");
4341     }
4342     }
4343 gcodispo 1.3 }
4344 gcodispo 1.10 if (obj3) {
4345     {
4346     if (PyString_Check(obj3)) {
4347     temp4 = std::string(PyString_AsString(obj3));
4348     arg4 = &temp4;
4349     }else {
4350     SWIG_exception(SWIG_TypeError, "string expected");
4351     }
4352     }
4353 gcodispo 1.3 }
4354 gcodispo 1.10 if (obj4) {
4355     {
4356     if (PyString_Check(obj4)) {
4357     temp5 = std::string(PyString_AsString(obj4));
4358     arg5 = &temp5;
4359     }else {
4360     SWIG_exception(SWIG_TypeError, "string expected");
4361     }
4362     }
4363 gcodispo 1.3 }
4364 gcodispo 1.10 if (obj5) {
4365     {
4366     if (PyString_Check(obj5)) {
4367     temp6 = std::string(PyString_AsString(obj5));
4368     arg6 = &temp6;
4369     }else {
4370     SWIG_exception(SWIG_TypeError, "string expected");
4371     }
4372     }
4373 gcodispo 1.3 }
4374 gcodispo 1.10 if (obj6) {
4375     arg7 = PyInt_AsLong(obj6) ? true : false;
4376     if (PyErr_Occurred()) SWIG_fail;
4377 gcodispo 1.3 }
4378 gcodispo 1.10 {
4379     try {
4380     result = (int)(arg1)->submit((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7);
4381    
4382     }catch (const std::exception& e) {
4383     SWIG_exception(SWIG_RuntimeError, e.what());
4384     }
4385 gcodispo 1.3 }
4386 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4387     return resultobj;
4388     fail:
4389     return NULL;
4390     }
4391    
4392    
4393     static PyObject *_wrap_BossTask_reSubmit(PyObject *self, PyObject *args) {
4394     PyObject *resultobj;
4395     BossTask *arg1 = (BossTask *) 0 ;
4396     std::string *arg2 = 0 ;
4397     bool arg3 = (bool) false ;
4398     int result;
4399     std::string temp2 ;
4400     PyObject * obj0 = 0 ;
4401     PyObject * obj1 = 0 ;
4402     PyObject * obj2 = 0 ;
4403    
4404     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_reSubmit",&obj0,&obj1,&obj2)) goto fail;
4405     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4406     {
4407     if (PyString_Check(obj1)) {
4408     temp2 = std::string(PyString_AsString(obj1));
4409     arg2 = &temp2;
4410     }else {
4411     SWIG_exception(SWIG_TypeError, "string expected");
4412     }
4413 gcodispo 1.3 }
4414 gcodispo 1.10 if (obj2) {
4415     arg3 = PyInt_AsLong(obj2) ? true : false;
4416     if (PyErr_Occurred()) SWIG_fail;
4417 gcodispo 1.3 }
4418 gcodispo 1.10 {
4419     try {
4420     result = (int)(arg1)->reSubmit((std::string const &)*arg2,arg3);
4421    
4422     }catch (const std::exception& e) {
4423     SWIG_exception(SWIG_RuntimeError, e.what());
4424     }
4425 gcodispo 1.3 }
4426 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4427     return resultobj;
4428     fail:
4429     return NULL;
4430     }
4431    
4432    
4433     static PyObject *_wrap_BossTask_kill(PyObject *self, PyObject *args) {
4434     PyObject *resultobj;
4435     BossTask *arg1 = (BossTask *) 0 ;
4436     std::string *arg2 = 0 ;
4437     bool arg3 = (bool) false ;
4438     int result;
4439     std::string temp2 ;
4440     PyObject * obj0 = 0 ;
4441     PyObject * obj1 = 0 ;
4442     PyObject * obj2 = 0 ;
4443    
4444     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_kill",&obj0,&obj1,&obj2)) goto fail;
4445     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4446     {
4447     if (PyString_Check(obj1)) {
4448     temp2 = std::string(PyString_AsString(obj1));
4449     arg2 = &temp2;
4450     }else {
4451     SWIG_exception(SWIG_TypeError, "string expected");
4452     }
4453 gcodispo 1.3 }
4454 gcodispo 1.10 if (obj2) {
4455     arg3 = PyInt_AsLong(obj2) ? true : false;
4456     if (PyErr_Occurred()) SWIG_fail;
4457 gcodispo 1.3 }
4458 gcodispo 1.10 {
4459     try {
4460     result = (int)(arg1)->kill((std::string const &)*arg2,arg3);
4461    
4462     }catch (const std::exception& e) {
4463     SWIG_exception(SWIG_RuntimeError, e.what());
4464     }
4465 yzhang 1.1 }
4466 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4467     return resultobj;
4468     fail:
4469     return NULL;
4470 gcodispo 1.3 }
4471    
4472    
4473 gcodispo 1.10 static PyObject *_wrap_BossTask_getOutput(PyObject *self, PyObject *args) {
4474     PyObject *resultobj;
4475     BossTask *arg1 = (BossTask *) 0 ;
4476     std::string const &arg2_defvalue = "all" ;
4477     std::string *arg2 = (std::string *) &arg2_defvalue ;
4478     std::string const &arg3_defvalue = "" ;
4479     std::string *arg3 = (std::string *) &arg3_defvalue ;
4480     bool arg4 = (bool) false ;
4481     bool arg5 = (bool) false ;
4482     int result;
4483     std::string temp2 ;
4484     std::string temp3 ;
4485     PyObject * obj0 = 0 ;
4486     PyObject * obj1 = 0 ;
4487     PyObject * obj2 = 0 ;
4488     PyObject * obj3 = 0 ;
4489     PyObject * obj4 = 0 ;
4490    
4491     if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4492     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4493     if (obj1) {
4494     {
4495     if (PyString_Check(obj1)) {
4496     temp2 = std::string(PyString_AsString(obj1));
4497     arg2 = &temp2;
4498     }else {
4499     SWIG_exception(SWIG_TypeError, "string expected");
4500     }
4501     }
4502 gcodispo 1.9 }
4503 gcodispo 1.10 if (obj2) {
4504     {
4505     if (PyString_Check(obj2)) {
4506     temp3 = std::string(PyString_AsString(obj2));
4507     arg3 = &temp3;
4508     }else {
4509     SWIG_exception(SWIG_TypeError, "string expected");
4510     }
4511     }
4512 gcodispo 1.9 }
4513 gcodispo 1.10 if (obj3) {
4514     arg4 = PyInt_AsLong(obj3) ? true : false;
4515     if (PyErr_Occurred()) SWIG_fail;
4516 yzhang 1.1 }
4517 gcodispo 1.10 if (obj4) {
4518     arg5 = PyInt_AsLong(obj4) ? true : false;
4519     if (PyErr_Occurred()) SWIG_fail;
4520 gcodispo 1.3 }
4521 gcodispo 1.10 {
4522     try {
4523     result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5);
4524    
4525     }catch (const std::exception& e) {
4526     SWIG_exception(SWIG_RuntimeError, e.what());
4527     }
4528 yzhang 1.1 }
4529 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4530     return resultobj;
4531     fail:
4532     return NULL;
4533     }
4534    
4535    
4536     static PyObject *_wrap_BossTask_getAllOutput(PyObject *self, PyObject *args) {
4537     PyObject *resultobj;
4538     BossTask *arg1 = (BossTask *) 0 ;
4539     std::string const &arg2_defvalue = "" ;
4540     std::string *arg2 = (std::string *) &arg2_defvalue ;
4541     bool arg3 = (bool) false ;
4542     bool arg4 = (bool) false ;
4543     int result;
4544     std::string temp2 ;
4545     PyObject * obj0 = 0 ;
4546     PyObject * obj1 = 0 ;
4547     PyObject * obj2 = 0 ;
4548     PyObject * obj3 = 0 ;
4549    
4550     if(!PyArg_ParseTuple(args,(char *)"O|OOO:BossTask_getAllOutput",&obj0,&obj1,&obj2,&obj3)) goto fail;
4551     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4552     if (obj1) {
4553     {
4554     if (PyString_Check(obj1)) {
4555     temp2 = std::string(PyString_AsString(obj1));
4556     arg2 = &temp2;
4557     }else {
4558     SWIG_exception(SWIG_TypeError, "string expected");
4559     }
4560     }
4561 gcodispo 1.3 }
4562 gcodispo 1.10 if (obj2) {
4563     arg3 = PyInt_AsLong(obj2) ? true : false;
4564     if (PyErr_Occurred()) SWIG_fail;
4565 gcodispo 1.3 }
4566 gcodispo 1.10 if (obj3) {
4567     arg4 = PyInt_AsLong(obj3) ? true : false;
4568     if (PyErr_Occurred()) SWIG_fail;
4569 gcodispo 1.3 }
4570 gcodispo 1.10 {
4571     try {
4572     result = (int)(arg1)->getAllOutput((std::string const &)*arg2,arg3,arg4);
4573    
4574     }catch (const std::exception& e) {
4575     SWIG_exception(SWIG_RuntimeError, e.what());
4576     }
4577 gcodispo 1.3 }
4578 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4579     return resultobj;
4580     fail:
4581     return NULL;
4582 yzhang 1.1 }
4583    
4584    
4585 gcodispo 1.10 static PyObject *_wrap_BossTask_query(PyObject *self, PyObject *args) {
4586     PyObject *resultobj;
4587     BossTask *arg1 = (BossTask *) 0 ;
4588     int arg2 = (int) SCHEDULED ;
4589     std::string const &arg3_defvalue = "all" ;
4590     std::string *arg3 = (std::string *) &arg3_defvalue ;
4591     std::string const &arg4_defvalue = "" ;
4592     std::string *arg4 = (std::string *) &arg4_defvalue ;
4593     std::string arg5 = (std::string) "" ;
4594     std::string arg6 = (std::string) "" ;
4595     std::string arg7 = (std::string) "" ;
4596     std::string arg8 = (std::string) "" ;
4597     bool arg9 = (bool) false ;
4598     int result;
4599     std::string temp3 ;
4600     std::string temp4 ;
4601     PyObject * obj0 = 0 ;
4602     PyObject * obj2 = 0 ;
4603     PyObject * obj3 = 0 ;
4604     PyObject * obj4 = 0 ;
4605     PyObject * obj5 = 0 ;
4606     PyObject * obj6 = 0 ;
4607     PyObject * obj7 = 0 ;
4608     PyObject * obj8 = 0 ;
4609    
4610     if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4611     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4612     if (obj2) {
4613     {
4614     if (PyString_Check(obj2)) {
4615     temp3 = std::string(PyString_AsString(obj2));
4616     arg3 = &temp3;
4617     }else {
4618     SWIG_exception(SWIG_TypeError, "string expected");
4619     }
4620     }
4621 yzhang 1.1 }
4622 gcodispo 1.10 if (obj3) {
4623     {
4624     if (PyString_Check(obj3)) {
4625     temp4 = std::string(PyString_AsString(obj3));
4626     arg4 = &temp4;
4627     }else {
4628     SWIG_exception(SWIG_TypeError, "string expected");
4629     }
4630     }
4631 gcodispo 1.3 }
4632 gcodispo 1.10 if (obj4) {
4633     {
4634     if (PyString_Check(obj4))
4635     arg5 = std::string(PyString_AsString(obj4));
4636     else
4637     SWIG_exception(SWIG_TypeError, "string expected");
4638     }
4639 yzhang 1.1 }
4640 gcodispo 1.10 if (obj5) {
4641     {
4642     if (PyString_Check(obj5))
4643     arg6 = std::string(PyString_AsString(obj5));
4644     else
4645     SWIG_exception(SWIG_TypeError, "string expected");
4646     }
4647 yzhang 1.1 }
4648 gcodispo 1.10 if (obj6) {
4649     {
4650     if (PyString_Check(obj6))
4651     arg7 = std::string(PyString_AsString(obj6));
4652     else
4653     SWIG_exception(SWIG_TypeError, "string expected");
4654     }
4655 gcodispo 1.3 }
4656 gcodispo 1.10 if (obj7) {
4657     {
4658     if (PyString_Check(obj7))
4659     arg8 = std::string(PyString_AsString(obj7));
4660     else
4661     SWIG_exception(SWIG_TypeError, "string expected");
4662     }
4663 yzhang 1.1 }
4664 gcodispo 1.10 if (obj8) {
4665     arg9 = PyInt_AsLong(obj8) ? true : false;
4666     if (PyErr_Occurred()) SWIG_fail;
4667 gcodispo 1.3 }
4668 gcodispo 1.10 {
4669     try {
4670     result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9);
4671    
4672     }catch (const std::exception& e) {
4673     SWIG_exception(SWIG_RuntimeError, e.what());
4674     }
4675 yzhang 1.1 }
4676 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4677     return resultobj;
4678     fail:
4679     return NULL;
4680 yzhang 1.1 }
4681    
4682    
4683 gcodispo 1.10 static PyObject *_wrap_BossTask_query_out(PyObject *self, PyObject *args) {
4684     PyObject *resultobj;
4685     BossTask *arg1 = (BossTask *) 0 ;
4686     std::ostream &arg2_defvalue = std::cout ;
4687     std::ostream *arg2 = (std::ostream *) &arg2_defvalue ;
4688     jobStates const &arg3_defvalue = SCHEDULED ;
4689     jobStates *arg3 = (jobStates *) &arg3_defvalue ;
4690     printOption const &arg4_defvalue = NORMAL ;
4691     printOption *arg4 = (printOption *) &arg4_defvalue ;
4692     std::string arg5 = (std::string) "" ;
4693     PyObject * obj0 = 0 ;
4694     PyObject * obj1 = 0 ;
4695     PyObject * obj2 = 0 ;
4696     PyObject * obj3 = 0 ;
4697     PyObject * obj4 = 0 ;
4698    
4699     if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossTask_query_out",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4700     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4701     if (obj1) {
4702     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__ostream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4703     if (arg2 == NULL) {
4704     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4705     }
4706 gcodispo 1.9 }
4707 gcodispo 1.10 if (obj2) {
4708     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_jobStates,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4709     if (arg3 == NULL) {
4710     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4711     }
4712 gcodispo 1.9 }
4713 gcodispo 1.10 if (obj3) {
4714     if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_printOption,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4715     if (arg4 == NULL) {
4716     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4717     }
4718 yzhang 1.1 }
4719 gcodispo 1.10 if (obj4) {
4720     {
4721     if (PyString_Check(obj4))
4722     arg5 = std::string(PyString_AsString(obj4));
4723     else
4724     SWIG_exception(SWIG_TypeError, "string expected");
4725     }
4726 gcodispo 1.3 }
4727 gcodispo 1.10 {
4728     try {
4729     ((BossTask const *)arg1)->query_out(*arg2,(jobStates const &)*arg3,(printOption const &)*arg4,arg5);
4730    
4731     }catch (const std::exception& e) {
4732     SWIG_exception(SWIG_RuntimeError, e.what());
4733     }
4734 gcodispo 1.3 }
4735 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4736     return resultobj;
4737     fail:
4738     return NULL;
4739     }
4740    
4741    
4742     static PyObject *_wrap_BossTask_clear(PyObject *self, PyObject *args) {
4743     PyObject *resultobj;
4744     BossTask *arg1 = (BossTask *) 0 ;
4745     PyObject * obj0 = 0 ;
4746    
4747     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_clear",&obj0)) goto fail;
4748     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4749     {
4750     try {
4751     (arg1)->clear();
4752    
4753     }catch (const std::exception& e) {
4754     SWIG_exception(SWIG_RuntimeError, e.what());
4755     }
4756 yzhang 1.1 }
4757 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4758     return resultobj;
4759     fail:
4760     return NULL;
4761     }
4762    
4763    
4764     static PyObject * BossTask_swigregister(PyObject *self, PyObject *args) {
4765     PyObject *obj;
4766     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4767     SWIG_TypeClientData(SWIGTYPE_p_BossTask, obj);
4768     Py_INCREF(obj);
4769     return Py_BuildValue((char *)"");
4770     }
4771     static PyObject *_wrap_prompt(PyObject *self, PyObject *args) {
4772     PyObject *resultobj;
4773     std::string *arg1 = 0 ;
4774     bool result;
4775     std::string temp1 ;
4776     PyObject * obj0 = 0 ;
4777    
4778     if(!PyArg_ParseTuple(args,(char *)"O:prompt",&obj0)) goto fail;
4779     {
4780     if (PyString_Check(obj0)) {
4781     temp1 = std::string(PyString_AsString(obj0));
4782     arg1 = &temp1;
4783     }else {
4784     SWIG_exception(SWIG_TypeError, "string expected");
4785     }
4786 gcodispo 1.3 }
4787 gcodispo 1.10 {
4788     try {
4789     result = (bool)prompt((std::string const &)*arg1);
4790    
4791     }catch (const std::exception& e) {
4792     SWIG_exception(SWIG_RuntimeError, e.what());
4793     }
4794 gcodispo 1.3 }
4795 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4796     return resultobj;
4797     fail:
4798     return NULL;
4799 gcodispo 1.3 }
4800    
4801    
4802 gcodispo 1.10 static PyObject *_wrap_new_BossAdministratorSession(PyObject *self, PyObject *args) {
4803     PyObject *resultobj;
4804     std::string arg1 = (std::string) "" ;
4805     bool arg2 = (bool) false ;
4806     BossAdministratorSession *result;
4807     PyObject * obj0 = 0 ;
4808     PyObject * obj1 = 0 ;
4809    
4810     if(!PyArg_ParseTuple(args,(char *)"|OO:new_BossAdministratorSession",&obj0,&obj1)) goto fail;
4811     if (obj0) {
4812     {
4813     if (PyString_Check(obj0))
4814     arg1 = std::string(PyString_AsString(obj0));
4815     else
4816     SWIG_exception(SWIG_TypeError, "string expected");
4817     }
4818 gcodispo 1.3 }
4819 gcodispo 1.10 if (obj1) {
4820     arg2 = PyInt_AsLong(obj1) ? true : false;
4821     if (PyErr_Occurred()) SWIG_fail;
4822 gcodispo 1.3 }
4823 gcodispo 1.10 {
4824     try {
4825     result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2);
4826    
4827     }catch (const std::exception& e) {
4828     SWIG_exception(SWIG_RuntimeError, e.what());
4829     }
4830 gcodispo 1.3 }
4831 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossAdministratorSession, 1);
4832     return resultobj;
4833     fail:
4834     return NULL;
4835 yzhang 1.1 }
4836    
4837    
4838 gcodispo 1.10 static PyObject *_wrap_delete_BossAdministratorSession(PyObject *self, PyObject *args) {
4839     PyObject *resultobj;
4840     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
4841     PyObject * obj0 = 0 ;
4842    
4843     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossAdministratorSession",&obj0)) goto fail;
4844     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4845     {
4846     try {
4847     delete arg1;
4848    
4849     }catch (const std::exception& e) {
4850     SWIG_exception(SWIG_RuntimeError, e.what());
4851     }
4852 yzhang 1.1 }
4853 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4854     return resultobj;
4855     fail:
4856     return NULL;
4857     }
4858    
4859    
4860     static PyObject *_wrap_BossAdministratorSession_configureDB(PyObject *self, PyObject *args) {
4861     PyObject *resultobj;
4862     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
4863     int result;
4864     PyObject * obj0 = 0 ;
4865    
4866     if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_configureDB",&obj0)) goto fail;
4867     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4868     {
4869     try {
4870     result = (int)(arg1)->configureDB();
4871    
4872     }catch (const std::exception& e) {
4873     SWIG_exception(SWIG_RuntimeError, e.what());
4874     }
4875 gcodispo 1.3 }
4876 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4877     return resultobj;
4878     fail:
4879     return NULL;
4880 yzhang 1.1 }
4881    
4882    
4883 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_configureRTMonDB(PyObject *self, PyObject *args) {
4884     PyObject *resultobj;
4885     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
4886     std::string *arg2 = 0 ;
4887     int result;
4888     std::string temp2 ;
4889     PyObject * obj0 = 0 ;
4890     PyObject * obj1 = 0 ;
4891    
4892     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_configureRTMonDB",&obj0,&obj1)) goto fail;
4893     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4894     {
4895     if (PyString_Check(obj1)) {
4896     temp2 = std::string(PyString_AsString(obj1));
4897     arg2 = &temp2;
4898     }else {
4899     SWIG_exception(SWIG_TypeError, "string expected");
4900     }
4901 gcodispo 1.3 }
4902 gcodispo 1.10 {
4903     try {
4904     result = (int)(arg1)->configureRTMonDB((std::string const &)*arg2);
4905    
4906     }catch (const std::exception& e) {
4907     SWIG_exception(SWIG_RuntimeError, e.what());
4908     }
4909 gcodispo 1.3 }
4910 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4911     return resultobj;
4912     fail:
4913     return NULL;
4914     }
4915    
4916    
4917     static PyObject *_wrap_BossAdministratorSession_deleteCHTool(PyObject *self, PyObject *args) {
4918     PyObject *resultobj;
4919     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
4920     std::string *arg2 = 0 ;
4921     int result;
4922     std::string temp2 ;
4923     PyObject * obj0 = 0 ;
4924     PyObject * obj1 = 0 ;
4925    
4926     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteCHTool",&obj0,&obj1)) goto fail;
4927     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4928     {
4929     if (PyString_Check(obj1)) {
4930     temp2 = std::string(PyString_AsString(obj1));
4931     arg2 = &temp2;
4932     }else {
4933     SWIG_exception(SWIG_TypeError, "string expected");
4934     }
4935 gcodispo 1.3 }
4936 gcodispo 1.10 {
4937     try {
4938     result = (int)(arg1)->deleteCHTool((std::string const &)*arg2);
4939    
4940     }catch (const std::exception& e) {
4941     SWIG_exception(SWIG_RuntimeError, e.what());
4942     }
4943 gcodispo 1.3 }
4944 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4945     return resultobj;
4946     fail:
4947     return NULL;
4948 yzhang 1.1 }
4949    
4950    
4951 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteProgramType(PyObject *self, PyObject *args) {
4952     PyObject *resultobj;
4953     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
4954     std::string *arg2 = 0 ;
4955     int result;
4956     std::string temp2 ;
4957     PyObject * obj0 = 0 ;
4958     PyObject * obj1 = 0 ;
4959    
4960     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteProgramType",&obj0,&obj1)) goto fail;
4961     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4962     {
4963     if (PyString_Check(obj1)) {
4964     temp2 = std::string(PyString_AsString(obj1));
4965     arg2 = &temp2;
4966     }else {
4967     SWIG_exception(SWIG_TypeError, "string expected");
4968     }
4969 gcodispo 1.9 }
4970 gcodispo 1.10 {
4971     try {
4972     result = (int)(arg1)->deleteProgramType((std::string const &)*arg2);
4973    
4974     }catch (const std::exception& e) {
4975     SWIG_exception(SWIG_RuntimeError, e.what());
4976     }
4977 gcodispo 1.9 }
4978 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4979     return resultobj;
4980     fail:
4981     return NULL;
4982 yzhang 1.1 }
4983    
4984    
4985 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteRTMon(PyObject *self, PyObject *args) {
4986     PyObject *resultobj;
4987     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
4988     std::string *arg2 = 0 ;
4989     int result;
4990     std::string temp2 ;
4991     PyObject * obj0 = 0 ;
4992     PyObject * obj1 = 0 ;
4993    
4994     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteRTMon",&obj0,&obj1)) goto fail;
4995     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4996     {
4997     if (PyString_Check(obj1)) {
4998     temp2 = std::string(PyString_AsString(obj1));
4999     arg2 = &temp2;
5000     }else {
5001     SWIG_exception(SWIG_TypeError, "string expected");
5002     }
5003 yzhang 1.1 }
5004 gcodispo 1.10 {
5005     try {
5006     result = (int)(arg1)->deleteRTMon((std::string const &)*arg2);
5007    
5008     }catch (const std::exception& e) {
5009     SWIG_exception(SWIG_RuntimeError, e.what());
5010     }
5011 yzhang 1.1 }
5012 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5013     return resultobj;
5014     fail:
5015     return NULL;
5016 yzhang 1.1 }
5017    
5018    
5019 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteScheduler(PyObject *self, PyObject *args) {
5020     PyObject *resultobj;
5021     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5022     std::string *arg2 = 0 ;
5023     int result;
5024     std::string temp2 ;
5025     PyObject * obj0 = 0 ;
5026     PyObject * obj1 = 0 ;
5027    
5028     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteScheduler",&obj0,&obj1)) goto fail;
5029     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5030     {
5031     if (PyString_Check(obj1)) {
5032     temp2 = std::string(PyString_AsString(obj1));
5033     arg2 = &temp2;
5034     }else {
5035     SWIG_exception(SWIG_TypeError, "string expected");
5036     }
5037 gcodispo 1.9 }
5038 gcodispo 1.10 {
5039     try {
5040     result = (int)(arg1)->deleteScheduler((std::string const &)*arg2);
5041    
5042     }catch (const std::exception& e) {
5043     SWIG_exception(SWIG_RuntimeError, e.what());
5044     }
5045 yzhang 1.1 }
5046 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5047     return resultobj;
5048     fail:
5049     return NULL;
5050 yzhang 1.1 }
5051    
5052    
5053 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerCHTool(PyObject *self, PyObject *args) {
5054     PyObject *resultobj;
5055     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5056     std::string *arg2 = 0 ;
5057     std::string arg3 = (std::string) "NULL" ;
5058     std::string arg4 = (std::string) "NULL" ;
5059     bool arg5 = (bool) false ;
5060     bool arg6 = (bool) false ;
5061     int result;
5062     std::string temp2 ;
5063     PyObject * obj0 = 0 ;
5064     PyObject * obj1 = 0 ;
5065     PyObject * obj2 = 0 ;
5066     PyObject * obj3 = 0 ;
5067     PyObject * obj4 = 0 ;
5068     PyObject * obj5 = 0 ;
5069    
5070     if(!PyArg_ParseTuple(args,(char *)"OO|OOOO:BossAdministratorSession_registerCHTool",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5071     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5072     {
5073     if (PyString_Check(obj1)) {
5074     temp2 = std::string(PyString_AsString(obj1));
5075     arg2 = &temp2;
5076     }else {
5077     SWIG_exception(SWIG_TypeError, "string expected");
5078     }
5079 gcodispo 1.9 }
5080 gcodispo 1.10 if (obj2) {
5081     {
5082     if (PyString_Check(obj2))
5083     arg3 = std::string(PyString_AsString(obj2));
5084     else
5085     SWIG_exception(SWIG_TypeError, "string expected");
5086 yzhang 1.1 }
5087     }
5088 gcodispo 1.10 if (obj3) {
5089     {
5090     if (PyString_Check(obj3))
5091     arg4 = std::string(PyString_AsString(obj3));
5092     else
5093     SWIG_exception(SWIG_TypeError, "string expected");
5094 gcodispo 1.3 }
5095 yzhang 1.1 }
5096 gcodispo 1.10 if (obj4) {
5097     arg5 = PyInt_AsLong(obj4) ? true : false;
5098     if (PyErr_Occurred()) SWIG_fail;
5099 gcodispo 1.3 }
5100 gcodispo 1.10 if (obj5) {
5101     arg6 = PyInt_AsLong(obj5) ? true : false;
5102     if (PyErr_Occurred()) SWIG_fail;
5103 gcodispo 1.3 }
5104 gcodispo 1.10 {
5105     try {
5106     result = (int)(arg1)->registerCHTool((std::string const &)*arg2,arg3,arg4,arg5,arg6);
5107    
5108     }catch (const std::exception& e) {
5109     SWIG_exception(SWIG_RuntimeError, e.what());
5110 yzhang 1.1 }
5111     }
5112 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5113     return resultobj;
5114     fail:
5115     return NULL;
5116     }
5117    
5118    
5119     static PyObject *_wrap_BossAdministratorSession_registerProgram(PyObject *self, PyObject *args) {
5120     PyObject *resultobj;
5121     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5122     std::string *arg2 = 0 ;
5123     std::string arg3 = (std::string) "NULL" ;
5124     std::string arg4 = (std::string) "NULL" ;
5125     std::string arg5 = (std::string) "NULL" ;
5126     std::string arg6 = (std::string) "NULL" ;
5127     std::string arg7 = (std::string) "" ;
5128     bool arg8 = (bool) false ;
5129     int result;
5130     std::string temp2 ;
5131     PyObject * obj0 = 0 ;
5132     PyObject * obj1 = 0 ;
5133     PyObject * obj2 = 0 ;
5134     PyObject * obj3 = 0 ;
5135     PyObject * obj4 = 0 ;
5136     PyObject * obj5 = 0 ;
5137     PyObject * obj6 = 0 ;
5138     PyObject * obj7 = 0 ;
5139    
5140     if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOO:BossAdministratorSession_registerProgram",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5141     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5142     {
5143     if (PyString_Check(obj1)) {
5144     temp2 = std::string(PyString_AsString(obj1));
5145     arg2 = &temp2;
5146     }else {
5147     SWIG_exception(SWIG_TypeError, "string expected");
5148 gcodispo 1.3 }
5149 yzhang 1.1 }
5150 gcodispo 1.10 if (obj2) {
5151     {
5152     if (PyString_Check(obj2))
5153     arg3 = std::string(PyString_AsString(obj2));
5154     else
5155     SWIG_exception(SWIG_TypeError, "string expected");
5156 gcodispo 1.3 }
5157     }
5158 gcodispo 1.10 if (obj3) {
5159     {
5160     if (PyString_Check(obj3))
5161     arg4 = std::string(PyString_AsString(obj3));
5162     else
5163     SWIG_exception(SWIG_TypeError, "string expected");
5164 gcodispo 1.3 }
5165     }
5166 gcodispo 1.10 if (obj4) {
5167     {
5168     if (PyString_Check(obj4))
5169     arg5 = std::string(PyString_AsString(obj4));
5170     else
5171     SWIG_exception(SWIG_TypeError, "string expected");
5172 gcodispo 1.3 }
5173     }
5174 gcodispo 1.10 if (obj5) {
5175     {
5176     if (PyString_Check(obj5))
5177     arg6 = std::string(PyString_AsString(obj5));
5178     else
5179     SWIG_exception(SWIG_TypeError, "string expected");
5180 gcodispo 1.3 }
5181     }
5182 gcodispo 1.10 if (obj6) {
5183     {
5184     if (PyString_Check(obj6))
5185     arg7 = std::string(PyString_AsString(obj6));
5186     else
5187     SWIG_exception(SWIG_TypeError, "string expected");
5188 gcodispo 1.3 }
5189     }
5190 gcodispo 1.10 if (obj7) {
5191     arg8 = PyInt_AsLong(obj7) ? true : false;
5192     if (PyErr_Occurred()) SWIG_fail;
5193 yzhang 1.1 }
5194 gcodispo 1.10 {
5195     try {
5196     result = (int)(arg1)->registerProgram((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
5197    
5198     }catch (const std::exception& e) {
5199     SWIG_exception(SWIG_RuntimeError, e.what());
5200 gcodispo 1.3 }
5201 yzhang 1.1 }
5202 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5203     return resultobj;
5204     fail:
5205     return NULL;
5206 yzhang 1.1 }
5207    
5208    
5209 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerRTMon(PyObject *self, PyObject *args) {
5210     PyObject *resultobj;
5211     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5212     std::string *arg2 = 0 ;
5213     std::string arg3 = (std::string) "NULL" ;
5214     std::string arg4 = (std::string) "NULL" ;
5215     std::string arg5 = (std::string) "NULL" ;
5216     bool arg6 = (bool) false ;
5217     bool arg7 = (bool) false ;
5218     int result;
5219     std::string temp2 ;
5220     PyObject * obj0 = 0 ;
5221     PyObject * obj1 = 0 ;
5222     PyObject * obj2 = 0 ;
5223     PyObject * obj3 = 0 ;
5224     PyObject * obj4 = 0 ;
5225     PyObject * obj5 = 0 ;
5226     PyObject * obj6 = 0 ;
5227    
5228     if(!PyArg_ParseTuple(args,(char *)"OO|OOOOO:BossAdministratorSession_registerRTMon",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5229     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5230     {
5231     if (PyString_Check(obj1)) {
5232     temp2 = std::string(PyString_AsString(obj1));
5233     arg2 = &temp2;
5234     }else {
5235     SWIG_exception(SWIG_TypeError, "string expected");
5236     }
5237     }
5238     if (obj2) {
5239     {
5240     if (PyString_Check(obj2))
5241     arg3 = std::string(PyString_AsString(obj2));
5242     else
5243     SWIG_exception(SWIG_TypeError, "string expected");
5244     }
5245     }
5246     if (obj3) {
5247     {
5248     if (PyString_Check(obj3))
5249     arg4 = std::string(PyString_AsString(obj3));
5250     else
5251     SWIG_exception(SWIG_TypeError, "string expected");
5252     }
5253 gcodispo 1.3 }
5254 gcodispo 1.10 if (obj4) {
5255     {
5256     if (PyString_Check(obj4))
5257     arg5 = std::string(PyString_AsString(obj4));
5258     else
5259     SWIG_exception(SWIG_TypeError, "string expected");
5260     }
5261 gcodispo 1.3 }
5262 gcodispo 1.10 if (obj5) {
5263     arg6 = PyInt_AsLong(obj5) ? true : false;
5264     if (PyErr_Occurred()) SWIG_fail;
5265 gcodispo 1.3 }
5266 gcodispo 1.10 if (obj6) {
5267     arg7 = PyInt_AsLong(obj6) ? true : false;
5268     if (PyErr_Occurred()) SWIG_fail;
5269 yzhang 1.1 }
5270 gcodispo 1.10 {
5271     try {
5272     result = (int)(arg1)->registerRTMon((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7);
5273    
5274     }catch (const std::exception& e) {
5275     SWIG_exception(SWIG_RuntimeError, e.what());
5276     }
5277 yzhang 1.1 }
5278 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5279     return resultobj;
5280     fail:
5281     return NULL;
5282 yzhang 1.1 }
5283    
5284    
5285 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerScheduler(PyObject *self, PyObject *args) {
5286     PyObject *resultobj;
5287     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5288     std::string *arg2 = 0 ;
5289     std::string arg3 = (std::string) "NULL" ;
5290     std::string arg4 = (std::string) "NULL" ;
5291     std::string arg5 = (std::string) "NULL" ;
5292     std::string arg6 = (std::string) "NULL" ;
5293     std::string arg7 = (std::string) "" ;
5294     std::string arg8 = (std::string) "" ;
5295     std::string arg9 = (std::string) "" ;
5296     std::string arg10 = (std::string) "" ;
5297     std::string const &arg11_defvalue = "" ;
5298     std::string *arg11 = (std::string *) &arg11_defvalue ;
5299     std::string arg12 = (std::string) "" ;
5300     std::string arg13 = (std::string) "" ;
5301     bool arg14 = (bool) false ;
5302     bool arg15 = (bool) false ;
5303     int result;
5304     std::string temp2 ;
5305     std::string temp11 ;
5306     PyObject * obj0 = 0 ;
5307     PyObject * obj1 = 0 ;
5308     PyObject * obj2 = 0 ;
5309     PyObject * obj3 = 0 ;
5310     PyObject * obj4 = 0 ;
5311     PyObject * obj5 = 0 ;
5312     PyObject * obj6 = 0 ;
5313     PyObject * obj7 = 0 ;
5314     PyObject * obj8 = 0 ;
5315     PyObject * obj9 = 0 ;
5316     PyObject * obj10 = 0 ;
5317     PyObject * obj11 = 0 ;
5318     PyObject * obj12 = 0 ;
5319     PyObject * obj13 = 0 ;
5320     PyObject * obj14 = 0 ;
5321    
5322     if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOOOOOOOOO:BossAdministratorSession_registerScheduler",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14)) goto fail;
5323     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5324     {
5325     if (PyString_Check(obj1)) {
5326     temp2 = std::string(PyString_AsString(obj1));
5327     arg2 = &temp2;
5328     }else {
5329     SWIG_exception(SWIG_TypeError, "string expected");
5330     }
5331     }
5332     if (obj2) {
5333     {
5334     if (PyString_Check(obj2))
5335     arg3 = std::string(PyString_AsString(obj2));
5336     else
5337     SWIG_exception(SWIG_TypeError, "string expected");
5338     }
5339     }
5340     if (obj3) {
5341     {
5342     if (PyString_Check(obj3))
5343     arg4 = std::string(PyString_AsString(obj3));
5344     else
5345     SWIG_exception(SWIG_TypeError, "string expected");
5346     }
5347     }
5348     if (obj4) {
5349     {
5350     if (PyString_Check(obj4))
5351     arg5 = std::string(PyString_AsString(obj4));
5352     else
5353     SWIG_exception(SWIG_TypeError, "string expected");
5354     }
5355 gcodispo 1.3 }
5356 gcodispo 1.10 if (obj5) {
5357 gcodispo 1.3 {
5358 gcodispo 1.10 if (PyString_Check(obj5))
5359     arg6 = std::string(PyString_AsString(obj5));
5360     else
5361     SWIG_exception(SWIG_TypeError, "string expected");
5362 gcodispo 1.3 }
5363 gcodispo 1.10 }
5364     if (obj6) {
5365     {
5366     if (PyString_Check(obj6))
5367     arg7 = std::string(PyString_AsString(obj6));
5368     else
5369     SWIG_exception(SWIG_TypeError, "string expected");
5370 gcodispo 1.3 }
5371     }
5372 gcodispo 1.10 if (obj7) {
5373     {
5374     if (PyString_Check(obj7))
5375     arg8 = std::string(PyString_AsString(obj7));
5376     else
5377     SWIG_exception(SWIG_TypeError, "string expected");
5378     }
5379 gcodispo 1.3 }
5380 gcodispo 1.10 if (obj8) {
5381     {
5382     if (PyString_Check(obj8))
5383     arg9 = std::string(PyString_AsString(obj8));
5384     else
5385     SWIG_exception(SWIG_TypeError, "string expected");
5386     }
5387 gcodispo 1.3 }
5388 gcodispo 1.10 if (obj9) {
5389     {
5390     if (PyString_Check(obj9))
5391     arg10 = std::string(PyString_AsString(obj9));
5392     else
5393     SWIG_exception(SWIG_TypeError, "string expected");
5394     }
5395 gcodispo 1.3 }
5396 gcodispo 1.10 if (obj10) {
5397     {
5398     if (PyString_Check(obj10)) {
5399     temp11 = std::string(PyString_AsString(obj10));
5400     arg11 = &temp11;
5401     }else {
5402     SWIG_exception(SWIG_TypeError, "string expected");
5403     }
5404     }
5405 gcodispo 1.3 }
5406 gcodispo 1.10 if (obj11) {
5407     {
5408     if (PyString_Check(obj11))
5409     arg12 = std::string(PyString_AsString(obj11));
5410     else
5411     SWIG_exception(SWIG_TypeError, "string expected");
5412     }
5413 gcodispo 1.3 }
5414 gcodispo 1.10 if (obj12) {
5415     {
5416     if (PyString_Check(obj12))
5417     arg13 = std::string(PyString_AsString(obj12));
5418     else
5419     SWIG_exception(SWIG_TypeError, "string expected");
5420     }
5421 gcodispo 1.3 }
5422 gcodispo 1.10 if (obj13) {
5423     arg14 = PyInt_AsLong(obj13) ? true : false;
5424     if (PyErr_Occurred()) SWIG_fail;
5425 gcodispo 1.3 }
5426 gcodispo 1.10 if (obj14) {
5427     arg15 = PyInt_AsLong(obj14) ? true : false;
5428     if (PyErr_Occurred()) SWIG_fail;
5429 gcodispo 1.3 }
5430 gcodispo 1.10 {
5431     try {
5432     result = (int)(arg1)->registerScheduler((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(std::string const &)*arg11,arg12,arg13,arg14,arg15);
5433    
5434     }catch (const std::exception& e) {
5435     SWIG_exception(SWIG_RuntimeError, e.what());
5436     }
5437 yzhang 1.1 }
5438 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5439     return resultobj;
5440     fail:
5441     return NULL;
5442 yzhang 1.1 }
5443    
5444    
5445 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_help(PyObject *self, PyObject *args) {
5446     PyObject *resultobj;
5447     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5448     std::string result;
5449     PyObject * obj0 = 0 ;
5450    
5451     if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_help",&obj0)) goto fail;
5452     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5453     {
5454     try {
5455     result = (arg1)->help();
5456    
5457     }catch (const std::exception& e) {
5458     SWIG_exception(SWIG_RuntimeError, e.what());
5459     }
5460 gcodispo 1.9 }
5461 gcodispo 1.10 {
5462     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
5463 yzhang 1.1 }
5464 gcodispo 1.10 return resultobj;
5465     fail:
5466     return NULL;
5467     }
5468    
5469    
5470     static PyObject *_wrap_BossAdministratorSession_SQL(PyObject *self, PyObject *args) {
5471     PyObject *resultobj;
5472     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5473     std::string arg2 ;
5474     bool arg3 = (bool) false ;
5475     std::string result;
5476     PyObject * obj0 = 0 ;
5477     PyObject * obj1 = 0 ;
5478     PyObject * obj2 = 0 ;
5479    
5480     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossAdministratorSession_SQL",&obj0,&obj1,&obj2)) goto fail;
5481     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5482     {
5483     if (PyString_Check(obj1))
5484     arg2 = std::string(PyString_AsString(obj1));
5485     else
5486     SWIG_exception(SWIG_TypeError, "string expected");
5487 yzhang 1.1 }
5488 gcodispo 1.10 if (obj2) {
5489     arg3 = PyInt_AsLong(obj2) ? true : false;
5490     if (PyErr_Occurred()) SWIG_fail;
5491 gcodispo 1.3 }
5492 gcodispo 1.10 {
5493     try {
5494     result = (arg1)->SQL(arg2,arg3);
5495    
5496     }catch (const std::exception& e) {
5497     SWIG_exception(SWIG_RuntimeError, e.what());
5498     }
5499 gcodispo 1.3 }
5500 gcodispo 1.10 {
5501     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
5502 yzhang 1.1 }
5503 gcodispo 1.10 return resultobj;
5504     fail:
5505     return NULL;
5506 yzhang 1.1 }
5507    
5508    
5509 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_purge(PyObject *self, PyObject *args) {
5510     PyObject *resultobj;
5511     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5512     std::string *arg2 = 0 ;
5513     std::string *arg3 = 0 ;
5514     std::string *arg4 = 0 ;
5515     std::string const &arg5_defvalue = "0" ;
5516     std::string *arg5 = (std::string *) &arg5_defvalue ;
5517     int result;
5518     std::string temp2 ;
5519     std::string temp3 ;
5520     std::string temp4 ;
5521     std::string temp5 ;
5522     PyObject * obj0 = 0 ;
5523     PyObject * obj1 = 0 ;
5524     PyObject * obj2 = 0 ;
5525     PyObject * obj3 = 0 ;
5526     PyObject * obj4 = 0 ;
5527    
5528     if(!PyArg_ParseTuple(args,(char *)"OOOO|O:BossAdministratorSession_purge",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5529     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5530     {
5531     if (PyString_Check(obj1)) {
5532     temp2 = std::string(PyString_AsString(obj1));
5533     arg2 = &temp2;
5534     }else {
5535     SWIG_exception(SWIG_TypeError, "string expected");
5536     }
5537     }
5538     {
5539     if (PyString_Check(obj2)) {
5540     temp3 = std::string(PyString_AsString(obj2));
5541     arg3 = &temp3;
5542     }else {
5543     SWIG_exception(SWIG_TypeError, "string expected");
5544     }
5545     }
5546     {
5547     if (PyString_Check(obj3)) {
5548     temp4 = std::string(PyString_AsString(obj3));
5549     arg4 = &temp4;
5550     }else {
5551     SWIG_exception(SWIG_TypeError, "string expected");
5552 gcodispo 1.5 }
5553     }
5554 gcodispo 1.10 if (obj4) {
5555     {
5556     if (PyString_Check(obj4)) {
5557     temp5 = std::string(PyString_AsString(obj4));
5558     arg5 = &temp5;
5559     }else {
5560     SWIG_exception(SWIG_TypeError, "string expected");
5561 gcodispo 1.9 }
5562 gcodispo 1.5 }
5563     }
5564 gcodispo 1.10 {
5565     try {
5566     result = (int)(arg1)->purge((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
5567    
5568     }catch (const std::exception& e) {
5569     SWIG_exception(SWIG_RuntimeError, e.what());
5570     }
5571     }
5572     resultobj = PyInt_FromLong((long)result);
5573     return resultobj;
5574     fail:
5575     return NULL;
5576 gcodispo 1.9 }
5577    
5578    
5579 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_configure(PyObject *self, PyObject *args) {
5580     PyObject *resultobj;
5581     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5582     std::string arg2 ;
5583     int result;
5584     PyObject * obj0 = 0 ;
5585     PyObject * obj1 = 0 ;
5586    
5587     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_configure",&obj0,&obj1)) goto fail;
5588     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5589     {
5590     if (PyString_Check(obj1))
5591     arg2 = std::string(PyString_AsString(obj1));
5592     else
5593     SWIG_exception(SWIG_TypeError, "string expected");
5594 gcodispo 1.5 }
5595 gcodispo 1.10 {
5596     try {
5597     result = (int)(arg1)->configure(arg2);
5598    
5599     }catch (const std::exception& e) {
5600     SWIG_exception(SWIG_RuntimeError, e.what());
5601     }
5602 gcodispo 1.3 }
5603 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5604     return resultobj;
5605     fail:
5606     return NULL;
5607 yzhang 1.1 }
5608    
5609    
5610 gcodispo 1.10 static PyObject * BossAdministratorSession_swigregister(PyObject *self, PyObject *args) {
5611     PyObject *obj;
5612     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5613     SWIG_TypeClientData(SWIGTYPE_p_BossAdministratorSession, obj);
5614     Py_INCREF(obj);
5615     return Py_BuildValue((char *)"");
5616 yzhang 1.1 }
5617     static PyMethodDef SwigMethods[] = {
5618 gcodispo 1.10 { (char *)"new_objectMap", _wrap_new_objectMap, METH_VARARGS },
5619     { (char *)"objectMap___len__", _wrap_objectMap___len__, METH_VARARGS },
5620     { (char *)"objectMap_clear", _wrap_objectMap_clear, METH_VARARGS },
5621     { (char *)"objectMap___nonzero__", _wrap_objectMap___nonzero__, METH_VARARGS },
5622     { (char *)"objectMap___getitem__", _wrap_objectMap___getitem__, METH_VARARGS },
5623     { (char *)"objectMap___setitem__", _wrap_objectMap___setitem__, METH_VARARGS },
5624     { (char *)"objectMap___delitem__", _wrap_objectMap___delitem__, METH_VARARGS },
5625     { (char *)"objectMap_has_key", _wrap_objectMap_has_key, METH_VARARGS },
5626     { (char *)"objectMap_keys", _wrap_objectMap_keys, METH_VARARGS },
5627     { (char *)"objectMap_values", _wrap_objectMap_values, METH_VARARGS },
5628     { (char *)"objectMap_items", _wrap_objectMap_items, METH_VARARGS },
5629     { (char *)"objectMap___contains__", _wrap_objectMap___contains__, METH_VARARGS },
5630     { (char *)"objectMap___iter__", _wrap_objectMap___iter__, METH_VARARGS },
5631     { (char *)"delete_objectMap", _wrap_delete_objectMap, METH_VARARGS },
5632     { (char *)"objectMap_swigregister", objectMap_swigregister, METH_VARARGS },
5633     { (char *)"new_vector_string", _wrap_new_vector_string, METH_VARARGS },
5634     { (char *)"vector_string___len__", _wrap_vector_string___len__, METH_VARARGS },
5635     { (char *)"vector_string___nonzero__", _wrap_vector_string___nonzero__, METH_VARARGS },
5636     { (char *)"vector_string_clear", _wrap_vector_string_clear, METH_VARARGS },
5637     { (char *)"vector_string_append", _wrap_vector_string_append, METH_VARARGS },
5638     { (char *)"vector_string_pop", _wrap_vector_string_pop, METH_VARARGS },
5639     { (char *)"vector_string___getitem__", _wrap_vector_string___getitem__, METH_VARARGS },
5640     { (char *)"vector_string___getslice__", _wrap_vector_string___getslice__, METH_VARARGS },
5641     { (char *)"vector_string___setitem__", _wrap_vector_string___setitem__, METH_VARARGS },
5642     { (char *)"vector_string___setslice__", _wrap_vector_string___setslice__, METH_VARARGS },
5643     { (char *)"vector_string___delitem__", _wrap_vector_string___delitem__, METH_VARARGS },
5644     { (char *)"vector_string___delslice__", _wrap_vector_string___delslice__, METH_VARARGS },
5645     { (char *)"delete_vector_string", _wrap_delete_vector_string, METH_VARARGS },
5646     { (char *)"vector_string_swigregister", vector_string_swigregister, METH_VARARGS },
5647     { (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS },
5648     { (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS },
5649     { (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS },
5650     { (char *)"BossSession_RTMons", _wrap_BossSession_RTMons, METH_VARARGS },
5651     { (char *)"BossSession_schedulers", _wrap_BossSession_schedulers, METH_VARARGS },
5652     { (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS },
5653     { (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS },
5654     { (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS },
5655     { (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS },
5656     { (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS },
5657     { (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS },
5658     { (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS },
5659     { (char *)"BossSession_defaultCHTool", _wrap_BossSession_defaultCHTool, METH_VARARGS },
5660     { (char *)"BossSession_defaultProgramType", _wrap_BossSession_defaultProgramType, METH_VARARGS },
5661     { (char *)"BossSession_defaultRTMon", _wrap_BossSession_defaultRTMon, METH_VARARGS },
5662     { (char *)"BossSession_defaultScheduler", _wrap_BossSession_defaultScheduler, METH_VARARGS },
5663     { (char *)"BossSession_version", _wrap_BossSession_version, METH_VARARGS },
5664     { (char *)"BossSession_clientID", _wrap_BossSession_clientID, METH_VARARGS },
5665     { (char *)"BossSession_showConfigs", _wrap_BossSession_showConfigs, METH_VARARGS },
5666     { (char *)"BossSession_RTupdate", _wrap_BossSession_RTupdate, METH_VARARGS },
5667     { (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS },
5668     { (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS },
5669     { (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS },
5670     { (char *)"BossSession_query", _wrap_BossSession_query, METH_VARARGS },
5671     { (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS },
5672     { (char *)"BossTaskException_key_set", _wrap_BossTaskException_key_set, METH_VARARGS },
5673     { (char *)"BossTaskException_key_get", _wrap_BossTaskException_key_get, METH_VARARGS },
5674     { (char *)"new_BossTaskException", _wrap_new_BossTaskException, METH_VARARGS },
5675     { (char *)"BossTaskException_what", _wrap_BossTaskException_what, METH_VARARGS },
5676     { (char *)"delete_BossTaskException", _wrap_delete_BossTaskException, METH_VARARGS },
5677     { (char *)"BossTaskException_swigregister", BossTaskException_swigregister, METH_VARARGS },
5678     { (char *)"BossTask_appendToPyDict", _wrap_BossTask_appendToPyDict, METH_VARARGS },
5679     { (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS },
5680     { (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS },
5681     { (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS },
5682     { (char *)"BossTask_jobPrograms", _wrap_BossTask_jobPrograms, METH_VARARGS },
5683     { (char *)"delete_BossTask", _wrap_delete_BossTask, METH_VARARGS },
5684     { (char *)"new_BossTask", _wrap_new_BossTask, METH_VARARGS },
5685     { (char *)"BossTask_id", _wrap_BossTask_id, METH_VARARGS },
5686     { (char *)"BossTask_name", _wrap_BossTask_name, METH_VARARGS },
5687     { (char *)"BossTask_taskMap", _wrap_BossTask_taskMap, METH_VARARGS },
5688     { (char *)"BossTask_job_begin", _wrap_BossTask_job_begin, METH_VARARGS },
5689     { (char *)"BossTask_job_end", _wrap_BossTask_job_end, METH_VARARGS },
5690     { (char *)"BossTask_jobsMap", _wrap_BossTask_jobsMap, METH_VARARGS },
5691     { (char *)"BossTask_jobMap", _wrap_BossTask_jobMap, METH_VARARGS },
5692     { (char *)"BossTask_programsMap", _wrap_BossTask_programsMap, METH_VARARGS },
5693     { (char *)"BossTask_queryJobPrograms", _wrap_BossTask_queryJobPrograms, METH_VARARGS },
5694     { (char *)"BossTask_declare", _wrap_BossTask_declare, METH_VARARGS },
5695     { (char *)"BossTask_remove", _wrap_BossTask_remove, METH_VARARGS },
5696     { (char *)"BossTask_archive", _wrap_BossTask_archive, METH_VARARGS },
5697     { (char *)"BossTask_submit", _wrap_BossTask_submit, METH_VARARGS },
5698     { (char *)"BossTask_reSubmit", _wrap_BossTask_reSubmit, METH_VARARGS },
5699     { (char *)"BossTask_kill", _wrap_BossTask_kill, METH_VARARGS },
5700     { (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS },
5701     { (char *)"BossTask_getAllOutput", _wrap_BossTask_getAllOutput, METH_VARARGS },
5702     { (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS },
5703     { (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS },
5704     { (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS },
5705     { (char *)"BossTask_swigregister", BossTask_swigregister, METH_VARARGS },
5706     { (char *)"prompt", _wrap_prompt, METH_VARARGS },
5707     { (char *)"new_BossAdministratorSession", _wrap_new_BossAdministratorSession, METH_VARARGS },
5708     { (char *)"delete_BossAdministratorSession", _wrap_delete_BossAdministratorSession, METH_VARARGS },
5709     { (char *)"BossAdministratorSession_configureDB", _wrap_BossAdministratorSession_configureDB, METH_VARARGS },
5710     { (char *)"BossAdministratorSession_configureRTMonDB", _wrap_BossAdministratorSession_configureRTMonDB, METH_VARARGS },
5711     { (char *)"BossAdministratorSession_deleteCHTool", _wrap_BossAdministratorSession_deleteCHTool, METH_VARARGS },
5712     { (char *)"BossAdministratorSession_deleteProgramType", _wrap_BossAdministratorSession_deleteProgramType, METH_VARARGS },
5713     { (char *)"BossAdministratorSession_deleteRTMon", _wrap_BossAdministratorSession_deleteRTMon, METH_VARARGS },
5714     { (char *)"BossAdministratorSession_deleteScheduler", _wrap_BossAdministratorSession_deleteScheduler, METH_VARARGS },
5715     { (char *)"BossAdministratorSession_registerCHTool", _wrap_BossAdministratorSession_registerCHTool, METH_VARARGS },
5716     { (char *)"BossAdministratorSession_registerProgram", _wrap_BossAdministratorSession_registerProgram, METH_VARARGS },
5717     { (char *)"BossAdministratorSession_registerRTMon", _wrap_BossAdministratorSession_registerRTMon, METH_VARARGS },
5718     { (char *)"BossAdministratorSession_registerScheduler", _wrap_BossAdministratorSession_registerScheduler, METH_VARARGS },
5719     { (char *)"BossAdministratorSession_help", _wrap_BossAdministratorSession_help, METH_VARARGS },
5720     { (char *)"BossAdministratorSession_SQL", _wrap_BossAdministratorSession_SQL, METH_VARARGS },
5721     { (char *)"BossAdministratorSession_purge", _wrap_BossAdministratorSession_purge, METH_VARARGS },
5722     { (char *)"BossAdministratorSession_configure", _wrap_BossAdministratorSession_configure, METH_VARARGS },
5723     { (char *)"BossAdministratorSession_swigregister", BossAdministratorSession_swigregister, METH_VARARGS },
5724     { NULL, NULL }
5725 yzhang 1.1 };
5726    
5727    
5728     /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
5729    
5730 gcodispo 1.10 static swig_type_info _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t[] = {{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t", 0, "std::vector<std::pair<BossProgram,BossProgramExec > > *", 0},{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t"},{0}};
5731     static swig_type_info _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator[] = {{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator", 0, "std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *", 0},{"_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator"},{0}};
5732     static swig_type_info _swigt__p_XMLDoc[] = {{"_p_XMLDoc", 0, "XMLDoc *", 0},{"_p_XMLDoc"},{0}};
5733     static swig_type_info _swigt__p_std__vectorTBossTask_p_t[] = {{"_p_std__vectorTBossTask_p_t", 0, "std::vector<BossTask * > *", 0},{"_p_std__vectorTBossTask_p_t"},{0}};
5734     static swig_type_info _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t[] = {{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t", 0, "std::map<std::string,std::map<std::string,std::string > > *", 0},{"_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t"},{0}};
5735     static swig_type_info _swigt__p_BossTask[] = {{"_p_BossTask", 0, "BossTask *", 0},{"_p_BossTask"},{0}};
5736     static swig_type_info _swigt__p_BossTaskException[] = {{"_p_BossTaskException", 0, "BossTaskException *", 0},{"_p_BossTaskException"},{0}};
5737     static swig_type_info _swigt__p_std__ostream[] = {{"_p_std__ostream", 0, "std::ostream *", 0},{"_p_std__ostream"},{0}};
5738     static swig_type_info _swigt__p_BossAttributeContainer[] = {{"_p_BossAttributeContainer", 0, "BossAttributeContainer *", 0},{"_p_BossAttributeContainer"},{0}};
5739     static swig_type_info _swigt__p_printOption[] = {{"_p_printOption", 0, "printOption const &", 0},{"_p_printOption"},{0}};
5740     static swig_type_info _swigt__p_BossJob[] = {{"_p_BossJob", 0, "BossJob *", 0},{"_p_BossJob"},{0}};
5741     static swig_type_info _swigt__p_BossDatabase[] = {{"_p_BossDatabase", 0, "BossDatabase *", 0},{"_p_BossDatabase"},{0}};
5742     static swig_type_info _swigt__p_BossSession[] = {{"_p_BossSession", 0, "BossSession *", 0},{"_p_BossSession"},{0}};
5743     static swig_type_info _swigt__p_std__vectorTstd__string_t[] = {{"_p_std__vectorTstd__string_t", 0, "std::vector<std::string > *", 0},{"_p_std__vectorTstd__string_t"},{0}};
5744     static swig_type_info _swigt__p_std__mapTstd__string_std__string_t[] = {{"_p_std__mapTstd__string_std__string_t", 0, "std::map<std::string,std::string > *", 0},{"_p_std__mapTstd__string_std__string_t"},{0}};
5745     static swig_type_info _swigt__p_BossAdministratorSession[] = {{"_p_BossAdministratorSession", 0, "BossAdministratorSession *", 0},{"_p_BossAdministratorSession"},{0}};
5746     static swig_type_info _swigt__p_BossTask__job_iterator[] = {{"_p_BossTask__job_iterator", 0, "BossTask::job_iterator const *", 0},{"_p_BossTask__job_iterator"},{"_p_std__vectorTBossJob_p_t__const_iterator"},{0}};
5747     static swig_type_info _swigt__p_std__vectorTBossJob_p_t__const_iterator[] = {{"_p_std__vectorTBossJob_p_t__const_iterator", 0, "std::vector<BossJob * >::const_iterator *", 0},{"_p_std__vectorTBossJob_p_t__const_iterator"},{"_p_BossTask__job_iterator"},{0}};
5748     static swig_type_info _swigt__p_jobStates[] = {{"_p_jobStates", 0, "jobStates const &", 0},{"_p_jobStates"},{0}};
5749    
5750     static swig_type_info *swig_types_initial[] = {
5751     _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t,
5752     _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,
5753     _swigt__p_XMLDoc,
5754     _swigt__p_std__vectorTBossTask_p_t,
5755     _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t,
5756     _swigt__p_BossTask,
5757     _swigt__p_BossTaskException,
5758     _swigt__p_std__ostream,
5759     _swigt__p_BossAttributeContainer,
5760     _swigt__p_printOption,
5761     _swigt__p_BossJob,
5762     _swigt__p_BossDatabase,
5763     _swigt__p_BossSession,
5764     _swigt__p_std__vectorTstd__string_t,
5765     _swigt__p_std__mapTstd__string_std__string_t,
5766     _swigt__p_BossAdministratorSession,
5767     _swigt__p_BossTask__job_iterator,
5768     _swigt__p_std__vectorTBossJob_p_t__const_iterator,
5769     _swigt__p_jobStates,
5770     0
5771 yzhang 1.1 };
5772    
5773    
5774     /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
5775    
5776     static swig_const_info swig_const_table[] = {
5777 gcodispo 1.10 { SWIG_PY_INT, (char *)"RUNNING", (long) RUNNING, 0, 0, 0},
5778     { SWIG_PY_INT, (char *)"SCHEDULED", (long) SCHEDULED, 0, 0, 0},
5779     { SWIG_PY_INT, (char *)"SUBMITTED", (long) SUBMITTED, 0, 0, 0},
5780     { SWIG_PY_INT, (char *)"ALL", (long) ALL, 0, 0, 0},
5781     { SWIG_PY_INT, (char *)"STATUS_ONLY", (long) STATUS_ONLY, 0, 0, 0},
5782     { SWIG_PY_INT, (char *)"NORMAL", (long) NORMAL, 0, 0, 0},
5783     { SWIG_PY_INT, (char *)"SPECIFIC", (long) SPECIFIC, 0, 0, 0},
5784     { SWIG_PY_INT, (char *)"PROGRAMS", (long) PROGRAMS, 0, 0, 0},
5785     { SWIG_PY_INT, (char *)"FULL", (long) FULL, 0, 0, 0},
5786     {0}};
5787 yzhang 1.1
5788     #ifdef __cplusplus
5789     }
5790     #endif
5791    
5792     #ifdef __cplusplus
5793 gcodispo 1.10 extern "C"
5794 gcodispo 1.9 #endif
5795 gcodispo 1.10 SWIGEXPORT(void) SWIG_init(void) {
5796     static PyObject *SWIG_globals = 0;
5797     static int typeinit = 0;
5798     PyObject *m, *d;
5799     int i;
5800     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
5801     m = Py_InitModule((char *) SWIG_name, SwigMethods);
5802     d = PyModule_GetDict(m);
5803 gcodispo 1.9
5804 gcodispo 1.10 if (!typeinit) {
5805     for (i = 0; swig_types_initial[i]; i++) {
5806     swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
5807     }
5808     typeinit = 1;
5809 gcodispo 1.9 }
5810 gcodispo 1.10 SWIG_InstallConstants(d,swig_const_table);
5811 yzhang 1.1
5812     }
5813