ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
Revision: 1.38
Committed: Wed Sep 19 15:03:18 2007 UTC (17 years, 7 months ago) by gcodispo
Content type: text/plain
Branch: MAIN
CVS Tags: BOSS_4_3_8, BOSS_4_3_8-ui3_1, BOSS_4_3_7-ui3_1, BOSS_4_3_7
Branch point for: BOSS_4_3-ui3_0
Changes since 1.37: +1 -3 lines
Log Message:
Removed unused variables

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