ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
Revision: 1.26
Committed: Thu Mar 8 11:06:25 2007 UTC (18 years, 1 month ago) by gcodispo
Content type: text/plain
Branch: MAIN
Changes since 1.25: +161 -71 lines
Log Message:
Added query jobs by taskName and jobName

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.19 #define SWIGTYPE_p_XMLDoc swig_types[0]
658     #define SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t swig_types[1]
659     #define SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator swig_types[2]
660 gcodispo 1.10 #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 gcodispo 1.19 #define SWIGTYPE_p_std__ostream swig_types[5]
663     #define SWIGTYPE_p_BossTask swig_types[6]
664     #define SWIGTYPE_p_BossTaskException swig_types[7]
665     #define SWIGTYPE_p_printOption swig_types[8]
666     #define SWIGTYPE_p_BossAttributeContainer swig_types[9]
667 gcodispo 1.10 #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 gcodispo 1.19 #define SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[16]
674     #define SWIGTYPE_p_BossTask__job_iterator swig_types[17]
675 gcodispo 1.10 #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.19 static PyObject * BossError;
921     static PyObject * SchedulerError;
922 gcodispo 1.10 #include "BossSession.h"
923     #include "BossAdministratorSession.h"
924     #include "BossTask.h"
925     #include "BossJob.h"
926     #include "BossTaskCore.h"
927     #include "BossAttributeContainer.h"
928     #include "BossDBObject.h"
929     #include "BossProgram.h"
930     #include "BossProgramExec.h"
931     #include "BossDatabase.h"
932 gcodispo 1.17 #include "BossScheduler.h"
933 gcodispo 1.19 #include "BossDeclaration.h"
934 gcodispo 1.9
935 gcodispo 1.10 PyObject *BossSession_show(BossSession *self,std::vector<std::string > &my_vec){
936     PyObject * my_list = PyList_New( my_vec.size());
937     unsigned int index = 0;
938     for ( std::vector<std::string>::const_iterator it = my_vec.begin ();
939     it != my_vec.end(); ++it, ++index) {
940     PyList_SetItem( my_list, index, PyString_FromString( it->c_str() ));
941 gcodispo 1.9 }
942 gcodispo 1.10 return my_list;
943 gcodispo 1.9 }
944 gcodispo 1.10 PyObject *BossSession_CHTools(BossSession *self){
945     std::vector<std::string> my_vec = self->showCHTools();
946     return BossSession_show( self, my_vec );
947 gcodispo 1.9 }
948 gcodispo 1.10 PyObject *BossSession_ProgramTypes(BossSession *self){
949     std::vector<std::string> my_vec = self->showProgramTypes();
950     return BossSession_show( self, my_vec );
951 gcodispo 1.9 }
952 gcodispo 1.10 PyObject *BossSession_RTMons(BossSession *self){
953     std::vector<std::string> my_vec = self->showRTMon();
954     return BossSession_show( self, my_vec );
955 gcodispo 1.9 }
956 gcodispo 1.10 PyObject *BossSession_schedulers(BossSession *self){
957     std::vector<std::string> my_vec = self->showSchedulers();
958     return BossSession_show( self, my_vec );
959 gcodispo 1.9 }
960 gcodispo 1.21 PyObject *BossSession_schedListMatch(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,unsigned int timeout,bool keepfile){
961 gcodispo 1.10 std::vector<std::string> my_vec = self->listMatch( scheduler,
962     schclassad,
963     keepfile,
964     taskid,
965 gcodispo 1.21 jobid,
966     timeout);
967 gcodispo 1.10 return BossSession_show( self, my_vec );
968 gcodispo 1.9 }
969 gcodispo 1.26 PyObject *BossSession_queryTasks(BossSession *self,std::string const &taskName,std::string const &taskRange,std::string after,std::string before,std::string user){
970     PyObject * task_list = PyList_New(0);
971     std::vector <std::string> taskList;
972     if ( taskName.empty() ) {
973     taskList = self->selectTasks( taskRange, before, after, user);
974     } else {
975     std::cout << "taskRange\n";
976     taskList = self->selectTasksByName( taskName );
977 gcodispo 1.25 }
978     for ( std::vector <std::string>::const_iterator it= taskList.begin();
979 gcodispo 1.10 it!= taskList.end(); ++it ) {
980 gcodispo 1.26 PyList_Append( task_list, PyString_FromString(it->c_str() ) );
981 gcodispo 1.10 }
982 gcodispo 1.26 return task_list;
983 gcodispo 1.25 }
984     void BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){
985     std::string tmp;
986     BossAttributeContainer::const_iterator it_end = obj.end ();
987     for (BossAttributeContainer::const_iterator it = obj.begin ();
988     it != it_end; ++it) {
989    
990     PyObject * key = PyString_FromString( (it->first.name()).c_str() );
991     PyObject * val = PyString_FromString( (*it).second.value ().c_str() );
992     PyDict_SetItem( dict, key, val);
993     Py_DECREF(key);
994     Py_DECREF(val);
995 gcodispo 1.9 }
996 gcodispo 1.25 return;
997     }
998     void BossTask_jobDict(BossTask const *self,std::vector<BossJob * >::const_iterator &jit,PyObject *job_dict){
999 gcodispo 1.9
1000 gcodispo 1.25 // PyObject * job_dict = PyDict_New();
1001 gcodispo 1.10 std::string tmp;
1002 gcodispo 1.9
1003 gcodispo 1.10 BossAttributeContainer obj = (*jit)->getTableEntries("JOB");
1004 gcodispo 1.25 BossTask_appendToPyDict ( self, job_dict, obj );
1005 gcodispo 1.9
1006 gcodispo 1.10 std::set<std::string> sch = (*jit)->getSchedulerElements();
1007     std::set<std::string>::const_iterator sch_end = sch.end();
1008     for (std::set<std::string>::const_iterator it =sch.begin();
1009     it != sch_end; ++ it ) {
1010 gcodispo 1.25
1011 gcodispo 1.10 tmp = (**jit)["JOB_SCHED_INFO."+(*it)];
1012 gcodispo 1.25 PyObject * key = PyString_FromString( it->c_str() );
1013     PyObject * val = PyString_FromString( tmp.c_str() );
1014     PyDict_SetItem( job_dict, key, val);
1015     Py_DECREF(key);
1016     Py_DECREF(val);
1017 gcodispo 1.9 }
1018 gcodispo 1.25 return;
1019 gcodispo 1.9 }
1020 gcodispo 1.12 PyObject *BossTask_jobsDict(BossTask *self){
1021 gcodispo 1.9
1022 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1023 gcodispo 1.12 if ( self->job_begin () == self->job_end ()) self->load(ALL);
1024 gcodispo 1.10 for (BossTask::job_iterator jit = self->job_begin ();
1025     jit != self->job_end (); ++jit) {
1026 gcodispo 1.25 PyObject * id = PyString_FromString( ((*jit)->chainId()).c_str() );
1027     PyObject * tmp_dict = PyDict_New();
1028     BossTask_jobDict( self, jit, tmp_dict );
1029     PyDict_SetItem( job_dict, id, tmp_dict );
1030     Py_DECREF(id);
1031     Py_DECREF(tmp_dict);
1032 gcodispo 1.9 }
1033 gcodispo 1.10 return job_dict;
1034 gcodispo 1.9 }
1035 gcodispo 1.10 PyObject *BossTask_progDict(BossTask const *self,std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator &programs_it){
1036 gcodispo 1.9
1037 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1038 gcodispo 1.9
1039 gcodispo 1.10 std::string tmp;
1040 gcodispo 1.9
1041 gcodispo 1.10 // PROGRAM
1042     BossAttributeContainer obj =
1043     (programs_it->first).getTableEntries("PROGRAM");
1044     BossTask_appendToPyDict ( self, job_dict, obj );
1045 gcodispo 1.9
1046 gcodispo 1.10 // PROGRAM_EXEC
1047     obj.clear();
1048     obj = (programs_it->second).getTableEntries("PROGRAM_EXEC");
1049     BossTask_appendToPyDict ( self, job_dict, obj );
1050 gcodispo 1.9
1051 gcodispo 1.10 // SPECIFICS
1052     std::vector < BossAttributeContainer >::const_iterator it;
1053     std::vector < BossAttributeContainer >::const_iterator it_end = (programs_it->second).specEnd ();
1054     for ( it = (programs_it->second).specBegin (); it != it_end; ++it) {
1055     BossTask_appendToPyDict ( self, job_dict, *it );
1056 gcodispo 1.9 }
1057 gcodispo 1.10 return job_dict;
1058 gcodispo 1.9 }
1059 gcodispo 1.10 PyObject *BossTask_jobPrograms(BossTask const *self,std::string const &jobid){
1060    
1061     const BossJob * jH = &((*self)[atoi( jobid.c_str() )]);
1062     std::map< std::string, std::map< std::string, std::string > > ret_val;
1063     std::vector< std::pair<BossProgram, BossProgramExec > >
1064     programs = self->queryJobPrograms ( jH );
1065     std::vector< std::pair<BossProgram, BossProgramExec > >::const_iterator
1066     programs_it_end = programs.end();
1067     std::vector< std::pair<BossProgram, BossProgramExec > >::const_iterator
1068     programs_it;
1069    
1070 gcodispo 1.9
1071 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1072 gcodispo 1.9
1073 gcodispo 1.10 for ( programs_it = programs.begin(); programs_it != programs_it_end;
1074     ++programs_it ) {
1075     std::string id = (programs_it->first)["PROGRAM.ID"];
1076 gcodispo 1.25 PyObject * tmp_dict = BossTask_progDict( self, programs_it );
1077 gcodispo 1.10 PyObject * myid = PyString_FromString(id.c_str() );
1078 gcodispo 1.25 PyDict_SetItem( job_dict, myid, tmp_dict );
1079     Py_DECREF(myid);
1080     Py_DECREF(tmp_dict);
1081 gcodispo 1.9 }
1082 gcodispo 1.10 return job_dict;
1083 gcodispo 1.9 }
1084 gcodispo 1.10 #ifdef __cplusplus
1085     extern "C" {
1086     #endif
1087     static PyObject *_wrap_new_objectMap__SWIG_0(PyObject *self, PyObject *args) {
1088     PyObject *resultobj;
1089     std::map<std::string,std::string > *result;
1090    
1091     if(!PyArg_ParseTuple(args,(char *)":new_objectMap")) goto fail;
1092     {
1093     try {
1094     result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >();
1095    
1096 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1097 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1098     return NULL;
1099 gcodispo 1.10 }catch (const std::exception& e) {
1100 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1101     return NULL;
1102 gcodispo 1.10 }
1103 gcodispo 1.9 }
1104 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1);
1105     return resultobj;
1106     fail:
1107     return NULL;
1108 gcodispo 1.9 }
1109    
1110    
1111 gcodispo 1.10 static PyObject *_wrap_new_objectMap__SWIG_1(PyObject *self, PyObject *args) {
1112     PyObject *resultobj;
1113     std::map<std::string,std::string > *arg1 = 0 ;
1114     std::map<std::string,std::string > *result;
1115     std::map<std::string,std::string > temp1 ;
1116     std::map<std::string,std::string > *m1 ;
1117     PyObject * obj0 = 0 ;
1118    
1119     if(!PyArg_ParseTuple(args,(char *)"O:new_objectMap",&obj0)) goto fail;
1120     {
1121     if (PyDict_Check(obj0)) {
1122     PyObject* items = PyMapping_Items(obj0);
1123     unsigned int size = PyList_Size(items);
1124     temp1 = std::map<std::string,std::string >();
1125     arg1 = &temp1;
1126     for (unsigned int i=0; i<size; i++) {
1127     PyObject* pair = PySequence_GetItem(items,i);
1128     PyObject* key = PySequence_GetItem(pair,0);
1129     PyObject* o = PySequence_GetItem(pair,1);
1130     if (PyString_Check(key) && PyString_Check(o)) {
1131     temp1[SwigString_AsString(key)] = SwigString_AsString(o);
1132     Py_DECREF(key);
1133     Py_DECREF(o);
1134     Py_DECREF(pair);
1135     }else {
1136     Py_DECREF(key);
1137     Py_DECREF(o);
1138     Py_DECREF(pair);
1139     Py_DECREF(items);
1140     PyErr_SetString(PyExc_TypeError,
1141     "map<""std::string"",""std::string""> expected");
1142     SWIG_fail;
1143     }
1144     }
1145     Py_DECREF(items);
1146     }else if (SWIG_ConvertPtr(obj0,(void **) &m1,
1147     SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1) {
1148     arg1 = m1;
1149     }else {
1150     PyErr_SetString(PyExc_TypeError,
1151     "map<""std::string"",""std::string""> expected");
1152     SWIG_fail;
1153     }
1154 gcodispo 1.9 }
1155 gcodispo 1.10 {
1156     try {
1157     result = (std::map<std::string,std::string > *)new std::map<std::string,std::string >((std::map<std::string,std::string > const &)*arg1);
1158    
1159 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1160 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1161     return NULL;
1162 gcodispo 1.10 }catch (const std::exception& e) {
1163 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1164     return NULL;
1165 gcodispo 1.10 }
1166 gcodispo 1.9 }
1167 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__mapTstd__string_std__string_t, 1);
1168     return resultobj;
1169     fail:
1170     return NULL;
1171 gcodispo 1.9 }
1172    
1173    
1174 gcodispo 1.10 static PyObject *_wrap_new_objectMap(PyObject *self, PyObject *args) {
1175     int argc;
1176     PyObject *argv[2];
1177     int ii;
1178    
1179     argc = PyObject_Length(args);
1180     for (ii = 0; (ii < argc) && (ii < 1); ii++) {
1181     argv[ii] = PyTuple_GetItem(args,ii);
1182     }
1183     if (argc == 0) {
1184     return _wrap_new_objectMap__SWIG_0(self,args);
1185 gcodispo 1.9 }
1186 gcodispo 1.10 if (argc == 1) {
1187     int _v;
1188 gcodispo 1.9 {
1189 gcodispo 1.10 /* native sequence? */
1190     if (PyDict_Check(argv[0])) {
1191     PyObject* items = PyMapping_Items(argv[0]);
1192     unsigned int size = PyList_Size(items);
1193     if (size == 0) {
1194     /* an empty dictionary can be of any type */
1195     _v = 1;
1196     }else {
1197     /* check the first element only */
1198     PyObject* pair = PySequence_GetItem(items,0);
1199     PyObject* key = PySequence_GetItem(pair,0);
1200     PyObject* o = PySequence_GetItem(pair,1);
1201     if (PyString_Check(key) && PyString_Check(o))
1202     _v = 1;
1203     else
1204     _v = 0;
1205     Py_DECREF(key);
1206     Py_DECREF(o);
1207     Py_DECREF(pair);
1208     }
1209     Py_DECREF(items);
1210     }else {
1211     /* wrapped map? */
1212     std::map<std::string,std::string >* m;
1213     if (SWIG_ConvertPtr(argv[0],(void **) &m,
1214     SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1)
1215     _v = 1;
1216     else
1217     _v = 0;
1218     }
1219 gcodispo 1.9 }
1220     if (_v) {
1221 gcodispo 1.10 return _wrap_new_objectMap__SWIG_1(self,args);
1222 gcodispo 1.9 }
1223     }
1224 gcodispo 1.10
1225     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_objectMap'");
1226     return NULL;
1227 gcodispo 1.9 }
1228    
1229    
1230 gcodispo 1.10 static PyObject *_wrap_objectMap___len__(PyObject *self, PyObject *args) {
1231     PyObject *resultobj;
1232     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1233     unsigned int result;
1234     std::map<std::string,std::string > temp1 ;
1235     std::map<std::string,std::string > *m1 ;
1236     PyObject * obj0 = 0 ;
1237    
1238     if(!PyArg_ParseTuple(args,(char *)"O:objectMap___len__",&obj0)) goto fail;
1239     {
1240     if (PyDict_Check(obj0)) {
1241     PyObject* items = PyMapping_Items(obj0);
1242     unsigned int size = PyList_Size(items);
1243     temp1 = std::map<std::string,std::string >();
1244     arg1 = &temp1;
1245     for (unsigned int i=0; i<size; i++) {
1246     PyObject* pair = PySequence_GetItem(items,i);
1247     PyObject* key = PySequence_GetItem(pair,0);
1248     PyObject* o = PySequence_GetItem(pair,1);
1249     if (PyString_Check(key) && PyString_Check(o)) {
1250     temp1[SwigString_AsString(key)] = SwigString_AsString(o);
1251     Py_DECREF(key);
1252     Py_DECREF(o);
1253     Py_DECREF(pair);
1254     }else {
1255     Py_DECREF(key);
1256     Py_DECREF(o);
1257     Py_DECREF(pair);
1258     Py_DECREF(items);
1259     PyErr_SetString(PyExc_TypeError,
1260     "map<""std::string"",""std::string""> expected");
1261     SWIG_fail;
1262     }
1263     }
1264     Py_DECREF(items);
1265     }else if (SWIG_ConvertPtr(obj0,(void **) &m1,
1266     SWIGTYPE_p_std__mapTstd__string_std__string_t,0) != -1) {
1267     arg1 = m1;
1268     }else {
1269     PyErr_SetString(PyExc_TypeError,
1270     "map<""std::string"",""std::string""> expected");
1271     SWIG_fail;
1272     }
1273 gcodispo 1.9 }
1274 gcodispo 1.10 {
1275     try {
1276     result = (unsigned int)((std::map<std::string,std::string > const *)arg1)->size();
1277    
1278 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1279 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1280     return NULL;
1281 gcodispo 1.10 }catch (const std::exception& e) {
1282 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1283     return NULL;
1284 gcodispo 1.10 }
1285 gcodispo 1.9 }
1286 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1287     return resultobj;
1288     fail:
1289     return NULL;
1290 gcodispo 1.9 }
1291    
1292    
1293 gcodispo 1.10 static PyObject *_wrap_objectMap_clear(PyObject *self, PyObject *args) {
1294     PyObject *resultobj;
1295     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1296     PyObject * obj0 = 0 ;
1297    
1298     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_clear",&obj0)) goto fail;
1299     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1300     {
1301     try {
1302     (arg1)->clear();
1303    
1304 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1305 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1306     return NULL;
1307 gcodispo 1.10 }catch (const std::exception& e) {
1308 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1309     return NULL;
1310 gcodispo 1.10 }
1311 gcodispo 1.9 }
1312 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1313     return resultobj;
1314     fail:
1315     return NULL;
1316 gcodispo 1.9 }
1317    
1318    
1319 gcodispo 1.10 static PyObject *_wrap_objectMap___nonzero__(PyObject *self, PyObject *args) {
1320     PyObject *resultobj;
1321     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1322     bool result;
1323     PyObject * obj0 = 0 ;
1324    
1325     if(!PyArg_ParseTuple(args,(char *)"O:objectMap___nonzero__",&obj0)) goto fail;
1326     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1327     {
1328     try {
1329     result = (bool)std_maplstd_stringcstd_string_g___nonzero_____(arg1);
1330    
1331 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1332 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1333     return NULL;
1334 gcodispo 1.10 }catch (const std::exception& e) {
1335 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1336     return NULL;
1337 gcodispo 1.9 }
1338     }
1339 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1340     return resultobj;
1341     fail:
1342     return NULL;
1343 gcodispo 1.9 }
1344    
1345    
1346 gcodispo 1.10 static PyObject *_wrap_objectMap___getitem__(PyObject *self, PyObject *args) {
1347     PyObject *resultobj;
1348     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1349     std::string arg2 ;
1350     std::string result;
1351     PyObject * obj0 = 0 ;
1352     PyObject * obj1 = 0 ;
1353    
1354     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___getitem__",&obj0,&obj1)) goto fail;
1355     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1356     {
1357     if (PyString_Check(obj1))
1358     arg2 = std::string(PyString_AsString(obj1));
1359     else
1360     SWIG_exception(SWIG_TypeError, "string expected");
1361 gcodispo 1.9 }
1362 gcodispo 1.10 {
1363     try {
1364     result = std_maplstd_stringcstd_string_g___getitem_____(arg1,arg2);
1365    
1366     }catch (std::out_of_range& e) {
1367     PyErr_SetString(PyExc_KeyError,const_cast<char*>(e.what()));
1368     SWIG_fail;
1369     }
1370 gcodispo 1.9 }
1371 gcodispo 1.10 {
1372     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
1373 gcodispo 1.9 }
1374 gcodispo 1.10 return resultobj;
1375     fail:
1376     return NULL;
1377 gcodispo 1.9 }
1378    
1379    
1380 gcodispo 1.10 static PyObject *_wrap_objectMap___setitem__(PyObject *self, PyObject *args) {
1381     PyObject *resultobj;
1382     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1383     std::string arg2 ;
1384     std::string arg3 ;
1385     PyObject * obj0 = 0 ;
1386     PyObject * obj1 = 0 ;
1387     PyObject * obj2 = 0 ;
1388    
1389     if(!PyArg_ParseTuple(args,(char *)"OOO:objectMap___setitem__",&obj0,&obj1,&obj2)) goto fail;
1390     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1391     {
1392     if (PyString_Check(obj1))
1393     arg2 = std::string(PyString_AsString(obj1));
1394     else
1395     SWIG_exception(SWIG_TypeError, "string expected");
1396 gcodispo 1.9 }
1397 gcodispo 1.10 {
1398     if (PyString_Check(obj2))
1399     arg3 = std::string(PyString_AsString(obj2));
1400     else
1401     SWIG_exception(SWIG_TypeError, "string expected");
1402 gcodispo 1.9 }
1403 gcodispo 1.10 {
1404     try {
1405     std_maplstd_stringcstd_string_g___setitem_____(arg1,arg2,arg3);
1406    
1407 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1408 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1409     return NULL;
1410 gcodispo 1.10 }catch (const std::exception& e) {
1411 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1412     return NULL;
1413 gcodispo 1.10 }
1414 gcodispo 1.9 }
1415 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1416     return resultobj;
1417     fail:
1418     return NULL;
1419     }
1420    
1421    
1422     static PyObject *_wrap_objectMap___delitem__(PyObject *self, PyObject *args) {
1423     PyObject *resultobj;
1424     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1425     std::string arg2 ;
1426     PyObject * obj0 = 0 ;
1427     PyObject * obj1 = 0 ;
1428    
1429     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___delitem__",&obj0,&obj1)) goto fail;
1430     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1431     {
1432     if (PyString_Check(obj1))
1433     arg2 = std::string(PyString_AsString(obj1));
1434     else
1435     SWIG_exception(SWIG_TypeError, "string expected");
1436 gcodispo 1.9 }
1437 gcodispo 1.10 {
1438     try {
1439     std_maplstd_stringcstd_string_g___delitem_____(arg1,arg2);
1440    
1441     }catch (std::out_of_range& e) {
1442     PyErr_SetString(PyExc_KeyError,const_cast<char*>(e.what()));
1443     SWIG_fail;
1444     }
1445 gcodispo 1.9 }
1446 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1447     return resultobj;
1448     fail:
1449     return NULL;
1450 gcodispo 1.9 }
1451    
1452    
1453 gcodispo 1.10 static PyObject *_wrap_objectMap_has_key(PyObject *self, PyObject *args) {
1454     PyObject *resultobj;
1455     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1456     std::string arg2 ;
1457     bool result;
1458     PyObject * obj0 = 0 ;
1459     PyObject * obj1 = 0 ;
1460    
1461     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap_has_key",&obj0,&obj1)) goto fail;
1462     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1463     {
1464     if (PyString_Check(obj1))
1465     arg2 = std::string(PyString_AsString(obj1));
1466     else
1467     SWIG_exception(SWIG_TypeError, "string expected");
1468 gcodispo 1.9 }
1469 gcodispo 1.10 {
1470     try {
1471     result = (bool)std_maplstd_stringcstd_string_g_has_key___(arg1,arg2);
1472    
1473 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1474 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1475     return NULL;
1476 gcodispo 1.10 }catch (const std::exception& e) {
1477 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1478     return NULL;
1479 gcodispo 1.10 }
1480 gcodispo 1.9 }
1481 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1482     return resultobj;
1483     fail:
1484     return NULL;
1485 gcodispo 1.9 }
1486    
1487    
1488 gcodispo 1.10 static PyObject *_wrap_objectMap_keys(PyObject *self, PyObject *args) {
1489     PyObject *resultobj;
1490     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1491     PyObject *result;
1492     PyObject * obj0 = 0 ;
1493    
1494     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_keys",&obj0)) goto fail;
1495     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1496     {
1497     try {
1498     result = (PyObject *)std_maplstd_stringcstd_string_g_keys___(arg1);
1499    
1500 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1501 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1502     return NULL;
1503 gcodispo 1.10 }catch (const std::exception& e) {
1504 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1505     return NULL;
1506 gcodispo 1.10 }
1507 gcodispo 1.9 }
1508 gcodispo 1.10 resultobj = result;
1509     return resultobj;
1510     fail:
1511     return NULL;
1512 gcodispo 1.9 }
1513    
1514    
1515 gcodispo 1.10 static PyObject *_wrap_objectMap_values(PyObject *self, PyObject *args) {
1516     PyObject *resultobj;
1517     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1518     PyObject *result;
1519     PyObject * obj0 = 0 ;
1520    
1521     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_values",&obj0)) goto fail;
1522     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1523     {
1524     try {
1525     result = (PyObject *)std_maplstd_stringcstd_string_g_values___(arg1);
1526    
1527 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1528 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1529     return NULL;
1530 gcodispo 1.10 }catch (const std::exception& e) {
1531 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1532     return NULL;
1533 gcodispo 1.10 }
1534 gcodispo 1.9 }
1535 gcodispo 1.10 resultobj = result;
1536     return resultobj;
1537     fail:
1538     return NULL;
1539 gcodispo 1.9 }
1540    
1541    
1542 gcodispo 1.10 static PyObject *_wrap_objectMap_items(PyObject *self, PyObject *args) {
1543     PyObject *resultobj;
1544     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1545     PyObject *result;
1546     PyObject * obj0 = 0 ;
1547    
1548     if(!PyArg_ParseTuple(args,(char *)"O:objectMap_items",&obj0)) goto fail;
1549     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1550     {
1551     try {
1552     result = (PyObject *)std_maplstd_stringcstd_string_g_items___(arg1);
1553    
1554 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1555 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1556     return NULL;
1557 gcodispo 1.10 }catch (const std::exception& e) {
1558 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1559     return NULL;
1560 gcodispo 1.9 }
1561     }
1562 gcodispo 1.10 resultobj = result;
1563     return resultobj;
1564     fail:
1565     return NULL;
1566     }
1567    
1568    
1569     static PyObject *_wrap_objectMap___contains__(PyObject *self, PyObject *args) {
1570     PyObject *resultobj;
1571     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1572     std::string arg2 ;
1573     bool result;
1574     PyObject * obj0 = 0 ;
1575     PyObject * obj1 = 0 ;
1576    
1577     if(!PyArg_ParseTuple(args,(char *)"OO:objectMap___contains__",&obj0,&obj1)) goto fail;
1578     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1579     {
1580     if (PyString_Check(obj1))
1581     arg2 = std::string(PyString_AsString(obj1));
1582     else
1583     SWIG_exception(SWIG_TypeError, "string expected");
1584 gcodispo 1.9 }
1585 gcodispo 1.10 {
1586     try {
1587     result = (bool)std_maplstd_stringcstd_string_g___contains_____(arg1,arg2);
1588    
1589 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1590 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1591     return NULL;
1592 gcodispo 1.10 }catch (const std::exception& e) {
1593 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1594     return NULL;
1595 gcodispo 1.9 }
1596     }
1597 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1598     return resultobj;
1599     fail:
1600     return NULL;
1601 gcodispo 1.9 }
1602    
1603    
1604 gcodispo 1.10 static PyObject *_wrap_objectMap___iter__(PyObject *self, PyObject *args) {
1605     PyObject *resultobj;
1606     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1607     PyObject *result;
1608     PyObject * obj0 = 0 ;
1609    
1610     if(!PyArg_ParseTuple(args,(char *)"O:objectMap___iter__",&obj0)) goto fail;
1611     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1612     {
1613     try {
1614     result = (PyObject *)std_maplstd_stringcstd_string_g___iter_____(arg1);
1615    
1616     }catch (std::runtime_error& e) {
1617     PyErr_SetString(PyExc_RuntimeError,const_cast<char*>(e.what()));
1618     SWIG_fail;
1619     }
1620 gcodispo 1.9 }
1621 gcodispo 1.10 resultobj = result;
1622     return resultobj;
1623     fail:
1624     return NULL;
1625 gcodispo 1.9 }
1626    
1627    
1628 gcodispo 1.10 static PyObject *_wrap_delete_objectMap(PyObject *self, PyObject *args) {
1629     PyObject *resultobj;
1630     std::map<std::string,std::string > *arg1 = (std::map<std::string,std::string > *) 0 ;
1631     PyObject * obj0 = 0 ;
1632    
1633     if(!PyArg_ParseTuple(args,(char *)"O:delete_objectMap",&obj0)) goto fail;
1634     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1635     {
1636     try {
1637     delete arg1;
1638    
1639 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1640 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1641     return NULL;
1642 gcodispo 1.10 }catch (const std::exception& e) {
1643 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1644     return NULL;
1645 gcodispo 1.10 }
1646 gcodispo 1.9 }
1647 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1648     return resultobj;
1649     fail:
1650     return NULL;
1651     }
1652    
1653    
1654     static PyObject * objectMap_swigregister(PyObject *self, PyObject *args) {
1655     PyObject *obj;
1656     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1657     SWIG_TypeClientData(SWIGTYPE_p_std__mapTstd__string_std__string_t, obj);
1658     Py_INCREF(obj);
1659     return Py_BuildValue((char *)"");
1660     }
1661     static PyObject *_wrap_new_vector_string__SWIG_0(PyObject *self, PyObject *args) {
1662     PyObject *resultobj;
1663     unsigned int arg1 = (unsigned int) 0 ;
1664     std::vector<std::string > *result;
1665     PyObject * obj0 = 0 ;
1666    
1667     if(!PyArg_ParseTuple(args,(char *)"|O:new_vector_string",&obj0)) goto fail;
1668     if (obj0) {
1669     arg1 = (unsigned int) PyInt_AsLong(obj0);
1670     if (PyErr_Occurred()) SWIG_fail;
1671 gcodispo 1.9 }
1672 gcodispo 1.10 {
1673     try {
1674     result = (std::vector<std::string > *)new std::vector<std::string >(arg1);
1675    
1676 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1677 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1678     return NULL;
1679 gcodispo 1.10 }catch (const std::exception& e) {
1680 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1681     return NULL;
1682 gcodispo 1.10 }
1683 gcodispo 1.9 }
1684 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
1685     return resultobj;
1686     fail:
1687     return NULL;
1688 gcodispo 1.9 }
1689    
1690    
1691 gcodispo 1.10 static PyObject *_wrap_new_vector_string__SWIG_1(PyObject *self, PyObject *args) {
1692     PyObject *resultobj;
1693     unsigned int arg1 ;
1694     std::string *arg2 = 0 ;
1695     std::vector<std::string > *result;
1696     std::string temp2 ;
1697     PyObject * obj0 = 0 ;
1698     PyObject * obj1 = 0 ;
1699    
1700     if(!PyArg_ParseTuple(args,(char *)"OO:new_vector_string",&obj0,&obj1)) goto fail;
1701     arg1 = (unsigned int) PyInt_AsLong(obj0);
1702     if (PyErr_Occurred()) SWIG_fail;
1703     {
1704     if (PyString_Check(obj1)) {
1705     temp2 = std::string(PyString_AsString(obj1));
1706     arg2 = &temp2;
1707     }else {
1708     SWIG_exception(SWIG_TypeError, "string expected");
1709     }
1710 gcodispo 1.9 }
1711 gcodispo 1.10 {
1712     try {
1713     result = (std::vector<std::string > *)new std::vector<std::string >(arg1,(std::string const &)*arg2);
1714    
1715 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1716 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1717     return NULL;
1718 gcodispo 1.10 }catch (const std::exception& e) {
1719 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1720     return NULL;
1721 gcodispo 1.10 }
1722 gcodispo 1.9 }
1723 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
1724     return resultobj;
1725     fail:
1726     return NULL;
1727 gcodispo 1.9 }
1728    
1729    
1730 gcodispo 1.10 static PyObject *_wrap_new_vector_string__SWIG_2(PyObject *self, PyObject *args) {
1731     PyObject *resultobj;
1732     std::vector<std::string > *arg1 = 0 ;
1733     std::vector<std::string > *result;
1734     std::vector<std::string > temp1 ;
1735     std::vector<std::string > *v1 ;
1736     PyObject * obj0 = 0 ;
1737    
1738     if(!PyArg_ParseTuple(args,(char *)"O:new_vector_string",&obj0)) goto fail;
1739     {
1740     if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
1741     unsigned int size = (PyTuple_Check(obj0) ?
1742     PyTuple_Size(obj0) :
1743     PyList_Size(obj0));
1744     temp1 = std::vector<std::string >(size);
1745     arg1 = &temp1;
1746     for (unsigned int i=0; i<size; i++) {
1747     PyObject* o = PySequence_GetItem(obj0,i);
1748     if (PyString_Check(o)) {
1749     temp1[i] = (std::string)(\
1750     SwigString_AsString(o));
1751     Py_DECREF(o);
1752     }else {
1753     Py_DECREF(o);
1754     PyErr_SetString(PyExc_TypeError,
1755     "vector<""std::string""> expected");
1756     SWIG_fail;
1757     }
1758     }
1759     }else if (SWIG_ConvertPtr(obj0,(void **) &v1,
1760     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
1761     arg1 = v1;
1762     }else {
1763     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
1764     SWIG_fail;
1765     }
1766     }
1767     {
1768     try {
1769     result = (std::vector<std::string > *)new std::vector<std::string >((std::vector<std::string > const &)*arg1);
1770    
1771 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1772 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1773     return NULL;
1774 gcodispo 1.10 }catch (const std::exception& e) {
1775 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1776     return NULL;
1777 gcodispo 1.10 }
1778 gcodispo 1.9 }
1779 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_std__vectorTstd__string_t, 1);
1780     return resultobj;
1781     fail:
1782     return NULL;
1783 gcodispo 1.9 }
1784    
1785    
1786 gcodispo 1.10 static PyObject *_wrap_new_vector_string(PyObject *self, PyObject *args) {
1787     int argc;
1788     PyObject *argv[3];
1789     int ii;
1790    
1791     argc = PyObject_Length(args);
1792     for (ii = 0; (ii < argc) && (ii < 2); ii++) {
1793     argv[ii] = PyTuple_GetItem(args,ii);
1794     }
1795     if ((argc >= 0) && (argc <= 1)) {
1796     int _v;
1797     if (argc <= 0) {
1798     return _wrap_new_vector_string__SWIG_0(self,args);
1799     }
1800     {
1801     _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
1802     }
1803     if (_v) {
1804     return _wrap_new_vector_string__SWIG_0(self,args);
1805     }
1806 gcodispo 1.9 }
1807 gcodispo 1.10 if (argc == 1) {
1808     int _v;
1809 gcodispo 1.9 {
1810 gcodispo 1.10 /* native sequence? */
1811     if (PyTuple_Check(argv[0]) || PyList_Check(argv[0])) {
1812     unsigned int size = (PyTuple_Check(argv[0]) ?
1813     PyTuple_Size(argv[0]) :
1814     PyList_Size(argv[0]));
1815     if (size == 0) {
1816     /* an empty sequence can be of any type */
1817     _v = 1;
1818     }else {
1819     /* check the first element only */
1820     PyObject* o = PySequence_GetItem(argv[0],0);
1821     if (PyString_Check(o))
1822     _v = 1;
1823     else
1824     _v = 0;
1825     Py_DECREF(o);
1826     }
1827     }else {
1828     /* wrapped vector? */
1829     std::vector<std::string >* v;
1830     if (SWIG_ConvertPtr(argv[0],(void **) &v,
1831     SWIGTYPE_p_std__vectorTstd__string_t,0) != -1)
1832     _v = 1;
1833     else
1834     _v = 0;
1835     }
1836 gcodispo 1.9 }
1837     if (_v) {
1838 gcodispo 1.10 return _wrap_new_vector_string__SWIG_2(self,args);
1839 gcodispo 1.9 }
1840     }
1841 gcodispo 1.10 if (argc == 2) {
1842     int _v;
1843 gcodispo 1.9 {
1844 gcodispo 1.10 _v = (PyInt_Check(argv[0]) || PyLong_Check(argv[0])) ? 1 : 0;
1845 gcodispo 1.9 }
1846     if (_v) {
1847 gcodispo 1.10 {
1848     _v = PyString_Check(argv[1]) ? 1 : 0;
1849     }
1850     if (_v) {
1851     return _wrap_new_vector_string__SWIG_1(self,args);
1852     }
1853 gcodispo 1.9 }
1854     }
1855 gcodispo 1.10
1856     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_vector_string'");
1857     return NULL;
1858 gcodispo 1.9 }
1859    
1860    
1861 gcodispo 1.10 static PyObject *_wrap_vector_string___len__(PyObject *self, PyObject *args) {
1862     PyObject *resultobj;
1863     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1864     unsigned int result;
1865     std::vector<std::string > temp1 ;
1866     std::vector<std::string > *v1 ;
1867     PyObject * obj0 = 0 ;
1868    
1869     if(!PyArg_ParseTuple(args,(char *)"O:vector_string___len__",&obj0)) goto fail;
1870     {
1871     if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
1872     unsigned int size = (PyTuple_Check(obj0) ?
1873     PyTuple_Size(obj0) :
1874     PyList_Size(obj0));
1875     temp1 = std::vector<std::string >(size);
1876     arg1 = &temp1;
1877     for (unsigned int i=0; i<size; i++) {
1878     PyObject* o = PySequence_GetItem(obj0,i);
1879     if (PyString_Check(o)) {
1880     temp1[i] = (std::string)(\
1881     SwigString_AsString(o));
1882     Py_DECREF(o);
1883     }else {
1884     Py_DECREF(o);
1885     PyErr_SetString(PyExc_TypeError,
1886     "vector<""std::string""> expected");
1887     SWIG_fail;
1888     }
1889     }
1890     }else if (SWIG_ConvertPtr(obj0,(void **) &v1,
1891     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
1892     arg1 = v1;
1893     }else {
1894     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
1895     SWIG_fail;
1896     }
1897 gcodispo 1.9 }
1898 gcodispo 1.10 {
1899     try {
1900     result = (unsigned int)((std::vector<std::string > const *)arg1)->size();
1901    
1902 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1903 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1904     return NULL;
1905 gcodispo 1.10 }catch (const std::exception& e) {
1906 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1907     return NULL;
1908 gcodispo 1.10 }
1909 gcodispo 1.9 }
1910 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1911     return resultobj;
1912     fail:
1913     return NULL;
1914 gcodispo 1.9 }
1915    
1916    
1917 gcodispo 1.10 static PyObject *_wrap_vector_string___nonzero__(PyObject *self, PyObject *args) {
1918     PyObject *resultobj;
1919     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1920     bool result;
1921     std::vector<std::string > temp1 ;
1922     std::vector<std::string > *v1 ;
1923     PyObject * obj0 = 0 ;
1924    
1925     if(!PyArg_ParseTuple(args,(char *)"O:vector_string___nonzero__",&obj0)) goto fail;
1926     {
1927     if (PyTuple_Check(obj0) || PyList_Check(obj0)) {
1928     unsigned int size = (PyTuple_Check(obj0) ?
1929     PyTuple_Size(obj0) :
1930     PyList_Size(obj0));
1931     temp1 = std::vector<std::string >(size);
1932     arg1 = &temp1;
1933     for (unsigned int i=0; i<size; i++) {
1934     PyObject* o = PySequence_GetItem(obj0,i);
1935     if (PyString_Check(o)) {
1936     temp1[i] = (std::string)(\
1937     SwigString_AsString(o));
1938     Py_DECREF(o);
1939     }else {
1940     Py_DECREF(o);
1941     PyErr_SetString(PyExc_TypeError,
1942     "vector<""std::string""> expected");
1943     SWIG_fail;
1944     }
1945     }
1946     }else if (SWIG_ConvertPtr(obj0,(void **) &v1,
1947     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
1948     arg1 = v1;
1949     }else {
1950     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
1951     SWIG_fail;
1952     }
1953 gcodispo 1.9 }
1954 gcodispo 1.10 {
1955     try {
1956     result = (bool)((std::vector<std::string > const *)arg1)->empty();
1957    
1958 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1959 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1960     return NULL;
1961 gcodispo 1.10 }catch (const std::exception& e) {
1962 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1963     return NULL;
1964 gcodispo 1.10 }
1965 gcodispo 1.9 }
1966 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
1967     return resultobj;
1968     fail:
1969     return NULL;
1970 gcodispo 1.9 }
1971    
1972    
1973 gcodispo 1.10 static PyObject *_wrap_vector_string_clear(PyObject *self, PyObject *args) {
1974     PyObject *resultobj;
1975     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
1976     PyObject * obj0 = 0 ;
1977    
1978     if(!PyArg_ParseTuple(args,(char *)"O:vector_string_clear",&obj0)) goto fail;
1979     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1980     {
1981     try {
1982     (arg1)->clear();
1983    
1984 gcodispo 1.17 }catch (const BossSchedFailure & e) {
1985 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
1986     return NULL;
1987 gcodispo 1.10 }catch (const std::exception& e) {
1988 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
1989     return NULL;
1990 gcodispo 1.10 }
1991 gcodispo 1.9 }
1992 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
1993     return resultobj;
1994     fail:
1995     return NULL;
1996 gcodispo 1.9 }
1997    
1998    
1999 gcodispo 1.10 static PyObject *_wrap_vector_string_append(PyObject *self, PyObject *args) {
2000     PyObject *resultobj;
2001     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2002     std::string arg2 ;
2003     PyObject * obj0 = 0 ;
2004     PyObject * obj1 = 0 ;
2005    
2006     if(!PyArg_ParseTuple(args,(char *)"OO:vector_string_append",&obj0,&obj1)) goto fail;
2007     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2008     {
2009     if (PyString_Check(obj1))
2010     arg2 = std::string(PyString_AsString(obj1));
2011     else
2012     SWIG_exception(SWIG_TypeError, "string expected");
2013 gcodispo 1.9 }
2014 gcodispo 1.10 {
2015     try {
2016     (arg1)->push_back(arg2);
2017    
2018 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2019 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2020     return NULL;
2021 gcodispo 1.10 }catch (const std::exception& e) {
2022 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2023     return NULL;
2024 gcodispo 1.10 }
2025 gcodispo 1.9 }
2026 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2027     return resultobj;
2028     fail:
2029     return NULL;
2030 gcodispo 1.9 }
2031    
2032    
2033 gcodispo 1.10 static PyObject *_wrap_vector_string_pop(PyObject *self, PyObject *args) {
2034     PyObject *resultobj;
2035     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2036     std::string result;
2037     PyObject * obj0 = 0 ;
2038    
2039     if(!PyArg_ParseTuple(args,(char *)"O:vector_string_pop",&obj0)) goto fail;
2040     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2041     {
2042     try {
2043     result = std_vectorlstd_string_g_pop___(arg1);
2044    
2045     }catch (std::out_of_range& e) {
2046     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
2047     }
2048 gcodispo 1.9 }
2049 gcodispo 1.10 {
2050     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2051 gcodispo 1.9 }
2052 gcodispo 1.10 return resultobj;
2053     fail:
2054     return NULL;
2055 gcodispo 1.9 }
2056    
2057    
2058 gcodispo 1.10 static PyObject *_wrap_vector_string___getitem__(PyObject *self, PyObject *args) {
2059     PyObject *resultobj;
2060     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2061     int arg2 ;
2062     std::string result;
2063     PyObject * obj0 = 0 ;
2064    
2065     if(!PyArg_ParseTuple(args,(char *)"Oi:vector_string___getitem__",&obj0,&arg2)) goto fail;
2066     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2067     {
2068     try {
2069     result = std_vectorlstd_string_g___getitem_____(arg1,arg2);
2070    
2071     }catch (std::out_of_range& e) {
2072     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
2073     }
2074     }
2075     {
2076     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2077 gcodispo 1.9 }
2078 gcodispo 1.10 return resultobj;
2079     fail:
2080     return NULL;
2081 gcodispo 1.9 }
2082    
2083    
2084 gcodispo 1.10 static PyObject *_wrap_vector_string___getslice__(PyObject *self, PyObject *args) {
2085     PyObject *resultobj;
2086     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2087     int arg2 ;
2088     int arg3 ;
2089     std::vector<std::string > result;
2090     PyObject * obj0 = 0 ;
2091    
2092     if(!PyArg_ParseTuple(args,(char *)"Oii:vector_string___getslice__",&obj0,&arg2,&arg3)) goto fail;
2093     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2094     {
2095     try {
2096     result = std_vectorlstd_string_g___getslice_____(arg1,arg2,arg3);
2097    
2098 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2099 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2100     return NULL;
2101 gcodispo 1.10 }catch (const std::exception& e) {
2102 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2103     return NULL;
2104 gcodispo 1.10 }
2105     }
2106     {
2107     resultobj = PyTuple_New((&result)->size());
2108     for (unsigned int i=0; i<(&result)->size(); i++)
2109     PyTuple_SetItem(resultobj,i,
2110     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2111 gcodispo 1.9 }
2112 gcodispo 1.10 return resultobj;
2113     fail:
2114     return NULL;
2115 gcodispo 1.9 }
2116 gcodispo 1.3
2117    
2118 gcodispo 1.10 static PyObject *_wrap_vector_string___setitem__(PyObject *self, PyObject *args) {
2119     PyObject *resultobj;
2120     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2121     int arg2 ;
2122     std::string arg3 ;
2123     PyObject * obj0 = 0 ;
2124     PyObject * obj2 = 0 ;
2125    
2126     if(!PyArg_ParseTuple(args,(char *)"OiO:vector_string___setitem__",&obj0,&arg2,&obj2)) goto fail;
2127     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2128     {
2129     if (PyString_Check(obj2))
2130     arg3 = std::string(PyString_AsString(obj2));
2131     else
2132     SWIG_exception(SWIG_TypeError, "string expected");
2133 gcodispo 1.9 }
2134 gcodispo 1.10 {
2135     try {
2136     std_vectorlstd_string_g___setitem_____(arg1,arg2,arg3);
2137    
2138     }catch (std::out_of_range& e) {
2139     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
2140 gcodispo 1.9 }
2141 gcodispo 1.4 }
2142 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2143     return resultobj;
2144     fail:
2145     return NULL;
2146     }
2147    
2148    
2149     static PyObject *_wrap_vector_string___setslice__(PyObject *self, PyObject *args) {
2150     PyObject *resultobj;
2151     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2152     int arg2 ;
2153     int arg3 ;
2154     std::vector<std::string > *arg4 = 0 ;
2155     std::vector<std::string > temp4 ;
2156     std::vector<std::string > *v4 ;
2157     PyObject * obj0 = 0 ;
2158     PyObject * obj3 = 0 ;
2159    
2160     if(!PyArg_ParseTuple(args,(char *)"OiiO:vector_string___setslice__",&obj0,&arg2,&arg3,&obj3)) goto fail;
2161     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2162     {
2163     if (PyTuple_Check(obj3) || PyList_Check(obj3)) {
2164     unsigned int size = (PyTuple_Check(obj3) ?
2165     PyTuple_Size(obj3) :
2166     PyList_Size(obj3));
2167     temp4 = std::vector<std::string >(size);
2168     arg4 = &temp4;
2169     for (unsigned int i=0; i<size; i++) {
2170     PyObject* o = PySequence_GetItem(obj3,i);
2171     if (PyString_Check(o)) {
2172     temp4[i] = (std::string)(\
2173     SwigString_AsString(o));
2174     Py_DECREF(o);
2175     }else {
2176     Py_DECREF(o);
2177     PyErr_SetString(PyExc_TypeError,
2178     "vector<""std::string""> expected");
2179     SWIG_fail;
2180     }
2181 gcodispo 1.9 }
2182 gcodispo 1.10 }else if (SWIG_ConvertPtr(obj3,(void **) &v4,
2183     SWIGTYPE_p_std__vectorTstd__string_t,1) != -1){
2184     arg4 = v4;
2185     }else {
2186     PyErr_SetString(PyExc_TypeError,"vector<""std::string" "> expected");
2187     SWIG_fail;
2188 gcodispo 1.9 }
2189     }
2190 gcodispo 1.10 {
2191     try {
2192     std_vectorlstd_string_g___setslice_____(arg1,arg2,arg3,(std::vector<std::string > const &)*arg4);
2193    
2194 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2195 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2196     return NULL;
2197 gcodispo 1.10 }catch (const std::exception& e) {
2198 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2199     return NULL;
2200 gcodispo 1.9 }
2201     }
2202 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2203     return resultobj;
2204     fail:
2205     return NULL;
2206     }
2207    
2208    
2209     static PyObject *_wrap_vector_string___delitem__(PyObject *self, PyObject *args) {
2210     PyObject *resultobj;
2211     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2212     int arg2 ;
2213     PyObject * obj0 = 0 ;
2214    
2215     if(!PyArg_ParseTuple(args,(char *)"Oi:vector_string___delitem__",&obj0,&arg2)) goto fail;
2216     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2217     {
2218     try {
2219     std_vectorlstd_string_g___delitem_____(arg1,arg2);
2220    
2221     }catch (std::out_of_range& e) {
2222     SWIG_exception(SWIG_IndexError,const_cast<char*>(e.what()));
2223 gcodispo 1.9 }
2224     }
2225 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2226     return resultobj;
2227     fail:
2228     return NULL;
2229     }
2230    
2231    
2232     static PyObject *_wrap_vector_string___delslice__(PyObject *self, PyObject *args) {
2233     PyObject *resultobj;
2234     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2235     int arg2 ;
2236     int arg3 ;
2237     PyObject * obj0 = 0 ;
2238    
2239     if(!PyArg_ParseTuple(args,(char *)"Oii:vector_string___delslice__",&obj0,&arg2,&arg3)) goto fail;
2240     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2241     {
2242     try {
2243     std_vectorlstd_string_g___delslice_____(arg1,arg2,arg3);
2244    
2245 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2246 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2247     return NULL;
2248 gcodispo 1.10 }catch (const std::exception& e) {
2249 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2250     return NULL;
2251 gcodispo 1.9 }
2252     }
2253 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2254     return resultobj;
2255     fail:
2256     return NULL;
2257     }
2258    
2259    
2260     static PyObject *_wrap_delete_vector_string(PyObject *self, PyObject *args) {
2261     PyObject *resultobj;
2262     std::vector<std::string > *arg1 = (std::vector<std::string > *) 0 ;
2263     PyObject * obj0 = 0 ;
2264    
2265     if(!PyArg_ParseTuple(args,(char *)"O:delete_vector_string",&obj0)) goto fail;
2266     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2267     {
2268     try {
2269     delete arg1;
2270    
2271 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2272 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2273     return NULL;
2274 gcodispo 1.10 }catch (const std::exception& e) {
2275 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2276     return NULL;
2277 gcodispo 1.9 }
2278 gcodispo 1.4 }
2279 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2280     return resultobj;
2281     fail:
2282     return NULL;
2283 gcodispo 1.9 }
2284 gcodispo 1.3
2285    
2286 gcodispo 1.10 static PyObject * vector_string_swigregister(PyObject *self, PyObject *args) {
2287     PyObject *obj;
2288     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2289     SWIG_TypeClientData(SWIGTYPE_p_std__vectorTstd__string_t, obj);
2290     Py_INCREF(obj);
2291     return Py_BuildValue((char *)"");
2292     }
2293     static PyObject *_wrap_new_BossSession(PyObject *self, PyObject *args) {
2294     PyObject *resultobj;
2295     std::string arg1 = (std::string) "" ;
2296 gcodispo 1.16 std::string arg2 = (std::string) "2" ;
2297     std::string arg3 = (std::string) "" ;
2298 gcodispo 1.18 std::string arg4 = (std::string) "" ;
2299 gcodispo 1.10 BossSession *result;
2300     PyObject * obj0 = 0 ;
2301 gcodispo 1.16 PyObject * obj1 = 0 ;
2302     PyObject * obj2 = 0 ;
2303 gcodispo 1.18 PyObject * obj3 = 0 ;
2304 gcodispo 1.10
2305 gcodispo 1.18 if(!PyArg_ParseTuple(args,(char *)"|OOOO:new_BossSession",&obj0,&obj1,&obj2,&obj3)) goto fail;
2306 gcodispo 1.10 if (obj0) {
2307     {
2308     if (PyString_Check(obj0))
2309     arg1 = std::string(PyString_AsString(obj0));
2310     else
2311     SWIG_exception(SWIG_TypeError, "string expected");
2312     }
2313 yzhang 1.1 }
2314 gcodispo 1.16 if (obj1) {
2315     {
2316     if (PyString_Check(obj1))
2317     arg2 = std::string(PyString_AsString(obj1));
2318     else
2319     SWIG_exception(SWIG_TypeError, "string expected");
2320     }
2321     }
2322     if (obj2) {
2323     {
2324     if (PyString_Check(obj2))
2325     arg3 = std::string(PyString_AsString(obj2));
2326     else
2327     SWIG_exception(SWIG_TypeError, "string expected");
2328     }
2329     }
2330 gcodispo 1.18 if (obj3) {
2331     {
2332     if (PyString_Check(obj3))
2333     arg4 = std::string(PyString_AsString(obj3));
2334     else
2335     SWIG_exception(SWIG_TypeError, "string expected");
2336     }
2337     }
2338 gcodispo 1.10 {
2339     try {
2340 gcodispo 1.18 result = (BossSession *)new BossSession(arg1,arg2,arg3,arg4);
2341 gcodispo 1.10
2342 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2343 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2344     return NULL;
2345 gcodispo 1.10 }catch (const std::exception& e) {
2346 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2347     return NULL;
2348 gcodispo 1.10 }
2349 yzhang 1.1 }
2350 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossSession, 1);
2351     return resultobj;
2352     fail:
2353     return NULL;
2354 yzhang 1.1 }
2355    
2356    
2357 gcodispo 1.10 static PyObject *_wrap_delete_BossSession(PyObject *self, PyObject *args) {
2358     PyObject *resultobj;
2359     BossSession *arg1 = (BossSession *) 0 ;
2360     PyObject * obj0 = 0 ;
2361    
2362     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossSession",&obj0)) goto fail;
2363     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2364     {
2365     try {
2366     delete arg1;
2367    
2368 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2369 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2370     return NULL;
2371 gcodispo 1.10 }catch (const std::exception& e) {
2372 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2373     return NULL;
2374 gcodispo 1.10 }
2375 gcodispo 1.9 }
2376 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2377     return resultobj;
2378     fail:
2379     return NULL;
2380 gcodispo 1.3 }
2381    
2382    
2383 gcodispo 1.13 static PyObject *_wrap_BossSession_resetDB(PyObject *self, PyObject *args) {
2384     PyObject *resultobj;
2385     BossSession *arg1 = (BossSession *) 0 ;
2386     PyObject * obj0 = 0 ;
2387    
2388     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_resetDB",&obj0)) goto fail;
2389     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2390     {
2391     try {
2392     (arg1)->resetDB();
2393    
2394 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2395 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2396     return NULL;
2397 gcodispo 1.13 }catch (const std::exception& e) {
2398 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2399     return NULL;
2400 gcodispo 1.13 }
2401     }
2402     Py_INCREF(Py_None); resultobj = Py_None;
2403     return resultobj;
2404     fail:
2405     return NULL;
2406     }
2407    
2408    
2409 gcodispo 1.10 static PyObject *_wrap_BossSession_clear(PyObject *self, PyObject *args) {
2410     PyObject *resultobj;
2411     BossSession *arg1 = (BossSession *) 0 ;
2412     PyObject * obj0 = 0 ;
2413    
2414     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clear",&obj0)) goto fail;
2415     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2416     {
2417     try {
2418     (arg1)->clear();
2419    
2420 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2421 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2422     return NULL;
2423 gcodispo 1.10 }catch (const std::exception& e) {
2424 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2425     return NULL;
2426 gcodispo 1.10 }
2427 yzhang 1.1 }
2428 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2429     return resultobj;
2430     fail:
2431     return NULL;
2432 yzhang 1.1 }
2433    
2434    
2435 gcodispo 1.10 static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) {
2436     PyObject *resultobj;
2437     BossSession *arg1 = (BossSession *) 0 ;
2438     std::string const &arg2_defvalue = "" ;
2439     std::string *arg2 = (std::string *) &arg2_defvalue ;
2440     BossTask *result;
2441     std::string temp2 ;
2442     PyObject * obj0 = 0 ;
2443     PyObject * obj1 = 0 ;
2444    
2445     if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_makeBossTask",&obj0,&obj1)) goto fail;
2446     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2447     if (obj1) {
2448     {
2449     if (PyString_Check(obj1)) {
2450     temp2 = std::string(PyString_AsString(obj1));
2451     arg2 = &temp2;
2452     }else {
2453     SWIG_exception(SWIG_TypeError, "string expected");
2454     }
2455     }
2456 gcodispo 1.9 }
2457 gcodispo 1.10 {
2458     try {
2459     result = (BossTask *)(arg1)->makeBossTask((std::string const &)*arg2);
2460    
2461 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2462 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2463     return NULL;
2464 gcodispo 1.10 }catch (const std::exception& e) {
2465 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2466     return NULL;
2467 gcodispo 1.10 }
2468 yzhang 1.1 }
2469 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0);
2470     return resultobj;
2471     fail:
2472     return NULL;
2473 yzhang 1.1 }
2474    
2475    
2476 gcodispo 1.10 static PyObject *_wrap_BossSession_destroyBossTask(PyObject *self, PyObject *args) {
2477     PyObject *resultobj;
2478     BossSession *arg1 = (BossSession *) 0 ;
2479     BossTask *arg2 = (BossTask *) 0 ;
2480     PyObject * obj0 = 0 ;
2481     PyObject * obj1 = 0 ;
2482    
2483     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_destroyBossTask",&obj0,&obj1)) goto fail;
2484     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2485     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2486     {
2487     try {
2488     (arg1)->destroyBossTask(arg2);
2489    
2490 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2491 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2492     return NULL;
2493 gcodispo 1.10 }catch (const std::exception& e) {
2494 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2495     return NULL;
2496 gcodispo 1.10 }
2497 yzhang 1.1 }
2498 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2499     return resultobj;
2500     fail:
2501     return NULL;
2502 yzhang 1.1 }
2503    
2504    
2505 gcodispo 1.19 static PyObject *_wrap_BossSession_showCHTools(PyObject *self, PyObject *args) {
2506     PyObject *resultobj;
2507     BossSession *arg1 = (BossSession *) 0 ;
2508     std::vector<std::string > result;
2509     PyObject * obj0 = 0 ;
2510    
2511     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showCHTools",&obj0)) goto fail;
2512     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2513     {
2514     try {
2515     result = (arg1)->showCHTools();
2516    
2517     }catch (const BossSchedFailure & e) {
2518     PyErr_SetString ( SchedulerError, e.what() );
2519     return NULL;
2520     }catch (const std::exception& e) {
2521     PyErr_SetString ( BossError, e.what() );
2522     return NULL;
2523     }
2524     }
2525     {
2526     resultobj = PyTuple_New((&result)->size());
2527     for (unsigned int i=0; i<(&result)->size(); i++)
2528     PyTuple_SetItem(resultobj,i,
2529     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2530     }
2531     return resultobj;
2532     fail:
2533     return NULL;
2534     }
2535    
2536    
2537     static PyObject *_wrap_BossSession_showProgramTypes(PyObject *self, PyObject *args) {
2538     PyObject *resultobj;
2539     BossSession *arg1 = (BossSession *) 0 ;
2540     std::vector<std::string > result;
2541     PyObject * obj0 = 0 ;
2542    
2543     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showProgramTypes",&obj0)) goto fail;
2544     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2545     {
2546     try {
2547     result = (arg1)->showProgramTypes();
2548    
2549     }catch (const BossSchedFailure & e) {
2550     PyErr_SetString ( SchedulerError, e.what() );
2551     return NULL;
2552     }catch (const std::exception& e) {
2553     PyErr_SetString ( BossError, e.what() );
2554     return NULL;
2555     }
2556     }
2557     {
2558     resultobj = PyTuple_New((&result)->size());
2559     for (unsigned int i=0; i<(&result)->size(); i++)
2560     PyTuple_SetItem(resultobj,i,
2561     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2562     }
2563     return resultobj;
2564     fail:
2565     return NULL;
2566     }
2567    
2568    
2569     static PyObject *_wrap_BossSession_showRTMon(PyObject *self, PyObject *args) {
2570     PyObject *resultobj;
2571     BossSession *arg1 = (BossSession *) 0 ;
2572     std::vector<std::string > result;
2573     PyObject * obj0 = 0 ;
2574    
2575     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showRTMon",&obj0)) goto fail;
2576     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2577     {
2578     try {
2579     result = (arg1)->showRTMon();
2580    
2581     }catch (const BossSchedFailure & e) {
2582     PyErr_SetString ( SchedulerError, e.what() );
2583     return NULL;
2584     }catch (const std::exception& e) {
2585     PyErr_SetString ( BossError, e.what() );
2586     return NULL;
2587     }
2588     }
2589     {
2590     resultobj = PyTuple_New((&result)->size());
2591     for (unsigned int i=0; i<(&result)->size(); i++)
2592     PyTuple_SetItem(resultobj,i,
2593     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2594     }
2595     return resultobj;
2596     fail:
2597     return NULL;
2598     }
2599    
2600    
2601     static PyObject *_wrap_BossSession_showSchedulers(PyObject *self, PyObject *args) {
2602     PyObject *resultobj;
2603     BossSession *arg1 = (BossSession *) 0 ;
2604     std::vector<std::string > result;
2605     PyObject * obj0 = 0 ;
2606    
2607     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showSchedulers",&obj0)) goto fail;
2608     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2609     {
2610     try {
2611     result = (arg1)->showSchedulers();
2612    
2613     }catch (const BossSchedFailure & e) {
2614     PyErr_SetString ( SchedulerError, e.what() );
2615     return NULL;
2616     }catch (const std::exception& e) {
2617     PyErr_SetString ( BossError, e.what() );
2618     return NULL;
2619     }
2620     }
2621     {
2622     resultobj = PyTuple_New((&result)->size());
2623     for (unsigned int i=0; i<(&result)->size(); i++)
2624     PyTuple_SetItem(resultobj,i,
2625     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2626     }
2627     return resultobj;
2628     fail:
2629     return NULL;
2630     }
2631    
2632    
2633 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultCHTool(PyObject *self, PyObject *args) {
2634     PyObject *resultobj;
2635     BossSession *arg1 = (BossSession *) 0 ;
2636     std::string result;
2637     PyObject * obj0 = 0 ;
2638    
2639     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultCHTool",&obj0)) goto fail;
2640     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2641     {
2642     try {
2643     result = (arg1)->defaultCHTool();
2644    
2645 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2646 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2647     return NULL;
2648 gcodispo 1.10 }catch (const std::exception& e) {
2649 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2650     return NULL;
2651 gcodispo 1.10 }
2652     }
2653     {
2654     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2655 yzhang 1.1 }
2656 gcodispo 1.10 return resultobj;
2657     fail:
2658     return NULL;
2659 yzhang 1.1 }
2660    
2661    
2662 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultProgramType(PyObject *self, PyObject *args) {
2663     PyObject *resultobj;
2664     BossSession *arg1 = (BossSession *) 0 ;
2665     std::string result;
2666     PyObject * obj0 = 0 ;
2667    
2668     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultProgramType",&obj0)) goto fail;
2669     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2670     {
2671     try {
2672     result = (arg1)->defaultProgramType();
2673    
2674 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2675 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2676     return NULL;
2677 gcodispo 1.10 }catch (const std::exception& e) {
2678 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2679     return NULL;
2680 gcodispo 1.10 }
2681 gcodispo 1.9 }
2682 gcodispo 1.10 {
2683     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2684 gcodispo 1.9 }
2685 gcodispo 1.10 return resultobj;
2686     fail:
2687     return NULL;
2688 yzhang 1.1 }
2689    
2690    
2691 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultRTMon(PyObject *self, PyObject *args) {
2692     PyObject *resultobj;
2693     BossSession *arg1 = (BossSession *) 0 ;
2694     std::string result;
2695     PyObject * obj0 = 0 ;
2696    
2697     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultRTMon",&obj0)) goto fail;
2698     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2699     {
2700     try {
2701     result = (arg1)->defaultRTMon();
2702    
2703 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2704 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2705     return NULL;
2706 gcodispo 1.10 }catch (const std::exception& e) {
2707 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2708     return NULL;
2709 gcodispo 1.10 }
2710 gcodispo 1.9 }
2711 gcodispo 1.10 {
2712     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2713 gcodispo 1.4 }
2714 gcodispo 1.10 return resultobj;
2715     fail:
2716     return NULL;
2717 gcodispo 1.4 }
2718    
2719    
2720 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultScheduler(PyObject *self, PyObject *args) {
2721     PyObject *resultobj;
2722     BossSession *arg1 = (BossSession *) 0 ;
2723     std::string result;
2724     PyObject * obj0 = 0 ;
2725    
2726     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultScheduler",&obj0)) goto fail;
2727     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2728     {
2729     try {
2730     result = (arg1)->defaultScheduler();
2731    
2732 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2733 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2734     return NULL;
2735 gcodispo 1.10 }catch (const std::exception& e) {
2736 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2737     return NULL;
2738 gcodispo 1.10 }
2739 gcodispo 1.9 }
2740 gcodispo 1.10 {
2741     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2742 gcodispo 1.9 }
2743 gcodispo 1.10 return resultobj;
2744     fail:
2745     return NULL;
2746 gcodispo 1.4 }
2747    
2748    
2749 gcodispo 1.10 static PyObject *_wrap_BossSession_version(PyObject *self, PyObject *args) {
2750     PyObject *resultobj;
2751     BossSession *arg1 = (BossSession *) 0 ;
2752     std::string result;
2753     PyObject * obj0 = 0 ;
2754    
2755     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_version",&obj0)) goto fail;
2756     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2757     {
2758     try {
2759     result = (arg1)->version();
2760    
2761 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2762 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2763     return NULL;
2764 gcodispo 1.10 }catch (const std::exception& e) {
2765 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2766     return NULL;
2767 gcodispo 1.10 }
2768 gcodispo 1.9 }
2769 gcodispo 1.10 {
2770     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2771 gcodispo 1.4 }
2772 gcodispo 1.10 return resultobj;
2773     fail:
2774     return NULL;
2775 gcodispo 1.4 }
2776    
2777    
2778 gcodispo 1.10 static PyObject *_wrap_BossSession_clientID(PyObject *self, PyObject *args) {
2779     PyObject *resultobj;
2780     BossSession *arg1 = (BossSession *) 0 ;
2781     std::string result;
2782     PyObject * obj0 = 0 ;
2783    
2784     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clientID",&obj0)) goto fail;
2785     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2786     {
2787     try {
2788     result = (arg1)->clientID();
2789    
2790 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2791 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2792     return NULL;
2793 gcodispo 1.10 }catch (const std::exception& e) {
2794 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2795     return NULL;
2796 gcodispo 1.10 }
2797 gcodispo 1.9 }
2798 gcodispo 1.10 {
2799     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2800 gcodispo 1.9 }
2801 gcodispo 1.10 return resultobj;
2802     fail:
2803     return NULL;
2804 gcodispo 1.4 }
2805    
2806    
2807 gcodispo 1.10 static PyObject *_wrap_BossSession_showConfigs(PyObject *self, PyObject *args) {
2808     PyObject *resultobj;
2809     BossSession *arg1 = (BossSession *) 0 ;
2810     bool arg2 = (bool) false ;
2811     int result;
2812     PyObject * obj0 = 0 ;
2813     PyObject * obj1 = 0 ;
2814    
2815     if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_showConfigs",&obj0,&obj1)) goto fail;
2816     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2817     if (obj1) {
2818     arg2 = PyInt_AsLong(obj1) ? true : false;
2819     if (PyErr_Occurred()) SWIG_fail;
2820 gcodispo 1.9 }
2821 gcodispo 1.10 {
2822     try {
2823     result = (int)(arg1)->showConfigs(arg2);
2824    
2825 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2826 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2827     return NULL;
2828     }catch (const std::exception& e) {
2829     PyErr_SetString ( BossError, e.what() );
2830     return NULL;
2831     }
2832     }
2833     resultobj = PyInt_FromLong((long)result);
2834     return resultobj;
2835     fail:
2836     return NULL;
2837     }
2838    
2839    
2840     static PyObject *_wrap_BossSession_RTupdate(PyObject *self, PyObject *args) {
2841     PyObject *resultobj;
2842     BossSession *arg1 = (BossSession *) 0 ;
2843     std::string arg2 = (std::string) "all" ;
2844     std::string arg3 = (std::string) "all" ;
2845     std::string arg4 = (std::string) "" ;
2846     int result;
2847     PyObject * obj0 = 0 ;
2848     PyObject * obj1 = 0 ;
2849     PyObject * obj2 = 0 ;
2850     PyObject * obj3 = 0 ;
2851    
2852     if(!PyArg_ParseTuple(args,(char *)"O|OOO:BossSession_RTupdate",&obj0,&obj1,&obj2,&obj3)) goto fail;
2853     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2854     if (obj1) {
2855     {
2856     if (PyString_Check(obj1))
2857     arg2 = std::string(PyString_AsString(obj1));
2858     else
2859     SWIG_exception(SWIG_TypeError, "string expected");
2860     }
2861     }
2862     if (obj2) {
2863     {
2864     if (PyString_Check(obj2))
2865     arg3 = std::string(PyString_AsString(obj2));
2866     else
2867     SWIG_exception(SWIG_TypeError, "string expected");
2868     }
2869     }
2870     if (obj3) {
2871     {
2872     if (PyString_Check(obj3))
2873     arg4 = std::string(PyString_AsString(obj3));
2874     else
2875     SWIG_exception(SWIG_TypeError, "string expected");
2876     }
2877     }
2878     {
2879     try {
2880     result = (int)(arg1)->RTupdate(arg2,arg3,arg4);
2881    
2882     }catch (const BossSchedFailure & e) {
2883     PyErr_SetString ( SchedulerError, e.what() );
2884     return NULL;
2885 gcodispo 1.10 }catch (const std::exception& e) {
2886 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2887     return NULL;
2888 gcodispo 1.10 }
2889 gcodispo 1.9 }
2890 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
2891     return resultobj;
2892     fail:
2893     return NULL;
2894 gcodispo 1.4 }
2895    
2896    
2897 gcodispo 1.19 static PyObject *_wrap_BossSession_listMatch(PyObject *self, PyObject *args) {
2898     PyObject *resultobj;
2899     BossSession *arg1 = (BossSession *) 0 ;
2900     std::string *arg2 = 0 ;
2901     std::string *arg3 = 0 ;
2902     bool arg4 = (bool) false ;
2903     std::string const &arg5_defvalue = "" ;
2904     std::string *arg5 = (std::string *) &arg5_defvalue ;
2905     std::string const &arg6_defvalue = "" ;
2906     std::string *arg6 = (std::string *) &arg6_defvalue ;
2907 gcodispo 1.21 unsigned int arg7 = (unsigned int) 0 ;
2908 gcodispo 1.19 std::vector<std::string > result;
2909     std::string temp2 ;
2910     std::string temp3 ;
2911     std::string temp5 ;
2912     std::string temp6 ;
2913     PyObject * obj0 = 0 ;
2914     PyObject * obj1 = 0 ;
2915     PyObject * obj2 = 0 ;
2916     PyObject * obj3 = 0 ;
2917     PyObject * obj4 = 0 ;
2918     PyObject * obj5 = 0 ;
2919 gcodispo 1.21 PyObject * obj6 = 0 ;
2920 gcodispo 1.19
2921 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
2922 gcodispo 1.19 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2923     {
2924     if (PyString_Check(obj1)) {
2925     temp2 = std::string(PyString_AsString(obj1));
2926     arg2 = &temp2;
2927     }else {
2928     SWIG_exception(SWIG_TypeError, "string expected");
2929     }
2930     }
2931     {
2932     if (PyString_Check(obj2)) {
2933     temp3 = std::string(PyString_AsString(obj2));
2934     arg3 = &temp3;
2935     }else {
2936     SWIG_exception(SWIG_TypeError, "string expected");
2937     }
2938     }
2939     if (obj3) {
2940     arg4 = PyInt_AsLong(obj3) ? true : false;
2941     if (PyErr_Occurred()) SWIG_fail;
2942     }
2943     if (obj4) {
2944     {
2945     if (PyString_Check(obj4)) {
2946     temp5 = std::string(PyString_AsString(obj4));
2947     arg5 = &temp5;
2948     }else {
2949     SWIG_exception(SWIG_TypeError, "string expected");
2950     }
2951     }
2952     }
2953     if (obj5) {
2954     {
2955     if (PyString_Check(obj5)) {
2956     temp6 = std::string(PyString_AsString(obj5));
2957     arg6 = &temp6;
2958     }else {
2959     SWIG_exception(SWIG_TypeError, "string expected");
2960     }
2961     }
2962     }
2963 gcodispo 1.21 if (obj6) {
2964     arg7 = (unsigned int) PyInt_AsLong(obj6);
2965     if (PyErr_Occurred()) SWIG_fail;
2966     }
2967 gcodispo 1.19 {
2968     try {
2969 gcodispo 1.21 result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,arg4,(std::string const &)*arg5,(std::string const &)*arg6,arg7);
2970 gcodispo 1.19
2971     }catch (const BossSchedFailure & e) {
2972     PyErr_SetString ( SchedulerError, e.what() );
2973     return NULL;
2974     }catch (const std::exception& e) {
2975     PyErr_SetString ( BossError, e.what() );
2976     return NULL;
2977     }
2978     }
2979     {
2980     resultobj = PyTuple_New((&result)->size());
2981     for (unsigned int i=0; i<(&result)->size(); i++)
2982     PyTuple_SetItem(resultobj,i,
2983     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2984     }
2985     return resultobj;
2986     fail:
2987     return NULL;
2988     }
2989    
2990    
2991     static PyObject *_wrap_BossSession_schedulerQuery(PyObject *self, PyObject *args) {
2992     PyObject *resultobj;
2993     BossSession *arg1 = (BossSession *) 0 ;
2994     int arg2 = (int) SCHEDULED ;
2995     std::string const &arg3_defvalue = "all" ;
2996     std::string *arg3 = (std::string *) &arg3_defvalue ;
2997     std::string const &arg4_defvalue = "all" ;
2998     std::string *arg4 = (std::string *) &arg4_defvalue ;
2999     std::string const &arg5_defvalue = "" ;
3000     std::string *arg5 = (std::string *) &arg5_defvalue ;
3001     std::string arg6 = (std::string) "" ;
3002     std::string arg7 = (std::string) "" ;
3003     std::string arg8 = (std::string) "" ;
3004     std::string arg9 = (std::string) "" ;
3005 gcodispo 1.21 unsigned int arg10 = (unsigned int) 0 ;
3006 gcodispo 1.19 std::string temp3 ;
3007     std::string temp4 ;
3008     std::string temp5 ;
3009 gcodispo 1.10 PyObject * obj0 = 0 ;
3010     PyObject * obj2 = 0 ;
3011     PyObject * obj3 = 0 ;
3012 gcodispo 1.19 PyObject * obj4 = 0 ;
3013     PyObject * obj5 = 0 ;
3014     PyObject * obj6 = 0 ;
3015     PyObject * obj7 = 0 ;
3016     PyObject * obj8 = 0 ;
3017 gcodispo 1.21 PyObject * obj9 = 0 ;
3018 gcodispo 1.10
3019 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3020 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3021 gcodispo 1.19 if (obj2) {
3022     {
3023     if (PyString_Check(obj2)) {
3024     temp3 = std::string(PyString_AsString(obj2));
3025     arg3 = &temp3;
3026     }else {
3027     SWIG_exception(SWIG_TypeError, "string expected");
3028     }
3029     }
3030     }
3031     if (obj3) {
3032     {
3033     if (PyString_Check(obj3)) {
3034     temp4 = std::string(PyString_AsString(obj3));
3035     arg4 = &temp4;
3036     }else {
3037     SWIG_exception(SWIG_TypeError, "string expected");
3038     }
3039     }
3040     }
3041     if (obj4) {
3042     {
3043     if (PyString_Check(obj4)) {
3044     temp5 = std::string(PyString_AsString(obj4));
3045     arg5 = &temp5;
3046     }else {
3047     SWIG_exception(SWIG_TypeError, "string expected");
3048     }
3049     }
3050     }
3051     if (obj5) {
3052     {
3053     if (PyString_Check(obj5))
3054     arg6 = std::string(PyString_AsString(obj5));
3055     else
3056     SWIG_exception(SWIG_TypeError, "string expected");
3057     }
3058     }
3059     if (obj6) {
3060 gcodispo 1.10 {
3061 gcodispo 1.19 if (PyString_Check(obj6))
3062     arg7 = std::string(PyString_AsString(obj6));
3063 gcodispo 1.10 else
3064     SWIG_exception(SWIG_TypeError, "string expected");
3065     }
3066 gcodispo 1.9 }
3067 gcodispo 1.19 if (obj7) {
3068 gcodispo 1.10 {
3069 gcodispo 1.19 if (PyString_Check(obj7))
3070     arg8 = std::string(PyString_AsString(obj7));
3071 gcodispo 1.10 else
3072     SWIG_exception(SWIG_TypeError, "string expected");
3073     }
3074 gcodispo 1.9 }
3075 gcodispo 1.19 if (obj8) {
3076 gcodispo 1.10 {
3077 gcodispo 1.19 if (PyString_Check(obj8))
3078     arg9 = std::string(PyString_AsString(obj8));
3079 gcodispo 1.10 else
3080     SWIG_exception(SWIG_TypeError, "string expected");
3081     }
3082 gcodispo 1.9 }
3083 gcodispo 1.21 if (obj9) {
3084     arg10 = (unsigned int) PyInt_AsLong(obj9);
3085     if (PyErr_Occurred()) SWIG_fail;
3086     }
3087 gcodispo 1.10 {
3088     try {
3089 gcodispo 1.21 (arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10);
3090 gcodispo 1.10
3091 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3092 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3093     return NULL;
3094 gcodispo 1.10 }catch (const std::exception& e) {
3095 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3096     return NULL;
3097 gcodispo 1.10 }
3098 gcodispo 1.9 }
3099 gcodispo 1.19 Py_INCREF(Py_None); resultobj = Py_None;
3100 gcodispo 1.10 return resultobj;
3101     fail:
3102     return NULL;
3103 gcodispo 1.4 }
3104    
3105    
3106 gcodispo 1.19 static PyObject *_wrap_BossSession_selectTasks(PyObject *self, PyObject *args) {
3107 gcodispo 1.10 PyObject *resultobj;
3108     BossSession *arg1 = (BossSession *) 0 ;
3109 gcodispo 1.19 std::string const &arg2_defvalue = "all" ;
3110     std::string *arg2 = (std::string *) &arg2_defvalue ;
3111     std::string const &arg3_defvalue = "" ;
3112     std::string *arg3 = (std::string *) &arg3_defvalue ;
3113     std::string const &arg4_defvalue = "" ;
3114     std::string *arg4 = (std::string *) &arg4_defvalue ;
3115 gcodispo 1.10 std::string const &arg5_defvalue = "" ;
3116     std::string *arg5 = (std::string *) &arg5_defvalue ;
3117     std::vector<std::string > result;
3118     std::string temp2 ;
3119     std::string temp3 ;
3120 gcodispo 1.19 std::string temp4 ;
3121 gcodispo 1.10 std::string temp5 ;
3122     PyObject * obj0 = 0 ;
3123     PyObject * obj1 = 0 ;
3124     PyObject * obj2 = 0 ;
3125     PyObject * obj3 = 0 ;
3126     PyObject * obj4 = 0 ;
3127    
3128 gcodispo 1.19 if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossSession_selectTasks",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3129 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3130 gcodispo 1.19 if (obj1) {
3131     {
3132     if (PyString_Check(obj1)) {
3133     temp2 = std::string(PyString_AsString(obj1));
3134     arg2 = &temp2;
3135     }else {
3136     SWIG_exception(SWIG_TypeError, "string expected");
3137     }
3138 gcodispo 1.10 }
3139     }
3140 gcodispo 1.19 if (obj2) {
3141     {
3142     if (PyString_Check(obj2)) {
3143     temp3 = std::string(PyString_AsString(obj2));
3144     arg3 = &temp3;
3145     }else {
3146     SWIG_exception(SWIG_TypeError, "string expected");
3147     }
3148 gcodispo 1.10 }
3149     }
3150     if (obj3) {
3151     {
3152 gcodispo 1.19 if (PyString_Check(obj3)) {
3153     temp4 = std::string(PyString_AsString(obj3));
3154     arg4 = &temp4;
3155 gcodispo 1.10 }else {
3156     SWIG_exception(SWIG_TypeError, "string expected");
3157     }
3158     }
3159 gcodispo 1.9 }
3160 gcodispo 1.19 if (obj4) {
3161 gcodispo 1.10 {
3162 gcodispo 1.19 if (PyString_Check(obj4)) {
3163     temp5 = std::string(PyString_AsString(obj4));
3164     arg5 = &temp5;
3165 gcodispo 1.10 }else {
3166     SWIG_exception(SWIG_TypeError, "string expected");
3167     }
3168     }
3169 gcodispo 1.9 }
3170 gcodispo 1.10 {
3171     try {
3172 gcodispo 1.19 result = (arg1)->selectTasks((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
3173 gcodispo 1.10
3174 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3175 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3176     return NULL;
3177 gcodispo 1.10 }catch (const std::exception& e) {
3178 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3179     return NULL;
3180 gcodispo 1.10 }
3181 gcodispo 1.4 }
3182 gcodispo 1.10 {
3183     resultobj = PyTuple_New((&result)->size());
3184     for (unsigned int i=0; i<(&result)->size(); i++)
3185     PyTuple_SetItem(resultobj,i,
3186     SwigString_FromString(((std::vector<std::string > &)result)[i]));
3187 gcodispo 1.4 }
3188 gcodispo 1.10 return resultobj;
3189     fail:
3190     return NULL;
3191 gcodispo 1.4 }
3192    
3193    
3194 gcodispo 1.26 static PyObject *_wrap_BossSession_selectTasksByName(PyObject *self, PyObject *args) {
3195     PyObject *resultobj;
3196     BossSession *arg1 = (BossSession *) 0 ;
3197     std::string *arg2 = 0 ;
3198     std::vector<std::string > result;
3199     std::string temp2 ;
3200     PyObject * obj0 = 0 ;
3201     PyObject * obj1 = 0 ;
3202    
3203     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_selectTasksByName",&obj0,&obj1)) goto fail;
3204     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3205     {
3206     if (PyString_Check(obj1)) {
3207     temp2 = std::string(PyString_AsString(obj1));
3208     arg2 = &temp2;
3209     }else {
3210     SWIG_exception(SWIG_TypeError, "string expected");
3211     }
3212     }
3213     {
3214     try {
3215     result = (arg1)->selectTasksByName((std::string const &)*arg2);
3216    
3217     }catch (const BossSchedFailure & e) {
3218     PyErr_SetString ( SchedulerError, e.what() );
3219     return NULL;
3220     }catch (const std::exception& e) {
3221     PyErr_SetString ( BossError, e.what() );
3222     return NULL;
3223     }
3224     }
3225     {
3226     resultobj = PyTuple_New((&result)->size());
3227     for (unsigned int i=0; i<(&result)->size(); i++)
3228     PyTuple_SetItem(resultobj,i,
3229     SwigString_FromString(((std::vector<std::string > &)result)[i]));
3230     }
3231     return resultobj;
3232     fail:
3233     return NULL;
3234     }
3235    
3236    
3237 gcodispo 1.19 static PyObject *_wrap_BossSession_query(PyObject *self, PyObject *args) {
3238 gcodispo 1.10 PyObject *resultobj;
3239     BossSession *arg1 = (BossSession *) 0 ;
3240     int arg2 = (int) SCHEDULED ;
3241     std::string const &arg3_defvalue = "all" ;
3242     std::string *arg3 = (std::string *) &arg3_defvalue ;
3243     std::string const &arg4_defvalue = "all" ;
3244     std::string *arg4 = (std::string *) &arg4_defvalue ;
3245     std::string const &arg5_defvalue = "" ;
3246     std::string *arg5 = (std::string *) &arg5_defvalue ;
3247     std::string arg6 = (std::string) "" ;
3248     std::string arg7 = (std::string) "" ;
3249     std::string arg8 = (std::string) "" ;
3250     std::string arg9 = (std::string) "" ;
3251 gcodispo 1.21 unsigned int arg10 = (unsigned int) 0 ;
3252     bool arg11 = (bool) false ;
3253 gcodispo 1.19 SwigValueWrapper< std::vector<BossTask * > > result;
3254 gcodispo 1.10 std::string temp3 ;
3255     std::string temp4 ;
3256     std::string temp5 ;
3257     PyObject * obj0 = 0 ;
3258     PyObject * obj2 = 0 ;
3259     PyObject * obj3 = 0 ;
3260     PyObject * obj4 = 0 ;
3261     PyObject * obj5 = 0 ;
3262     PyObject * obj6 = 0 ;
3263     PyObject * obj7 = 0 ;
3264     PyObject * obj8 = 0 ;
3265 gcodispo 1.19 PyObject * obj9 = 0 ;
3266 gcodispo 1.21 PyObject * obj10 = 0 ;
3267 gcodispo 1.10
3268 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOOO:BossSession_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
3269 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3270     if (obj2) {
3271     {
3272     if (PyString_Check(obj2)) {
3273     temp3 = std::string(PyString_AsString(obj2));
3274     arg3 = &temp3;
3275     }else {
3276     SWIG_exception(SWIG_TypeError, "string expected");
3277     }
3278     }
3279     }
3280     if (obj3) {
3281     {
3282     if (PyString_Check(obj3)) {
3283     temp4 = std::string(PyString_AsString(obj3));
3284     arg4 = &temp4;
3285     }else {
3286     SWIG_exception(SWIG_TypeError, "string expected");
3287     }
3288     }
3289 gcodispo 1.9 }
3290 gcodispo 1.10 if (obj4) {
3291     {
3292     if (PyString_Check(obj4)) {
3293     temp5 = std::string(PyString_AsString(obj4));
3294     arg5 = &temp5;
3295     }else {
3296     SWIG_exception(SWIG_TypeError, "string expected");
3297     }
3298     }
3299 gcodispo 1.9 }
3300 gcodispo 1.10 if (obj5) {
3301     {
3302     if (PyString_Check(obj5))
3303     arg6 = std::string(PyString_AsString(obj5));
3304     else
3305     SWIG_exception(SWIG_TypeError, "string expected");
3306     }
3307 gcodispo 1.9 }
3308 gcodispo 1.10 if (obj6) {
3309     {
3310     if (PyString_Check(obj6))
3311     arg7 = std::string(PyString_AsString(obj6));
3312     else
3313 gcodispo 1.19 SWIG_exception(SWIG_TypeError, "string expected");
3314     }
3315     }
3316     if (obj7) {
3317     {
3318     if (PyString_Check(obj7))
3319     arg8 = std::string(PyString_AsString(obj7));
3320     else
3321     SWIG_exception(SWIG_TypeError, "string expected");
3322     }
3323     }
3324     if (obj8) {
3325     {
3326     if (PyString_Check(obj8))
3327     arg9 = std::string(PyString_AsString(obj8));
3328     else
3329     SWIG_exception(SWIG_TypeError, "string expected");
3330     }
3331     }
3332     if (obj9) {
3333 gcodispo 1.21 arg10 = (unsigned int) PyInt_AsLong(obj9);
3334     if (PyErr_Occurred()) SWIG_fail;
3335     }
3336     if (obj10) {
3337     arg11 = PyInt_AsLong(obj10) ? true : false;
3338 gcodispo 1.19 if (PyErr_Occurred()) SWIG_fail;
3339     }
3340     {
3341     try {
3342 gcodispo 1.21 result = (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11);
3343 gcodispo 1.19
3344     }catch (const BossSchedFailure & e) {
3345     PyErr_SetString ( SchedulerError, e.what() );
3346     return NULL;
3347     }catch (const std::exception& e) {
3348     PyErr_SetString ( BossError, e.what() );
3349     return NULL;
3350     }
3351     }
3352     {
3353     std::vector<BossTask * > * resultptr;
3354     resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result);
3355     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1);
3356     }
3357     return resultobj;
3358     fail:
3359     return NULL;
3360     }
3361    
3362    
3363 gcodispo 1.26 static PyObject *_wrap_BossSession_getTasksByName(PyObject *self, PyObject *args) {
3364     PyObject *resultobj;
3365     BossSession *arg1 = (BossSession *) 0 ;
3366     std::string *arg2 = 0 ;
3367     SwigValueWrapper< std::vector<BossTask * > > result;
3368     std::string temp2 ;
3369     PyObject * obj0 = 0 ;
3370     PyObject * obj1 = 0 ;
3371    
3372     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByName",&obj0,&obj1)) goto fail;
3373     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3374     {
3375     if (PyString_Check(obj1)) {
3376     temp2 = std::string(PyString_AsString(obj1));
3377     arg2 = &temp2;
3378     }else {
3379     SWIG_exception(SWIG_TypeError, "string expected");
3380     }
3381     }
3382     {
3383     try {
3384     result = (arg1)->getTasksByName((std::string const &)*arg2);
3385    
3386     }catch (const BossSchedFailure & e) {
3387     PyErr_SetString ( SchedulerError, e.what() );
3388     return NULL;
3389     }catch (const std::exception& e) {
3390     PyErr_SetString ( BossError, e.what() );
3391     return NULL;
3392     }
3393     }
3394     {
3395     std::vector<BossTask * > * resultptr;
3396     resultptr = new std::vector<BossTask * >((std::vector<BossTask * > &) result);
3397     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossTask_p_t, 1);
3398     }
3399     return resultobj;
3400     fail:
3401     return NULL;
3402     }
3403    
3404    
3405 gcodispo 1.19 static PyObject *_wrap_BossSession_show(PyObject *self, PyObject *args) {
3406     PyObject *resultobj;
3407     BossSession *arg1 = (BossSession *) 0 ;
3408     std::vector<std::string > *arg2 = 0 ;
3409     PyObject *result;
3410     PyObject * obj0 = 0 ;
3411     PyObject * obj1 = 0 ;
3412    
3413     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_show",&obj0,&obj1)) goto fail;
3414     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3415     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3416     if (arg2 == NULL) {
3417     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3418     }
3419     {
3420     try {
3421     result = (PyObject *)BossSession_show(arg1,*arg2);
3422    
3423     }catch (const BossSchedFailure & e) {
3424     PyErr_SetString ( SchedulerError, e.what() );
3425     return NULL;
3426     }catch (const std::exception& e) {
3427     PyErr_SetString ( BossError, e.what() );
3428     return NULL;
3429     }
3430     }
3431     resultobj = result;
3432     return resultobj;
3433     fail:
3434     return NULL;
3435     }
3436    
3437    
3438     static PyObject *_wrap_BossSession_CHTools(PyObject *self, PyObject *args) {
3439     PyObject *resultobj;
3440     BossSession *arg1 = (BossSession *) 0 ;
3441     PyObject *result;
3442     PyObject * obj0 = 0 ;
3443    
3444     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_CHTools",&obj0)) goto fail;
3445     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3446     {
3447     try {
3448     result = (PyObject *)BossSession_CHTools(arg1);
3449    
3450     }catch (const BossSchedFailure & e) {
3451     PyErr_SetString ( SchedulerError, e.what() );
3452     return NULL;
3453     }catch (const std::exception& e) {
3454     PyErr_SetString ( BossError, e.what() );
3455     return NULL;
3456     }
3457     }
3458     resultobj = result;
3459     return resultobj;
3460     fail:
3461     return NULL;
3462     }
3463    
3464    
3465     static PyObject *_wrap_BossSession_ProgramTypes(PyObject *self, PyObject *args) {
3466     PyObject *resultobj;
3467     BossSession *arg1 = (BossSession *) 0 ;
3468     PyObject *result;
3469     PyObject * obj0 = 0 ;
3470    
3471     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_ProgramTypes",&obj0)) goto fail;
3472     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3473     {
3474     try {
3475     result = (PyObject *)BossSession_ProgramTypes(arg1);
3476    
3477     }catch (const BossSchedFailure & e) {
3478     PyErr_SetString ( SchedulerError, e.what() );
3479     return NULL;
3480     }catch (const std::exception& e) {
3481     PyErr_SetString ( BossError, e.what() );
3482     return NULL;
3483 gcodispo 1.10 }
3484 gcodispo 1.4 }
3485 gcodispo 1.19 resultobj = result;
3486     return resultobj;
3487     fail:
3488     return NULL;
3489     }
3490    
3491    
3492     static PyObject *_wrap_BossSession_RTMons(PyObject *self, PyObject *args) {
3493     PyObject *resultobj;
3494     BossSession *arg1 = (BossSession *) 0 ;
3495     PyObject *result;
3496     PyObject * obj0 = 0 ;
3497    
3498     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_RTMons",&obj0)) goto fail;
3499     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3500     {
3501     try {
3502     result = (PyObject *)BossSession_RTMons(arg1);
3503    
3504     }catch (const BossSchedFailure & e) {
3505     PyErr_SetString ( SchedulerError, e.what() );
3506     return NULL;
3507     }catch (const std::exception& e) {
3508     PyErr_SetString ( BossError, e.what() );
3509     return NULL;
3510 gcodispo 1.10 }
3511 gcodispo 1.4 }
3512 gcodispo 1.19 resultobj = result;
3513     return resultobj;
3514     fail:
3515     return NULL;
3516     }
3517    
3518    
3519     static PyObject *_wrap_BossSession_schedulers(PyObject *self, PyObject *args) {
3520     PyObject *resultobj;
3521     BossSession *arg1 = (BossSession *) 0 ;
3522     PyObject *result;
3523     PyObject * obj0 = 0 ;
3524    
3525     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_schedulers",&obj0)) goto fail;
3526     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3527 gcodispo 1.10 {
3528     try {
3529 gcodispo 1.19 result = (PyObject *)BossSession_schedulers(arg1);
3530 gcodispo 1.10
3531 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3532 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3533     return NULL;
3534 gcodispo 1.10 }catch (const std::exception& e) {
3535 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3536     return NULL;
3537 gcodispo 1.10 }
3538 gcodispo 1.4 }
3539 gcodispo 1.19 resultobj = result;
3540 gcodispo 1.10 return resultobj;
3541     fail:
3542     return NULL;
3543 gcodispo 1.4 }
3544    
3545    
3546 gcodispo 1.19 static PyObject *_wrap_BossSession_schedListMatch(PyObject *self, PyObject *args) {
3547 gcodispo 1.10 PyObject *resultobj;
3548     BossSession *arg1 = (BossSession *) 0 ;
3549 gcodispo 1.19 std::string *arg2 = 0 ;
3550     std::string *arg3 = 0 ;
3551 gcodispo 1.10 std::string const &arg4_defvalue = "" ;
3552     std::string *arg4 = (std::string *) &arg4_defvalue ;
3553     std::string const &arg5_defvalue = "" ;
3554     std::string *arg5 = (std::string *) &arg5_defvalue ;
3555 gcodispo 1.21 unsigned int arg6 = (unsigned int) 0 ;
3556     bool arg7 = (bool) false ;
3557 gcodispo 1.19 PyObject *result;
3558 gcodispo 1.10 std::string temp2 ;
3559     std::string temp3 ;
3560     std::string temp4 ;
3561     std::string temp5 ;
3562     PyObject * obj0 = 0 ;
3563     PyObject * obj1 = 0 ;
3564     PyObject * obj2 = 0 ;
3565     PyObject * obj3 = 0 ;
3566     PyObject * obj4 = 0 ;
3567 gcodispo 1.19 PyObject * obj5 = 0 ;
3568 gcodispo 1.21 PyObject * obj6 = 0 ;
3569 gcodispo 1.10
3570 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"OOO|OOOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3571 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3572 gcodispo 1.19 {
3573     if (PyString_Check(obj1)) {
3574     temp2 = std::string(PyString_AsString(obj1));
3575     arg2 = &temp2;
3576     }else {
3577     SWIG_exception(SWIG_TypeError, "string expected");
3578 gcodispo 1.10 }
3579 gcodispo 1.9 }
3580 gcodispo 1.19 {
3581     if (PyString_Check(obj2)) {
3582     temp3 = std::string(PyString_AsString(obj2));
3583     arg3 = &temp3;
3584     }else {
3585     SWIG_exception(SWIG_TypeError, "string expected");
3586 gcodispo 1.8 }
3587     }
3588 gcodispo 1.10 if (obj3) {
3589     {
3590     if (PyString_Check(obj3)) {
3591     temp4 = std::string(PyString_AsString(obj3));
3592     arg4 = &temp4;
3593     }else {
3594     SWIG_exception(SWIG_TypeError, "string expected");
3595     }
3596 gcodispo 1.8 }
3597     }
3598 gcodispo 1.10 if (obj4) {
3599     {
3600     if (PyString_Check(obj4)) {
3601     temp5 = std::string(PyString_AsString(obj4));
3602     arg5 = &temp5;
3603     }else {
3604     SWIG_exception(SWIG_TypeError, "string expected");
3605 gcodispo 1.8 }
3606     }
3607     }
3608 gcodispo 1.19 if (obj5) {
3609 gcodispo 1.21 arg6 = (unsigned int) PyInt_AsLong(obj5);
3610     if (PyErr_Occurred()) SWIG_fail;
3611     }
3612     if (obj6) {
3613     arg7 = PyInt_AsLong(obj6) ? true : false;
3614 gcodispo 1.19 if (PyErr_Occurred()) SWIG_fail;
3615     }
3616 gcodispo 1.10 {
3617     try {
3618 gcodispo 1.21 result = (PyObject *)BossSession_schedListMatch(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7);
3619 gcodispo 1.10
3620 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3621 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3622     return NULL;
3623 gcodispo 1.10 }catch (const std::exception& e) {
3624 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3625     return NULL;
3626 gcodispo 1.8 }
3627     }
3628 gcodispo 1.19 resultobj = result;
3629 gcodispo 1.10 return resultobj;
3630     fail:
3631     return NULL;
3632 gcodispo 1.8 }
3633    
3634    
3635 gcodispo 1.19 static PyObject *_wrap_BossSession_queryTasks(PyObject *self, PyObject *args) {
3636 gcodispo 1.10 PyObject *resultobj;
3637     BossSession *arg1 = (BossSession *) 0 ;
3638 gcodispo 1.26 std::string const &arg2_defvalue = "" ;
3639     std::string *arg2 = (std::string *) &arg2_defvalue ;
3640 gcodispo 1.10 std::string const &arg3_defvalue = "all" ;
3641     std::string *arg3 = (std::string *) &arg3_defvalue ;
3642 gcodispo 1.26 std::string arg4 = (std::string) "" ;
3643     std::string arg5 = (std::string) "" ;
3644 gcodispo 1.10 std::string arg6 = (std::string) "" ;
3645 gcodispo 1.19 PyObject *result;
3646 gcodispo 1.26 std::string temp2 ;
3647 gcodispo 1.10 std::string temp3 ;
3648     PyObject * obj0 = 0 ;
3649 gcodispo 1.26 PyObject * obj1 = 0 ;
3650 gcodispo 1.10 PyObject * obj2 = 0 ;
3651     PyObject * obj3 = 0 ;
3652     PyObject * obj4 = 0 ;
3653     PyObject * obj5 = 0 ;
3654    
3655 gcodispo 1.26 if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossSession_queryTasks",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3656 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3657 gcodispo 1.26 if (obj1) {
3658 gcodispo 1.10 {
3659 gcodispo 1.26 if (PyString_Check(obj1)) {
3660     temp2 = std::string(PyString_AsString(obj1));
3661     arg2 = &temp2;
3662 gcodispo 1.10 }else {
3663     SWIG_exception(SWIG_TypeError, "string expected");
3664     }
3665     }
3666     }
3667 gcodispo 1.26 if (obj2) {
3668 gcodispo 1.10 {
3669 gcodispo 1.26 if (PyString_Check(obj2)) {
3670     temp3 = std::string(PyString_AsString(obj2));
3671     arg3 = &temp3;
3672 gcodispo 1.10 }else {
3673     SWIG_exception(SWIG_TypeError, "string expected");
3674     }
3675     }
3676     }
3677 gcodispo 1.26 if (obj3) {
3678 gcodispo 1.10 {
3679 gcodispo 1.26 if (PyString_Check(obj3))
3680     arg4 = std::string(PyString_AsString(obj3));
3681 gcodispo 1.10 else
3682     SWIG_exception(SWIG_TypeError, "string expected");
3683     }
3684 gcodispo 1.3 }
3685 gcodispo 1.26 if (obj4) {
3686 gcodispo 1.10 {
3687 gcodispo 1.26 if (PyString_Check(obj4))
3688     arg5 = std::string(PyString_AsString(obj4));
3689 gcodispo 1.10 else
3690     SWIG_exception(SWIG_TypeError, "string expected");
3691     }
3692 gcodispo 1.3 }
3693 gcodispo 1.26 if (obj5) {
3694 gcodispo 1.10 {
3695 gcodispo 1.26 if (PyString_Check(obj5))
3696     arg6 = std::string(PyString_AsString(obj5));
3697 gcodispo 1.10 else
3698     SWIG_exception(SWIG_TypeError, "string expected");
3699     }
3700 gcodispo 1.3 }
3701 gcodispo 1.10 {
3702     try {
3703 gcodispo 1.26 result = (PyObject *)BossSession_queryTasks(arg1,(std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6);
3704 gcodispo 1.10
3705 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3706 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3707     return NULL;
3708 gcodispo 1.10 }catch (const std::exception& e) {
3709 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3710     return NULL;
3711 gcodispo 1.10 }
3712 yzhang 1.1 }
3713 gcodispo 1.19 resultobj = result;
3714 gcodispo 1.10 return resultobj;
3715     fail:
3716     return NULL;
3717 yzhang 1.1 }
3718    
3719    
3720 gcodispo 1.10 static PyObject * BossSession_swigregister(PyObject *self, PyObject *args) {
3721     PyObject *obj;
3722     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3723     SWIG_TypeClientData(SWIGTYPE_p_BossSession, obj);
3724     Py_INCREF(obj);
3725     return Py_BuildValue((char *)"");
3726     }
3727     static PyObject *_wrap_BossTaskException_key_set(PyObject *self, PyObject *args) {
3728     PyObject *resultobj;
3729     BossTaskException *arg1 = (BossTaskException *) 0 ;
3730     char *arg2 ;
3731     PyObject * obj0 = 0 ;
3732    
3733     if(!PyArg_ParseTuple(args,(char *)"Os:BossTaskException_key_set",&obj0,&arg2)) goto fail;
3734     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3735     {
3736     if (arg2) {
3737     arg1->key = (char const *) (new char[strlen(arg2)+1]);
3738     strcpy((char *) arg1->key,arg2);
3739     }else {
3740     arg1->key = 0;
3741     }
3742 yzhang 1.2 }
3743 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
3744     return resultobj;
3745     fail:
3746     return NULL;
3747     }
3748    
3749    
3750     static PyObject *_wrap_BossTaskException_key_get(PyObject *self, PyObject *args) {
3751     PyObject *resultobj;
3752     BossTaskException *arg1 = (BossTaskException *) 0 ;
3753     char *result;
3754     PyObject * obj0 = 0 ;
3755    
3756     if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_key_get",&obj0)) goto fail;
3757     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3758     result = (char *) ((arg1)->key);
3759    
3760     resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3761     return resultobj;
3762     fail:
3763     return NULL;
3764     }
3765    
3766    
3767 gcodispo 1.19 static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) {
3768 gcodispo 1.10 PyObject *resultobj;
3769 gcodispo 1.19 char *arg1 ;
3770     BossTaskException *result;
3771 gcodispo 1.10
3772 gcodispo 1.19 if(!PyArg_ParseTuple(args,(char *)"s:new_BossTaskException",&arg1)) goto fail;
3773 gcodispo 1.10 {
3774     try {
3775 gcodispo 1.19 result = (BossTaskException *)new BossTaskException((char const *)arg1);
3776 gcodispo 1.10
3777 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3778 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3779     return NULL;
3780 gcodispo 1.10 }catch (const std::exception& e) {
3781 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3782     return NULL;
3783 gcodispo 1.10 }
3784 gcodispo 1.3 }
3785 gcodispo 1.19 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTaskException, 1);
3786 gcodispo 1.10 return resultobj;
3787     fail:
3788     return NULL;
3789     }
3790    
3791    
3792 gcodispo 1.19 static PyObject *_wrap_BossTaskException_what(PyObject *self, PyObject *args) {
3793 gcodispo 1.10 PyObject *resultobj;
3794 gcodispo 1.19 BossTaskException *arg1 = (BossTaskException *) 0 ;
3795     char *result;
3796 gcodispo 1.10 PyObject * obj0 = 0 ;
3797    
3798 gcodispo 1.19 if(!PyArg_ParseTuple(args,(char *)"O:BossTaskException_what",&obj0)) goto fail;
3799     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3800 gcodispo 1.10 {
3801     try {
3802 gcodispo 1.19 result = (char *)((BossTaskException const *)arg1)->what();
3803 gcodispo 1.10
3804 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3805 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3806     return NULL;
3807 gcodispo 1.10 }catch (const std::exception& e) {
3808 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3809     return NULL;
3810 gcodispo 1.10 }
3811 gcodispo 1.3 }
3812 gcodispo 1.19 resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)"");
3813 gcodispo 1.10 return resultobj;
3814     fail:
3815     return NULL;
3816     }
3817    
3818    
3819 gcodispo 1.19 static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) {
3820 gcodispo 1.10 PyObject *resultobj;
3821 gcodispo 1.19 BossTaskException *arg1 = (BossTaskException *) 0 ;
3822 gcodispo 1.10 PyObject * obj0 = 0 ;
3823    
3824 gcodispo 1.19 if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTaskException",&obj0)) goto fail;
3825     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3826 gcodispo 1.10 {
3827     try {
3828 gcodispo 1.19 delete arg1;
3829 gcodispo 1.10
3830 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3831 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3832     return NULL;
3833 gcodispo 1.10 }catch (const std::exception& e) {
3834 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3835     return NULL;
3836 gcodispo 1.10 }
3837 gcodispo 1.3 }
3838 gcodispo 1.19 Py_INCREF(Py_None); resultobj = Py_None;
3839 gcodispo 1.10 return resultobj;
3840     fail:
3841     return NULL;
3842 gcodispo 1.3 }
3843    
3844    
3845 gcodispo 1.19 static PyObject * BossTaskException_swigregister(PyObject *self, PyObject *args) {
3846     PyObject *obj;
3847     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3848     SWIG_TypeClientData(SWIGTYPE_p_BossTaskException, obj);
3849     Py_INCREF(obj);
3850     return Py_BuildValue((char *)"");
3851     }
3852 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_0(PyObject *self, PyObject *args) {
3853     PyObject *resultobj;
3854     BossDatabase *arg1 = (BossDatabase *) 0 ;
3855     BossTask *result;
3856     PyObject * obj0 = 0 ;
3857    
3858     if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail;
3859     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3860     {
3861     try {
3862     result = (BossTask *)new BossTask(arg1);
3863    
3864 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3865 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3866     return NULL;
3867 gcodispo 1.10 }catch (const std::exception& e) {
3868 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3869     return NULL;
3870 gcodispo 1.10 }
3871 gcodispo 1.3 }
3872 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
3873     return resultobj;
3874     fail:
3875     return NULL;
3876 gcodispo 1.3 }
3877    
3878    
3879 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_1(PyObject *self, PyObject *args) {
3880     PyObject *resultobj;
3881     BossDatabase *arg1 = (BossDatabase *) 0 ;
3882     std::string *arg2 = 0 ;
3883     BossTask *result;
3884     std::string temp2 ;
3885     PyObject * obj0 = 0 ;
3886     PyObject * obj1 = 0 ;
3887    
3888     if(!PyArg_ParseTuple(args,(char *)"OO:new_BossTask",&obj0,&obj1)) goto fail;
3889     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3890     {
3891     if (PyString_Check(obj1)) {
3892     temp2 = std::string(PyString_AsString(obj1));
3893     arg2 = &temp2;
3894     }else {
3895     SWIG_exception(SWIG_TypeError, "string expected");
3896     }
3897 gcodispo 1.9 }
3898 gcodispo 1.10 {
3899     try {
3900     result = (BossTask *)new BossTask(arg1,(std::string const &)*arg2);
3901    
3902 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3903 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3904     return NULL;
3905 gcodispo 1.10 }catch (const std::exception& e) {
3906 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3907     return NULL;
3908 gcodispo 1.10 }
3909 gcodispo 1.9 }
3910 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
3911     return resultobj;
3912     fail:
3913     return NULL;
3914 gcodispo 1.3 }
3915    
3916    
3917 gcodispo 1.10 static PyObject *_wrap_delete_BossTask(PyObject *self, PyObject *args) {
3918     PyObject *resultobj;
3919     BossTask *arg1 = (BossTask *) 0 ;
3920     PyObject * obj0 = 0 ;
3921    
3922     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTask",&obj0)) goto fail;
3923     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3924     {
3925     try {
3926     delete arg1;
3927    
3928 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3929 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3930     return NULL;
3931 gcodispo 1.10 }catch (const std::exception& e) {
3932 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3933     return NULL;
3934 gcodispo 1.10 }
3935 gcodispo 1.3 }
3936 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
3937     return resultobj;
3938     fail:
3939     return NULL;
3940 gcodispo 1.3 }
3941    
3942    
3943 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_2(PyObject *self, PyObject *args) {
3944     PyObject *resultobj;
3945     BossTask *arg1 = 0 ;
3946     BossTask *result;
3947     PyObject * obj0 = 0 ;
3948    
3949     if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail;
3950     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3951     if (arg1 == NULL) {
3952     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3953 gcodispo 1.3 }
3954 gcodispo 1.10 {
3955     try {
3956     result = (BossTask *)new BossTask((BossTask const &)*arg1);
3957    
3958 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3959 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3960     return NULL;
3961 gcodispo 1.10 }catch (const std::exception& e) {
3962 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3963     return NULL;
3964 gcodispo 1.10 }
3965 gcodispo 1.3 }
3966 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
3967     return resultobj;
3968     fail:
3969     return NULL;
3970 gcodispo 1.3 }
3971    
3972    
3973 gcodispo 1.10 static PyObject *_wrap_new_BossTask(PyObject *self, PyObject *args) {
3974     int argc;
3975     PyObject *argv[3];
3976     int ii;
3977    
3978     argc = PyObject_Length(args);
3979     for (ii = 0; (ii < argc) && (ii < 2); ii++) {
3980     argv[ii] = PyTuple_GetItem(args,ii);
3981 gcodispo 1.3 }
3982 gcodispo 1.10 if (argc == 1) {
3983     int _v;
3984     {
3985     void *ptr;
3986     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) {
3987     _v = 0;
3988     PyErr_Clear();
3989     }else {
3990     _v = 1;
3991     }
3992 gcodispo 1.3 }
3993 gcodispo 1.9 if (_v) {
3994 gcodispo 1.10 return _wrap_new_BossTask__SWIG_0(self,args);
3995 gcodispo 1.3 }
3996     }
3997 gcodispo 1.10 if (argc == 1) {
3998     int _v;
3999     {
4000     void *ptr;
4001     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4002     _v = 0;
4003     PyErr_Clear();
4004     }else {
4005     _v = 1;
4006 gcodispo 1.3 }
4007     }
4008 gcodispo 1.9 if (_v) {
4009 gcodispo 1.10 return _wrap_new_BossTask__SWIG_2(self,args);
4010 gcodispo 1.3 }
4011     }
4012 gcodispo 1.10 if (argc == 2) {
4013     int _v;
4014     {
4015     void *ptr;
4016     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) {
4017     _v = 0;
4018     PyErr_Clear();
4019     }else {
4020     _v = 1;
4021 gcodispo 1.3 }
4022     }
4023 gcodispo 1.9 if (_v) {
4024 gcodispo 1.10 {
4025     _v = PyString_Check(argv[1]) ? 1 : 0;
4026     }
4027 gcodispo 1.9 if (_v) {
4028 gcodispo 1.10 return _wrap_new_BossTask__SWIG_1(self,args);
4029 gcodispo 1.3 }
4030     }
4031     }
4032 gcodispo 1.10
4033     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BossTask'");
4034     return NULL;
4035 gcodispo 1.3 }
4036    
4037    
4038 gcodispo 1.10 static PyObject *_wrap_BossTask_id(PyObject *self, PyObject *args) {
4039     PyObject *resultobj;
4040     BossTask *arg1 = (BossTask *) 0 ;
4041     std::string *result;
4042     PyObject * obj0 = 0 ;
4043    
4044     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_id",&obj0)) goto fail;
4045     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4046     {
4047     try {
4048     {
4049     std::string const &_result_ref = ((BossTask const *)arg1)->id();
4050     result = (std::string *) &_result_ref;
4051     }
4052    
4053 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4054 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4055     return NULL;
4056 gcodispo 1.10 }catch (const std::exception& e) {
4057 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4058     return NULL;
4059 gcodispo 1.10 }
4060 gcodispo 1.3 }
4061 gcodispo 1.10 {
4062     resultobj = PyString_FromStringAndSize(result->data(),result->size());
4063 gcodispo 1.3 }
4064 gcodispo 1.10 return resultobj;
4065     fail:
4066     return NULL;
4067     }
4068    
4069    
4070     static PyObject *_wrap_BossTask_name(PyObject *self, PyObject *args) {
4071     PyObject *resultobj;
4072     BossTask *arg1 = (BossTask *) 0 ;
4073     std::string *result;
4074     PyObject * obj0 = 0 ;
4075    
4076     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_name",&obj0)) goto fail;
4077     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4078     {
4079     try {
4080     {
4081     std::string const &_result_ref = ((BossTask const *)arg1)->name();
4082     result = (std::string *) &_result_ref;
4083     }
4084    
4085 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4086 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4087     return NULL;
4088 gcodispo 1.10 }catch (const std::exception& e) {
4089 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4090     return NULL;
4091 gcodispo 1.10 }
4092 gcodispo 1.3 }
4093 gcodispo 1.10 {
4094     resultobj = PyString_FromStringAndSize(result->data(),result->size());
4095 gcodispo 1.3 }
4096 gcodispo 1.10 return resultobj;
4097     fail:
4098     return NULL;
4099 gcodispo 1.3 }
4100    
4101    
4102 gcodispo 1.10 static PyObject *_wrap_BossTask_taskMap(PyObject *self, PyObject *args) {
4103     PyObject *resultobj;
4104     BossTask *arg1 = (BossTask *) 0 ;
4105     std::map<std::string,std::string > result;
4106     PyObject * obj0 = 0 ;
4107    
4108     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_taskMap",&obj0)) goto fail;
4109     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4110     {
4111     try {
4112     result = ((BossTask const *)arg1)->taskMap();
4113    
4114 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4115 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4116     return NULL;
4117 gcodispo 1.10 }catch (const std::exception& e) {
4118 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4119     return NULL;
4120 gcodispo 1.10 }
4121 gcodispo 1.3 }
4122 gcodispo 1.10 {
4123     resultobj = PyDict_New();
4124     for (std::map<std::string,std::string >::iterator i=(&result)->begin(); i!=(&result)->end(); ++i) {
4125     PyDict_SetItem(resultobj,
4126     SwigString_FromString(i->first),
4127     SwigString_FromString(i->second));
4128     }
4129 gcodispo 1.3 }
4130 gcodispo 1.10 return resultobj;
4131     fail:
4132     return NULL;
4133 gcodispo 1.4 }
4134    
4135    
4136 gcodispo 1.10 static PyObject *_wrap_BossTask_job_begin(PyObject *self, PyObject *args) {
4137     PyObject *resultobj;
4138     BossTask *arg1 = (BossTask *) 0 ;
4139     BossTask::job_iterator result;
4140     PyObject * obj0 = 0 ;
4141    
4142     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_begin",&obj0)) goto fail;
4143     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4144     {
4145     try {
4146     result = ((BossTask const *)arg1)->job_begin();
4147    
4148 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4149 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4150     return NULL;
4151 gcodispo 1.10 }catch (const std::exception& e) {
4152 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4153     return NULL;
4154 gcodispo 1.10 }
4155 gcodispo 1.9 }
4156 gcodispo 1.10 {
4157     BossTask::job_iterator * resultptr;
4158     resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result);
4159     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1);
4160 gcodispo 1.3 }
4161 gcodispo 1.10 return resultobj;
4162     fail:
4163     return NULL;
4164 gcodispo 1.3 }
4165    
4166    
4167 gcodispo 1.10 static PyObject *_wrap_BossTask_job_end(PyObject *self, PyObject *args) {
4168     PyObject *resultobj;
4169     BossTask *arg1 = (BossTask *) 0 ;
4170     BossTask::job_iterator result;
4171     PyObject * obj0 = 0 ;
4172    
4173     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_end",&obj0)) goto fail;
4174     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4175     {
4176     try {
4177     result = ((BossTask const *)arg1)->job_end();
4178    
4179 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4180 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4181     return NULL;
4182 gcodispo 1.10 }catch (const std::exception& e) {
4183 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4184     return NULL;
4185 gcodispo 1.10 }
4186 gcodispo 1.9 }
4187 gcodispo 1.10 {
4188     BossTask::job_iterator * resultptr;
4189     resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result);
4190     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1);
4191 gcodispo 1.3 }
4192 gcodispo 1.10 return resultobj;
4193     fail:
4194     return NULL;
4195 gcodispo 1.3 }
4196    
4197    
4198 gcodispo 1.10 static PyObject *_wrap_BossTask_jobsMap(PyObject *self, PyObject *args) {
4199     PyObject *resultobj;
4200     BossTask *arg1 = (BossTask *) 0 ;
4201     SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result;
4202     PyObject * obj0 = 0 ;
4203    
4204     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsMap",&obj0)) goto fail;
4205     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4206     {
4207     try {
4208     result = ((BossTask const *)arg1)->jobsMap();
4209    
4210 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4211 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4212     return NULL;
4213 gcodispo 1.10 }catch (const std::exception& e) {
4214 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4215     return NULL;
4216 gcodispo 1.10 }
4217 gcodispo 1.9 }
4218 gcodispo 1.10 {
4219     std::map<std::string,std::map<std::string,std::string > > * resultptr;
4220     resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result);
4221     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1);
4222 gcodispo 1.3 }
4223 gcodispo 1.10 return resultobj;
4224     fail:
4225     return NULL;
4226 gcodispo 1.3 }
4227    
4228    
4229 gcodispo 1.10 static PyObject *_wrap_BossTask_jobMap__SWIG_0(PyObject *self, PyObject *args) {
4230     PyObject *resultobj;
4231     BossTask *arg1 = (BossTask *) 0 ;
4232     SwigValueWrapper< std::vector<BossJob * >::const_iterator > arg2 ;
4233     std::map<std::string,std::string > *arg3 = 0 ;
4234     std::string result;
4235     std::vector<BossJob * >::const_iterator *argp2 ;
4236     PyObject * obj0 = 0 ;
4237     PyObject * obj1 = 0 ;
4238     PyObject * obj2 = 0 ;
4239    
4240     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobMap",&obj0,&obj1,&obj2)) goto fail;
4241     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4242     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
4243     arg2 = *argp2;
4244     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4245     if (arg3 == NULL) {
4246     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4247 gcodispo 1.3 }
4248 gcodispo 1.10 {
4249     try {
4250     result = ((BossTask const *)arg1)->jobMap(arg2,*arg3);
4251    
4252 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4253 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4254     return NULL;
4255 gcodispo 1.10 }catch (const std::exception& e) {
4256 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4257     return NULL;
4258 gcodispo 1.10 }
4259 gcodispo 1.3 }
4260 gcodispo 1.10 {
4261     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
4262 gcodispo 1.3 }
4263 gcodispo 1.10 return resultobj;
4264     fail:
4265     return NULL;
4266 gcodispo 1.3 }
4267    
4268    
4269 gcodispo 1.10 static PyObject *_wrap_BossTask_jobMap__SWIG_1(PyObject *self, PyObject *args) {
4270     PyObject *resultobj;
4271     BossTask *arg1 = (BossTask *) 0 ;
4272     unsigned int arg2 ;
4273     std::map<std::string,std::string > result;
4274     PyObject * obj0 = 0 ;
4275     PyObject * obj1 = 0 ;
4276    
4277     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobMap",&obj0,&obj1)) goto fail;
4278     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4279     arg2 = (unsigned int) PyInt_AsLong(obj1);
4280     if (PyErr_Occurred()) SWIG_fail;
4281     {
4282     try {
4283     result = ((BossTask const *)arg1)->jobMap(arg2);
4284    
4285 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4286 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4287     return NULL;
4288 gcodispo 1.10 }catch (const std::exception& e) {
4289 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4290     return NULL;
4291 gcodispo 1.10 }
4292 gcodispo 1.3 }
4293 gcodispo 1.10 {
4294     resultobj = PyDict_New();
4295     for (std::map<std::string,std::string >::iterator i=(&result)->begin(); i!=(&result)->end(); ++i) {
4296     PyDict_SetItem(resultobj,
4297     SwigString_FromString(i->first),
4298     SwigString_FromString(i->second));
4299 gcodispo 1.3 }
4300 gcodispo 1.9 }
4301 gcodispo 1.10 return resultobj;
4302     fail:
4303     return NULL;
4304     }
4305    
4306    
4307     static PyObject *_wrap_BossTask_jobMap(PyObject *self, PyObject *args) {
4308     int argc;
4309     PyObject *argv[4];
4310     int ii;
4311    
4312     argc = PyObject_Length(args);
4313     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
4314     argv[ii] = PyTuple_GetItem(args,ii);
4315 gcodispo 1.3 }
4316 gcodispo 1.10 if (argc == 2) {
4317     int _v;
4318     {
4319     void *ptr;
4320     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4321     _v = 0;
4322     PyErr_Clear();
4323     }else {
4324     _v = 1;
4325 gcodispo 1.3 }
4326     }
4327     if (_v) {
4328 gcodispo 1.10 {
4329     _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4330     }
4331 gcodispo 1.9 if (_v) {
4332 gcodispo 1.10 return _wrap_BossTask_jobMap__SWIG_1(self,args);
4333 gcodispo 1.9 }
4334 gcodispo 1.3 }
4335     }
4336 gcodispo 1.10 if (argc == 3) {
4337     int _v;
4338     {
4339     void *ptr;
4340     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4341     _v = 0;
4342     PyErr_Clear();
4343     }else {
4344     _v = 1;
4345     }
4346     }
4347 gcodispo 1.3 if (_v) {
4348 gcodispo 1.10 {
4349     void *ptr;
4350     if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator, 0) == -1) {
4351     _v = 0;
4352     PyErr_Clear();
4353     }else {
4354     _v = 1;
4355     }
4356     }
4357 gcodispo 1.3 if (_v) {
4358 gcodispo 1.9 {
4359 gcodispo 1.10 void *ptr;
4360     if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__mapTstd__string_std__string_t, 0) == -1) {
4361     _v = 0;
4362     PyErr_Clear();
4363     }else {
4364     _v = 1;
4365     }
4366 gcodispo 1.9 }
4367     if (_v) {
4368 gcodispo 1.10 return _wrap_BossTask_jobMap__SWIG_0(self,args);
4369 gcodispo 1.9 }
4370 gcodispo 1.3 }
4371     }
4372     }
4373 gcodispo 1.10
4374     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_jobMap'");
4375     return NULL;
4376 gcodispo 1.3 }
4377    
4378    
4379 gcodispo 1.10 static PyObject *_wrap_BossTask_programsMap(PyObject *self, PyObject *args) {
4380     PyObject *resultobj;
4381     BossTask *arg1 = (BossTask *) 0 ;
4382     BossJob *arg2 = (BossJob *) 0 ;
4383     SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result;
4384     PyObject * obj0 = 0 ;
4385     PyObject * obj1 = 0 ;
4386    
4387     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_programsMap",&obj0,&obj1)) goto fail;
4388     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4389     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4390     {
4391     try {
4392     result = ((BossTask const *)arg1)->programsMap((BossJob const *)arg2);
4393    
4394 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4395 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4396     return NULL;
4397 gcodispo 1.10 }catch (const std::exception& e) {
4398 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4399     return NULL;
4400 gcodispo 1.10 }
4401 gcodispo 1.9 }
4402 gcodispo 1.10 {
4403     std::map<std::string,std::map<std::string,std::string > > * resultptr;
4404     resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result);
4405     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1);
4406 gcodispo 1.9 }
4407 gcodispo 1.10 return resultobj;
4408     fail:
4409     return NULL;
4410     }
4411    
4412    
4413     static PyObject *_wrap_BossTask_queryJobPrograms(PyObject *self, PyObject *args) {
4414     PyObject *resultobj;
4415     BossTask *arg1 = (BossTask *) 0 ;
4416     BossJob *arg2 = (BossJob *) 0 ;
4417     SwigValueWrapper< std::vector<std::pair<BossProgram,BossProgramExec > > > result;
4418     PyObject * obj0 = 0 ;
4419     PyObject * obj1 = 0 ;
4420    
4421     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_queryJobPrograms",&obj0,&obj1)) goto fail;
4422     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4423     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4424     {
4425     try {
4426     result = ((BossTask const *)arg1)->queryJobPrograms((BossJob const *)arg2);
4427    
4428 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4429 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4430     return NULL;
4431 gcodispo 1.10 }catch (const std::exception& e) {
4432 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4433     return NULL;
4434 gcodispo 1.10 }
4435 gcodispo 1.9 }
4436 gcodispo 1.10 {
4437     std::vector<std::pair<BossProgram,BossProgramExec > > * resultptr;
4438     resultptr = new std::vector<std::pair<BossProgram,BossProgramExec > >((std::vector<std::pair<BossProgram,BossProgramExec > > &) result);
4439     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t, 1);
4440 gcodispo 1.9 }
4441 gcodispo 1.10 return resultobj;
4442     fail:
4443     return NULL;
4444     }
4445    
4446    
4447     static PyObject *_wrap_BossTask_declare__SWIG_0(PyObject *self, PyObject *args) {
4448     PyObject *resultobj;
4449     BossTask *arg1 = (BossTask *) 0 ;
4450     std::string *arg2 = 0 ;
4451     std::string const &arg3_defvalue = "" ;
4452     std::string *arg3 = (std::string *) &arg3_defvalue ;
4453     std::string temp2 ;
4454     std::string temp3 ;
4455     PyObject * obj0 = 0 ;
4456     PyObject * obj1 = 0 ;
4457     PyObject * obj2 = 0 ;
4458    
4459     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail;
4460     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4461     {
4462     if (PyString_Check(obj1)) {
4463     temp2 = std::string(PyString_AsString(obj1));
4464     arg2 = &temp2;
4465     }else {
4466     SWIG_exception(SWIG_TypeError, "string expected");
4467     }
4468 gcodispo 1.9 }
4469 gcodispo 1.10 if (obj2) {
4470     {
4471     if (PyString_Check(obj2)) {
4472     temp3 = std::string(PyString_AsString(obj2));
4473     arg3 = &temp3;
4474     }else {
4475     SWIG_exception(SWIG_TypeError, "string expected");
4476     }
4477     }
4478 gcodispo 1.9 }
4479 gcodispo 1.10 {
4480     try {
4481     (arg1)->declare((std::string const &)*arg2,(std::string const &)*arg3);
4482    
4483 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4484 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4485     return NULL;
4486 gcodispo 1.10 }catch (const std::exception& e) {
4487 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4488     return NULL;
4489 gcodispo 1.10 }
4490 gcodispo 1.9 }
4491 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4492     return resultobj;
4493     fail:
4494     return NULL;
4495     }
4496    
4497    
4498     static PyObject *_wrap_BossTask_declare__SWIG_1(PyObject *self, PyObject *args) {
4499     PyObject *resultobj;
4500     BossTask *arg1 = (BossTask *) 0 ;
4501     XMLDoc *arg2 = (XMLDoc *) 0 ;
4502     std::string const &arg3_defvalue = "" ;
4503     std::string *arg3 = (std::string *) &arg3_defvalue ;
4504     std::string temp3 ;
4505     PyObject * obj0 = 0 ;
4506     PyObject * obj1 = 0 ;
4507     PyObject * obj2 = 0 ;
4508    
4509     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail;
4510     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4511     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMLDoc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4512     if (obj2) {
4513     {
4514     if (PyString_Check(obj2)) {
4515     temp3 = std::string(PyString_AsString(obj2));
4516     arg3 = &temp3;
4517     }else {
4518     SWIG_exception(SWIG_TypeError, "string expected");
4519     }
4520     }
4521 gcodispo 1.9 }
4522 gcodispo 1.10 {
4523     try {
4524     (arg1)->declare(arg2,(std::string const &)*arg3);
4525    
4526 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4527 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4528     return NULL;
4529 gcodispo 1.10 }catch (const std::exception& e) {
4530 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4531     return NULL;
4532 gcodispo 1.10 }
4533 gcodispo 1.9 }
4534 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4535     return resultobj;
4536     fail:
4537     return NULL;
4538 gcodispo 1.3 }
4539    
4540    
4541 gcodispo 1.10 static PyObject *_wrap_BossTask_declare(PyObject *self, PyObject *args) {
4542     int argc;
4543     PyObject *argv[4];
4544     int ii;
4545    
4546     argc = PyObject_Length(args);
4547     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
4548     argv[ii] = PyTuple_GetItem(args,ii);
4549 gcodispo 1.9 }
4550 gcodispo 1.10 if ((argc >= 2) && (argc <= 3)) {
4551     int _v;
4552     {
4553     void *ptr;
4554     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4555     _v = 0;
4556     PyErr_Clear();
4557     }else {
4558     _v = 1;
4559     }
4560     }
4561     if (_v) {
4562     {
4563     void *ptr;
4564     if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XMLDoc, 0) == -1) {
4565     _v = 0;
4566     PyErr_Clear();
4567     }else {
4568     _v = 1;
4569     }
4570     }
4571     if (_v) {
4572     if (argc <= 2) {
4573     return _wrap_BossTask_declare__SWIG_1(self,args);
4574     }
4575     {
4576     _v = PyString_Check(argv[2]) ? 1 : 0;
4577     }
4578     if (_v) {
4579     return _wrap_BossTask_declare__SWIG_1(self,args);
4580     }
4581     }
4582     }
4583 gcodispo 1.9 }
4584 gcodispo 1.10 if ((argc >= 2) && (argc <= 3)) {
4585     int _v;
4586     {
4587     void *ptr;
4588     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4589     _v = 0;
4590     PyErr_Clear();
4591     }else {
4592     _v = 1;
4593     }
4594     }
4595     if (_v) {
4596     {
4597     _v = PyString_Check(argv[1]) ? 1 : 0;
4598     }
4599     if (_v) {
4600     if (argc <= 2) {
4601     return _wrap_BossTask_declare__SWIG_0(self,args);
4602     }
4603     {
4604     _v = PyString_Check(argv[2]) ? 1 : 0;
4605     }
4606     if (_v) {
4607     return _wrap_BossTask_declare__SWIG_0(self,args);
4608     }
4609     }
4610     }
4611 gcodispo 1.9 }
4612 gcodispo 1.10
4613     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_declare'");
4614     return NULL;
4615 gcodispo 1.3 }
4616    
4617    
4618 gcodispo 1.10 static PyObject *_wrap_BossTask_remove(PyObject *self, PyObject *args) {
4619     PyObject *resultobj;
4620     BossTask *arg1 = (BossTask *) 0 ;
4621     PyObject * obj0 = 0 ;
4622    
4623     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_remove",&obj0)) goto fail;
4624     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4625     {
4626     try {
4627     (arg1)->remove();
4628    
4629 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4630 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4631     return NULL;
4632 gcodispo 1.10 }catch (const std::exception& e) {
4633 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4634     return NULL;
4635 gcodispo 1.10 }
4636 gcodispo 1.9 }
4637 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4638     return resultobj;
4639     fail:
4640     return NULL;
4641 gcodispo 1.7 }
4642    
4643    
4644 gcodispo 1.10 static PyObject *_wrap_BossTask_archive(PyObject *self, PyObject *args) {
4645     PyObject *resultobj;
4646     BossTask *arg1 = (BossTask *) 0 ;
4647     std::string const &arg2_defvalue = "all" ;
4648     std::string *arg2 = (std::string *) &arg2_defvalue ;
4649     std::string temp2 ;
4650     PyObject * obj0 = 0 ;
4651     PyObject * obj1 = 0 ;
4652    
4653     if(!PyArg_ParseTuple(args,(char *)"O|O:BossTask_archive",&obj0,&obj1)) goto fail;
4654     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4655     if (obj1) {
4656     {
4657     if (PyString_Check(obj1)) {
4658     temp2 = std::string(PyString_AsString(obj1));
4659     arg2 = &temp2;
4660     }else {
4661     SWIG_exception(SWIG_TypeError, "string expected");
4662     }
4663     }
4664 gcodispo 1.3 }
4665 gcodispo 1.10 {
4666     try {
4667     (arg1)->archive((std::string const &)*arg2);
4668    
4669 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4670 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4671     return NULL;
4672 gcodispo 1.10 }catch (const std::exception& e) {
4673 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4674     return NULL;
4675 gcodispo 1.10 }
4676 gcodispo 1.3 }
4677 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4678     return resultobj;
4679     fail:
4680     return NULL;
4681 gcodispo 1.3 }
4682    
4683    
4684 gcodispo 1.10 static PyObject *_wrap_BossTask_submit(PyObject *self, PyObject *args) {
4685     PyObject *resultobj;
4686     BossTask *arg1 = (BossTask *) 0 ;
4687     std::string const &arg2_defvalue = "all" ;
4688     std::string *arg2 = (std::string *) &arg2_defvalue ;
4689     std::string const &arg3_defvalue = "" ;
4690     std::string *arg3 = (std::string *) &arg3_defvalue ;
4691     std::string const &arg4_defvalue = "" ;
4692     std::string *arg4 = (std::string *) &arg4_defvalue ;
4693     std::string const &arg5_defvalue = "" ;
4694     std::string *arg5 = (std::string *) &arg5_defvalue ;
4695     std::string const &arg6_defvalue = "" ;
4696     std::string *arg6 = (std::string *) &arg6_defvalue ;
4697 gcodispo 1.21 unsigned int arg7 = (unsigned int) 0 ;
4698     bool arg8 = (bool) false ;
4699 gcodispo 1.10 int result;
4700     std::string temp2 ;
4701     std::string temp3 ;
4702     std::string temp4 ;
4703     std::string temp5 ;
4704     std::string temp6 ;
4705     PyObject * obj0 = 0 ;
4706     PyObject * obj1 = 0 ;
4707     PyObject * obj2 = 0 ;
4708     PyObject * obj3 = 0 ;
4709     PyObject * obj4 = 0 ;
4710     PyObject * obj5 = 0 ;
4711     PyObject * obj6 = 0 ;
4712 gcodispo 1.21 PyObject * obj7 = 0 ;
4713 gcodispo 1.10
4714 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|OOOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4715 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4716     if (obj1) {
4717     {
4718     if (PyString_Check(obj1)) {
4719     temp2 = std::string(PyString_AsString(obj1));
4720     arg2 = &temp2;
4721     }else {
4722     SWIG_exception(SWIG_TypeError, "string expected");
4723     }
4724     }
4725 gcodispo 1.9 }
4726 gcodispo 1.10 if (obj2) {
4727     {
4728     if (PyString_Check(obj2)) {
4729     temp3 = std::string(PyString_AsString(obj2));
4730     arg3 = &temp3;
4731     }else {
4732     SWIG_exception(SWIG_TypeError, "string expected");
4733     }
4734     }
4735 gcodispo 1.3 }
4736 gcodispo 1.10 if (obj3) {
4737     {
4738     if (PyString_Check(obj3)) {
4739     temp4 = std::string(PyString_AsString(obj3));
4740     arg4 = &temp4;
4741     }else {
4742     SWIG_exception(SWIG_TypeError, "string expected");
4743     }
4744     }
4745 gcodispo 1.3 }
4746 gcodispo 1.10 if (obj4) {
4747     {
4748     if (PyString_Check(obj4)) {
4749     temp5 = std::string(PyString_AsString(obj4));
4750     arg5 = &temp5;
4751     }else {
4752     SWIG_exception(SWIG_TypeError, "string expected");
4753     }
4754     }
4755 gcodispo 1.3 }
4756 gcodispo 1.10 if (obj5) {
4757     {
4758     if (PyString_Check(obj5)) {
4759     temp6 = std::string(PyString_AsString(obj5));
4760     arg6 = &temp6;
4761     }else {
4762     SWIG_exception(SWIG_TypeError, "string expected");
4763     }
4764     }
4765 gcodispo 1.3 }
4766 gcodispo 1.10 if (obj6) {
4767 gcodispo 1.21 arg7 = (unsigned int) PyInt_AsLong(obj6);
4768     if (PyErr_Occurred()) SWIG_fail;
4769     }
4770     if (obj7) {
4771     arg8 = PyInt_AsLong(obj7) ? true : false;
4772 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
4773 gcodispo 1.3 }
4774 gcodispo 1.10 {
4775     try {
4776 gcodispo 1.21 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,arg8);
4777 gcodispo 1.10
4778 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4779 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4780     return NULL;
4781 gcodispo 1.10 }catch (const std::exception& e) {
4782 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4783     return NULL;
4784 gcodispo 1.10 }
4785 gcodispo 1.3 }
4786 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4787     return resultobj;
4788     fail:
4789     return NULL;
4790     }
4791    
4792    
4793     static PyObject *_wrap_BossTask_reSubmit(PyObject *self, PyObject *args) {
4794     PyObject *resultobj;
4795     BossTask *arg1 = (BossTask *) 0 ;
4796     std::string *arg2 = 0 ;
4797     bool arg3 = (bool) false ;
4798     int result;
4799     std::string temp2 ;
4800     PyObject * obj0 = 0 ;
4801     PyObject * obj1 = 0 ;
4802     PyObject * obj2 = 0 ;
4803    
4804     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_reSubmit",&obj0,&obj1,&obj2)) goto fail;
4805     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4806     {
4807     if (PyString_Check(obj1)) {
4808     temp2 = std::string(PyString_AsString(obj1));
4809     arg2 = &temp2;
4810     }else {
4811     SWIG_exception(SWIG_TypeError, "string expected");
4812     }
4813 gcodispo 1.3 }
4814 gcodispo 1.10 if (obj2) {
4815     arg3 = PyInt_AsLong(obj2) ? true : false;
4816     if (PyErr_Occurred()) SWIG_fail;
4817 gcodispo 1.3 }
4818 gcodispo 1.10 {
4819     try {
4820     result = (int)(arg1)->reSubmit((std::string const &)*arg2,arg3);
4821    
4822 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4823 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4824     return NULL;
4825 gcodispo 1.10 }catch (const std::exception& e) {
4826 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4827     return NULL;
4828 gcodispo 1.10 }
4829 gcodispo 1.3 }
4830 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4831     return resultobj;
4832     fail:
4833     return NULL;
4834     }
4835    
4836    
4837     static PyObject *_wrap_BossTask_kill(PyObject *self, PyObject *args) {
4838     PyObject *resultobj;
4839     BossTask *arg1 = (BossTask *) 0 ;
4840     std::string *arg2 = 0 ;
4841 gcodispo 1.21 unsigned int arg3 = (unsigned int) 0 ;
4842     bool arg4 = (bool) false ;
4843 gcodispo 1.10 int result;
4844     std::string temp2 ;
4845     PyObject * obj0 = 0 ;
4846     PyObject * obj1 = 0 ;
4847     PyObject * obj2 = 0 ;
4848 gcodispo 1.21 PyObject * obj3 = 0 ;
4849 gcodispo 1.10
4850 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"OO|OO:BossTask_kill",&obj0,&obj1,&obj2,&obj3)) goto fail;
4851 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4852     {
4853     if (PyString_Check(obj1)) {
4854     temp2 = std::string(PyString_AsString(obj1));
4855     arg2 = &temp2;
4856     }else {
4857     SWIG_exception(SWIG_TypeError, "string expected");
4858     }
4859 gcodispo 1.3 }
4860 gcodispo 1.10 if (obj2) {
4861 gcodispo 1.21 arg3 = (unsigned int) PyInt_AsLong(obj2);
4862     if (PyErr_Occurred()) SWIG_fail;
4863     }
4864     if (obj3) {
4865     arg4 = PyInt_AsLong(obj3) ? true : false;
4866 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
4867 gcodispo 1.3 }
4868 gcodispo 1.10 {
4869     try {
4870 gcodispo 1.21 result = (int)(arg1)->kill((std::string const &)*arg2,arg3,arg4);
4871 gcodispo 1.10
4872 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4873 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4874     return NULL;
4875 gcodispo 1.10 }catch (const std::exception& e) {
4876 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4877     return NULL;
4878 gcodispo 1.10 }
4879 yzhang 1.1 }
4880 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4881     return resultobj;
4882     fail:
4883     return NULL;
4884 gcodispo 1.3 }
4885    
4886    
4887 gcodispo 1.10 static PyObject *_wrap_BossTask_getOutput(PyObject *self, PyObject *args) {
4888     PyObject *resultobj;
4889     BossTask *arg1 = (BossTask *) 0 ;
4890     std::string const &arg2_defvalue = "all" ;
4891     std::string *arg2 = (std::string *) &arg2_defvalue ;
4892     std::string const &arg3_defvalue = "" ;
4893     std::string *arg3 = (std::string *) &arg3_defvalue ;
4894 gcodispo 1.21 unsigned int arg4 = (unsigned int) 0 ;
4895 gcodispo 1.10 bool arg5 = (bool) false ;
4896 gcodispo 1.21 bool arg6 = (bool) false ;
4897 gcodispo 1.10 int result;
4898     std::string temp2 ;
4899     std::string temp3 ;
4900     PyObject * obj0 = 0 ;
4901     PyObject * obj1 = 0 ;
4902     PyObject * obj2 = 0 ;
4903     PyObject * obj3 = 0 ;
4904     PyObject * obj4 = 0 ;
4905 gcodispo 1.21 PyObject * obj5 = 0 ;
4906 gcodispo 1.10
4907 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4908 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4909     if (obj1) {
4910     {
4911     if (PyString_Check(obj1)) {
4912     temp2 = std::string(PyString_AsString(obj1));
4913     arg2 = &temp2;
4914     }else {
4915     SWIG_exception(SWIG_TypeError, "string expected");
4916     }
4917     }
4918 gcodispo 1.9 }
4919 gcodispo 1.10 if (obj2) {
4920     {
4921     if (PyString_Check(obj2)) {
4922     temp3 = std::string(PyString_AsString(obj2));
4923     arg3 = &temp3;
4924     }else {
4925     SWIG_exception(SWIG_TypeError, "string expected");
4926     }
4927     }
4928 gcodispo 1.9 }
4929 gcodispo 1.10 if (obj3) {
4930 gcodispo 1.21 arg4 = (unsigned int) PyInt_AsLong(obj3);
4931 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
4932 yzhang 1.1 }
4933 gcodispo 1.10 if (obj4) {
4934     arg5 = PyInt_AsLong(obj4) ? true : false;
4935     if (PyErr_Occurred()) SWIG_fail;
4936 gcodispo 1.3 }
4937 gcodispo 1.21 if (obj5) {
4938     arg6 = PyInt_AsLong(obj5) ? true : false;
4939     if (PyErr_Occurred()) SWIG_fail;
4940     }
4941 gcodispo 1.10 {
4942     try {
4943 gcodispo 1.21 result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6);
4944 gcodispo 1.10
4945 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4946 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4947     return NULL;
4948 gcodispo 1.10 }catch (const std::exception& e) {
4949 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4950     return NULL;
4951 gcodispo 1.10 }
4952 gcodispo 1.3 }
4953 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
4954     return resultobj;
4955     fail:
4956     return NULL;
4957 yzhang 1.1 }
4958    
4959    
4960 gcodispo 1.26 static PyObject *_wrap_BossTask_loadByName(PyObject *self, PyObject *args) {
4961     PyObject *resultobj;
4962     BossTask *arg1 = (BossTask *) 0 ;
4963     std::string *arg2 = 0 ;
4964     int result;
4965     std::string temp2 ;
4966     PyObject * obj0 = 0 ;
4967     PyObject * obj1 = 0 ;
4968    
4969     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_loadByName",&obj0,&obj1)) goto fail;
4970     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4971     {
4972     if (PyString_Check(obj1)) {
4973     temp2 = std::string(PyString_AsString(obj1));
4974     arg2 = &temp2;
4975     }else {
4976     SWIG_exception(SWIG_TypeError, "string expected");
4977     }
4978     }
4979     {
4980     try {
4981     result = (int)(arg1)->loadByName((std::string const &)*arg2);
4982    
4983     }catch (const BossSchedFailure & e) {
4984     PyErr_SetString ( SchedulerError, e.what() );
4985     return NULL;
4986     }catch (const std::exception& e) {
4987     PyErr_SetString ( BossError, e.what() );
4988     return NULL;
4989     }
4990     }
4991     resultobj = PyInt_FromLong((long)result);
4992     return resultobj;
4993     fail:
4994     return NULL;
4995     }
4996    
4997    
4998 gcodispo 1.12 static PyObject *_wrap_BossTask_load(PyObject *self, PyObject *args) {
4999     PyObject *resultobj;
5000     BossTask *arg1 = (BossTask *) 0 ;
5001     int arg2 = (int) SCHEDULED ;
5002     std::string const &arg3_defvalue = "all" ;
5003     std::string *arg3 = (std::string *) &arg3_defvalue ;
5004     std::string const &arg4_defvalue = "" ;
5005     std::string *arg4 = (std::string *) &arg4_defvalue ;
5006     std::string arg5 = (std::string) "" ;
5007     std::string arg6 = (std::string) "" ;
5008     std::string arg7 = (std::string) "" ;
5009     std::string arg8 = (std::string) "" ;
5010     int result;
5011     std::string temp3 ;
5012     std::string temp4 ;
5013     PyObject * obj0 = 0 ;
5014     PyObject * obj2 = 0 ;
5015     PyObject * obj3 = 0 ;
5016     PyObject * obj4 = 0 ;
5017     PyObject * obj5 = 0 ;
5018     PyObject * obj6 = 0 ;
5019     PyObject * obj7 = 0 ;
5020    
5021     if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOO:BossTask_load",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5022     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5023     if (obj2) {
5024     {
5025     if (PyString_Check(obj2)) {
5026     temp3 = std::string(PyString_AsString(obj2));
5027     arg3 = &temp3;
5028     }else {
5029     SWIG_exception(SWIG_TypeError, "string expected");
5030     }
5031     }
5032     }
5033     if (obj3) {
5034     {
5035     if (PyString_Check(obj3)) {
5036     temp4 = std::string(PyString_AsString(obj3));
5037     arg4 = &temp4;
5038     }else {
5039     SWIG_exception(SWIG_TypeError, "string expected");
5040     }
5041     }
5042     }
5043     if (obj4) {
5044     {
5045     if (PyString_Check(obj4))
5046     arg5 = std::string(PyString_AsString(obj4));
5047     else
5048     SWIG_exception(SWIG_TypeError, "string expected");
5049     }
5050     }
5051     if (obj5) {
5052     {
5053     if (PyString_Check(obj5))
5054     arg6 = std::string(PyString_AsString(obj5));
5055     else
5056     SWIG_exception(SWIG_TypeError, "string expected");
5057     }
5058     }
5059     if (obj6) {
5060     {
5061     if (PyString_Check(obj6))
5062     arg7 = std::string(PyString_AsString(obj6));
5063     else
5064     SWIG_exception(SWIG_TypeError, "string expected");
5065     }
5066     }
5067     if (obj7) {
5068     {
5069     if (PyString_Check(obj7))
5070     arg8 = std::string(PyString_AsString(obj7));
5071     else
5072     SWIG_exception(SWIG_TypeError, "string expected");
5073     }
5074     }
5075     {
5076     try {
5077     result = (int)(arg1)->load(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8);
5078    
5079 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5080 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5081     return NULL;
5082 gcodispo 1.12 }catch (const std::exception& e) {
5083 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5084     return NULL;
5085 gcodispo 1.12 }
5086     }
5087     resultobj = PyInt_FromLong((long)result);
5088     return resultobj;
5089     fail:
5090     return NULL;
5091     }
5092    
5093    
5094 gcodispo 1.10 static PyObject *_wrap_BossTask_query(PyObject *self, PyObject *args) {
5095     PyObject *resultobj;
5096     BossTask *arg1 = (BossTask *) 0 ;
5097     int arg2 = (int) SCHEDULED ;
5098     std::string const &arg3_defvalue = "all" ;
5099     std::string *arg3 = (std::string *) &arg3_defvalue ;
5100     std::string const &arg4_defvalue = "" ;
5101     std::string *arg4 = (std::string *) &arg4_defvalue ;
5102     std::string arg5 = (std::string) "" ;
5103     std::string arg6 = (std::string) "" ;
5104     std::string arg7 = (std::string) "" ;
5105     std::string arg8 = (std::string) "" ;
5106 gcodispo 1.21 unsigned int arg9 = (unsigned int) 0 ;
5107     bool arg10 = (bool) false ;
5108 gcodispo 1.10 int result;
5109     std::string temp3 ;
5110     std::string temp4 ;
5111     PyObject * obj0 = 0 ;
5112     PyObject * obj2 = 0 ;
5113     PyObject * obj3 = 0 ;
5114     PyObject * obj4 = 0 ;
5115     PyObject * obj5 = 0 ;
5116     PyObject * obj6 = 0 ;
5117     PyObject * obj7 = 0 ;
5118     PyObject * obj8 = 0 ;
5119 gcodispo 1.21 PyObject * obj9 = 0 ;
5120 gcodispo 1.10
5121 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
5122 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5123     if (obj2) {
5124     {
5125     if (PyString_Check(obj2)) {
5126     temp3 = std::string(PyString_AsString(obj2));
5127     arg3 = &temp3;
5128     }else {
5129     SWIG_exception(SWIG_TypeError, "string expected");
5130     }
5131     }
5132 yzhang 1.1 }
5133 gcodispo 1.10 if (obj3) {
5134     {
5135     if (PyString_Check(obj3)) {
5136     temp4 = std::string(PyString_AsString(obj3));
5137     arg4 = &temp4;
5138     }else {
5139     SWIG_exception(SWIG_TypeError, "string expected");
5140     }
5141     }
5142 gcodispo 1.3 }
5143 gcodispo 1.10 if (obj4) {
5144     {
5145     if (PyString_Check(obj4))
5146     arg5 = std::string(PyString_AsString(obj4));
5147     else
5148     SWIG_exception(SWIG_TypeError, "string expected");
5149     }
5150 yzhang 1.1 }
5151 gcodispo 1.10 if (obj5) {
5152     {
5153     if (PyString_Check(obj5))
5154     arg6 = std::string(PyString_AsString(obj5));
5155     else
5156     SWIG_exception(SWIG_TypeError, "string expected");
5157     }
5158 yzhang 1.1 }
5159 gcodispo 1.10 if (obj6) {
5160     {
5161     if (PyString_Check(obj6))
5162     arg7 = std::string(PyString_AsString(obj6));
5163     else
5164     SWIG_exception(SWIG_TypeError, "string expected");
5165     }
5166 gcodispo 1.3 }
5167 gcodispo 1.10 if (obj7) {
5168     {
5169     if (PyString_Check(obj7))
5170     arg8 = std::string(PyString_AsString(obj7));
5171     else
5172     SWIG_exception(SWIG_TypeError, "string expected");
5173     }
5174 yzhang 1.1 }
5175 gcodispo 1.10 if (obj8) {
5176 gcodispo 1.21 arg9 = (unsigned int) PyInt_AsLong(obj8);
5177     if (PyErr_Occurred()) SWIG_fail;
5178     }
5179     if (obj9) {
5180     arg10 = PyInt_AsLong(obj9) ? true : false;
5181 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
5182 gcodispo 1.3 }
5183 gcodispo 1.10 {
5184     try {
5185 gcodispo 1.21 result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5186 gcodispo 1.10
5187 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5188 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5189     return NULL;
5190 gcodispo 1.10 }catch (const std::exception& e) {
5191 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5192     return NULL;
5193 gcodispo 1.10 }
5194 yzhang 1.1 }
5195 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5196     return resultobj;
5197     fail:
5198     return NULL;
5199 yzhang 1.1 }
5200    
5201    
5202 gcodispo 1.10 static PyObject *_wrap_BossTask_query_out(PyObject *self, PyObject *args) {
5203     PyObject *resultobj;
5204     BossTask *arg1 = (BossTask *) 0 ;
5205     std::ostream &arg2_defvalue = std::cout ;
5206     std::ostream *arg2 = (std::ostream *) &arg2_defvalue ;
5207     jobStates const &arg3_defvalue = SCHEDULED ;
5208     jobStates *arg3 = (jobStates *) &arg3_defvalue ;
5209     printOption const &arg4_defvalue = NORMAL ;
5210     printOption *arg4 = (printOption *) &arg4_defvalue ;
5211     std::string arg5 = (std::string) "" ;
5212     PyObject * obj0 = 0 ;
5213     PyObject * obj1 = 0 ;
5214     PyObject * obj2 = 0 ;
5215     PyObject * obj3 = 0 ;
5216     PyObject * obj4 = 0 ;
5217    
5218     if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossTask_query_out",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5219     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5220     if (obj1) {
5221     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__ostream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5222     if (arg2 == NULL) {
5223     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5224     }
5225 gcodispo 1.9 }
5226 gcodispo 1.10 if (obj2) {
5227     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_jobStates,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5228     if (arg3 == NULL) {
5229     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5230     }
5231 gcodispo 1.9 }
5232 gcodispo 1.10 if (obj3) {
5233     if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_printOption,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5234     if (arg4 == NULL) {
5235     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5236     }
5237 yzhang 1.1 }
5238 gcodispo 1.10 if (obj4) {
5239     {
5240     if (PyString_Check(obj4))
5241     arg5 = std::string(PyString_AsString(obj4));
5242     else
5243     SWIG_exception(SWIG_TypeError, "string expected");
5244     }
5245 gcodispo 1.3 }
5246 gcodispo 1.10 {
5247     try {
5248     ((BossTask const *)arg1)->query_out(*arg2,(jobStates const &)*arg3,(printOption const &)*arg4,arg5);
5249    
5250 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5251 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5252     return NULL;
5253 gcodispo 1.10 }catch (const std::exception& e) {
5254 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5255     return NULL;
5256 gcodispo 1.10 }
5257 gcodispo 1.3 }
5258 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
5259     return resultobj;
5260     fail:
5261     return NULL;
5262     }
5263    
5264    
5265     static PyObject *_wrap_BossTask_clear(PyObject *self, PyObject *args) {
5266     PyObject *resultobj;
5267     BossTask *arg1 = (BossTask *) 0 ;
5268     PyObject * obj0 = 0 ;
5269    
5270     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_clear",&obj0)) goto fail;
5271     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5272     {
5273     try {
5274     (arg1)->clear();
5275    
5276 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5277 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5278     return NULL;
5279 gcodispo 1.10 }catch (const std::exception& e) {
5280 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5281     return NULL;
5282 gcodispo 1.10 }
5283 yzhang 1.1 }
5284 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
5285     return resultobj;
5286     fail:
5287     return NULL;
5288     }
5289    
5290    
5291 gcodispo 1.19 static PyObject *_wrap_BossTask_appendToPyDict(PyObject *self, PyObject *args) {
5292     PyObject *resultobj;
5293     BossTask *arg1 = (BossTask *) 0 ;
5294     PyObject *arg2 = (PyObject *) 0 ;
5295     BossAttributeContainer *arg3 = 0 ;
5296     PyObject * obj0 = 0 ;
5297     PyObject * obj1 = 0 ;
5298     PyObject * obj2 = 0 ;
5299    
5300     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_appendToPyDict",&obj0,&obj1,&obj2)) goto fail;
5301     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5302     arg2 = obj1;
5303     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_BossAttributeContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5304     if (arg3 == NULL) {
5305     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5306     }
5307     {
5308     try {
5309 gcodispo 1.25 BossTask_appendToPyDict((BossTask const *)arg1,arg2,(BossAttributeContainer const &)*arg3);
5310 gcodispo 1.19
5311     }catch (const BossSchedFailure & e) {
5312     PyErr_SetString ( SchedulerError, e.what() );
5313     return NULL;
5314     }catch (const std::exception& e) {
5315     PyErr_SetString ( BossError, e.what() );
5316     return NULL;
5317     }
5318     }
5319 gcodispo 1.25 Py_INCREF(Py_None); resultobj = Py_None;
5320 gcodispo 1.19 return resultobj;
5321     fail:
5322     return NULL;
5323     }
5324    
5325    
5326     static PyObject *_wrap_BossTask_jobDict(PyObject *self, PyObject *args) {
5327     PyObject *resultobj;
5328     BossTask *arg1 = (BossTask *) 0 ;
5329     std::vector<BossJob * >::const_iterator *arg2 = 0 ;
5330 gcodispo 1.25 PyObject *arg3 = (PyObject *) 0 ;
5331 gcodispo 1.19 PyObject * obj0 = 0 ;
5332     PyObject * obj1 = 0 ;
5333 gcodispo 1.25 PyObject * obj2 = 0 ;
5334 gcodispo 1.19
5335 gcodispo 1.25 if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobDict",&obj0,&obj1,&obj2)) goto fail;
5336 gcodispo 1.19 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5337     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5338     if (arg2 == NULL) {
5339     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5340     }
5341 gcodispo 1.25 arg3 = obj2;
5342 gcodispo 1.19 {
5343     try {
5344 gcodispo 1.25 BossTask_jobDict((BossTask const *)arg1,*arg2,arg3);
5345 gcodispo 1.19
5346     }catch (const BossSchedFailure & e) {
5347     PyErr_SetString ( SchedulerError, e.what() );
5348     return NULL;
5349     }catch (const std::exception& e) {
5350     PyErr_SetString ( BossError, e.what() );
5351     return NULL;
5352     }
5353     }
5354 gcodispo 1.25 Py_INCREF(Py_None); resultobj = Py_None;
5355 gcodispo 1.19 return resultobj;
5356     fail:
5357     return NULL;
5358     }
5359    
5360    
5361     static PyObject *_wrap_BossTask_jobsDict(PyObject *self, PyObject *args) {
5362     PyObject *resultobj;
5363     BossTask *arg1 = (BossTask *) 0 ;
5364     PyObject *result;
5365     PyObject * obj0 = 0 ;
5366    
5367     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsDict",&obj0)) goto fail;
5368     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5369     {
5370     try {
5371     result = (PyObject *)BossTask_jobsDict(arg1);
5372    
5373     }catch (const BossSchedFailure & e) {
5374     PyErr_SetString ( SchedulerError, e.what() );
5375     return NULL;
5376     }catch (const std::exception& e) {
5377     PyErr_SetString ( BossError, e.what() );
5378     return NULL;
5379     }
5380     }
5381     resultobj = result;
5382     return resultobj;
5383     fail:
5384     return NULL;
5385     }
5386    
5387    
5388     static PyObject *_wrap_BossTask_progDict(PyObject *self, PyObject *args) {
5389     PyObject *resultobj;
5390     BossTask *arg1 = (BossTask *) 0 ;
5391     std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *arg2 = 0 ;
5392     PyObject *result;
5393     PyObject * obj0 = 0 ;
5394     PyObject * obj1 = 0 ;
5395    
5396     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_progDict",&obj0,&obj1)) goto fail;
5397     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5398     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5399     if (arg2 == NULL) {
5400     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5401     }
5402     {
5403     try {
5404     result = (PyObject *)BossTask_progDict((BossTask const *)arg1,*arg2);
5405    
5406     }catch (const BossSchedFailure & e) {
5407     PyErr_SetString ( SchedulerError, e.what() );
5408     return NULL;
5409     }catch (const std::exception& e) {
5410     PyErr_SetString ( BossError, e.what() );
5411     return NULL;
5412     }
5413     }
5414     resultobj = result;
5415     return resultobj;
5416     fail:
5417     return NULL;
5418     }
5419    
5420    
5421     static PyObject *_wrap_BossTask_jobPrograms(PyObject *self, PyObject *args) {
5422     PyObject *resultobj;
5423     BossTask *arg1 = (BossTask *) 0 ;
5424     std::string *arg2 = 0 ;
5425     PyObject *result;
5426     std::string temp2 ;
5427     PyObject * obj0 = 0 ;
5428     PyObject * obj1 = 0 ;
5429    
5430     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobPrograms",&obj0,&obj1)) goto fail;
5431     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5432     {
5433     if (PyString_Check(obj1)) {
5434     temp2 = std::string(PyString_AsString(obj1));
5435     arg2 = &temp2;
5436     }else {
5437     SWIG_exception(SWIG_TypeError, "string expected");
5438     }
5439     }
5440     {
5441     try {
5442     result = (PyObject *)BossTask_jobPrograms((BossTask const *)arg1,(std::string const &)*arg2);
5443    
5444     }catch (const BossSchedFailure & e) {
5445     PyErr_SetString ( SchedulerError, e.what() );
5446     return NULL;
5447     }catch (const std::exception& e) {
5448     PyErr_SetString ( BossError, e.what() );
5449     return NULL;
5450     }
5451     }
5452     resultobj = result;
5453     return resultobj;
5454     fail:
5455     return NULL;
5456     }
5457    
5458    
5459 gcodispo 1.10 static PyObject * BossTask_swigregister(PyObject *self, PyObject *args) {
5460     PyObject *obj;
5461     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5462     SWIG_TypeClientData(SWIGTYPE_p_BossTask, obj);
5463     Py_INCREF(obj);
5464     return Py_BuildValue((char *)"");
5465     }
5466     static PyObject *_wrap_new_BossAdministratorSession(PyObject *self, PyObject *args) {
5467     PyObject *resultobj;
5468     std::string arg1 = (std::string) "" ;
5469 gcodispo 1.16 std::string arg2 = (std::string) "2" ;
5470     std::string arg3 = (std::string) "" ;
5471 gcodispo 1.18 std::string arg4 = (std::string) "" ;
5472     bool arg5 = (bool) false ;
5473 gcodispo 1.10 BossAdministratorSession *result;
5474     PyObject * obj0 = 0 ;
5475     PyObject * obj1 = 0 ;
5476 gcodispo 1.16 PyObject * obj2 = 0 ;
5477     PyObject * obj3 = 0 ;
5478 gcodispo 1.18 PyObject * obj4 = 0 ;
5479 gcodispo 1.10
5480 gcodispo 1.18 if(!PyArg_ParseTuple(args,(char *)"|OOOOO:new_BossAdministratorSession",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5481 gcodispo 1.10 if (obj0) {
5482     {
5483     if (PyString_Check(obj0))
5484     arg1 = std::string(PyString_AsString(obj0));
5485     else
5486     SWIG_exception(SWIG_TypeError, "string expected");
5487     }
5488 gcodispo 1.3 }
5489 gcodispo 1.10 if (obj1) {
5490 gcodispo 1.16 {
5491     if (PyString_Check(obj1))
5492     arg2 = std::string(PyString_AsString(obj1));
5493     else
5494     SWIG_exception(SWIG_TypeError, "string expected");
5495     }
5496     }
5497     if (obj2) {
5498     {
5499     if (PyString_Check(obj2))
5500     arg3 = std::string(PyString_AsString(obj2));
5501     else
5502     SWIG_exception(SWIG_TypeError, "string expected");
5503     }
5504     }
5505     if (obj3) {
5506 gcodispo 1.18 {
5507     if (PyString_Check(obj3))
5508     arg4 = std::string(PyString_AsString(obj3));
5509     else
5510     SWIG_exception(SWIG_TypeError, "string expected");
5511     }
5512     }
5513     if (obj4) {
5514     arg5 = PyInt_AsLong(obj4) ? true : false;
5515 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
5516 gcodispo 1.3 }
5517 gcodispo 1.10 {
5518     try {
5519 gcodispo 1.18 result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2,arg3,arg4,arg5);
5520 gcodispo 1.10
5521 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5522 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5523     return NULL;
5524 gcodispo 1.10 }catch (const std::exception& e) {
5525 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5526     return NULL;
5527 gcodispo 1.10 }
5528 gcodispo 1.3 }
5529 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossAdministratorSession, 1);
5530     return resultobj;
5531     fail:
5532     return NULL;
5533 yzhang 1.1 }
5534    
5535    
5536 gcodispo 1.10 static PyObject *_wrap_delete_BossAdministratorSession(PyObject *self, PyObject *args) {
5537     PyObject *resultobj;
5538     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5539     PyObject * obj0 = 0 ;
5540    
5541     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossAdministratorSession",&obj0)) goto fail;
5542     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5543     {
5544     try {
5545     delete arg1;
5546    
5547 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5548 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5549     return NULL;
5550 gcodispo 1.10 }catch (const std::exception& e) {
5551 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5552     return NULL;
5553 gcodispo 1.10 }
5554 yzhang 1.1 }
5555 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
5556     return resultobj;
5557     fail:
5558     return NULL;
5559     }
5560    
5561    
5562     static PyObject *_wrap_BossAdministratorSession_configureDB(PyObject *self, PyObject *args) {
5563     PyObject *resultobj;
5564     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5565     int result;
5566     PyObject * obj0 = 0 ;
5567    
5568     if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_configureDB",&obj0)) goto fail;
5569     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5570     {
5571     try {
5572     result = (int)(arg1)->configureDB();
5573    
5574 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5575 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5576     return NULL;
5577 gcodispo 1.10 }catch (const std::exception& e) {
5578 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5579     return NULL;
5580 gcodispo 1.10 }
5581 gcodispo 1.3 }
5582 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5583     return resultobj;
5584     fail:
5585     return NULL;
5586 yzhang 1.1 }
5587    
5588    
5589 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_configureRTMonDB(PyObject *self, PyObject *args) {
5590     PyObject *resultobj;
5591     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5592     std::string *arg2 = 0 ;
5593     int result;
5594     std::string temp2 ;
5595     PyObject * obj0 = 0 ;
5596     PyObject * obj1 = 0 ;
5597    
5598     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_configureRTMonDB",&obj0,&obj1)) goto fail;
5599     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5600     {
5601     if (PyString_Check(obj1)) {
5602     temp2 = std::string(PyString_AsString(obj1));
5603     arg2 = &temp2;
5604     }else {
5605     SWIG_exception(SWIG_TypeError, "string expected");
5606     }
5607 gcodispo 1.3 }
5608 gcodispo 1.10 {
5609     try {
5610     result = (int)(arg1)->configureRTMonDB((std::string const &)*arg2);
5611    
5612 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5613 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5614     return NULL;
5615 gcodispo 1.10 }catch (const std::exception& e) {
5616 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5617     return NULL;
5618 gcodispo 1.10 }
5619 gcodispo 1.3 }
5620 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5621     return resultobj;
5622     fail:
5623     return NULL;
5624     }
5625    
5626    
5627     static PyObject *_wrap_BossAdministratorSession_deleteCHTool(PyObject *self, PyObject *args) {
5628     PyObject *resultobj;
5629     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5630     std::string *arg2 = 0 ;
5631     int result;
5632     std::string temp2 ;
5633     PyObject * obj0 = 0 ;
5634     PyObject * obj1 = 0 ;
5635    
5636     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteCHTool",&obj0,&obj1)) goto fail;
5637     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5638     {
5639     if (PyString_Check(obj1)) {
5640     temp2 = std::string(PyString_AsString(obj1));
5641     arg2 = &temp2;
5642     }else {
5643     SWIG_exception(SWIG_TypeError, "string expected");
5644     }
5645 gcodispo 1.3 }
5646 gcodispo 1.10 {
5647     try {
5648     result = (int)(arg1)->deleteCHTool((std::string const &)*arg2);
5649    
5650 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5651 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5652     return NULL;
5653 gcodispo 1.10 }catch (const std::exception& e) {
5654 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5655     return NULL;
5656 gcodispo 1.10 }
5657 gcodispo 1.3 }
5658 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5659     return resultobj;
5660     fail:
5661     return NULL;
5662 yzhang 1.1 }
5663    
5664    
5665 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteProgramType(PyObject *self, PyObject *args) {
5666     PyObject *resultobj;
5667     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5668     std::string *arg2 = 0 ;
5669     int result;
5670     std::string temp2 ;
5671     PyObject * obj0 = 0 ;
5672     PyObject * obj1 = 0 ;
5673    
5674     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteProgramType",&obj0,&obj1)) goto fail;
5675     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5676     {
5677     if (PyString_Check(obj1)) {
5678     temp2 = std::string(PyString_AsString(obj1));
5679     arg2 = &temp2;
5680     }else {
5681     SWIG_exception(SWIG_TypeError, "string expected");
5682     }
5683 gcodispo 1.9 }
5684 gcodispo 1.10 {
5685     try {
5686     result = (int)(arg1)->deleteProgramType((std::string const &)*arg2);
5687    
5688 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5689 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5690     return NULL;
5691 gcodispo 1.10 }catch (const std::exception& e) {
5692 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5693     return NULL;
5694 gcodispo 1.10 }
5695 gcodispo 1.9 }
5696 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5697     return resultobj;
5698     fail:
5699     return NULL;
5700 yzhang 1.1 }
5701    
5702    
5703 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteRTMon(PyObject *self, PyObject *args) {
5704     PyObject *resultobj;
5705     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5706     std::string *arg2 = 0 ;
5707     int result;
5708     std::string temp2 ;
5709     PyObject * obj0 = 0 ;
5710     PyObject * obj1 = 0 ;
5711    
5712     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteRTMon",&obj0,&obj1)) goto fail;
5713     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5714     {
5715     if (PyString_Check(obj1)) {
5716     temp2 = std::string(PyString_AsString(obj1));
5717     arg2 = &temp2;
5718     }else {
5719     SWIG_exception(SWIG_TypeError, "string expected");
5720     }
5721 yzhang 1.1 }
5722 gcodispo 1.10 {
5723     try {
5724     result = (int)(arg1)->deleteRTMon((std::string const &)*arg2);
5725    
5726 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5727 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5728     return NULL;
5729 gcodispo 1.10 }catch (const std::exception& e) {
5730 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5731     return NULL;
5732 gcodispo 1.10 }
5733 yzhang 1.1 }
5734 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5735     return resultobj;
5736     fail:
5737     return NULL;
5738 yzhang 1.1 }
5739    
5740    
5741 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteScheduler(PyObject *self, PyObject *args) {
5742     PyObject *resultobj;
5743     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5744     std::string *arg2 = 0 ;
5745     int result;
5746     std::string temp2 ;
5747     PyObject * obj0 = 0 ;
5748     PyObject * obj1 = 0 ;
5749    
5750     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteScheduler",&obj0,&obj1)) goto fail;
5751     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5752     {
5753     if (PyString_Check(obj1)) {
5754     temp2 = std::string(PyString_AsString(obj1));
5755     arg2 = &temp2;
5756     }else {
5757     SWIG_exception(SWIG_TypeError, "string expected");
5758     }
5759 gcodispo 1.9 }
5760 gcodispo 1.10 {
5761     try {
5762     result = (int)(arg1)->deleteScheduler((std::string const &)*arg2);
5763    
5764 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5765 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5766     return NULL;
5767 gcodispo 1.10 }catch (const std::exception& e) {
5768 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5769     return NULL;
5770 gcodispo 1.10 }
5771 yzhang 1.1 }
5772 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5773     return resultobj;
5774     fail:
5775     return NULL;
5776 yzhang 1.1 }
5777    
5778    
5779 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerCHTool(PyObject *self, PyObject *args) {
5780     PyObject *resultobj;
5781     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5782     std::string *arg2 = 0 ;
5783     std::string arg3 = (std::string) "NULL" ;
5784     std::string arg4 = (std::string) "NULL" ;
5785     bool arg5 = (bool) false ;
5786     bool arg6 = (bool) false ;
5787     int result;
5788     std::string temp2 ;
5789     PyObject * obj0 = 0 ;
5790     PyObject * obj1 = 0 ;
5791     PyObject * obj2 = 0 ;
5792     PyObject * obj3 = 0 ;
5793     PyObject * obj4 = 0 ;
5794     PyObject * obj5 = 0 ;
5795    
5796     if(!PyArg_ParseTuple(args,(char *)"OO|OOOO:BossAdministratorSession_registerCHTool",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5797     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5798     {
5799     if (PyString_Check(obj1)) {
5800     temp2 = std::string(PyString_AsString(obj1));
5801     arg2 = &temp2;
5802     }else {
5803     SWIG_exception(SWIG_TypeError, "string expected");
5804     }
5805 gcodispo 1.9 }
5806 gcodispo 1.10 if (obj2) {
5807     {
5808     if (PyString_Check(obj2))
5809     arg3 = std::string(PyString_AsString(obj2));
5810     else
5811     SWIG_exception(SWIG_TypeError, "string expected");
5812 yzhang 1.1 }
5813     }
5814 gcodispo 1.10 if (obj3) {
5815     {
5816     if (PyString_Check(obj3))
5817     arg4 = std::string(PyString_AsString(obj3));
5818     else
5819     SWIG_exception(SWIG_TypeError, "string expected");
5820 gcodispo 1.3 }
5821 yzhang 1.1 }
5822 gcodispo 1.10 if (obj4) {
5823     arg5 = PyInt_AsLong(obj4) ? true : false;
5824     if (PyErr_Occurred()) SWIG_fail;
5825 gcodispo 1.3 }
5826 gcodispo 1.10 if (obj5) {
5827     arg6 = PyInt_AsLong(obj5) ? true : false;
5828     if (PyErr_Occurred()) SWIG_fail;
5829 gcodispo 1.3 }
5830 gcodispo 1.10 {
5831     try {
5832     result = (int)(arg1)->registerCHTool((std::string const &)*arg2,arg3,arg4,arg5,arg6);
5833    
5834 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5835 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5836     return NULL;
5837 gcodispo 1.10 }catch (const std::exception& e) {
5838 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5839     return NULL;
5840 yzhang 1.1 }
5841     }
5842 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5843     return resultobj;
5844     fail:
5845     return NULL;
5846     }
5847    
5848    
5849     static PyObject *_wrap_BossAdministratorSession_registerProgram(PyObject *self, PyObject *args) {
5850     PyObject *resultobj;
5851     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5852     std::string *arg2 = 0 ;
5853     std::string arg3 = (std::string) "NULL" ;
5854     std::string arg4 = (std::string) "NULL" ;
5855     std::string arg5 = (std::string) "NULL" ;
5856     std::string arg6 = (std::string) "NULL" ;
5857     std::string arg7 = (std::string) "" ;
5858     bool arg8 = (bool) false ;
5859     int result;
5860     std::string temp2 ;
5861     PyObject * obj0 = 0 ;
5862     PyObject * obj1 = 0 ;
5863     PyObject * obj2 = 0 ;
5864     PyObject * obj3 = 0 ;
5865     PyObject * obj4 = 0 ;
5866     PyObject * obj5 = 0 ;
5867     PyObject * obj6 = 0 ;
5868     PyObject * obj7 = 0 ;
5869    
5870     if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOO:BossAdministratorSession_registerProgram",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5871     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5872     {
5873     if (PyString_Check(obj1)) {
5874     temp2 = std::string(PyString_AsString(obj1));
5875     arg2 = &temp2;
5876     }else {
5877     SWIG_exception(SWIG_TypeError, "string expected");
5878 gcodispo 1.3 }
5879 yzhang 1.1 }
5880 gcodispo 1.10 if (obj2) {
5881     {
5882     if (PyString_Check(obj2))
5883     arg3 = std::string(PyString_AsString(obj2));
5884     else
5885     SWIG_exception(SWIG_TypeError, "string expected");
5886 gcodispo 1.3 }
5887     }
5888 gcodispo 1.10 if (obj3) {
5889     {
5890     if (PyString_Check(obj3))
5891     arg4 = std::string(PyString_AsString(obj3));
5892     else
5893     SWIG_exception(SWIG_TypeError, "string expected");
5894 gcodispo 1.3 }
5895     }
5896 gcodispo 1.10 if (obj4) {
5897     {
5898     if (PyString_Check(obj4))
5899     arg5 = std::string(PyString_AsString(obj4));
5900     else
5901     SWIG_exception(SWIG_TypeError, "string expected");
5902 gcodispo 1.3 }
5903     }
5904 gcodispo 1.10 if (obj5) {
5905     {
5906     if (PyString_Check(obj5))
5907     arg6 = std::string(PyString_AsString(obj5));
5908     else
5909     SWIG_exception(SWIG_TypeError, "string expected");
5910 gcodispo 1.3 }
5911     }
5912 gcodispo 1.10 if (obj6) {
5913     {
5914     if (PyString_Check(obj6))
5915     arg7 = std::string(PyString_AsString(obj6));
5916     else
5917     SWIG_exception(SWIG_TypeError, "string expected");
5918 gcodispo 1.3 }
5919     }
5920 gcodispo 1.10 if (obj7) {
5921     arg8 = PyInt_AsLong(obj7) ? true : false;
5922     if (PyErr_Occurred()) SWIG_fail;
5923 yzhang 1.1 }
5924 gcodispo 1.10 {
5925     try {
5926     result = (int)(arg1)->registerProgram((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
5927    
5928 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5929 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5930     return NULL;
5931 gcodispo 1.10 }catch (const std::exception& e) {
5932 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5933     return NULL;
5934 gcodispo 1.3 }
5935 yzhang 1.1 }
5936 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5937     return resultobj;
5938     fail:
5939     return NULL;
5940 yzhang 1.1 }
5941    
5942    
5943 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerRTMon(PyObject *self, PyObject *args) {
5944     PyObject *resultobj;
5945     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
5946     std::string *arg2 = 0 ;
5947     std::string arg3 = (std::string) "NULL" ;
5948     std::string arg4 = (std::string) "NULL" ;
5949     std::string arg5 = (std::string) "NULL" ;
5950     bool arg6 = (bool) false ;
5951     bool arg7 = (bool) false ;
5952     int result;
5953     std::string temp2 ;
5954     PyObject * obj0 = 0 ;
5955     PyObject * obj1 = 0 ;
5956     PyObject * obj2 = 0 ;
5957     PyObject * obj3 = 0 ;
5958     PyObject * obj4 = 0 ;
5959     PyObject * obj5 = 0 ;
5960     PyObject * obj6 = 0 ;
5961    
5962     if(!PyArg_ParseTuple(args,(char *)"OO|OOOOO:BossAdministratorSession_registerRTMon",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5963     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5964     {
5965     if (PyString_Check(obj1)) {
5966     temp2 = std::string(PyString_AsString(obj1));
5967     arg2 = &temp2;
5968     }else {
5969     SWIG_exception(SWIG_TypeError, "string expected");
5970     }
5971     }
5972     if (obj2) {
5973     {
5974     if (PyString_Check(obj2))
5975     arg3 = std::string(PyString_AsString(obj2));
5976     else
5977     SWIG_exception(SWIG_TypeError, "string expected");
5978     }
5979     }
5980     if (obj3) {
5981     {
5982     if (PyString_Check(obj3))
5983     arg4 = std::string(PyString_AsString(obj3));
5984     else
5985     SWIG_exception(SWIG_TypeError, "string expected");
5986     }
5987 gcodispo 1.3 }
5988 gcodispo 1.10 if (obj4) {
5989     {
5990     if (PyString_Check(obj4))
5991     arg5 = std::string(PyString_AsString(obj4));
5992     else
5993     SWIG_exception(SWIG_TypeError, "string expected");
5994     }
5995 gcodispo 1.3 }
5996 gcodispo 1.10 if (obj5) {
5997     arg6 = PyInt_AsLong(obj5) ? true : false;
5998     if (PyErr_Occurred()) SWIG_fail;
5999 gcodispo 1.3 }
6000 gcodispo 1.10 if (obj6) {
6001     arg7 = PyInt_AsLong(obj6) ? true : false;
6002     if (PyErr_Occurred()) SWIG_fail;
6003 yzhang 1.1 }
6004 gcodispo 1.10 {
6005     try {
6006     result = (int)(arg1)->registerRTMon((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7);
6007    
6008 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6009 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6010     return NULL;
6011 gcodispo 1.10 }catch (const std::exception& e) {
6012 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6013     return NULL;
6014 gcodispo 1.10 }
6015 yzhang 1.1 }
6016 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6017     return resultobj;
6018     fail:
6019     return NULL;
6020 yzhang 1.1 }
6021    
6022    
6023 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerScheduler(PyObject *self, PyObject *args) {
6024     PyObject *resultobj;
6025     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6026     std::string *arg2 = 0 ;
6027     std::string arg3 = (std::string) "NULL" ;
6028     std::string arg4 = (std::string) "NULL" ;
6029     std::string arg5 = (std::string) "NULL" ;
6030     std::string arg6 = (std::string) "NULL" ;
6031     std::string arg7 = (std::string) "" ;
6032     std::string arg8 = (std::string) "" ;
6033     std::string arg9 = (std::string) "" ;
6034     std::string arg10 = (std::string) "" ;
6035     std::string const &arg11_defvalue = "" ;
6036     std::string *arg11 = (std::string *) &arg11_defvalue ;
6037     std::string arg12 = (std::string) "" ;
6038     std::string arg13 = (std::string) "" ;
6039     bool arg14 = (bool) false ;
6040     bool arg15 = (bool) false ;
6041 gcodispo 1.15 bool arg16 = (bool) false ;
6042 gcodispo 1.16 bool arg17 = (bool) false ;
6043 gcodispo 1.10 int result;
6044     std::string temp2 ;
6045     std::string temp11 ;
6046     PyObject * obj0 = 0 ;
6047     PyObject * obj1 = 0 ;
6048     PyObject * obj2 = 0 ;
6049     PyObject * obj3 = 0 ;
6050     PyObject * obj4 = 0 ;
6051     PyObject * obj5 = 0 ;
6052     PyObject * obj6 = 0 ;
6053     PyObject * obj7 = 0 ;
6054     PyObject * obj8 = 0 ;
6055     PyObject * obj9 = 0 ;
6056     PyObject * obj10 = 0 ;
6057     PyObject * obj11 = 0 ;
6058     PyObject * obj12 = 0 ;
6059     PyObject * obj13 = 0 ;
6060     PyObject * obj14 = 0 ;
6061 gcodispo 1.15 PyObject * obj15 = 0 ;
6062 gcodispo 1.16 PyObject * obj16 = 0 ;
6063 gcodispo 1.10
6064 gcodispo 1.16 if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOOOOOOOOOOO:BossAdministratorSession_registerScheduler",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14,&obj15,&obj16)) goto fail;
6065 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6066     {
6067     if (PyString_Check(obj1)) {
6068     temp2 = std::string(PyString_AsString(obj1));
6069     arg2 = &temp2;
6070     }else {
6071     SWIG_exception(SWIG_TypeError, "string expected");
6072     }
6073     }
6074     if (obj2) {
6075     {
6076     if (PyString_Check(obj2))
6077     arg3 = std::string(PyString_AsString(obj2));
6078     else
6079     SWIG_exception(SWIG_TypeError, "string expected");
6080     }
6081     }
6082     if (obj3) {
6083     {
6084     if (PyString_Check(obj3))
6085     arg4 = std::string(PyString_AsString(obj3));
6086     else
6087     SWIG_exception(SWIG_TypeError, "string expected");
6088     }
6089     }
6090     if (obj4) {
6091     {
6092     if (PyString_Check(obj4))
6093     arg5 = std::string(PyString_AsString(obj4));
6094     else
6095     SWIG_exception(SWIG_TypeError, "string expected");
6096     }
6097 gcodispo 1.3 }
6098 gcodispo 1.10 if (obj5) {
6099 gcodispo 1.3 {
6100 gcodispo 1.10 if (PyString_Check(obj5))
6101     arg6 = std::string(PyString_AsString(obj5));
6102     else
6103     SWIG_exception(SWIG_TypeError, "string expected");
6104 gcodispo 1.3 }
6105 gcodispo 1.10 }
6106     if (obj6) {
6107     {
6108     if (PyString_Check(obj6))
6109     arg7 = std::string(PyString_AsString(obj6));
6110     else
6111     SWIG_exception(SWIG_TypeError, "string expected");
6112 gcodispo 1.3 }
6113     }
6114 gcodispo 1.10 if (obj7) {
6115     {
6116     if (PyString_Check(obj7))
6117     arg8 = std::string(PyString_AsString(obj7));
6118     else
6119     SWIG_exception(SWIG_TypeError, "string expected");
6120     }
6121 gcodispo 1.3 }
6122 gcodispo 1.10 if (obj8) {
6123     {
6124     if (PyString_Check(obj8))
6125     arg9 = std::string(PyString_AsString(obj8));
6126     else
6127     SWIG_exception(SWIG_TypeError, "string expected");
6128     }
6129 gcodispo 1.3 }
6130 gcodispo 1.10 if (obj9) {
6131     {
6132     if (PyString_Check(obj9))
6133     arg10 = std::string(PyString_AsString(obj9));
6134     else
6135     SWIG_exception(SWIG_TypeError, "string expected");
6136     }
6137 gcodispo 1.3 }
6138 gcodispo 1.10 if (obj10) {
6139     {
6140     if (PyString_Check(obj10)) {
6141     temp11 = std::string(PyString_AsString(obj10));
6142     arg11 = &temp11;
6143     }else {
6144     SWIG_exception(SWIG_TypeError, "string expected");
6145     }
6146     }
6147 gcodispo 1.3 }
6148 gcodispo 1.10 if (obj11) {
6149     {
6150     if (PyString_Check(obj11))
6151     arg12 = std::string(PyString_AsString(obj11));
6152     else
6153     SWIG_exception(SWIG_TypeError, "string expected");
6154     }
6155 gcodispo 1.3 }
6156 gcodispo 1.10 if (obj12) {
6157     {
6158     if (PyString_Check(obj12))
6159     arg13 = std::string(PyString_AsString(obj12));
6160     else
6161     SWIG_exception(SWIG_TypeError, "string expected");
6162     }
6163 gcodispo 1.3 }
6164 gcodispo 1.10 if (obj13) {
6165     arg14 = PyInt_AsLong(obj13) ? true : false;
6166     if (PyErr_Occurred()) SWIG_fail;
6167 gcodispo 1.3 }
6168 gcodispo 1.10 if (obj14) {
6169     arg15 = PyInt_AsLong(obj14) ? true : false;
6170     if (PyErr_Occurred()) SWIG_fail;
6171 gcodispo 1.3 }
6172 gcodispo 1.15 if (obj15) {
6173     arg16 = PyInt_AsLong(obj15) ? true : false;
6174     if (PyErr_Occurred()) SWIG_fail;
6175     }
6176 gcodispo 1.16 if (obj16) {
6177     arg17 = PyInt_AsLong(obj16) ? true : false;
6178     if (PyErr_Occurred()) SWIG_fail;
6179     }
6180 gcodispo 1.10 {
6181     try {
6182 gcodispo 1.16 result = (int)(arg1)->registerScheduler((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,(std::string const &)*arg11,arg12,arg13,arg14,arg15,arg16,arg17);
6183 gcodispo 1.10
6184 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6185 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6186     return NULL;
6187 gcodispo 1.10 }catch (const std::exception& e) {
6188 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6189     return NULL;
6190 gcodispo 1.10 }
6191 yzhang 1.1 }
6192 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6193     return resultobj;
6194     fail:
6195     return NULL;
6196 yzhang 1.1 }
6197    
6198    
6199 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_help(PyObject *self, PyObject *args) {
6200     PyObject *resultobj;
6201     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6202     std::string result;
6203     PyObject * obj0 = 0 ;
6204    
6205     if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_help",&obj0)) goto fail;
6206     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6207     {
6208     try {
6209     result = (arg1)->help();
6210    
6211 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6212 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6213     return NULL;
6214 gcodispo 1.10 }catch (const std::exception& e) {
6215 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6216     return NULL;
6217 gcodispo 1.10 }
6218 gcodispo 1.9 }
6219 gcodispo 1.10 {
6220     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
6221 yzhang 1.1 }
6222 gcodispo 1.10 return resultobj;
6223     fail:
6224     return NULL;
6225     }
6226    
6227    
6228     static PyObject *_wrap_BossAdministratorSession_SQL(PyObject *self, PyObject *args) {
6229     PyObject *resultobj;
6230     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6231     std::string arg2 ;
6232     bool arg3 = (bool) false ;
6233     std::string result;
6234     PyObject * obj0 = 0 ;
6235     PyObject * obj1 = 0 ;
6236     PyObject * obj2 = 0 ;
6237    
6238     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossAdministratorSession_SQL",&obj0,&obj1,&obj2)) goto fail;
6239     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6240     {
6241     if (PyString_Check(obj1))
6242     arg2 = std::string(PyString_AsString(obj1));
6243     else
6244     SWIG_exception(SWIG_TypeError, "string expected");
6245 yzhang 1.1 }
6246 gcodispo 1.10 if (obj2) {
6247     arg3 = PyInt_AsLong(obj2) ? true : false;
6248     if (PyErr_Occurred()) SWIG_fail;
6249 gcodispo 1.3 }
6250 gcodispo 1.10 {
6251     try {
6252     result = (arg1)->SQL(arg2,arg3);
6253    
6254 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6255 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6256     return NULL;
6257 gcodispo 1.10 }catch (const std::exception& e) {
6258 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6259     return NULL;
6260 gcodispo 1.10 }
6261 gcodispo 1.3 }
6262 gcodispo 1.10 {
6263     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
6264 yzhang 1.1 }
6265 gcodispo 1.10 return resultobj;
6266     fail:
6267     return NULL;
6268 yzhang 1.1 }
6269    
6270    
6271 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_purge(PyObject *self, PyObject *args) {
6272     PyObject *resultobj;
6273     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6274     std::string *arg2 = 0 ;
6275     std::string *arg3 = 0 ;
6276     std::string *arg4 = 0 ;
6277     std::string const &arg5_defvalue = "0" ;
6278     std::string *arg5 = (std::string *) &arg5_defvalue ;
6279     int result;
6280     std::string temp2 ;
6281     std::string temp3 ;
6282     std::string temp4 ;
6283     std::string temp5 ;
6284     PyObject * obj0 = 0 ;
6285     PyObject * obj1 = 0 ;
6286     PyObject * obj2 = 0 ;
6287     PyObject * obj3 = 0 ;
6288     PyObject * obj4 = 0 ;
6289    
6290     if(!PyArg_ParseTuple(args,(char *)"OOOO|O:BossAdministratorSession_purge",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6291     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6292     {
6293     if (PyString_Check(obj1)) {
6294     temp2 = std::string(PyString_AsString(obj1));
6295     arg2 = &temp2;
6296     }else {
6297     SWIG_exception(SWIG_TypeError, "string expected");
6298     }
6299     }
6300     {
6301     if (PyString_Check(obj2)) {
6302     temp3 = std::string(PyString_AsString(obj2));
6303     arg3 = &temp3;
6304     }else {
6305     SWIG_exception(SWIG_TypeError, "string expected");
6306     }
6307     }
6308     {
6309     if (PyString_Check(obj3)) {
6310     temp4 = std::string(PyString_AsString(obj3));
6311     arg4 = &temp4;
6312     }else {
6313     SWIG_exception(SWIG_TypeError, "string expected");
6314 gcodispo 1.5 }
6315     }
6316 gcodispo 1.10 if (obj4) {
6317     {
6318     if (PyString_Check(obj4)) {
6319     temp5 = std::string(PyString_AsString(obj4));
6320     arg5 = &temp5;
6321     }else {
6322     SWIG_exception(SWIG_TypeError, "string expected");
6323 gcodispo 1.9 }
6324 gcodispo 1.5 }
6325     }
6326 gcodispo 1.10 {
6327     try {
6328     result = (int)(arg1)->purge((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
6329    
6330 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6331 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6332     return NULL;
6333 gcodispo 1.10 }catch (const std::exception& e) {
6334 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6335     return NULL;
6336 gcodispo 1.10 }
6337     }
6338     resultobj = PyInt_FromLong((long)result);
6339     return resultobj;
6340     fail:
6341     return NULL;
6342 gcodispo 1.9 }
6343    
6344    
6345 gcodispo 1.11 static PyObject *_wrap_BossAdministratorSession_registerPlugins(PyObject *self, PyObject *args) {
6346 gcodispo 1.10 PyObject *resultobj;
6347     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6348     std::string arg2 ;
6349     int result;
6350     PyObject * obj0 = 0 ;
6351     PyObject * obj1 = 0 ;
6352    
6353 gcodispo 1.11 if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_registerPlugins",&obj0,&obj1)) goto fail;
6354 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6355     {
6356     if (PyString_Check(obj1))
6357     arg2 = std::string(PyString_AsString(obj1));
6358     else
6359     SWIG_exception(SWIG_TypeError, "string expected");
6360 gcodispo 1.5 }
6361 gcodispo 1.10 {
6362     try {
6363 gcodispo 1.11 result = (int)(arg1)->registerPlugins(arg2);
6364 gcodispo 1.10
6365 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6366 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6367     return NULL;
6368 gcodispo 1.10 }catch (const std::exception& e) {
6369 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6370     return NULL;
6371 gcodispo 1.10 }
6372 gcodispo 1.3 }
6373 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6374     return resultobj;
6375     fail:
6376     return NULL;
6377 yzhang 1.1 }
6378    
6379    
6380 gcodispo 1.10 static PyObject * BossAdministratorSession_swigregister(PyObject *self, PyObject *args) {
6381     PyObject *obj;
6382     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6383     SWIG_TypeClientData(SWIGTYPE_p_BossAdministratorSession, obj);
6384     Py_INCREF(obj);
6385     return Py_BuildValue((char *)"");
6386 yzhang 1.1 }
6387     static PyMethodDef SwigMethods[] = {
6388 gcodispo 1.10 { (char *)"new_objectMap", _wrap_new_objectMap, METH_VARARGS },
6389     { (char *)"objectMap___len__", _wrap_objectMap___len__, METH_VARARGS },
6390     { (char *)"objectMap_clear", _wrap_objectMap_clear, METH_VARARGS },
6391     { (char *)"objectMap___nonzero__", _wrap_objectMap___nonzero__, METH_VARARGS },
6392     { (char *)"objectMap___getitem__", _wrap_objectMap___getitem__, METH_VARARGS },
6393     { (char *)"objectMap___setitem__", _wrap_objectMap___setitem__, METH_VARARGS },
6394     { (char *)"objectMap___delitem__", _wrap_objectMap___delitem__, METH_VARARGS },
6395     { (char *)"objectMap_has_key", _wrap_objectMap_has_key, METH_VARARGS },
6396     { (char *)"objectMap_keys", _wrap_objectMap_keys, METH_VARARGS },
6397     { (char *)"objectMap_values", _wrap_objectMap_values, METH_VARARGS },
6398     { (char *)"objectMap_items", _wrap_objectMap_items, METH_VARARGS },
6399     { (char *)"objectMap___contains__", _wrap_objectMap___contains__, METH_VARARGS },
6400     { (char *)"objectMap___iter__", _wrap_objectMap___iter__, METH_VARARGS },
6401     { (char *)"delete_objectMap", _wrap_delete_objectMap, METH_VARARGS },
6402     { (char *)"objectMap_swigregister", objectMap_swigregister, METH_VARARGS },
6403     { (char *)"new_vector_string", _wrap_new_vector_string, METH_VARARGS },
6404     { (char *)"vector_string___len__", _wrap_vector_string___len__, METH_VARARGS },
6405     { (char *)"vector_string___nonzero__", _wrap_vector_string___nonzero__, METH_VARARGS },
6406     { (char *)"vector_string_clear", _wrap_vector_string_clear, METH_VARARGS },
6407     { (char *)"vector_string_append", _wrap_vector_string_append, METH_VARARGS },
6408     { (char *)"vector_string_pop", _wrap_vector_string_pop, METH_VARARGS },
6409     { (char *)"vector_string___getitem__", _wrap_vector_string___getitem__, METH_VARARGS },
6410     { (char *)"vector_string___getslice__", _wrap_vector_string___getslice__, METH_VARARGS },
6411     { (char *)"vector_string___setitem__", _wrap_vector_string___setitem__, METH_VARARGS },
6412     { (char *)"vector_string___setslice__", _wrap_vector_string___setslice__, METH_VARARGS },
6413     { (char *)"vector_string___delitem__", _wrap_vector_string___delitem__, METH_VARARGS },
6414     { (char *)"vector_string___delslice__", _wrap_vector_string___delslice__, METH_VARARGS },
6415     { (char *)"delete_vector_string", _wrap_delete_vector_string, METH_VARARGS },
6416     { (char *)"vector_string_swigregister", vector_string_swigregister, METH_VARARGS },
6417     { (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS },
6418     { (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS },
6419 gcodispo 1.13 { (char *)"BossSession_resetDB", _wrap_BossSession_resetDB, METH_VARARGS },
6420 gcodispo 1.10 { (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS },
6421     { (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS },
6422     { (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS },
6423 gcodispo 1.19 { (char *)"BossSession_showCHTools", _wrap_BossSession_showCHTools, METH_VARARGS },
6424     { (char *)"BossSession_showProgramTypes", _wrap_BossSession_showProgramTypes, METH_VARARGS },
6425     { (char *)"BossSession_showRTMon", _wrap_BossSession_showRTMon, METH_VARARGS },
6426     { (char *)"BossSession_showSchedulers", _wrap_BossSession_showSchedulers, METH_VARARGS },
6427 gcodispo 1.10 { (char *)"BossSession_defaultCHTool", _wrap_BossSession_defaultCHTool, METH_VARARGS },
6428     { (char *)"BossSession_defaultProgramType", _wrap_BossSession_defaultProgramType, METH_VARARGS },
6429     { (char *)"BossSession_defaultRTMon", _wrap_BossSession_defaultRTMon, METH_VARARGS },
6430     { (char *)"BossSession_defaultScheduler", _wrap_BossSession_defaultScheduler, METH_VARARGS },
6431     { (char *)"BossSession_version", _wrap_BossSession_version, METH_VARARGS },
6432     { (char *)"BossSession_clientID", _wrap_BossSession_clientID, METH_VARARGS },
6433     { (char *)"BossSession_showConfigs", _wrap_BossSession_showConfigs, METH_VARARGS },
6434     { (char *)"BossSession_RTupdate", _wrap_BossSession_RTupdate, METH_VARARGS },
6435     { (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS },
6436     { (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS },
6437     { (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS },
6438 gcodispo 1.26 { (char *)"BossSession_selectTasksByName", _wrap_BossSession_selectTasksByName, METH_VARARGS },
6439 gcodispo 1.10 { (char *)"BossSession_query", _wrap_BossSession_query, METH_VARARGS },
6440 gcodispo 1.26 { (char *)"BossSession_getTasksByName", _wrap_BossSession_getTasksByName, METH_VARARGS },
6441 gcodispo 1.19 { (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS },
6442     { (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS },
6443     { (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS },
6444     { (char *)"BossSession_RTMons", _wrap_BossSession_RTMons, METH_VARARGS },
6445     { (char *)"BossSession_schedulers", _wrap_BossSession_schedulers, METH_VARARGS },
6446     { (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS },
6447     { (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS },
6448 gcodispo 1.10 { (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS },
6449     { (char *)"BossTaskException_key_set", _wrap_BossTaskException_key_set, METH_VARARGS },
6450     { (char *)"BossTaskException_key_get", _wrap_BossTaskException_key_get, METH_VARARGS },
6451     { (char *)"new_BossTaskException", _wrap_new_BossTaskException, METH_VARARGS },
6452     { (char *)"BossTaskException_what", _wrap_BossTaskException_what, METH_VARARGS },
6453     { (char *)"delete_BossTaskException", _wrap_delete_BossTaskException, METH_VARARGS },
6454     { (char *)"BossTaskException_swigregister", BossTaskException_swigregister, METH_VARARGS },
6455     { (char *)"delete_BossTask", _wrap_delete_BossTask, METH_VARARGS },
6456     { (char *)"new_BossTask", _wrap_new_BossTask, METH_VARARGS },
6457     { (char *)"BossTask_id", _wrap_BossTask_id, METH_VARARGS },
6458     { (char *)"BossTask_name", _wrap_BossTask_name, METH_VARARGS },
6459     { (char *)"BossTask_taskMap", _wrap_BossTask_taskMap, METH_VARARGS },
6460     { (char *)"BossTask_job_begin", _wrap_BossTask_job_begin, METH_VARARGS },
6461     { (char *)"BossTask_job_end", _wrap_BossTask_job_end, METH_VARARGS },
6462     { (char *)"BossTask_jobsMap", _wrap_BossTask_jobsMap, METH_VARARGS },
6463     { (char *)"BossTask_jobMap", _wrap_BossTask_jobMap, METH_VARARGS },
6464     { (char *)"BossTask_programsMap", _wrap_BossTask_programsMap, METH_VARARGS },
6465     { (char *)"BossTask_queryJobPrograms", _wrap_BossTask_queryJobPrograms, METH_VARARGS },
6466     { (char *)"BossTask_declare", _wrap_BossTask_declare, METH_VARARGS },
6467     { (char *)"BossTask_remove", _wrap_BossTask_remove, METH_VARARGS },
6468     { (char *)"BossTask_archive", _wrap_BossTask_archive, METH_VARARGS },
6469     { (char *)"BossTask_submit", _wrap_BossTask_submit, METH_VARARGS },
6470     { (char *)"BossTask_reSubmit", _wrap_BossTask_reSubmit, METH_VARARGS },
6471     { (char *)"BossTask_kill", _wrap_BossTask_kill, METH_VARARGS },
6472     { (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS },
6473 gcodispo 1.26 { (char *)"BossTask_loadByName", _wrap_BossTask_loadByName, METH_VARARGS },
6474 gcodispo 1.12 { (char *)"BossTask_load", _wrap_BossTask_load, METH_VARARGS },
6475 gcodispo 1.10 { (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS },
6476     { (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS },
6477     { (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS },
6478 gcodispo 1.19 { (char *)"BossTask_appendToPyDict", _wrap_BossTask_appendToPyDict, METH_VARARGS },
6479     { (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS },
6480     { (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS },
6481     { (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS },
6482     { (char *)"BossTask_jobPrograms", _wrap_BossTask_jobPrograms, METH_VARARGS },
6483 gcodispo 1.10 { (char *)"BossTask_swigregister", BossTask_swigregister, METH_VARARGS },
6484     { (char *)"new_BossAdministratorSession", _wrap_new_BossAdministratorSession, METH_VARARGS },
6485     { (char *)"delete_BossAdministratorSession", _wrap_delete_BossAdministratorSession, METH_VARARGS },
6486     { (char *)"BossAdministratorSession_configureDB", _wrap_BossAdministratorSession_configureDB, METH_VARARGS },
6487     { (char *)"BossAdministratorSession_configureRTMonDB", _wrap_BossAdministratorSession_configureRTMonDB, METH_VARARGS },
6488     { (char *)"BossAdministratorSession_deleteCHTool", _wrap_BossAdministratorSession_deleteCHTool, METH_VARARGS },
6489     { (char *)"BossAdministratorSession_deleteProgramType", _wrap_BossAdministratorSession_deleteProgramType, METH_VARARGS },
6490     { (char *)"BossAdministratorSession_deleteRTMon", _wrap_BossAdministratorSession_deleteRTMon, METH_VARARGS },
6491     { (char *)"BossAdministratorSession_deleteScheduler", _wrap_BossAdministratorSession_deleteScheduler, METH_VARARGS },
6492     { (char *)"BossAdministratorSession_registerCHTool", _wrap_BossAdministratorSession_registerCHTool, METH_VARARGS },
6493     { (char *)"BossAdministratorSession_registerProgram", _wrap_BossAdministratorSession_registerProgram, METH_VARARGS },
6494     { (char *)"BossAdministratorSession_registerRTMon", _wrap_BossAdministratorSession_registerRTMon, METH_VARARGS },
6495     { (char *)"BossAdministratorSession_registerScheduler", _wrap_BossAdministratorSession_registerScheduler, METH_VARARGS },
6496     { (char *)"BossAdministratorSession_help", _wrap_BossAdministratorSession_help, METH_VARARGS },
6497     { (char *)"BossAdministratorSession_SQL", _wrap_BossAdministratorSession_SQL, METH_VARARGS },
6498     { (char *)"BossAdministratorSession_purge", _wrap_BossAdministratorSession_purge, METH_VARARGS },
6499 gcodispo 1.11 { (char *)"BossAdministratorSession_registerPlugins", _wrap_BossAdministratorSession_registerPlugins, METH_VARARGS },
6500 gcodispo 1.10 { (char *)"BossAdministratorSession_swigregister", BossAdministratorSession_swigregister, METH_VARARGS },
6501     { NULL, NULL }
6502 yzhang 1.1 };
6503    
6504    
6505     /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
6506    
6507 gcodispo 1.19 static swig_type_info _swigt__p_XMLDoc[] = {{"_p_XMLDoc", 0, "XMLDoc *", 0},{"_p_XMLDoc"},{0}};
6508 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}};
6509     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}};
6510     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}};
6511     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}};
6512 gcodispo 1.19 static swig_type_info _swigt__p_std__ostream[] = {{"_p_std__ostream", 0, "std::ostream *", 0},{"_p_std__ostream"},{0}};
6513 gcodispo 1.10 static swig_type_info _swigt__p_BossTask[] = {{"_p_BossTask", 0, "BossTask *", 0},{"_p_BossTask"},{0}};
6514     static swig_type_info _swigt__p_BossTaskException[] = {{"_p_BossTaskException", 0, "BossTaskException *", 0},{"_p_BossTaskException"},{0}};
6515 gcodispo 1.19 static swig_type_info _swigt__p_printOption[] = {{"_p_printOption", 0, "printOption const &", 0},{"_p_printOption"},{0}};
6516 gcodispo 1.10 static swig_type_info _swigt__p_BossAttributeContainer[] = {{"_p_BossAttributeContainer", 0, "BossAttributeContainer *", 0},{"_p_BossAttributeContainer"},{0}};
6517     static swig_type_info _swigt__p_BossJob[] = {{"_p_BossJob", 0, "BossJob *", 0},{"_p_BossJob"},{0}};
6518     static swig_type_info _swigt__p_BossDatabase[] = {{"_p_BossDatabase", 0, "BossDatabase *", 0},{"_p_BossDatabase"},{0}};
6519     static swig_type_info _swigt__p_BossSession[] = {{"_p_BossSession", 0, "BossSession *", 0},{"_p_BossSession"},{0}};
6520     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}};
6521     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}};
6522     static swig_type_info _swigt__p_BossAdministratorSession[] = {{"_p_BossAdministratorSession", 0, "BossAdministratorSession *", 0},{"_p_BossAdministratorSession"},{0}};
6523 gcodispo 1.19 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}};
6524 gcodispo 1.10 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}};
6525     static swig_type_info _swigt__p_jobStates[] = {{"_p_jobStates", 0, "jobStates const &", 0},{"_p_jobStates"},{0}};
6526    
6527     static swig_type_info *swig_types_initial[] = {
6528 gcodispo 1.19 _swigt__p_XMLDoc,
6529 gcodispo 1.10 _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t,
6530     _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,
6531     _swigt__p_std__vectorTBossTask_p_t,
6532     _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t,
6533 gcodispo 1.19 _swigt__p_std__ostream,
6534 gcodispo 1.10 _swigt__p_BossTask,
6535     _swigt__p_BossTaskException,
6536 gcodispo 1.19 _swigt__p_printOption,
6537 gcodispo 1.10 _swigt__p_BossAttributeContainer,
6538     _swigt__p_BossJob,
6539     _swigt__p_BossDatabase,
6540     _swigt__p_BossSession,
6541     _swigt__p_std__vectorTstd__string_t,
6542     _swigt__p_std__mapTstd__string_std__string_t,
6543     _swigt__p_BossAdministratorSession,
6544 gcodispo 1.19 _swigt__p_std__vectorTBossJob_p_t__const_iterator,
6545 gcodispo 1.10 _swigt__p_BossTask__job_iterator,
6546     _swigt__p_jobStates,
6547     0
6548 yzhang 1.1 };
6549    
6550    
6551     /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
6552    
6553     static swig_const_info swig_const_table[] = {
6554 gcodispo 1.10 { SWIG_PY_INT, (char *)"RUNNING", (long) RUNNING, 0, 0, 0},
6555     { SWIG_PY_INT, (char *)"SCHEDULED", (long) SCHEDULED, 0, 0, 0},
6556     { SWIG_PY_INT, (char *)"SUBMITTED", (long) SUBMITTED, 0, 0, 0},
6557     { SWIG_PY_INT, (char *)"ALL", (long) ALL, 0, 0, 0},
6558     { SWIG_PY_INT, (char *)"STATUS_ONLY", (long) STATUS_ONLY, 0, 0, 0},
6559     { SWIG_PY_INT, (char *)"NORMAL", (long) NORMAL, 0, 0, 0},
6560     { SWIG_PY_INT, (char *)"SPECIFIC", (long) SPECIFIC, 0, 0, 0},
6561     { SWIG_PY_INT, (char *)"PROGRAMS", (long) PROGRAMS, 0, 0, 0},
6562     { SWIG_PY_INT, (char *)"FULL", (long) FULL, 0, 0, 0},
6563     {0}};
6564 yzhang 1.1
6565     #ifdef __cplusplus
6566     }
6567     #endif
6568    
6569     #ifdef __cplusplus
6570 gcodispo 1.10 extern "C"
6571 gcodispo 1.9 #endif
6572 gcodispo 1.10 SWIGEXPORT(void) SWIG_init(void) {
6573     static PyObject *SWIG_globals = 0;
6574     static int typeinit = 0;
6575     PyObject *m, *d;
6576     int i;
6577     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
6578     m = Py_InitModule((char *) SWIG_name, SwigMethods);
6579     d = PyModule_GetDict(m);
6580 gcodispo 1.9
6581 gcodispo 1.10 if (!typeinit) {
6582     for (i = 0; swig_types_initial[i]; i++) {
6583     swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
6584     }
6585     typeinit = 1;
6586 gcodispo 1.9 }
6587 gcodispo 1.10 SWIG_InstallConstants(d,swig_const_table);
6588 yzhang 1.1
6589 gcodispo 1.19
6590     // define custom exceptions
6591     PyObject *e;
6592 gcodispo 1.20 PyMethodDef tp_methods = {
6593     NULL, NULL, 0, NULL
6594     };
6595     e = Py_InitModule("BossSession", &tp_methods);
6596 gcodispo 1.19 // generic BOSS exception
6597     BossError = PyErr_NewException("BossSession.BossError", NULL, NULL);
6598     Py_INCREF(BossError);
6599     PyModule_AddObject(e, "BossError", BossError);
6600     // scheduler interaction BOSS exception
6601     SchedulerError = PyErr_NewException("BossSession.BossError.SchedulerError", BossError, NULL);
6602     Py_INCREF(SchedulerError);
6603     PyModule_AddObject(e, "SchedulerError", SchedulerError);
6604    
6605 yzhang 1.1 }
6606