ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
Revision: 1.34
Committed: Sat Jun 30 13:58:02 2007 UTC (17 years, 10 months ago) by gcodispo
Content type: text/plain
Branch: MAIN
Changes since 1.33: +257 -216 lines
Log Message:
Run wrapper swig for new BossJob class

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     #define SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator swig_types[18]
676 gcodispo 1.29 #define SWIGTYPE_p_BossTask__job_iterator swig_types[19]
677 gcodispo 1.34 #define SWIGTYPE_p_jobStates swig_types[20]
678     static swig_type_info *swig_types[22];
679 yzhang 1.1
680 gcodispo 1.10 /* -------- TYPES TABLE (END) -------- */
681 yzhang 1.1
682    
683 gcodispo 1.10 /*-----------------------------------------------
684     @(target):= _BossSession.so
685     ------------------------------------------------*/
686     #define SWIG_init init_BossSession
687 yzhang 1.1
688 gcodispo 1.10 #define SWIG_name "_BossSession"
689 yzhang 1.1
690 gcodispo 1.10 #define SWIG_MemoryError 1
691     #define SWIG_IOError 2
692     #define SWIG_RuntimeError 3
693     #define SWIG_IndexError 4
694     #define SWIG_TypeError 5
695     #define SWIG_DivisionByZero 6
696     #define SWIG_OverflowError 7
697     #define SWIG_SyntaxError 8
698     #define SWIG_ValueError 9
699     #define SWIG_SystemError 10
700     #define SWIG_UnknownError 99
701 yzhang 1.1
702    
703 gcodispo 1.10 static void _SWIG_exception(int code, const char *msg) {
704 yzhang 1.1 switch(code) {
705     case SWIG_MemoryError:
706 gcodispo 1.10 PyErr_SetString(PyExc_MemoryError,msg);
707 yzhang 1.1 break;
708     case SWIG_IOError:
709 gcodispo 1.10 PyErr_SetString(PyExc_IOError,msg);
710 yzhang 1.1 break;
711     case SWIG_RuntimeError:
712 gcodispo 1.10 PyErr_SetString(PyExc_RuntimeError,msg);
713 yzhang 1.1 break;
714     case SWIG_IndexError:
715 gcodispo 1.10 PyErr_SetString(PyExc_IndexError,msg);
716 yzhang 1.1 break;
717     case SWIG_TypeError:
718 gcodispo 1.10 PyErr_SetString(PyExc_TypeError,msg);
719 yzhang 1.1 break;
720     case SWIG_DivisionByZero:
721 gcodispo 1.10 PyErr_SetString(PyExc_ZeroDivisionError,msg);
722 yzhang 1.1 break;
723     case SWIG_OverflowError:
724 gcodispo 1.10 PyErr_SetString(PyExc_OverflowError,msg);
725 yzhang 1.1 break;
726     case SWIG_SyntaxError:
727 gcodispo 1.10 PyErr_SetString(PyExc_SyntaxError,msg);
728 yzhang 1.1 break;
729     case SWIG_ValueError:
730 gcodispo 1.10 PyErr_SetString(PyExc_ValueError,msg);
731 yzhang 1.1 break;
732     case SWIG_SystemError:
733 gcodispo 1.10 PyErr_SetString(PyExc_SystemError,msg);
734 gcodispo 1.9 break;
735 gcodispo 1.10 default:
736     PyErr_SetString(PyExc_RuntimeError,msg);
737 yzhang 1.1 break;
738 gcodispo 1.9 }
739     }
740    
741 gcodispo 1.10 #define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
742 gcodispo 1.9
743 yzhang 1.1
744 gcodispo 1.10 #include <string>
745 yzhang 1.1
746    
747 gcodispo 1.10 #include <string>
748 yzhang 1.1
749 gcodispo 1.10 PyObject* SwigInt_FromBool(bool b) {
750     return PyInt_FromLong(b ? 1L : 0L);
751     }
752     double SwigNumber_Check(PyObject* o) {
753     return PyFloat_Check(o) || PyInt_Check(o) || PyLong_Check(o);
754     }
755     double SwigNumber_AsDouble(PyObject* o) {
756     return PyFloat_Check(o) ? PyFloat_AsDouble(o)
757     : (PyInt_Check(o) ? double(PyInt_AsLong(o))
758     : double(PyLong_AsLong(o)));
759     }
760     PyObject* SwigString_FromString(const std::string& s) {
761     return PyString_FromStringAndSize(s.data(),s.size());
762     }
763     std::string SwigString_AsString(PyObject* o) {
764     return std::string(PyString_AsString(o));
765     }
766 yzhang 1.1
767    
768 gcodispo 1.10 #include <vector>
769     #include <algorithm>
770     #include <stdexcept>
771 yzhang 1.1
772    
773 gcodispo 1.10 #include <map>
774     #include <algorithm>
775     #include <stdexcept>
776 yzhang 1.1
777 gcodispo 1.10 bool std_maplstd_stringcstd_string_g___nonzero_____(std::map<std::string,std::string > *self){
778     return !(self->empty());
779     }
780     std::string std_maplstd_stringcstd_string_g___getitem_____(std::map<std::string,std::string > *self,std::string key){
781     std::map<std::string,std::string >::iterator i = self->find(key);
782     if (i != self->end())
783     return i->second;
784     else
785     throw std::out_of_range("key not found");
786     }
787     void std_maplstd_stringcstd_string_g___setitem_____(std::map<std::string,std::string > *self,std::string key,std::string x){
788     (*self)[key] = x;
789     }
790     void std_maplstd_stringcstd_string_g___delitem_____(std::map<std::string,std::string > *self,std::string key){
791     std::map<std::string,std::string >::iterator i = self->find(key);
792     if (i != self->end())
793     self->erase(i);
794     else
795     throw std::out_of_range("key not found");
796     }
797     bool std_maplstd_stringcstd_string_g_has_key___(std::map<std::string,std::string > *self,std::string key){
798     std::map<std::string,std::string >::iterator i = self->find(key);
799     return i != self->end();
800     }
801     PyObject *std_maplstd_stringcstd_string_g_keys___(std::map<std::string,std::string > *self){
802     PyObject* keyList = PyList_New(self->size());
803     std::map<std::string,std::string >::iterator i;
804     unsigned int j;
805     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
806     PyList_SetItem(keyList,j,
807     SwigString_FromString(i->first));
808     }
809     return keyList;
810     }
811     PyObject *std_maplstd_stringcstd_string_g_values___(std::map<std::string,std::string > *self){
812     PyObject* valueList = PyList_New(self->size());
813     std::map<std::string,std::string >::iterator i;
814     unsigned int j;
815     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
816     PyList_SetItem(valueList,j,
817     SwigString_FromString(i->second));
818     }
819     return valueList;
820     }
821     PyObject *std_maplstd_stringcstd_string_g_items___(std::map<std::string,std::string > *self){
822     PyObject* itemList = PyList_New(self->size());
823     std::map<std::string,std::string >::iterator i;
824     unsigned int j;
825     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
826     PyObject* item = PyTuple_New(2);
827     PyTuple_SetItem(item,0,
828     SwigString_FromString(i->first));
829     PyTuple_SetItem(item,1,
830     SwigString_FromString(i->second));
831     PyList_SetItem(itemList,j,item);
832     }
833     return itemList;
834     }
835     bool std_maplstd_stringcstd_string_g___contains_____(std::map<std::string,std::string > *self,std::string key){
836     std::map<std::string,std::string >::iterator i = self->find(key);
837     return i != self->end();
838     }
839     PyObject *std_maplstd_stringcstd_string_g___iter_____(std::map<std::string,std::string > *self){
840     #if PY_VERSION_HEX >= 0x02020000
841     PyObject* keyList = PyList_New(self->size());
842     std::map<std::string,std::string >::iterator i;
843     unsigned int j;
844     for (i=self->begin(), j=0; i!=self->end(); ++i, ++j) {
845     PyList_SetItem(keyList,j,
846     SwigString_FromString(i->first));
847 gcodispo 1.9 }
848 gcodispo 1.10 PyObject* iter = PyObject_GetIter(keyList);
849     Py_DECREF(keyList);
850     return iter;
851     #else
852     throw std::runtime_error("Python 2.2 or later is needed"
853     " for iterator support");
854     #endif
855     }
856     std::string std_vectorlstd_string_g_pop___(std::vector<std::string > *self){
857     if (self->size() == 0)
858     throw std::out_of_range("pop from empty vector");
859     std::string x = self->back();
860     self->pop_back();
861     return x;
862     }
863     std::string std_vectorlstd_string_g___getitem_____(std::vector<std::string > *self,int i){
864     int size = int(self->size());
865     if (i<0) i += size;
866     if (i>=0 && i<size)
867     return (*self)[i];
868     else
869     throw std::out_of_range("vector index out of range");
870     }
871     std::vector<std::string > std_vectorlstd_string_g___getslice_____(std::vector<std::string > *self,int i,int j){
872     int size = int(self->size());
873     if (i<0) i = size+i;
874     if (j<0) j = size+j;
875     if (i<0) i = 0;
876     if (j>size) j = size;
877     std::vector<std::string > tmp(j-i);
878     std::copy(self->begin()+i,self->begin()+j,tmp.begin());
879     return tmp;
880     }
881     void std_vectorlstd_string_g___setitem_____(std::vector<std::string > *self,int i,std::string x){
882     int size = int(self->size());
883     if (i<0) i+= size;
884     if (i>=0 && i<size)
885     (*self)[i] = x;
886     else
887     throw std::out_of_range("vector index out of range");
888     }
889     void std_vectorlstd_string_g___setslice_____(std::vector<std::string > *self,int i,int j,std::vector<std::string > const &v){
890     int size = int(self->size());
891     if (i<0) i = size+i;
892     if (j<0) j = size+j;
893     if (i<0) i = 0;
894     if (j>size) j = size;
895     if (int(v.size()) == j-i) {
896     std::copy(v.begin(),v.end(),self->begin()+i);
897     } else {
898     self->erase(self->begin()+i,self->begin()+j);
899     if (i+1 <= int(self->size()))
900     self->insert(self->begin()+i,v.begin(),v.end());
901     else
902     self->insert(self->end(),v.begin(),v.end());
903 gcodispo 1.9 }
904     }
905 gcodispo 1.10 void std_vectorlstd_string_g___delitem_____(std::vector<std::string > *self,int i){
906     int size = int(self->size());
907     if (i<0) i+= size;
908     if (i>=0 && i<size)
909     self->erase(self->begin()+i);
910     else
911     throw std::out_of_range("vector index out of range");
912     }
913     void std_vectorlstd_string_g___delslice_____(std::vector<std::string > *self,int i,int j){
914     int size = int(self->size());
915     if (i<0) i = size+i;
916     if (j<0) j = size+j;
917     if (i<0) i = 0;
918     if (j>size) j = size;
919     self->erase(self->begin()+i,self->begin()+j);
920 gcodispo 1.9 }
921    
922 gcodispo 1.19 static PyObject * BossError;
923     static PyObject * SchedulerError;
924 gcodispo 1.10 #include "BossSession.h"
925     #include "BossAdministratorSession.h"
926     #include "BossTask.h"
927     #include "BossJob.h"
928 gcodispo 1.30 #include "BossChain.h"
929 gcodispo 1.10 #include "BossTaskCore.h"
930     #include "BossAttributeContainer.h"
931     #include "BossDBObject.h"
932     #include "BossProgram.h"
933     #include "BossProgramExec.h"
934     #include "BossDatabase.h"
935 gcodispo 1.17 #include "BossScheduler.h"
936 gcodispo 1.19 #include "BossDeclaration.h"
937 gcodispo 1.9
938 gcodispo 1.10 PyObject *BossSession_show(BossSession *self,std::vector<std::string > &my_vec){
939     PyObject * my_list = PyList_New( my_vec.size());
940     unsigned int index = 0;
941     for ( std::vector<std::string>::const_iterator it = my_vec.begin ();
942     it != my_vec.end(); ++it, ++index) {
943     PyList_SetItem( my_list, index, PyString_FromString( it->c_str() ));
944 gcodispo 1.9 }
945 gcodispo 1.10 return my_list;
946 gcodispo 1.9 }
947 gcodispo 1.10 PyObject *BossSession_CHTools(BossSession *self){
948     std::vector<std::string> my_vec = self->showCHTools();
949     return BossSession_show( self, my_vec );
950 gcodispo 1.9 }
951 gcodispo 1.10 PyObject *BossSession_ProgramTypes(BossSession *self){
952     std::vector<std::string> my_vec = self->showProgramTypes();
953     return BossSession_show( self, my_vec );
954 gcodispo 1.9 }
955 gcodispo 1.10 PyObject *BossSession_RTMons(BossSession *self){
956     std::vector<std::string> my_vec = self->showRTMon();
957     return BossSession_show( self, my_vec );
958 gcodispo 1.9 }
959 gcodispo 1.10 PyObject *BossSession_schedulers(BossSession *self){
960     std::vector<std::string> my_vec = self->showSchedulers();
961     return BossSession_show( self, my_vec );
962 gcodispo 1.9 }
963 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){
964 gcodispo 1.10 std::vector<std::string> my_vec = self->listMatch( scheduler,
965     schclassad,
966     taskid,
967 gcodispo 1.21 jobid,
968     timeout);
969 gcodispo 1.10 return BossSession_show( self, my_vec );
970 gcodispo 1.9 }
971 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){
972     self->query ( filter_opt, taskRange, jobRange, subn, type, user, after, before, timeout, avoidCheck );
973     return;
974 gcodispo 1.25 }
975     void BossTask_appendToPyDict(BossTask const *self,PyObject *dict,BossAttributeContainer const &obj){
976     std::string tmp;
977     BossAttributeContainer::const_iterator it_end = obj.end ();
978     for (BossAttributeContainer::const_iterator it = obj.begin ();
979     it != it_end; ++it) {
980    
981     PyObject * key = PyString_FromString( (it->first.name()).c_str() );
982     PyObject * val = PyString_FromString( (*it).second.value ().c_str() );
983     PyDict_SetItem( dict, key, val);
984     Py_DECREF(key);
985     Py_DECREF(val);
986 gcodispo 1.9 }
987 gcodispo 1.25 return;
988     }
989 gcodispo 1.29 void BossTask_jobDict(BossTask const *self,BossJob const *jobH,PyObject *job_dict){
990 gcodispo 1.9
991 gcodispo 1.25 // PyObject * job_dict = PyDict_New();
992 gcodispo 1.10 std::string tmp;
993 gcodispo 1.9
994 gcodispo 1.29 BossAttributeContainer obj = jobH->getTableEntries("JOB");
995 gcodispo 1.25 BossTask_appendToPyDict ( self, job_dict, obj );
996 gcodispo 1.9
997 gcodispo 1.29 std::set<std::string> sch = jobH->getSchedulerElements();
998 gcodispo 1.10 std::set<std::string>::const_iterator sch_end = sch.end();
999     for (std::set<std::string>::const_iterator it =sch.begin();
1000     it != sch_end; ++ it ) {
1001 gcodispo 1.25
1002 gcodispo 1.29 tmp = (*jobH)["JOB_SCHED_INFO."+(*it)];
1003 gcodispo 1.25 PyObject * key = PyString_FromString( it->c_str() );
1004     PyObject * val = PyString_FromString( tmp.c_str() );
1005     PyDict_SetItem( job_dict, key, val);
1006     Py_DECREF(key);
1007     Py_DECREF(val);
1008 gcodispo 1.9 }
1009 gcodispo 1.25 return;
1010 gcodispo 1.9 }
1011 gcodispo 1.12 PyObject *BossTask_jobsDict(BossTask *self){
1012 gcodispo 1.9
1013 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1014 gcodispo 1.12 if ( self->job_begin () == self->job_end ()) self->load(ALL);
1015 gcodispo 1.10 for (BossTask::job_iterator jit = self->job_begin ();
1016     jit != self->job_end (); ++jit) {
1017 gcodispo 1.25 PyObject * id = PyString_FromString( ((*jit)->chainId()).c_str() );
1018     PyObject * tmp_dict = PyDict_New();
1019 gcodispo 1.29 BossTask_jobDict( self, *jit, tmp_dict );
1020 gcodispo 1.25 PyDict_SetItem( job_dict, id, tmp_dict );
1021     Py_DECREF(id);
1022     Py_DECREF(tmp_dict);
1023 gcodispo 1.9 }
1024 gcodispo 1.10 return job_dict;
1025 gcodispo 1.9 }
1026 gcodispo 1.29 PyObject *BossTask_job(BossTask *self,std::string const &jobid){
1027     PyObject * job_dict = PyDict_New();
1028     BossTask_jobDict( self, &(*self)[ atoi(jobid.c_str()) ], job_dict );
1029     return job_dict;
1030     }
1031 gcodispo 1.30 PyObject *BossTask_Chain(BossTask *self,std::string const &jobid){
1032    
1033     PyObject * chain_dict = PyDict_New();
1034     BossAttributeContainer obj =
1035     self->chain( jobid ).getTableEntries("CHAIN");
1036     BossTask_appendToPyDict ( self, chain_dict, obj );
1037     return chain_dict;
1038     }
1039 gcodispo 1.29 PyObject *BossTask_jobStates(BossTask *self){
1040    
1041     PyObject * job_dict = PyDict_New();
1042     if ( self->job_begin () == self->job_end ()) self->load(ALL);
1043     for (BossTask::job_iterator jit = self->job_begin ();
1044     jit != self->job_end (); ++jit) {
1045     PyObject * id = PyString_FromString( ((*jit)->chainId()).c_str() );
1046     PyObject * status = PyString_FromString( ((**jit)["JOB.STATUS"]).c_str() );
1047     PyDict_SetItem( job_dict, id, status );
1048     Py_DECREF(id);
1049     Py_DECREF(status);
1050     }
1051     return job_dict;
1052     }
1053 gcodispo 1.34 PyObject *BossTask_joblist(BossTask *self){
1054     if ( self->job_begin () == self->job_end ()) self->load(ALL);
1055     PyObject * job_list = PyList_New( self->jobsInMemory() );
1056     unsigned int index = 0;
1057     for (BossTask::job_iterator jit = self->job_begin ();
1058     jit != self->job_end (); ++jit, ++index) {
1059     PyList_SetItem( job_list,
1060     index,
1061     PyString_FromString( ( (*jit)->chainId() ).c_str() )
1062     );
1063     }
1064     return job_list;
1065     }
1066 gcodispo 1.29 PyObject *BossTask_jobStatistic(BossTask *self){
1067    
1068     PyObject * job_dict = PyDict_New();
1069     if ( self->job_begin () == self->job_end ()) self->load(ALL);
1070     std::map< std::string, int > states;
1071     for (BossTask::job_iterator jit = self->job_begin ();
1072     jit != self->job_end (); ++jit) {
1073     ++states[(**jit)["JOB.STATUS"]];
1074     }
1075    
1076     std::map< std::string, int >::const_iterator end = states.end ();
1077     for (std::map< std::string, int >::const_iterator it = states.begin ();
1078     it != end; ++it) {
1079     PyObject * status = PyString_FromString( (it->first).c_str() );
1080     PyObject * jobs = PyString_FromFormat( "%d", it->second );
1081     PyDict_SetItem( job_dict, status, jobs );
1082     Py_DECREF(jobs);
1083     Py_DECREF(status);
1084     }
1085     return job_dict;
1086     }
1087 gcodispo 1.10 PyObject *BossTask_progDict(BossTask const *self,std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator &programs_it){
1088 gcodispo 1.9
1089 gcodispo 1.10 PyObject * job_dict = PyDict_New();
1090 gcodispo 1.9
1091 gcodispo 1.10 std::string tmp;
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.10 static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) {
2533     PyObject *resultobj;
2534     BossSession *arg1 = (BossSession *) 0 ;
2535     std::string const &arg2_defvalue = "" ;
2536     std::string *arg2 = (std::string *) &arg2_defvalue ;
2537     BossTask *result;
2538     std::string temp2 ;
2539     PyObject * obj0 = 0 ;
2540     PyObject * obj1 = 0 ;
2541    
2542     if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_makeBossTask",&obj0,&obj1)) goto fail;
2543     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2544     if (obj1) {
2545     {
2546     if (PyString_Check(obj1)) {
2547     temp2 = std::string(PyString_AsString(obj1));
2548     arg2 = &temp2;
2549     }else {
2550     SWIG_exception(SWIG_TypeError, "string expected");
2551     }
2552     }
2553 gcodispo 1.9 }
2554 gcodispo 1.10 {
2555     try {
2556     result = (BossTask *)(arg1)->makeBossTask((std::string const &)*arg2);
2557    
2558 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2559 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2560     return NULL;
2561 gcodispo 1.10 }catch (const std::exception& e) {
2562 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2563     return NULL;
2564 gcodispo 1.10 }
2565 yzhang 1.1 }
2566 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0);
2567     return resultobj;
2568     fail:
2569     return NULL;
2570 yzhang 1.1 }
2571    
2572    
2573 gcodispo 1.10 static PyObject *_wrap_BossSession_destroyBossTask(PyObject *self, PyObject *args) {
2574     PyObject *resultobj;
2575     BossSession *arg1 = (BossSession *) 0 ;
2576     BossTask *arg2 = (BossTask *) 0 ;
2577     PyObject * obj0 = 0 ;
2578     PyObject * obj1 = 0 ;
2579    
2580     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_destroyBossTask",&obj0,&obj1)) goto fail;
2581     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2582     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2583     {
2584     try {
2585     (arg1)->destroyBossTask(arg2);
2586    
2587 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2588 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2589     return NULL;
2590 gcodispo 1.10 }catch (const std::exception& e) {
2591 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2592     return NULL;
2593 gcodispo 1.10 }
2594 yzhang 1.1 }
2595 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
2596     return resultobj;
2597     fail:
2598     return NULL;
2599 yzhang 1.1 }
2600    
2601    
2602 gcodispo 1.19 static PyObject *_wrap_BossSession_showCHTools(PyObject *self, PyObject *args) {
2603     PyObject *resultobj;
2604     BossSession *arg1 = (BossSession *) 0 ;
2605     std::vector<std::string > result;
2606     PyObject * obj0 = 0 ;
2607    
2608     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showCHTools",&obj0)) goto fail;
2609     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2610     {
2611     try {
2612     result = (arg1)->showCHTools();
2613    
2614     }catch (const BossSchedFailure & e) {
2615     PyErr_SetString ( SchedulerError, e.what() );
2616     return NULL;
2617     }catch (const std::exception& e) {
2618     PyErr_SetString ( BossError, e.what() );
2619     return NULL;
2620     }
2621     }
2622     {
2623     resultobj = PyTuple_New((&result)->size());
2624     for (unsigned int i=0; i<(&result)->size(); i++)
2625     PyTuple_SetItem(resultobj,i,
2626     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2627     }
2628     return resultobj;
2629     fail:
2630     return NULL;
2631     }
2632    
2633    
2634     static PyObject *_wrap_BossSession_showProgramTypes(PyObject *self, PyObject *args) {
2635     PyObject *resultobj;
2636     BossSession *arg1 = (BossSession *) 0 ;
2637     std::vector<std::string > result;
2638     PyObject * obj0 = 0 ;
2639    
2640     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showProgramTypes",&obj0)) goto fail;
2641     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2642     {
2643     try {
2644     result = (arg1)->showProgramTypes();
2645    
2646     }catch (const BossSchedFailure & e) {
2647     PyErr_SetString ( SchedulerError, e.what() );
2648     return NULL;
2649     }catch (const std::exception& e) {
2650     PyErr_SetString ( BossError, e.what() );
2651     return NULL;
2652     }
2653     }
2654     {
2655     resultobj = PyTuple_New((&result)->size());
2656     for (unsigned int i=0; i<(&result)->size(); i++)
2657     PyTuple_SetItem(resultobj,i,
2658     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2659     }
2660     return resultobj;
2661     fail:
2662     return NULL;
2663     }
2664    
2665    
2666     static PyObject *_wrap_BossSession_showRTMon(PyObject *self, PyObject *args) {
2667     PyObject *resultobj;
2668     BossSession *arg1 = (BossSession *) 0 ;
2669     std::vector<std::string > result;
2670     PyObject * obj0 = 0 ;
2671    
2672     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showRTMon",&obj0)) goto fail;
2673     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2674     {
2675     try {
2676     result = (arg1)->showRTMon();
2677    
2678     }catch (const BossSchedFailure & e) {
2679     PyErr_SetString ( SchedulerError, e.what() );
2680     return NULL;
2681     }catch (const std::exception& e) {
2682     PyErr_SetString ( BossError, e.what() );
2683     return NULL;
2684     }
2685     }
2686     {
2687     resultobj = PyTuple_New((&result)->size());
2688     for (unsigned int i=0; i<(&result)->size(); i++)
2689     PyTuple_SetItem(resultobj,i,
2690     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2691     }
2692     return resultobj;
2693     fail:
2694     return NULL;
2695     }
2696    
2697    
2698     static PyObject *_wrap_BossSession_showSchedulers(PyObject *self, PyObject *args) {
2699     PyObject *resultobj;
2700     BossSession *arg1 = (BossSession *) 0 ;
2701     std::vector<std::string > result;
2702     PyObject * obj0 = 0 ;
2703    
2704     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_showSchedulers",&obj0)) goto fail;
2705     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2706     {
2707     try {
2708     result = (arg1)->showSchedulers();
2709    
2710     }catch (const BossSchedFailure & e) {
2711     PyErr_SetString ( SchedulerError, e.what() );
2712     return NULL;
2713     }catch (const std::exception& e) {
2714     PyErr_SetString ( BossError, e.what() );
2715     return NULL;
2716     }
2717     }
2718     {
2719     resultobj = PyTuple_New((&result)->size());
2720     for (unsigned int i=0; i<(&result)->size(); i++)
2721     PyTuple_SetItem(resultobj,i,
2722     SwigString_FromString(((std::vector<std::string > &)result)[i]));
2723     }
2724     return resultobj;
2725     fail:
2726     return NULL;
2727     }
2728    
2729    
2730 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultCHTool(PyObject *self, PyObject *args) {
2731     PyObject *resultobj;
2732     BossSession *arg1 = (BossSession *) 0 ;
2733     std::string result;
2734     PyObject * obj0 = 0 ;
2735    
2736     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultCHTool",&obj0)) goto fail;
2737     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2738     {
2739     try {
2740     result = (arg1)->defaultCHTool();
2741    
2742 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2743 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2744     return NULL;
2745 gcodispo 1.10 }catch (const std::exception& e) {
2746 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2747     return NULL;
2748 gcodispo 1.10 }
2749     }
2750     {
2751     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2752 yzhang 1.1 }
2753 gcodispo 1.10 return resultobj;
2754     fail:
2755     return NULL;
2756 yzhang 1.1 }
2757    
2758    
2759 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultProgramType(PyObject *self, PyObject *args) {
2760     PyObject *resultobj;
2761     BossSession *arg1 = (BossSession *) 0 ;
2762     std::string result;
2763     PyObject * obj0 = 0 ;
2764    
2765     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultProgramType",&obj0)) goto fail;
2766     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2767     {
2768     try {
2769     result = (arg1)->defaultProgramType();
2770    
2771 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2772 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2773     return NULL;
2774 gcodispo 1.10 }catch (const std::exception& e) {
2775 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2776     return NULL;
2777 gcodispo 1.10 }
2778 gcodispo 1.9 }
2779 gcodispo 1.10 {
2780     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2781 gcodispo 1.9 }
2782 gcodispo 1.10 return resultobj;
2783     fail:
2784     return NULL;
2785 yzhang 1.1 }
2786    
2787    
2788 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultRTMon(PyObject *self, PyObject *args) {
2789     PyObject *resultobj;
2790     BossSession *arg1 = (BossSession *) 0 ;
2791     std::string result;
2792     PyObject * obj0 = 0 ;
2793    
2794     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultRTMon",&obj0)) goto fail;
2795     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2796     {
2797     try {
2798     result = (arg1)->defaultRTMon();
2799    
2800 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2801 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2802     return NULL;
2803 gcodispo 1.10 }catch (const std::exception& e) {
2804 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2805     return NULL;
2806 gcodispo 1.10 }
2807 gcodispo 1.9 }
2808 gcodispo 1.10 {
2809     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2810 gcodispo 1.4 }
2811 gcodispo 1.10 return resultobj;
2812     fail:
2813     return NULL;
2814 gcodispo 1.4 }
2815    
2816    
2817 gcodispo 1.10 static PyObject *_wrap_BossSession_defaultScheduler(PyObject *self, PyObject *args) {
2818     PyObject *resultobj;
2819     BossSession *arg1 = (BossSession *) 0 ;
2820     std::string result;
2821     PyObject * obj0 = 0 ;
2822    
2823     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_defaultScheduler",&obj0)) goto fail;
2824     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2825     {
2826     try {
2827     result = (arg1)->defaultScheduler();
2828    
2829 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2830 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2831     return NULL;
2832 gcodispo 1.10 }catch (const std::exception& e) {
2833 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2834     return NULL;
2835 gcodispo 1.10 }
2836 gcodispo 1.9 }
2837 gcodispo 1.10 {
2838     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2839 gcodispo 1.9 }
2840 gcodispo 1.10 return resultobj;
2841     fail:
2842     return NULL;
2843 gcodispo 1.4 }
2844    
2845    
2846 gcodispo 1.10 static PyObject *_wrap_BossSession_version(PyObject *self, PyObject *args) {
2847     PyObject *resultobj;
2848     BossSession *arg1 = (BossSession *) 0 ;
2849     std::string result;
2850     PyObject * obj0 = 0 ;
2851    
2852     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_version",&obj0)) goto fail;
2853     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2854     {
2855     try {
2856     result = (arg1)->version();
2857    
2858 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2859 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2860     return NULL;
2861 gcodispo 1.10 }catch (const std::exception& e) {
2862 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2863     return NULL;
2864 gcodispo 1.10 }
2865 gcodispo 1.9 }
2866 gcodispo 1.10 {
2867     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2868 gcodispo 1.4 }
2869 gcodispo 1.10 return resultobj;
2870     fail:
2871     return NULL;
2872 gcodispo 1.4 }
2873    
2874    
2875 gcodispo 1.10 static PyObject *_wrap_BossSession_clientID(PyObject *self, PyObject *args) {
2876     PyObject *resultobj;
2877     BossSession *arg1 = (BossSession *) 0 ;
2878     std::string result;
2879     PyObject * obj0 = 0 ;
2880    
2881     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clientID",&obj0)) goto fail;
2882     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2883     {
2884     try {
2885     result = (arg1)->clientID();
2886    
2887 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2888 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2889     return NULL;
2890 gcodispo 1.10 }catch (const std::exception& e) {
2891 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2892     return NULL;
2893 gcodispo 1.10 }
2894 gcodispo 1.9 }
2895 gcodispo 1.10 {
2896     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2897 gcodispo 1.9 }
2898 gcodispo 1.10 return resultobj;
2899     fail:
2900     return NULL;
2901 gcodispo 1.4 }
2902    
2903    
2904 gcodispo 1.10 static PyObject *_wrap_BossSession_showConfigs(PyObject *self, PyObject *args) {
2905     PyObject *resultobj;
2906     BossSession *arg1 = (BossSession *) 0 ;
2907     bool arg2 = (bool) false ;
2908     int result;
2909     PyObject * obj0 = 0 ;
2910     PyObject * obj1 = 0 ;
2911    
2912     if(!PyArg_ParseTuple(args,(char *)"O|O:BossSession_showConfigs",&obj0,&obj1)) goto fail;
2913     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2914     if (obj1) {
2915     arg2 = PyInt_AsLong(obj1) ? true : false;
2916     if (PyErr_Occurred()) SWIG_fail;
2917 gcodispo 1.9 }
2918 gcodispo 1.10 {
2919     try {
2920     result = (int)(arg1)->showConfigs(arg2);
2921    
2922 gcodispo 1.17 }catch (const BossSchedFailure & e) {
2923 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
2924     return NULL;
2925     }catch (const std::exception& e) {
2926     PyErr_SetString ( BossError, e.what() );
2927     return NULL;
2928     }
2929     }
2930     resultobj = PyInt_FromLong((long)result);
2931     return resultobj;
2932     fail:
2933     return NULL;
2934     }
2935    
2936    
2937     static PyObject *_wrap_BossSession_RTupdate(PyObject *self, PyObject *args) {
2938     PyObject *resultobj;
2939     BossSession *arg1 = (BossSession *) 0 ;
2940     std::string arg2 = (std::string) "all" ;
2941     std::string arg3 = (std::string) "all" ;
2942     std::string arg4 = (std::string) "" ;
2943     int result;
2944     PyObject * obj0 = 0 ;
2945     PyObject * obj1 = 0 ;
2946     PyObject * obj2 = 0 ;
2947     PyObject * obj3 = 0 ;
2948    
2949     if(!PyArg_ParseTuple(args,(char *)"O|OOO:BossSession_RTupdate",&obj0,&obj1,&obj2,&obj3)) goto fail;
2950     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2951     if (obj1) {
2952     {
2953     if (PyString_Check(obj1))
2954     arg2 = std::string(PyString_AsString(obj1));
2955     else
2956     SWIG_exception(SWIG_TypeError, "string expected");
2957     }
2958     }
2959     if (obj2) {
2960     {
2961     if (PyString_Check(obj2))
2962     arg3 = std::string(PyString_AsString(obj2));
2963     else
2964     SWIG_exception(SWIG_TypeError, "string expected");
2965     }
2966     }
2967     if (obj3) {
2968     {
2969     if (PyString_Check(obj3))
2970     arg4 = std::string(PyString_AsString(obj3));
2971     else
2972     SWIG_exception(SWIG_TypeError, "string expected");
2973     }
2974     }
2975     {
2976     try {
2977     result = (int)(arg1)->RTupdate(arg2,arg3,arg4);
2978    
2979     }catch (const BossSchedFailure & e) {
2980     PyErr_SetString ( SchedulerError, e.what() );
2981     return NULL;
2982 gcodispo 1.10 }catch (const std::exception& e) {
2983 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
2984     return NULL;
2985 gcodispo 1.10 }
2986 gcodispo 1.9 }
2987 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
2988     return resultobj;
2989     fail:
2990     return NULL;
2991 gcodispo 1.4 }
2992    
2993    
2994 gcodispo 1.19 static PyObject *_wrap_BossSession_listMatch(PyObject *self, PyObject *args) {
2995     PyObject *resultobj;
2996     BossSession *arg1 = (BossSession *) 0 ;
2997     std::string *arg2 = 0 ;
2998     std::string *arg3 = 0 ;
2999 gcodispo 1.33 std::string const &arg4_defvalue = "" ;
3000     std::string *arg4 = (std::string *) &arg4_defvalue ;
3001 gcodispo 1.19 std::string const &arg5_defvalue = "" ;
3002     std::string *arg5 = (std::string *) &arg5_defvalue ;
3003 gcodispo 1.33 unsigned int arg6 = (unsigned int) 0 ;
3004 gcodispo 1.19 std::vector<std::string > result;
3005     std::string temp2 ;
3006     std::string temp3 ;
3007 gcodispo 1.33 std::string temp4 ;
3008 gcodispo 1.19 std::string temp5 ;
3009     PyObject * obj0 = 0 ;
3010     PyObject * obj1 = 0 ;
3011     PyObject * obj2 = 0 ;
3012     PyObject * obj3 = 0 ;
3013     PyObject * obj4 = 0 ;
3014     PyObject * obj5 = 0 ;
3015    
3016 gcodispo 1.33 if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3017 gcodispo 1.19 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3018     {
3019     if (PyString_Check(obj1)) {
3020     temp2 = std::string(PyString_AsString(obj1));
3021     arg2 = &temp2;
3022     }else {
3023     SWIG_exception(SWIG_TypeError, "string expected");
3024     }
3025     }
3026     {
3027     if (PyString_Check(obj2)) {
3028     temp3 = std::string(PyString_AsString(obj2));
3029     arg3 = &temp3;
3030     }else {
3031     SWIG_exception(SWIG_TypeError, "string expected");
3032     }
3033     }
3034     if (obj3) {
3035 gcodispo 1.33 {
3036     if (PyString_Check(obj3)) {
3037     temp4 = std::string(PyString_AsString(obj3));
3038     arg4 = &temp4;
3039     }else {
3040     SWIG_exception(SWIG_TypeError, "string expected");
3041     }
3042     }
3043 gcodispo 1.19 }
3044     if (obj4) {
3045     {
3046     if (PyString_Check(obj4)) {
3047     temp5 = std::string(PyString_AsString(obj4));
3048     arg5 = &temp5;
3049     }else {
3050     SWIG_exception(SWIG_TypeError, "string expected");
3051     }
3052     }
3053     }
3054     if (obj5) {
3055 gcodispo 1.33 arg6 = (unsigned int) PyInt_AsLong(obj5);
3056 gcodispo 1.21 if (PyErr_Occurred()) SWIG_fail;
3057     }
3058 gcodispo 1.19 {
3059     try {
3060 gcodispo 1.33 result = (arg1)->listMatch((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6);
3061 gcodispo 1.19
3062     }catch (const BossSchedFailure & e) {
3063     PyErr_SetString ( SchedulerError, e.what() );
3064     return NULL;
3065     }catch (const std::exception& e) {
3066     PyErr_SetString ( BossError, e.what() );
3067     return NULL;
3068     }
3069     }
3070     {
3071     resultobj = PyTuple_New((&result)->size());
3072     for (unsigned int i=0; i<(&result)->size(); i++)
3073     PyTuple_SetItem(resultobj,i,
3074     SwigString_FromString(((std::vector<std::string > &)result)[i]));
3075     }
3076     return resultobj;
3077     fail:
3078     return NULL;
3079     }
3080    
3081    
3082 gcodispo 1.34 static PyObject *_wrap_BossSession_query(PyObject *self, PyObject *args) {
3083 gcodispo 1.19 PyObject *resultobj;
3084     BossSession *arg1 = (BossSession *) 0 ;
3085     int arg2 = (int) SCHEDULED ;
3086     std::string const &arg3_defvalue = "all" ;
3087     std::string *arg3 = (std::string *) &arg3_defvalue ;
3088     std::string const &arg4_defvalue = "all" ;
3089     std::string *arg4 = (std::string *) &arg4_defvalue ;
3090     std::string const &arg5_defvalue = "" ;
3091     std::string *arg5 = (std::string *) &arg5_defvalue ;
3092     std::string arg6 = (std::string) "" ;
3093     std::string arg7 = (std::string) "" ;
3094     std::string arg8 = (std::string) "" ;
3095     std::string arg9 = (std::string) "" ;
3096 gcodispo 1.21 unsigned int arg10 = (unsigned int) 0 ;
3097 gcodispo 1.34 bool arg11 = (bool) false ;
3098 gcodispo 1.19 std::string temp3 ;
3099     std::string temp4 ;
3100     std::string temp5 ;
3101 gcodispo 1.10 PyObject * obj0 = 0 ;
3102     PyObject * obj2 = 0 ;
3103     PyObject * obj3 = 0 ;
3104 gcodispo 1.19 PyObject * obj4 = 0 ;
3105     PyObject * obj5 = 0 ;
3106     PyObject * obj6 = 0 ;
3107     PyObject * obj7 = 0 ;
3108     PyObject * obj8 = 0 ;
3109 gcodispo 1.21 PyObject * obj9 = 0 ;
3110 gcodispo 1.34 PyObject * obj10 = 0 ;
3111 gcodispo 1.10
3112 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;
3113 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3114 gcodispo 1.19 if (obj2) {
3115     {
3116     if (PyString_Check(obj2)) {
3117     temp3 = std::string(PyString_AsString(obj2));
3118     arg3 = &temp3;
3119     }else {
3120     SWIG_exception(SWIG_TypeError, "string expected");
3121     }
3122     }
3123     }
3124     if (obj3) {
3125     {
3126     if (PyString_Check(obj3)) {
3127     temp4 = std::string(PyString_AsString(obj3));
3128     arg4 = &temp4;
3129     }else {
3130     SWIG_exception(SWIG_TypeError, "string expected");
3131     }
3132     }
3133     }
3134     if (obj4) {
3135     {
3136     if (PyString_Check(obj4)) {
3137     temp5 = std::string(PyString_AsString(obj4));
3138     arg5 = &temp5;
3139     }else {
3140     SWIG_exception(SWIG_TypeError, "string expected");
3141     }
3142     }
3143     }
3144     if (obj5) {
3145     {
3146     if (PyString_Check(obj5))
3147     arg6 = std::string(PyString_AsString(obj5));
3148     else
3149     SWIG_exception(SWIG_TypeError, "string expected");
3150     }
3151     }
3152     if (obj6) {
3153 gcodispo 1.10 {
3154 gcodispo 1.19 if (PyString_Check(obj6))
3155     arg7 = std::string(PyString_AsString(obj6));
3156 gcodispo 1.10 else
3157     SWIG_exception(SWIG_TypeError, "string expected");
3158     }
3159 gcodispo 1.9 }
3160 gcodispo 1.19 if (obj7) {
3161 gcodispo 1.10 {
3162 gcodispo 1.19 if (PyString_Check(obj7))
3163     arg8 = std::string(PyString_AsString(obj7));
3164 gcodispo 1.10 else
3165     SWIG_exception(SWIG_TypeError, "string expected");
3166     }
3167 gcodispo 1.9 }
3168 gcodispo 1.19 if (obj8) {
3169 gcodispo 1.10 {
3170 gcodispo 1.19 if (PyString_Check(obj8))
3171     arg9 = std::string(PyString_AsString(obj8));
3172 gcodispo 1.10 else
3173     SWIG_exception(SWIG_TypeError, "string expected");
3174     }
3175 gcodispo 1.9 }
3176 gcodispo 1.21 if (obj9) {
3177     arg10 = (unsigned int) PyInt_AsLong(obj9);
3178     if (PyErr_Occurred()) SWIG_fail;
3179     }
3180 gcodispo 1.34 if (obj10) {
3181     arg11 = PyInt_AsLong(obj10) ? true : false;
3182     if (PyErr_Occurred()) SWIG_fail;
3183     }
3184 gcodispo 1.10 {
3185     try {
3186 gcodispo 1.34 (arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10,arg11);
3187 gcodispo 1.10
3188 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3189 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3190     return NULL;
3191 gcodispo 1.10 }catch (const std::exception& e) {
3192 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3193     return NULL;
3194 gcodispo 1.10 }
3195 gcodispo 1.9 }
3196 gcodispo 1.19 Py_INCREF(Py_None); resultobj = Py_None;
3197 gcodispo 1.10 return resultobj;
3198     fail:
3199     return NULL;
3200 gcodispo 1.4 }
3201    
3202    
3203 gcodispo 1.34 static PyObject *_wrap_BossSession_getTasksByName(PyObject *self, PyObject *args) {
3204 gcodispo 1.10 PyObject *resultobj;
3205     BossSession *arg1 = (BossSession *) 0 ;
3206 gcodispo 1.34 std::string *arg2 = 0 ;
3207 gcodispo 1.10 std::string temp2 ;
3208     PyObject * obj0 = 0 ;
3209     PyObject * obj1 = 0 ;
3210    
3211 gcodispo 1.34 if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByName",&obj0,&obj1)) goto fail;
3212 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3213 gcodispo 1.34 {
3214     if (PyString_Check(obj1)) {
3215     temp2 = std::string(PyString_AsString(obj1));
3216     arg2 = &temp2;
3217     }else {
3218     SWIG_exception(SWIG_TypeError, "string expected");
3219 gcodispo 1.10 }
3220     }
3221 gcodispo 1.34 {
3222     try {
3223     (arg1)->getTasksByName((std::string const &)*arg2);
3224    
3225     }catch (const BossSchedFailure & e) {
3226     PyErr_SetString ( SchedulerError, e.what() );
3227     return NULL;
3228     }catch (const std::exception& e) {
3229     PyErr_SetString ( BossError, e.what() );
3230     return NULL;
3231 gcodispo 1.10 }
3232     }
3233 gcodispo 1.34 Py_INCREF(Py_None); resultobj = Py_None;
3234     return resultobj;
3235     fail:
3236     return NULL;
3237     }
3238    
3239    
3240     static PyObject *_wrap_BossSession_getTasksByTaskInfo(PyObject *self, PyObject *args) {
3241     PyObject *resultobj;
3242     BossSession *arg1 = (BossSession *) 0 ;
3243     std::string *arg2 = 0 ;
3244     std::string temp2 ;
3245     PyObject * obj0 = 0 ;
3246     PyObject * obj1 = 0 ;
3247    
3248     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByTaskInfo",&obj0,&obj1)) goto fail;
3249     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3250     {
3251     if (PyString_Check(obj1)) {
3252     temp2 = std::string(PyString_AsString(obj1));
3253     arg2 = &temp2;
3254     }else {
3255     SWIG_exception(SWIG_TypeError, "string expected");
3256 gcodispo 1.10 }
3257 gcodispo 1.9 }
3258 gcodispo 1.10 {
3259     try {
3260 gcodispo 1.34 (arg1)->getTasksByTaskInfo((std::string const &)*arg2);
3261 gcodispo 1.10
3262 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3263 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3264     return NULL;
3265 gcodispo 1.10 }catch (const std::exception& e) {
3266 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3267     return NULL;
3268 gcodispo 1.10 }
3269 gcodispo 1.4 }
3270 gcodispo 1.34 Py_INCREF(Py_None); resultobj = Py_None;
3271 gcodispo 1.10 return resultobj;
3272     fail:
3273     return NULL;
3274 gcodispo 1.4 }
3275    
3276    
3277 gcodispo 1.34 static PyObject *_wrap_BossSession_getTasksByJobName(PyObject *self, PyObject *args) {
3278 gcodispo 1.26 PyObject *resultobj;
3279     BossSession *arg1 = (BossSession *) 0 ;
3280     std::string *arg2 = 0 ;
3281     std::string temp2 ;
3282     PyObject * obj0 = 0 ;
3283     PyObject * obj1 = 0 ;
3284    
3285 gcodispo 1.34 if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_getTasksByJobName",&obj0,&obj1)) goto fail;
3286 gcodispo 1.26 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3287     {
3288     if (PyString_Check(obj1)) {
3289     temp2 = std::string(PyString_AsString(obj1));
3290     arg2 = &temp2;
3291     }else {
3292     SWIG_exception(SWIG_TypeError, "string expected");
3293     }
3294     }
3295     {
3296     try {
3297 gcodispo 1.34 (arg1)->getTasksByJobName((std::string const &)*arg2);
3298 gcodispo 1.26
3299     }catch (const BossSchedFailure & e) {
3300     PyErr_SetString ( SchedulerError, e.what() );
3301     return NULL;
3302     }catch (const std::exception& e) {
3303     PyErr_SetString ( BossError, e.what() );
3304     return NULL;
3305     }
3306     }
3307 gcodispo 1.34 Py_INCREF(Py_None); resultobj = Py_None;
3308 gcodispo 1.26 return resultobj;
3309     fail:
3310     return NULL;
3311     }
3312    
3313    
3314 gcodispo 1.34 static PyObject *_wrap_BossSession_selectTasks(PyObject *self, PyObject *args) {
3315 gcodispo 1.10 PyObject *resultobj;
3316     BossSession *arg1 = (BossSession *) 0 ;
3317 gcodispo 1.34 std::string const &arg2_defvalue = "all" ;
3318     std::string *arg2 = (std::string *) &arg2_defvalue ;
3319     std::string const &arg3_defvalue = "" ;
3320 gcodispo 1.10 std::string *arg3 = (std::string *) &arg3_defvalue ;
3321 gcodispo 1.34 std::string const &arg4_defvalue = "" ;
3322 gcodispo 1.10 std::string *arg4 = (std::string *) &arg4_defvalue ;
3323     std::string const &arg5_defvalue = "" ;
3324     std::string *arg5 = (std::string *) &arg5_defvalue ;
3325 gcodispo 1.34 std::vector<std::string > result;
3326     std::string temp2 ;
3327 gcodispo 1.10 std::string temp3 ;
3328     std::string temp4 ;
3329     std::string temp5 ;
3330     PyObject * obj0 = 0 ;
3331 gcodispo 1.34 PyObject * obj1 = 0 ;
3332 gcodispo 1.10 PyObject * obj2 = 0 ;
3333     PyObject * obj3 = 0 ;
3334     PyObject * obj4 = 0 ;
3335    
3336 gcodispo 1.34 if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossSession_selectTasks",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3337 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3338 gcodispo 1.34 if (obj1) {
3339     {
3340     if (PyString_Check(obj1)) {
3341     temp2 = std::string(PyString_AsString(obj1));
3342     arg2 = &temp2;
3343     }else {
3344     SWIG_exception(SWIG_TypeError, "string expected");
3345     }
3346     }
3347     }
3348 gcodispo 1.10 if (obj2) {
3349     {
3350     if (PyString_Check(obj2)) {
3351     temp3 = std::string(PyString_AsString(obj2));
3352     arg3 = &temp3;
3353     }else {
3354     SWIG_exception(SWIG_TypeError, "string expected");
3355     }
3356     }
3357     }
3358     if (obj3) {
3359     {
3360     if (PyString_Check(obj3)) {
3361     temp4 = std::string(PyString_AsString(obj3));
3362     arg4 = &temp4;
3363     }else {
3364     SWIG_exception(SWIG_TypeError, "string expected");
3365     }
3366     }
3367 gcodispo 1.9 }
3368 gcodispo 1.10 if (obj4) {
3369     {
3370     if (PyString_Check(obj4)) {
3371     temp5 = std::string(PyString_AsString(obj4));
3372     arg5 = &temp5;
3373     }else {
3374     SWIG_exception(SWIG_TypeError, "string expected");
3375     }
3376     }
3377 gcodispo 1.9 }
3378 gcodispo 1.19 {
3379     try {
3380 gcodispo 1.34 result = (arg1)->selectTasks((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
3381 gcodispo 1.19
3382     }catch (const BossSchedFailure & e) {
3383     PyErr_SetString ( SchedulerError, e.what() );
3384     return NULL;
3385     }catch (const std::exception& e) {
3386     PyErr_SetString ( BossError, e.what() );
3387     return NULL;
3388     }
3389     }
3390     {
3391 gcodispo 1.34 resultobj = PyTuple_New((&result)->size());
3392     for (unsigned int i=0; i<(&result)->size(); i++)
3393     PyTuple_SetItem(resultobj,i,
3394     SwigString_FromString(((std::vector<std::string > &)result)[i]));
3395 gcodispo 1.19 }
3396     return resultobj;
3397     fail:
3398     return NULL;
3399     }
3400    
3401    
3402 gcodispo 1.34 static PyObject *_wrap_BossSession_selectTasksByName(PyObject *self, PyObject *args) {
3403 gcodispo 1.26 PyObject *resultobj;
3404     BossSession *arg1 = (BossSession *) 0 ;
3405     std::string *arg2 = 0 ;
3406 gcodispo 1.34 std::vector<std::string > result;
3407 gcodispo 1.26 std::string temp2 ;
3408     PyObject * obj0 = 0 ;
3409     PyObject * obj1 = 0 ;
3410    
3411 gcodispo 1.34 if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_selectTasksByName",&obj0,&obj1)) goto fail;
3412 gcodispo 1.26 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3413     {
3414     if (PyString_Check(obj1)) {
3415     temp2 = std::string(PyString_AsString(obj1));
3416     arg2 = &temp2;
3417     }else {
3418     SWIG_exception(SWIG_TypeError, "string expected");
3419     }
3420     }
3421     {
3422     try {
3423 gcodispo 1.34 result = (arg1)->selectTasksByName((std::string const &)*arg2);
3424 gcodispo 1.26
3425     }catch (const BossSchedFailure & e) {
3426     PyErr_SetString ( SchedulerError, e.what() );
3427     return NULL;
3428     }catch (const std::exception& e) {
3429     PyErr_SetString ( BossError, e.what() );
3430     return NULL;
3431     }
3432     }
3433     {
3434 gcodispo 1.34 resultobj = PyTuple_New((&result)->size());
3435     for (unsigned int i=0; i<(&result)->size(); i++)
3436     PyTuple_SetItem(resultobj,i,
3437     SwigString_FromString(((std::vector<std::string > &)result)[i]));
3438 gcodispo 1.26 }
3439     return resultobj;
3440     fail:
3441     return NULL;
3442     }
3443    
3444    
3445 gcodispo 1.34 static PyObject *_wrap_BossSession_selectTasksByTaskInfo(PyObject *self, PyObject *args) {
3446 gcodispo 1.32 PyObject *resultobj;
3447     BossSession *arg1 = (BossSession *) 0 ;
3448     std::string *arg2 = 0 ;
3449 gcodispo 1.34 std::vector<std::string > result;
3450 gcodispo 1.32 std::string temp2 ;
3451     PyObject * obj0 = 0 ;
3452     PyObject * obj1 = 0 ;
3453    
3454 gcodispo 1.34 if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_selectTasksByTaskInfo",&obj0,&obj1)) goto fail;
3455 gcodispo 1.32 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3456     {
3457     if (PyString_Check(obj1)) {
3458     temp2 = std::string(PyString_AsString(obj1));
3459     arg2 = &temp2;
3460     }else {
3461     SWIG_exception(SWIG_TypeError, "string expected");
3462     }
3463     }
3464     {
3465     try {
3466 gcodispo 1.34 result = (arg1)->selectTasksByTaskInfo((std::string const &)*arg2);
3467 gcodispo 1.32
3468     }catch (const BossSchedFailure & e) {
3469     PyErr_SetString ( SchedulerError, e.what() );
3470     return NULL;
3471     }catch (const std::exception& e) {
3472     PyErr_SetString ( BossError, e.what() );
3473     return NULL;
3474     }
3475     }
3476     {
3477 gcodispo 1.34 resultobj = PyTuple_New((&result)->size());
3478     for (unsigned int i=0; i<(&result)->size(); i++)
3479     PyTuple_SetItem(resultobj,i,
3480     SwigString_FromString(((std::vector<std::string > &)result)[i]));
3481 gcodispo 1.32 }
3482     return resultobj;
3483     fail:
3484     return NULL;
3485     }
3486    
3487    
3488     static PyObject *_wrap_BossSession_tasksInMemory(PyObject *self, PyObject *args) {
3489     PyObject *resultobj;
3490     BossSession *arg1 = (BossSession *) 0 ;
3491     unsigned int result;
3492     PyObject * obj0 = 0 ;
3493    
3494     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_tasksInMemory",&obj0)) goto fail;
3495     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3496     {
3497     try {
3498     result = (unsigned int)(arg1)->tasksInMemory();
3499    
3500     }catch (const BossSchedFailure & e) {
3501     PyErr_SetString ( SchedulerError, e.what() );
3502     return NULL;
3503     }catch (const std::exception& e) {
3504     PyErr_SetString ( BossError, e.what() );
3505     return NULL;
3506     }
3507     }
3508     resultobj = PyInt_FromLong((long)result);
3509     return resultobj;
3510     fail:
3511     return NULL;
3512     }
3513    
3514    
3515     static PyObject *_wrap_BossSession_locate(PyObject *self, PyObject *args) {
3516     PyObject *resultobj;
3517     BossSession *arg1 = (BossSession *) 0 ;
3518     unsigned int arg2 ;
3519     BossTask *result;
3520     PyObject * obj0 = 0 ;
3521     PyObject * obj1 = 0 ;
3522    
3523     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_locate",&obj0,&obj1)) goto fail;
3524     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3525     arg2 = (unsigned int) PyInt_AsLong(obj1);
3526     if (PyErr_Occurred()) SWIG_fail;
3527     {
3528     try {
3529     result = (BossTask *)(arg1)->locate(arg2);
3530    
3531     }catch (const BossSchedFailure & e) {
3532     PyErr_SetString ( SchedulerError, e.what() );
3533     return NULL;
3534     }catch (const std::exception& e) {
3535     PyErr_SetString ( BossError, e.what() );
3536     return NULL;
3537     }
3538     }
3539     resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 0);
3540     return resultobj;
3541     fail:
3542     return NULL;
3543     }
3544    
3545    
3546 gcodispo 1.19 static PyObject *_wrap_BossSession_show(PyObject *self, PyObject *args) {
3547     PyObject *resultobj;
3548     BossSession *arg1 = (BossSession *) 0 ;
3549     std::vector<std::string > *arg2 = 0 ;
3550     PyObject *result;
3551     PyObject * obj0 = 0 ;
3552     PyObject * obj1 = 0 ;
3553    
3554     if(!PyArg_ParseTuple(args,(char *)"OO:BossSession_show",&obj0,&obj1)) goto fail;
3555     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3556     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3557     if (arg2 == NULL) {
3558     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3559     }
3560     {
3561     try {
3562     result = (PyObject *)BossSession_show(arg1,*arg2);
3563    
3564     }catch (const BossSchedFailure & e) {
3565     PyErr_SetString ( SchedulerError, e.what() );
3566     return NULL;
3567     }catch (const std::exception& e) {
3568     PyErr_SetString ( BossError, e.what() );
3569     return NULL;
3570     }
3571     }
3572     resultobj = result;
3573     return resultobj;
3574     fail:
3575     return NULL;
3576     }
3577    
3578    
3579     static PyObject *_wrap_BossSession_CHTools(PyObject *self, PyObject *args) {
3580     PyObject *resultobj;
3581     BossSession *arg1 = (BossSession *) 0 ;
3582     PyObject *result;
3583     PyObject * obj0 = 0 ;
3584    
3585     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_CHTools",&obj0)) goto fail;
3586     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3587     {
3588     try {
3589     result = (PyObject *)BossSession_CHTools(arg1);
3590    
3591     }catch (const BossSchedFailure & e) {
3592     PyErr_SetString ( SchedulerError, e.what() );
3593     return NULL;
3594     }catch (const std::exception& e) {
3595     PyErr_SetString ( BossError, e.what() );
3596     return NULL;
3597     }
3598     }
3599     resultobj = result;
3600     return resultobj;
3601     fail:
3602     return NULL;
3603     }
3604    
3605    
3606     static PyObject *_wrap_BossSession_ProgramTypes(PyObject *self, PyObject *args) {
3607     PyObject *resultobj;
3608     BossSession *arg1 = (BossSession *) 0 ;
3609     PyObject *result;
3610     PyObject * obj0 = 0 ;
3611    
3612     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_ProgramTypes",&obj0)) goto fail;
3613     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3614     {
3615     try {
3616     result = (PyObject *)BossSession_ProgramTypes(arg1);
3617    
3618     }catch (const BossSchedFailure & e) {
3619     PyErr_SetString ( SchedulerError, e.what() );
3620     return NULL;
3621     }catch (const std::exception& e) {
3622     PyErr_SetString ( BossError, e.what() );
3623     return NULL;
3624 gcodispo 1.10 }
3625 gcodispo 1.4 }
3626 gcodispo 1.19 resultobj = result;
3627     return resultobj;
3628     fail:
3629     return NULL;
3630     }
3631    
3632    
3633     static PyObject *_wrap_BossSession_RTMons(PyObject *self, PyObject *args) {
3634     PyObject *resultobj;
3635     BossSession *arg1 = (BossSession *) 0 ;
3636     PyObject *result;
3637     PyObject * obj0 = 0 ;
3638    
3639     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_RTMons",&obj0)) goto fail;
3640     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3641     {
3642     try {
3643     result = (PyObject *)BossSession_RTMons(arg1);
3644    
3645     }catch (const BossSchedFailure & e) {
3646     PyErr_SetString ( SchedulerError, e.what() );
3647     return NULL;
3648     }catch (const std::exception& e) {
3649     PyErr_SetString ( BossError, e.what() );
3650     return NULL;
3651 gcodispo 1.10 }
3652 gcodispo 1.4 }
3653 gcodispo 1.19 resultobj = result;
3654     return resultobj;
3655     fail:
3656     return NULL;
3657     }
3658    
3659    
3660     static PyObject *_wrap_BossSession_schedulers(PyObject *self, PyObject *args) {
3661     PyObject *resultobj;
3662     BossSession *arg1 = (BossSession *) 0 ;
3663     PyObject *result;
3664     PyObject * obj0 = 0 ;
3665    
3666     if(!PyArg_ParseTuple(args,(char *)"O:BossSession_schedulers",&obj0)) goto fail;
3667     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3668 gcodispo 1.10 {
3669     try {
3670 gcodispo 1.19 result = (PyObject *)BossSession_schedulers(arg1);
3671 gcodispo 1.10
3672 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3673 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3674     return NULL;
3675 gcodispo 1.10 }catch (const std::exception& e) {
3676 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3677     return NULL;
3678 gcodispo 1.10 }
3679 gcodispo 1.4 }
3680 gcodispo 1.19 resultobj = result;
3681 gcodispo 1.10 return resultobj;
3682     fail:
3683     return NULL;
3684 gcodispo 1.4 }
3685    
3686    
3687 gcodispo 1.19 static PyObject *_wrap_BossSession_schedListMatch(PyObject *self, PyObject *args) {
3688 gcodispo 1.10 PyObject *resultobj;
3689     BossSession *arg1 = (BossSession *) 0 ;
3690 gcodispo 1.19 std::string *arg2 = 0 ;
3691     std::string *arg3 = 0 ;
3692 gcodispo 1.10 std::string const &arg4_defvalue = "" ;
3693     std::string *arg4 = (std::string *) &arg4_defvalue ;
3694     std::string const &arg5_defvalue = "" ;
3695     std::string *arg5 = (std::string *) &arg5_defvalue ;
3696 gcodispo 1.21 unsigned int arg6 = (unsigned int) 0 ;
3697 gcodispo 1.19 PyObject *result;
3698 gcodispo 1.10 std::string temp2 ;
3699     std::string temp3 ;
3700     std::string temp4 ;
3701     std::string temp5 ;
3702     PyObject * obj0 = 0 ;
3703     PyObject * obj1 = 0 ;
3704     PyObject * obj2 = 0 ;
3705     PyObject * obj3 = 0 ;
3706     PyObject * obj4 = 0 ;
3707 gcodispo 1.19 PyObject * obj5 = 0 ;
3708 gcodispo 1.10
3709 gcodispo 1.33 if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_schedListMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3710 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3711 gcodispo 1.19 {
3712     if (PyString_Check(obj1)) {
3713     temp2 = std::string(PyString_AsString(obj1));
3714     arg2 = &temp2;
3715     }else {
3716     SWIG_exception(SWIG_TypeError, "string expected");
3717 gcodispo 1.10 }
3718 gcodispo 1.9 }
3719 gcodispo 1.19 {
3720     if (PyString_Check(obj2)) {
3721     temp3 = std::string(PyString_AsString(obj2));
3722     arg3 = &temp3;
3723     }else {
3724     SWIG_exception(SWIG_TypeError, "string expected");
3725 gcodispo 1.8 }
3726     }
3727 gcodispo 1.10 if (obj3) {
3728     {
3729     if (PyString_Check(obj3)) {
3730     temp4 = std::string(PyString_AsString(obj3));
3731     arg4 = &temp4;
3732     }else {
3733     SWIG_exception(SWIG_TypeError, "string expected");
3734     }
3735 gcodispo 1.8 }
3736     }
3737 gcodispo 1.10 if (obj4) {
3738     {
3739     if (PyString_Check(obj4)) {
3740     temp5 = std::string(PyString_AsString(obj4));
3741     arg5 = &temp5;
3742     }else {
3743     SWIG_exception(SWIG_TypeError, "string expected");
3744 gcodispo 1.8 }
3745     }
3746     }
3747 gcodispo 1.19 if (obj5) {
3748 gcodispo 1.21 arg6 = (unsigned int) PyInt_AsLong(obj5);
3749     if (PyErr_Occurred()) SWIG_fail;
3750     }
3751 gcodispo 1.10 {
3752     try {
3753 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);
3754 gcodispo 1.10
3755 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3756 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3757     return NULL;
3758 gcodispo 1.10 }catch (const std::exception& e) {
3759 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3760     return NULL;
3761 gcodispo 1.8 }
3762     }
3763 gcodispo 1.19 resultobj = result;
3764 gcodispo 1.10 return resultobj;
3765     fail:
3766     return NULL;
3767 gcodispo 1.8 }
3768    
3769    
3770 gcodispo 1.34 static PyObject *_wrap_BossSession_schedulerQuery(PyObject *self, PyObject *args) {
3771 gcodispo 1.10 PyObject *resultobj;
3772     BossSession *arg1 = (BossSession *) 0 ;
3773 gcodispo 1.34 int arg2 = (int) SCHEDULED ;
3774 gcodispo 1.10 std::string const &arg3_defvalue = "all" ;
3775     std::string *arg3 = (std::string *) &arg3_defvalue ;
3776 gcodispo 1.34 std::string const &arg4_defvalue = "all" ;
3777     std::string *arg4 = (std::string *) &arg4_defvalue ;
3778     std::string const &arg5_defvalue = "" ;
3779     std::string *arg5 = (std::string *) &arg5_defvalue ;
3780 gcodispo 1.10 std::string arg6 = (std::string) "" ;
3781 gcodispo 1.34 std::string arg7 = (std::string) "" ;
3782     std::string arg8 = (std::string) "" ;
3783     std::string arg9 = (std::string) "" ;
3784     unsigned int arg10 = (unsigned int) 0 ;
3785     bool arg11 = (bool) false ;
3786 gcodispo 1.10 std::string temp3 ;
3787 gcodispo 1.34 std::string temp4 ;
3788     std::string temp5 ;
3789 gcodispo 1.10 PyObject * obj0 = 0 ;
3790     PyObject * obj2 = 0 ;
3791     PyObject * obj3 = 0 ;
3792     PyObject * obj4 = 0 ;
3793     PyObject * obj5 = 0 ;
3794 gcodispo 1.34 PyObject * obj6 = 0 ;
3795     PyObject * obj7 = 0 ;
3796     PyObject * obj8 = 0 ;
3797     PyObject * obj9 = 0 ;
3798     PyObject * obj10 = 0 ;
3799 gcodispo 1.10
3800 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;
3801 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3802 gcodispo 1.34 if (obj2) {
3803     {
3804     if (PyString_Check(obj2)) {
3805     temp3 = std::string(PyString_AsString(obj2));
3806     arg3 = &temp3;
3807     }else {
3808     SWIG_exception(SWIG_TypeError, "string expected");
3809     }
3810     }
3811     }
3812     if (obj3) {
3813 gcodispo 1.10 {
3814 gcodispo 1.34 if (PyString_Check(obj3)) {
3815     temp4 = std::string(PyString_AsString(obj3));
3816     arg4 = &temp4;
3817 gcodispo 1.10 }else {
3818     SWIG_exception(SWIG_TypeError, "string expected");
3819     }
3820     }
3821     }
3822 gcodispo 1.34 if (obj4) {
3823 gcodispo 1.10 {
3824 gcodispo 1.34 if (PyString_Check(obj4)) {
3825     temp5 = std::string(PyString_AsString(obj4));
3826     arg5 = &temp5;
3827 gcodispo 1.10 }else {
3828     SWIG_exception(SWIG_TypeError, "string expected");
3829     }
3830     }
3831     }
3832 gcodispo 1.34 if (obj5) {
3833     {
3834     if (PyString_Check(obj5))
3835     arg6 = std::string(PyString_AsString(obj5));
3836     else
3837     SWIG_exception(SWIG_TypeError, "string expected");
3838     }
3839     }
3840     if (obj6) {
3841 gcodispo 1.10 {
3842 gcodispo 1.34 if (PyString_Check(obj6))
3843     arg7 = std::string(PyString_AsString(obj6));
3844 gcodispo 1.10 else
3845     SWIG_exception(SWIG_TypeError, "string expected");
3846     }
3847 gcodispo 1.3 }
3848 gcodispo 1.34 if (obj7) {
3849 gcodispo 1.10 {
3850 gcodispo 1.34 if (PyString_Check(obj7))
3851     arg8 = std::string(PyString_AsString(obj7));
3852 gcodispo 1.10 else
3853     SWIG_exception(SWIG_TypeError, "string expected");
3854     }
3855 gcodispo 1.3 }
3856 gcodispo 1.34 if (obj8) {
3857 gcodispo 1.10 {
3858 gcodispo 1.34 if (PyString_Check(obj8))
3859     arg9 = std::string(PyString_AsString(obj8));
3860 gcodispo 1.10 else
3861     SWIG_exception(SWIG_TypeError, "string expected");
3862     }
3863 gcodispo 1.3 }
3864 gcodispo 1.34 if (obj9) {
3865     arg10 = (unsigned int) PyInt_AsLong(obj9);
3866     if (PyErr_Occurred()) SWIG_fail;
3867     }
3868     if (obj10) {
3869     arg11 = PyInt_AsLong(obj10) ? true : false;
3870     if (PyErr_Occurred()) SWIG_fail;
3871     }
3872 gcodispo 1.10 {
3873     try {
3874 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);
3875 gcodispo 1.10
3876 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3877 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3878     return NULL;
3879 gcodispo 1.10 }catch (const std::exception& e) {
3880 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3881     return NULL;
3882 gcodispo 1.10 }
3883 yzhang 1.1 }
3884 gcodispo 1.34 Py_INCREF(Py_None); resultobj = Py_None;
3885 gcodispo 1.10 return resultobj;
3886     fail:
3887     return NULL;
3888 yzhang 1.1 }
3889    
3890    
3891 gcodispo 1.10 static PyObject * BossSession_swigregister(PyObject *self, PyObject *args) {
3892     PyObject *obj;
3893     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3894     SWIG_TypeClientData(SWIGTYPE_p_BossSession, obj);
3895     Py_INCREF(obj);
3896     return Py_BuildValue((char *)"");
3897     }
3898 gcodispo 1.19 static PyObject *_wrap_new_BossTaskException(PyObject *self, PyObject *args) {
3899 gcodispo 1.10 PyObject *resultobj;
3900 gcodispo 1.19 char *arg1 ;
3901     BossTaskException *result;
3902 gcodispo 1.10
3903 gcodispo 1.19 if(!PyArg_ParseTuple(args,(char *)"s:new_BossTaskException",&arg1)) goto fail;
3904 gcodispo 1.10 {
3905     try {
3906 gcodispo 1.19 result = (BossTaskException *)new BossTaskException((char const *)arg1);
3907 gcodispo 1.10
3908 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3909 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3910     return NULL;
3911 gcodispo 1.10 }catch (const std::exception& e) {
3912 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3913     return NULL;
3914 gcodispo 1.10 }
3915 gcodispo 1.3 }
3916 gcodispo 1.19 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTaskException, 1);
3917 gcodispo 1.10 return resultobj;
3918     fail:
3919     return NULL;
3920     }
3921    
3922    
3923 gcodispo 1.19 static PyObject *_wrap_delete_BossTaskException(PyObject *self, PyObject *args) {
3924 gcodispo 1.10 PyObject *resultobj;
3925 gcodispo 1.19 BossTaskException *arg1 = (BossTaskException *) 0 ;
3926 gcodispo 1.10 PyObject * obj0 = 0 ;
3927    
3928 gcodispo 1.19 if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTaskException",&obj0)) goto fail;
3929     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTaskException,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3930 gcodispo 1.10 {
3931     try {
3932 gcodispo 1.19 delete arg1;
3933 gcodispo 1.10
3934 gcodispo 1.17 }catch (const BossSchedFailure & e) {
3935 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
3936     return NULL;
3937 gcodispo 1.10 }catch (const std::exception& e) {
3938 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
3939     return NULL;
3940 gcodispo 1.10 }
3941 gcodispo 1.3 }
3942 gcodispo 1.19 Py_INCREF(Py_None); resultobj = Py_None;
3943 gcodispo 1.10 return resultobj;
3944     fail:
3945     return NULL;
3946 gcodispo 1.3 }
3947    
3948    
3949 gcodispo 1.19 static PyObject * BossTaskException_swigregister(PyObject *self, PyObject *args) {
3950     PyObject *obj;
3951     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3952     SWIG_TypeClientData(SWIGTYPE_p_BossTaskException, obj);
3953     Py_INCREF(obj);
3954     return Py_BuildValue((char *)"");
3955     }
3956 gcodispo 1.29 static PyObject *_wrap_BossTask_job_begin(PyObject *self, PyObject *args) {
3957     PyObject *resultobj;
3958     BossTask *arg1 = (BossTask *) 0 ;
3959     BossTask::job_iterator result;
3960     PyObject * obj0 = 0 ;
3961    
3962     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_begin",&obj0)) goto fail;
3963     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3964     {
3965     try {
3966     result = ((BossTask const *)arg1)->job_begin();
3967    
3968     }catch (const BossSchedFailure & e) {
3969     PyErr_SetString ( SchedulerError, e.what() );
3970     return NULL;
3971     }catch (const std::exception& e) {
3972     PyErr_SetString ( BossError, e.what() );
3973     return NULL;
3974     }
3975     }
3976     {
3977     BossTask::job_iterator * resultptr;
3978     resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result);
3979     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1);
3980     }
3981     return resultobj;
3982     fail:
3983     return NULL;
3984     }
3985    
3986    
3987     static PyObject *_wrap_BossTask_job_end(PyObject *self, PyObject *args) {
3988     PyObject *resultobj;
3989     BossTask *arg1 = (BossTask *) 0 ;
3990     BossTask::job_iterator result;
3991     PyObject * obj0 = 0 ;
3992    
3993     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_job_end",&obj0)) goto fail;
3994     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3995     {
3996     try {
3997     result = ((BossTask const *)arg1)->job_end();
3998    
3999     }catch (const BossSchedFailure & e) {
4000     PyErr_SetString ( SchedulerError, e.what() );
4001     return NULL;
4002     }catch (const std::exception& e) {
4003     PyErr_SetString ( BossError, e.what() );
4004     return NULL;
4005     }
4006     }
4007     {
4008     BossTask::job_iterator * resultptr;
4009     resultptr = new BossTask::job_iterator((BossTask::job_iterator &) result);
4010     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossTask__job_iterator, 1);
4011     }
4012     return resultobj;
4013     fail:
4014     return NULL;
4015     }
4016    
4017    
4018 gcodispo 1.34 static PyObject *_wrap_BossTask_jobsInMemory(PyObject *self, PyObject *args) {
4019     PyObject *resultobj;
4020     BossTask *arg1 = (BossTask *) 0 ;
4021     unsigned int result;
4022     PyObject * obj0 = 0 ;
4023    
4024     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsInMemory",&obj0)) goto fail;
4025     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4026     {
4027     try {
4028     result = (unsigned int)((BossTask const *)arg1)->jobsInMemory();
4029    
4030     }catch (const BossSchedFailure & e) {
4031     PyErr_SetString ( SchedulerError, e.what() );
4032     return NULL;
4033     }catch (const std::exception& e) {
4034     PyErr_SetString ( BossError, e.what() );
4035     return NULL;
4036     }
4037     }
4038     resultobj = PyInt_FromLong((long)result);
4039     return resultobj;
4040     fail:
4041     return NULL;
4042     }
4043    
4044    
4045 gcodispo 1.29 static PyObject *_wrap_BossTask_queryJobPrograms(PyObject *self, PyObject *args) {
4046     PyObject *resultobj;
4047     BossTask *arg1 = (BossTask *) 0 ;
4048     BossJob *arg2 = (BossJob *) 0 ;
4049     SwigValueWrapper< std::vector<std::pair<BossProgram,BossProgramExec > > > result;
4050     PyObject * obj0 = 0 ;
4051     PyObject * obj1 = 0 ;
4052    
4053     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_queryJobPrograms",&obj0,&obj1)) goto fail;
4054     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4055     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4056     {
4057     try {
4058     result = ((BossTask const *)arg1)->queryJobPrograms((BossJob const *)arg2);
4059    
4060     }catch (const BossSchedFailure & e) {
4061     PyErr_SetString ( SchedulerError, e.what() );
4062     return NULL;
4063     }catch (const std::exception& e) {
4064     PyErr_SetString ( BossError, e.what() );
4065     return NULL;
4066     }
4067     }
4068     {
4069     std::vector<std::pair<BossProgram,BossProgramExec > > * resultptr;
4070     resultptr = new std::vector<std::pair<BossProgram,BossProgramExec > >((std::vector<std::pair<BossProgram,BossProgramExec > > &) result);
4071     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t, 1);
4072     }
4073     return resultobj;
4074     fail:
4075     return NULL;
4076     }
4077    
4078    
4079     static PyObject *_wrap_BossTask_queryProgram(PyObject *self, PyObject *args) {
4080     PyObject *resultobj;
4081     BossTask *arg1 = (BossTask *) 0 ;
4082     BossJob *arg2 = (BossJob *) 0 ;
4083     std::string *arg3 = 0 ;
4084     BossProgram result;
4085     std::string temp3 ;
4086     PyObject * obj0 = 0 ;
4087     PyObject * obj1 = 0 ;
4088     PyObject * obj2 = 0 ;
4089    
4090     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_queryProgram",&obj0,&obj1,&obj2)) goto fail;
4091     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4092     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4093     {
4094     if (PyString_Check(obj2)) {
4095     temp3 = std::string(PyString_AsString(obj2));
4096     arg3 = &temp3;
4097     }else {
4098     SWIG_exception(SWIG_TypeError, "string expected");
4099     }
4100     }
4101     {
4102     try {
4103     result = ((BossTask const *)arg1)->queryProgram((BossJob const *)arg2,(std::string const &)*arg3);
4104    
4105     }catch (const BossSchedFailure & e) {
4106     PyErr_SetString ( SchedulerError, e.what() );
4107     return NULL;
4108     }catch (const std::exception& e) {
4109     PyErr_SetString ( BossError, e.what() );
4110     return NULL;
4111     }
4112     }
4113     {
4114     BossProgram * resultptr;
4115     resultptr = new BossProgram((BossProgram &) result);
4116     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossProgram, 1);
4117     }
4118     return resultobj;
4119     fail:
4120     return NULL;
4121     }
4122    
4123    
4124     static PyObject *_wrap_BossTask_queryProgramExec(PyObject *self, PyObject *args) {
4125     PyObject *resultobj;
4126     BossTask *arg1 = (BossTask *) 0 ;
4127     BossJob *arg2 = (BossJob *) 0 ;
4128     std::string *arg3 = 0 ;
4129     BossProgramExec result;
4130     std::string temp3 ;
4131     PyObject * obj0 = 0 ;
4132     PyObject * obj1 = 0 ;
4133     PyObject * obj2 = 0 ;
4134    
4135     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_queryProgramExec",&obj0,&obj1,&obj2)) goto fail;
4136     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4137     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4138     {
4139     if (PyString_Check(obj2)) {
4140     temp3 = std::string(PyString_AsString(obj2));
4141     arg3 = &temp3;
4142     }else {
4143     SWIG_exception(SWIG_TypeError, "string expected");
4144     }
4145     }
4146     {
4147     try {
4148     result = ((BossTask const *)arg1)->queryProgramExec((BossJob const *)arg2,(std::string const &)*arg3);
4149    
4150     }catch (const BossSchedFailure & e) {
4151     PyErr_SetString ( SchedulerError, e.what() );
4152     return NULL;
4153     }catch (const std::exception& e) {
4154     PyErr_SetString ( BossError, e.what() );
4155     return NULL;
4156     }
4157     }
4158     {
4159     BossProgramExec * resultptr;
4160     resultptr = new BossProgramExec((BossProgramExec &) result);
4161     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossProgramExec, 1);
4162     }
4163     return resultobj;
4164     fail:
4165     return NULL;
4166     }
4167    
4168    
4169 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_0(PyObject *self, PyObject *args) {
4170     PyObject *resultobj;
4171     BossDatabase *arg1 = (BossDatabase *) 0 ;
4172     BossTask *result;
4173     PyObject * obj0 = 0 ;
4174    
4175     if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail;
4176     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4177     {
4178     try {
4179     result = (BossTask *)new BossTask(arg1);
4180    
4181 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4182 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4183     return NULL;
4184 gcodispo 1.10 }catch (const std::exception& e) {
4185 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4186     return NULL;
4187 gcodispo 1.10 }
4188 gcodispo 1.3 }
4189 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
4190     return resultobj;
4191     fail:
4192     return NULL;
4193 gcodispo 1.3 }
4194    
4195    
4196 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_1(PyObject *self, PyObject *args) {
4197     PyObject *resultobj;
4198     BossDatabase *arg1 = (BossDatabase *) 0 ;
4199     std::string *arg2 = 0 ;
4200     BossTask *result;
4201     std::string temp2 ;
4202     PyObject * obj0 = 0 ;
4203     PyObject * obj1 = 0 ;
4204    
4205     if(!PyArg_ParseTuple(args,(char *)"OO:new_BossTask",&obj0,&obj1)) goto fail;
4206     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4207     {
4208     if (PyString_Check(obj1)) {
4209     temp2 = std::string(PyString_AsString(obj1));
4210     arg2 = &temp2;
4211     }else {
4212     SWIG_exception(SWIG_TypeError, "string expected");
4213     }
4214 gcodispo 1.9 }
4215 gcodispo 1.10 {
4216     try {
4217     result = (BossTask *)new BossTask(arg1,(std::string const &)*arg2);
4218    
4219 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4220 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4221     return NULL;
4222 gcodispo 1.10 }catch (const std::exception& e) {
4223 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4224     return NULL;
4225 gcodispo 1.10 }
4226 gcodispo 1.9 }
4227 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
4228     return resultobj;
4229     fail:
4230     return NULL;
4231 gcodispo 1.3 }
4232    
4233    
4234 gcodispo 1.10 static PyObject *_wrap_delete_BossTask(PyObject *self, PyObject *args) {
4235     PyObject *resultobj;
4236     BossTask *arg1 = (BossTask *) 0 ;
4237     PyObject * obj0 = 0 ;
4238    
4239     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossTask",&obj0)) goto fail;
4240     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4241     {
4242     try {
4243     delete arg1;
4244    
4245 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4246 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4247     return NULL;
4248 gcodispo 1.10 }catch (const std::exception& e) {
4249 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4250     return NULL;
4251 gcodispo 1.10 }
4252 gcodispo 1.3 }
4253 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4254     return resultobj;
4255     fail:
4256     return NULL;
4257 gcodispo 1.3 }
4258    
4259    
4260 gcodispo 1.10 static PyObject *_wrap_new_BossTask__SWIG_2(PyObject *self, PyObject *args) {
4261     PyObject *resultobj;
4262     BossTask *arg1 = 0 ;
4263     BossTask *result;
4264     PyObject * obj0 = 0 ;
4265    
4266     if(!PyArg_ParseTuple(args,(char *)"O:new_BossTask",&obj0)) goto fail;
4267     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4268     if (arg1 == NULL) {
4269     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4270 gcodispo 1.3 }
4271 gcodispo 1.10 {
4272     try {
4273     result = (BossTask *)new BossTask((BossTask const &)*arg1);
4274    
4275 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4276 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4277     return NULL;
4278 gcodispo 1.10 }catch (const std::exception& e) {
4279 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4280     return NULL;
4281 gcodispo 1.10 }
4282 gcodispo 1.3 }
4283 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossTask, 1);
4284     return resultobj;
4285     fail:
4286     return NULL;
4287 gcodispo 1.3 }
4288    
4289    
4290 gcodispo 1.10 static PyObject *_wrap_new_BossTask(PyObject *self, PyObject *args) {
4291     int argc;
4292     PyObject *argv[3];
4293     int ii;
4294    
4295     argc = PyObject_Length(args);
4296     for (ii = 0; (ii < argc) && (ii < 2); ii++) {
4297     argv[ii] = PyTuple_GetItem(args,ii);
4298 gcodispo 1.3 }
4299 gcodispo 1.10 if (argc == 1) {
4300     int _v;
4301     {
4302     void *ptr;
4303     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) {
4304     _v = 0;
4305     PyErr_Clear();
4306     }else {
4307     _v = 1;
4308     }
4309 gcodispo 1.3 }
4310 gcodispo 1.9 if (_v) {
4311 gcodispo 1.10 return _wrap_new_BossTask__SWIG_0(self,args);
4312 gcodispo 1.3 }
4313     }
4314 gcodispo 1.10 if (argc == 1) {
4315     int _v;
4316     {
4317     void *ptr;
4318     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4319     _v = 0;
4320     PyErr_Clear();
4321     }else {
4322     _v = 1;
4323 gcodispo 1.3 }
4324     }
4325 gcodispo 1.9 if (_v) {
4326 gcodispo 1.10 return _wrap_new_BossTask__SWIG_2(self,args);
4327 gcodispo 1.3 }
4328     }
4329 gcodispo 1.10 if (argc == 2) {
4330     int _v;
4331     {
4332     void *ptr;
4333     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossDatabase, 0) == -1) {
4334     _v = 0;
4335     PyErr_Clear();
4336     }else {
4337     _v = 1;
4338 gcodispo 1.3 }
4339     }
4340 gcodispo 1.9 if (_v) {
4341 gcodispo 1.10 {
4342     _v = PyString_Check(argv[1]) ? 1 : 0;
4343     }
4344 gcodispo 1.9 if (_v) {
4345 gcodispo 1.10 return _wrap_new_BossTask__SWIG_1(self,args);
4346 gcodispo 1.3 }
4347     }
4348     }
4349 gcodispo 1.10
4350     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BossTask'");
4351     return NULL;
4352 gcodispo 1.3 }
4353    
4354    
4355 gcodispo 1.10 static PyObject *_wrap_BossTask_id(PyObject *self, PyObject *args) {
4356     PyObject *resultobj;
4357     BossTask *arg1 = (BossTask *) 0 ;
4358     std::string *result;
4359     PyObject * obj0 = 0 ;
4360    
4361     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_id",&obj0)) goto fail;
4362     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4363     {
4364     try {
4365     {
4366     std::string const &_result_ref = ((BossTask const *)arg1)->id();
4367     result = (std::string *) &_result_ref;
4368     }
4369    
4370 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4371 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4372     return NULL;
4373 gcodispo 1.10 }catch (const std::exception& e) {
4374 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4375     return NULL;
4376 gcodispo 1.10 }
4377 gcodispo 1.3 }
4378 gcodispo 1.10 {
4379     resultobj = PyString_FromStringAndSize(result->data(),result->size());
4380 gcodispo 1.3 }
4381 gcodispo 1.10 return resultobj;
4382     fail:
4383     return NULL;
4384     }
4385    
4386    
4387     static PyObject *_wrap_BossTask_name(PyObject *self, PyObject *args) {
4388     PyObject *resultobj;
4389     BossTask *arg1 = (BossTask *) 0 ;
4390     std::string *result;
4391     PyObject * obj0 = 0 ;
4392    
4393     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_name",&obj0)) goto fail;
4394     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4395     {
4396     try {
4397     {
4398     std::string const &_result_ref = ((BossTask const *)arg1)->name();
4399     result = (std::string *) &_result_ref;
4400     }
4401    
4402 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4403 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4404     return NULL;
4405 gcodispo 1.10 }catch (const std::exception& e) {
4406 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4407     return NULL;
4408 gcodispo 1.10 }
4409 gcodispo 1.3 }
4410 gcodispo 1.10 {
4411     resultobj = PyString_FromStringAndSize(result->data(),result->size());
4412 gcodispo 1.3 }
4413 gcodispo 1.10 return resultobj;
4414     fail:
4415     return NULL;
4416 gcodispo 1.3 }
4417    
4418    
4419 gcodispo 1.30 static PyObject *_wrap_BossTask_chain(PyObject *self, PyObject *args) {
4420     PyObject *resultobj;
4421     BossTask *arg1 = (BossTask *) 0 ;
4422     std::string *arg2 = 0 ;
4423     BossChain result;
4424     std::string temp2 ;
4425     PyObject * obj0 = 0 ;
4426     PyObject * obj1 = 0 ;
4427    
4428     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_chain",&obj0,&obj1)) goto fail;
4429     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4430     {
4431     if (PyString_Check(obj1)) {
4432     temp2 = std::string(PyString_AsString(obj1));
4433     arg2 = &temp2;
4434     }else {
4435     SWIG_exception(SWIG_TypeError, "string expected");
4436     }
4437     }
4438     {
4439     try {
4440     result = ((BossTask const *)arg1)->chain((std::string const &)*arg2);
4441    
4442     }catch (const BossSchedFailure & e) {
4443     PyErr_SetString ( SchedulerError, e.what() );
4444     return NULL;
4445     }catch (const std::exception& e) {
4446     PyErr_SetString ( BossError, e.what() );
4447     return NULL;
4448     }
4449     }
4450     {
4451     BossChain * resultptr;
4452     resultptr = new BossChain((BossChain &) result);
4453     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_BossChain, 1);
4454     }
4455     return resultobj;
4456     fail:
4457     return NULL;
4458     }
4459    
4460    
4461 gcodispo 1.10 static PyObject *_wrap_BossTask_taskMap(PyObject *self, PyObject *args) {
4462     PyObject *resultobj;
4463     BossTask *arg1 = (BossTask *) 0 ;
4464     std::map<std::string,std::string > result;
4465     PyObject * obj0 = 0 ;
4466    
4467     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_taskMap",&obj0)) goto fail;
4468     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4469     {
4470     try {
4471     result = ((BossTask const *)arg1)->taskMap();
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     }
4488 gcodispo 1.3 }
4489 gcodispo 1.10 return resultobj;
4490     fail:
4491     return NULL;
4492 gcodispo 1.4 }
4493    
4494    
4495 gcodispo 1.10 static PyObject *_wrap_BossTask_jobsMap(PyObject *self, PyObject *args) {
4496     PyObject *resultobj;
4497     BossTask *arg1 = (BossTask *) 0 ;
4498     SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result;
4499     PyObject * obj0 = 0 ;
4500    
4501     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsMap",&obj0)) goto fail;
4502     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4503     {
4504     try {
4505     result = ((BossTask const *)arg1)->jobsMap();
4506    
4507 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4508 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4509     return NULL;
4510 gcodispo 1.10 }catch (const std::exception& e) {
4511 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4512     return NULL;
4513 gcodispo 1.10 }
4514 gcodispo 1.9 }
4515 gcodispo 1.10 {
4516     std::map<std::string,std::map<std::string,std::string > > * resultptr;
4517     resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result);
4518     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1);
4519 gcodispo 1.3 }
4520 gcodispo 1.10 return resultobj;
4521     fail:
4522     return NULL;
4523 gcodispo 1.3 }
4524    
4525    
4526 gcodispo 1.10 static PyObject *_wrap_BossTask_jobMap__SWIG_0(PyObject *self, PyObject *args) {
4527     PyObject *resultobj;
4528     BossTask *arg1 = (BossTask *) 0 ;
4529     SwigValueWrapper< std::vector<BossJob * >::const_iterator > arg2 ;
4530     std::map<std::string,std::string > *arg3 = 0 ;
4531     std::string result;
4532     std::vector<BossJob * >::const_iterator *argp2 ;
4533     PyObject * obj0 = 0 ;
4534     PyObject * obj1 = 0 ;
4535     PyObject * obj2 = 0 ;
4536    
4537     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobMap",&obj0,&obj1,&obj2)) goto fail;
4538     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4539     if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
4540     arg2 = *argp2;
4541     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__mapTstd__string_std__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4542     if (arg3 == NULL) {
4543     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4544 gcodispo 1.3 }
4545 gcodispo 1.10 {
4546     try {
4547     result = ((BossTask const *)arg1)->jobMap(arg2,*arg3);
4548    
4549 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4550 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4551     return NULL;
4552 gcodispo 1.10 }catch (const std::exception& e) {
4553 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4554     return NULL;
4555 gcodispo 1.10 }
4556 gcodispo 1.3 }
4557 gcodispo 1.10 {
4558     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
4559 gcodispo 1.3 }
4560 gcodispo 1.10 return resultobj;
4561     fail:
4562     return NULL;
4563 gcodispo 1.3 }
4564    
4565    
4566 gcodispo 1.10 static PyObject *_wrap_BossTask_jobMap__SWIG_1(PyObject *self, PyObject *args) {
4567     PyObject *resultobj;
4568     BossTask *arg1 = (BossTask *) 0 ;
4569     unsigned int arg2 ;
4570     std::map<std::string,std::string > result;
4571     PyObject * obj0 = 0 ;
4572     PyObject * obj1 = 0 ;
4573    
4574     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobMap",&obj0,&obj1)) goto fail;
4575     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4576     arg2 = (unsigned int) PyInt_AsLong(obj1);
4577     if (PyErr_Occurred()) SWIG_fail;
4578     {
4579     try {
4580     result = ((BossTask const *)arg1)->jobMap(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.3 }
4590 gcodispo 1.10 {
4591     resultobj = PyDict_New();
4592     for (std::map<std::string,std::string >::iterator i=(&result)->begin(); i!=(&result)->end(); ++i) {
4593     PyDict_SetItem(resultobj,
4594     SwigString_FromString(i->first),
4595     SwigString_FromString(i->second));
4596 gcodispo 1.3 }
4597 gcodispo 1.9 }
4598 gcodispo 1.10 return resultobj;
4599     fail:
4600     return NULL;
4601     }
4602    
4603    
4604     static PyObject *_wrap_BossTask_jobMap(PyObject *self, PyObject *args) {
4605     int argc;
4606     PyObject *argv[4];
4607     int ii;
4608    
4609     argc = PyObject_Length(args);
4610     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
4611     argv[ii] = PyTuple_GetItem(args,ii);
4612 gcodispo 1.3 }
4613 gcodispo 1.10 if (argc == 2) {
4614     int _v;
4615     {
4616     void *ptr;
4617     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4618     _v = 0;
4619     PyErr_Clear();
4620     }else {
4621     _v = 1;
4622 gcodispo 1.3 }
4623     }
4624     if (_v) {
4625 gcodispo 1.10 {
4626     _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0;
4627     }
4628 gcodispo 1.9 if (_v) {
4629 gcodispo 1.10 return _wrap_BossTask_jobMap__SWIG_1(self,args);
4630 gcodispo 1.9 }
4631 gcodispo 1.3 }
4632     }
4633 gcodispo 1.10 if (argc == 3) {
4634     int _v;
4635     {
4636     void *ptr;
4637     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4638     _v = 0;
4639     PyErr_Clear();
4640     }else {
4641     _v = 1;
4642     }
4643     }
4644 gcodispo 1.3 if (_v) {
4645 gcodispo 1.10 {
4646     void *ptr;
4647     if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_std__vectorTBossJob_p_t__const_iterator, 0) == -1) {
4648     _v = 0;
4649     PyErr_Clear();
4650     }else {
4651     _v = 1;
4652     }
4653     }
4654 gcodispo 1.3 if (_v) {
4655 gcodispo 1.9 {
4656 gcodispo 1.10 void *ptr;
4657     if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__mapTstd__string_std__string_t, 0) == -1) {
4658     _v = 0;
4659     PyErr_Clear();
4660     }else {
4661     _v = 1;
4662     }
4663 gcodispo 1.9 }
4664     if (_v) {
4665 gcodispo 1.10 return _wrap_BossTask_jobMap__SWIG_0(self,args);
4666 gcodispo 1.9 }
4667 gcodispo 1.3 }
4668     }
4669     }
4670 gcodispo 1.10
4671     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_jobMap'");
4672     return NULL;
4673 gcodispo 1.3 }
4674    
4675    
4676 gcodispo 1.10 static PyObject *_wrap_BossTask_programsMap(PyObject *self, PyObject *args) {
4677     PyObject *resultobj;
4678     BossTask *arg1 = (BossTask *) 0 ;
4679     BossJob *arg2 = (BossJob *) 0 ;
4680     SwigValueWrapper< std::map<std::string,std::map<std::string,std::string > > > result;
4681     PyObject * obj0 = 0 ;
4682     PyObject * obj1 = 0 ;
4683    
4684     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_programsMap",&obj0,&obj1)) goto fail;
4685     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4686     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4687     {
4688     try {
4689     result = ((BossTask const *)arg1)->programsMap((BossJob const *)arg2);
4690    
4691 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4692 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4693     return NULL;
4694 gcodispo 1.10 }catch (const std::exception& e) {
4695 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4696     return NULL;
4697 gcodispo 1.10 }
4698 gcodispo 1.9 }
4699 gcodispo 1.10 {
4700     std::map<std::string,std::map<std::string,std::string > > * resultptr;
4701     resultptr = new std::map<std::string,std::map<std::string,std::string > >((std::map<std::string,std::map<std::string,std::string > > &) result);
4702     resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__mapTstd__string_std__mapTstd__string_std__string_t_t, 1);
4703 gcodispo 1.9 }
4704 gcodispo 1.10 return resultobj;
4705     fail:
4706     return NULL;
4707     }
4708    
4709    
4710     static PyObject *_wrap_BossTask_declare__SWIG_0(PyObject *self, PyObject *args) {
4711     PyObject *resultobj;
4712     BossTask *arg1 = (BossTask *) 0 ;
4713     std::string *arg2 = 0 ;
4714     std::string const &arg3_defvalue = "" ;
4715     std::string *arg3 = (std::string *) &arg3_defvalue ;
4716     std::string temp2 ;
4717     std::string temp3 ;
4718     PyObject * obj0 = 0 ;
4719     PyObject * obj1 = 0 ;
4720     PyObject * obj2 = 0 ;
4721    
4722     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail;
4723     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4724     {
4725     if (PyString_Check(obj1)) {
4726     temp2 = std::string(PyString_AsString(obj1));
4727     arg2 = &temp2;
4728     }else {
4729     SWIG_exception(SWIG_TypeError, "string expected");
4730     }
4731 gcodispo 1.9 }
4732 gcodispo 1.10 if (obj2) {
4733     {
4734     if (PyString_Check(obj2)) {
4735     temp3 = std::string(PyString_AsString(obj2));
4736     arg3 = &temp3;
4737     }else {
4738     SWIG_exception(SWIG_TypeError, "string expected");
4739     }
4740     }
4741 gcodispo 1.9 }
4742 gcodispo 1.10 {
4743     try {
4744     (arg1)->declare((std::string const &)*arg2,(std::string const &)*arg3);
4745    
4746 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4747 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4748     return NULL;
4749 gcodispo 1.10 }catch (const std::exception& e) {
4750 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4751     return NULL;
4752 gcodispo 1.10 }
4753 gcodispo 1.9 }
4754 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4755     return resultobj;
4756     fail:
4757     return NULL;
4758     }
4759    
4760    
4761     static PyObject *_wrap_BossTask_declare__SWIG_1(PyObject *self, PyObject *args) {
4762     PyObject *resultobj;
4763     BossTask *arg1 = (BossTask *) 0 ;
4764     XMLDoc *arg2 = (XMLDoc *) 0 ;
4765     std::string const &arg3_defvalue = "" ;
4766     std::string *arg3 = (std::string *) &arg3_defvalue ;
4767     std::string temp3 ;
4768     PyObject * obj0 = 0 ;
4769     PyObject * obj1 = 0 ;
4770     PyObject * obj2 = 0 ;
4771    
4772     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_declare",&obj0,&obj1,&obj2)) goto fail;
4773     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4774     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XMLDoc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4775     if (obj2) {
4776     {
4777     if (PyString_Check(obj2)) {
4778     temp3 = std::string(PyString_AsString(obj2));
4779     arg3 = &temp3;
4780     }else {
4781     SWIG_exception(SWIG_TypeError, "string expected");
4782     }
4783     }
4784 gcodispo 1.9 }
4785 gcodispo 1.10 {
4786     try {
4787     (arg1)->declare(arg2,(std::string const &)*arg3);
4788    
4789 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4790 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4791     return NULL;
4792 gcodispo 1.10 }catch (const std::exception& e) {
4793 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4794     return NULL;
4795 gcodispo 1.10 }
4796 gcodispo 1.9 }
4797 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4798     return resultobj;
4799     fail:
4800     return NULL;
4801 gcodispo 1.3 }
4802    
4803    
4804 gcodispo 1.10 static PyObject *_wrap_BossTask_declare(PyObject *self, PyObject *args) {
4805     int argc;
4806     PyObject *argv[4];
4807     int ii;
4808    
4809     argc = PyObject_Length(args);
4810     for (ii = 0; (ii < argc) && (ii < 3); ii++) {
4811     argv[ii] = PyTuple_GetItem(args,ii);
4812 gcodispo 1.9 }
4813 gcodispo 1.10 if ((argc >= 2) && (argc <= 3)) {
4814     int _v;
4815     {
4816     void *ptr;
4817     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4818     _v = 0;
4819     PyErr_Clear();
4820     }else {
4821     _v = 1;
4822     }
4823     }
4824     if (_v) {
4825     {
4826     void *ptr;
4827     if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_XMLDoc, 0) == -1) {
4828     _v = 0;
4829     PyErr_Clear();
4830     }else {
4831     _v = 1;
4832     }
4833     }
4834     if (_v) {
4835     if (argc <= 2) {
4836     return _wrap_BossTask_declare__SWIG_1(self,args);
4837     }
4838     {
4839     _v = PyString_Check(argv[2]) ? 1 : 0;
4840     }
4841     if (_v) {
4842     return _wrap_BossTask_declare__SWIG_1(self,args);
4843     }
4844     }
4845     }
4846 gcodispo 1.9 }
4847 gcodispo 1.10 if ((argc >= 2) && (argc <= 3)) {
4848     int _v;
4849     {
4850     void *ptr;
4851     if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossTask, 0) == -1) {
4852     _v = 0;
4853     PyErr_Clear();
4854     }else {
4855     _v = 1;
4856     }
4857     }
4858     if (_v) {
4859     {
4860     _v = PyString_Check(argv[1]) ? 1 : 0;
4861     }
4862     if (_v) {
4863     if (argc <= 2) {
4864     return _wrap_BossTask_declare__SWIG_0(self,args);
4865     }
4866     {
4867     _v = PyString_Check(argv[2]) ? 1 : 0;
4868     }
4869     if (_v) {
4870     return _wrap_BossTask_declare__SWIG_0(self,args);
4871     }
4872     }
4873     }
4874 gcodispo 1.9 }
4875 gcodispo 1.10
4876     PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossTask_declare'");
4877     return NULL;
4878 gcodispo 1.3 }
4879    
4880    
4881 gcodispo 1.10 static PyObject *_wrap_BossTask_remove(PyObject *self, PyObject *args) {
4882     PyObject *resultobj;
4883     BossTask *arg1 = (BossTask *) 0 ;
4884     PyObject * obj0 = 0 ;
4885    
4886     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_remove",&obj0)) goto fail;
4887     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4888     {
4889     try {
4890     (arg1)->remove();
4891    
4892 gcodispo 1.17 }catch (const BossSchedFailure & e) {
4893 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
4894     return NULL;
4895 gcodispo 1.10 }catch (const std::exception& e) {
4896 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
4897     return NULL;
4898 gcodispo 1.10 }
4899 gcodispo 1.9 }
4900 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
4901     return resultobj;
4902     fail:
4903     return NULL;
4904 gcodispo 1.7 }
4905    
4906    
4907 gcodispo 1.10 static PyObject *_wrap_BossTask_archive(PyObject *self, PyObject *args) {
4908     PyObject *resultobj;
4909     BossTask *arg1 = (BossTask *) 0 ;
4910     std::string const &arg2_defvalue = "all" ;
4911     std::string *arg2 = (std::string *) &arg2_defvalue ;
4912     std::string temp2 ;
4913     PyObject * obj0 = 0 ;
4914     PyObject * obj1 = 0 ;
4915    
4916     if(!PyArg_ParseTuple(args,(char *)"O|O:BossTask_archive",&obj0,&obj1)) goto fail;
4917     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4918     if (obj1) {
4919     {
4920     if (PyString_Check(obj1)) {
4921     temp2 = std::string(PyString_AsString(obj1));
4922     arg2 = &temp2;
4923     }else {
4924     SWIG_exception(SWIG_TypeError, "string expected");
4925     }
4926     }
4927 gcodispo 1.3 }
4928 gcodispo 1.10 {
4929     try {
4930     (arg1)->archive((std::string const &)*arg2);
4931    
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 Py_INCREF(Py_None); resultobj = Py_None;
4941     return resultobj;
4942     fail:
4943     return NULL;
4944 gcodispo 1.3 }
4945    
4946    
4947 gcodispo 1.10 static PyObject *_wrap_BossTask_submit(PyObject *self, PyObject *args) {
4948     PyObject *resultobj;
4949     BossTask *arg1 = (BossTask *) 0 ;
4950     std::string const &arg2_defvalue = "all" ;
4951     std::string *arg2 = (std::string *) &arg2_defvalue ;
4952     std::string const &arg3_defvalue = "" ;
4953     std::string *arg3 = (std::string *) &arg3_defvalue ;
4954     std::string const &arg4_defvalue = "" ;
4955     std::string *arg4 = (std::string *) &arg4_defvalue ;
4956     std::string const &arg5_defvalue = "" ;
4957     std::string *arg5 = (std::string *) &arg5_defvalue ;
4958     std::string const &arg6_defvalue = "" ;
4959     std::string *arg6 = (std::string *) &arg6_defvalue ;
4960 gcodispo 1.21 unsigned int arg7 = (unsigned int) 0 ;
4961     bool arg8 = (bool) false ;
4962 gcodispo 1.10 int result;
4963     std::string temp2 ;
4964     std::string temp3 ;
4965     std::string temp4 ;
4966     std::string temp5 ;
4967     std::string temp6 ;
4968     PyObject * obj0 = 0 ;
4969     PyObject * obj1 = 0 ;
4970     PyObject * obj2 = 0 ;
4971     PyObject * obj3 = 0 ;
4972     PyObject * obj4 = 0 ;
4973     PyObject * obj5 = 0 ;
4974     PyObject * obj6 = 0 ;
4975 gcodispo 1.21 PyObject * obj7 = 0 ;
4976 gcodispo 1.10
4977 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|OOOOOOO:BossTask_submit",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4978 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4979     if (obj1) {
4980     {
4981     if (PyString_Check(obj1)) {
4982     temp2 = std::string(PyString_AsString(obj1));
4983     arg2 = &temp2;
4984     }else {
4985     SWIG_exception(SWIG_TypeError, "string expected");
4986     }
4987     }
4988 gcodispo 1.9 }
4989 gcodispo 1.10 if (obj2) {
4990     {
4991     if (PyString_Check(obj2)) {
4992     temp3 = std::string(PyString_AsString(obj2));
4993     arg3 = &temp3;
4994     }else {
4995     SWIG_exception(SWIG_TypeError, "string expected");
4996     }
4997     }
4998 gcodispo 1.3 }
4999 gcodispo 1.10 if (obj3) {
5000     {
5001     if (PyString_Check(obj3)) {
5002     temp4 = std::string(PyString_AsString(obj3));
5003     arg4 = &temp4;
5004     }else {
5005     SWIG_exception(SWIG_TypeError, "string expected");
5006     }
5007     }
5008 gcodispo 1.3 }
5009 gcodispo 1.10 if (obj4) {
5010     {
5011     if (PyString_Check(obj4)) {
5012     temp5 = std::string(PyString_AsString(obj4));
5013     arg5 = &temp5;
5014     }else {
5015     SWIG_exception(SWIG_TypeError, "string expected");
5016     }
5017     }
5018 gcodispo 1.3 }
5019 gcodispo 1.10 if (obj5) {
5020     {
5021     if (PyString_Check(obj5)) {
5022     temp6 = std::string(PyString_AsString(obj5));
5023     arg6 = &temp6;
5024     }else {
5025     SWIG_exception(SWIG_TypeError, "string expected");
5026     }
5027     }
5028 gcodispo 1.3 }
5029 gcodispo 1.10 if (obj6) {
5030 gcodispo 1.21 arg7 = (unsigned int) PyInt_AsLong(obj6);
5031     if (PyErr_Occurred()) SWIG_fail;
5032     }
5033     if (obj7) {
5034     arg8 = PyInt_AsLong(obj7) ? true : false;
5035 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
5036 gcodispo 1.3 }
5037 gcodispo 1.10 {
5038     try {
5039 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);
5040 gcodispo 1.10
5041 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5042 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5043     return NULL;
5044 gcodispo 1.10 }catch (const std::exception& e) {
5045 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5046     return NULL;
5047 gcodispo 1.10 }
5048 gcodispo 1.3 }
5049 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5050     return resultobj;
5051     fail:
5052     return NULL;
5053     }
5054    
5055    
5056     static PyObject *_wrap_BossTask_reSubmit(PyObject *self, PyObject *args) {
5057     PyObject *resultobj;
5058     BossTask *arg1 = (BossTask *) 0 ;
5059     std::string *arg2 = 0 ;
5060     bool arg3 = (bool) false ;
5061     int result;
5062     std::string temp2 ;
5063     PyObject * obj0 = 0 ;
5064     PyObject * obj1 = 0 ;
5065     PyObject * obj2 = 0 ;
5066    
5067     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossTask_reSubmit",&obj0,&obj1,&obj2)) goto fail;
5068     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5069     {
5070     if (PyString_Check(obj1)) {
5071     temp2 = std::string(PyString_AsString(obj1));
5072     arg2 = &temp2;
5073     }else {
5074     SWIG_exception(SWIG_TypeError, "string expected");
5075     }
5076 gcodispo 1.3 }
5077 gcodispo 1.10 if (obj2) {
5078     arg3 = PyInt_AsLong(obj2) ? true : false;
5079     if (PyErr_Occurred()) SWIG_fail;
5080 gcodispo 1.3 }
5081 gcodispo 1.10 {
5082     try {
5083     result = (int)(arg1)->reSubmit((std::string const &)*arg2,arg3);
5084    
5085 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5086 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5087     return NULL;
5088 gcodispo 1.10 }catch (const std::exception& e) {
5089 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5090     return NULL;
5091 gcodispo 1.10 }
5092 gcodispo 1.3 }
5093 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5094     return resultobj;
5095     fail:
5096     return NULL;
5097     }
5098    
5099    
5100     static PyObject *_wrap_BossTask_kill(PyObject *self, PyObject *args) {
5101     PyObject *resultobj;
5102     BossTask *arg1 = (BossTask *) 0 ;
5103     std::string *arg2 = 0 ;
5104 gcodispo 1.21 unsigned int arg3 = (unsigned int) 0 ;
5105     bool arg4 = (bool) false ;
5106 gcodispo 1.10 int result;
5107     std::string temp2 ;
5108     PyObject * obj0 = 0 ;
5109     PyObject * obj1 = 0 ;
5110     PyObject * obj2 = 0 ;
5111 gcodispo 1.21 PyObject * obj3 = 0 ;
5112 gcodispo 1.10
5113 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"OO|OO:BossTask_kill",&obj0,&obj1,&obj2,&obj3)) goto fail;
5114 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5115     {
5116     if (PyString_Check(obj1)) {
5117     temp2 = std::string(PyString_AsString(obj1));
5118     arg2 = &temp2;
5119     }else {
5120     SWIG_exception(SWIG_TypeError, "string expected");
5121     }
5122 gcodispo 1.3 }
5123 gcodispo 1.10 if (obj2) {
5124 gcodispo 1.21 arg3 = (unsigned int) PyInt_AsLong(obj2);
5125     if (PyErr_Occurred()) SWIG_fail;
5126     }
5127     if (obj3) {
5128     arg4 = PyInt_AsLong(obj3) ? true : false;
5129 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
5130 gcodispo 1.3 }
5131 gcodispo 1.10 {
5132     try {
5133 gcodispo 1.21 result = (int)(arg1)->kill((std::string const &)*arg2,arg3,arg4);
5134 gcodispo 1.10
5135 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5136 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5137     return NULL;
5138 gcodispo 1.10 }catch (const std::exception& e) {
5139 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5140     return NULL;
5141 gcodispo 1.10 }
5142 yzhang 1.1 }
5143 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5144     return resultobj;
5145     fail:
5146     return NULL;
5147 gcodispo 1.3 }
5148    
5149    
5150 gcodispo 1.10 static PyObject *_wrap_BossTask_getOutput(PyObject *self, PyObject *args) {
5151     PyObject *resultobj;
5152     BossTask *arg1 = (BossTask *) 0 ;
5153     std::string const &arg2_defvalue = "all" ;
5154     std::string *arg2 = (std::string *) &arg2_defvalue ;
5155     std::string const &arg3_defvalue = "" ;
5156     std::string *arg3 = (std::string *) &arg3_defvalue ;
5157 gcodispo 1.21 unsigned int arg4 = (unsigned int) 0 ;
5158 gcodispo 1.10 bool arg5 = (bool) false ;
5159 gcodispo 1.21 bool arg6 = (bool) false ;
5160 gcodispo 1.10 int result;
5161     std::string temp2 ;
5162     std::string temp3 ;
5163     PyObject * obj0 = 0 ;
5164     PyObject * obj1 = 0 ;
5165     PyObject * obj2 = 0 ;
5166     PyObject * obj3 = 0 ;
5167     PyObject * obj4 = 0 ;
5168 gcodispo 1.21 PyObject * obj5 = 0 ;
5169 gcodispo 1.10
5170 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|OOOOO:BossTask_getOutput",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5171 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5172     if (obj1) {
5173     {
5174     if (PyString_Check(obj1)) {
5175     temp2 = std::string(PyString_AsString(obj1));
5176     arg2 = &temp2;
5177     }else {
5178     SWIG_exception(SWIG_TypeError, "string expected");
5179     }
5180     }
5181 gcodispo 1.9 }
5182 gcodispo 1.10 if (obj2) {
5183     {
5184     if (PyString_Check(obj2)) {
5185     temp3 = std::string(PyString_AsString(obj2));
5186     arg3 = &temp3;
5187     }else {
5188     SWIG_exception(SWIG_TypeError, "string expected");
5189     }
5190     }
5191 gcodispo 1.9 }
5192 gcodispo 1.10 if (obj3) {
5193 gcodispo 1.21 arg4 = (unsigned int) PyInt_AsLong(obj3);
5194 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
5195 yzhang 1.1 }
5196 gcodispo 1.10 if (obj4) {
5197     arg5 = PyInt_AsLong(obj4) ? true : false;
5198     if (PyErr_Occurred()) SWIG_fail;
5199 gcodispo 1.3 }
5200 gcodispo 1.21 if (obj5) {
5201     arg6 = PyInt_AsLong(obj5) ? true : false;
5202     if (PyErr_Occurred()) SWIG_fail;
5203     }
5204 gcodispo 1.10 {
5205     try {
5206 gcodispo 1.21 result = (int)(arg1)->getOutput((std::string const &)*arg2,(std::string const &)*arg3,arg4,arg5,arg6);
5207 gcodispo 1.10
5208 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5209 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5210     return NULL;
5211 gcodispo 1.10 }catch (const std::exception& e) {
5212 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5213     return NULL;
5214 gcodispo 1.10 }
5215 gcodispo 1.3 }
5216 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5217     return resultobj;
5218     fail:
5219     return NULL;
5220 yzhang 1.1 }
5221    
5222    
5223 gcodispo 1.26 static PyObject *_wrap_BossTask_loadByName(PyObject *self, PyObject *args) {
5224     PyObject *resultobj;
5225     BossTask *arg1 = (BossTask *) 0 ;
5226     std::string *arg2 = 0 ;
5227     int result;
5228     std::string temp2 ;
5229     PyObject * obj0 = 0 ;
5230     PyObject * obj1 = 0 ;
5231    
5232     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_loadByName",&obj0,&obj1)) goto fail;
5233     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5234     {
5235     if (PyString_Check(obj1)) {
5236     temp2 = std::string(PyString_AsString(obj1));
5237     arg2 = &temp2;
5238     }else {
5239     SWIG_exception(SWIG_TypeError, "string expected");
5240     }
5241     }
5242     {
5243     try {
5244     result = (int)(arg1)->loadByName((std::string const &)*arg2);
5245    
5246     }catch (const BossSchedFailure & e) {
5247     PyErr_SetString ( SchedulerError, e.what() );
5248     return NULL;
5249     }catch (const std::exception& e) {
5250     PyErr_SetString ( BossError, e.what() );
5251     return NULL;
5252     }
5253     }
5254     resultobj = PyInt_FromLong((long)result);
5255     return resultobj;
5256     fail:
5257     return NULL;
5258     }
5259    
5260    
5261 gcodispo 1.12 static PyObject *_wrap_BossTask_load(PyObject *self, PyObject *args) {
5262     PyObject *resultobj;
5263     BossTask *arg1 = (BossTask *) 0 ;
5264     int arg2 = (int) SCHEDULED ;
5265     std::string const &arg3_defvalue = "all" ;
5266     std::string *arg3 = (std::string *) &arg3_defvalue ;
5267     std::string const &arg4_defvalue = "" ;
5268     std::string *arg4 = (std::string *) &arg4_defvalue ;
5269     std::string arg5 = (std::string) "" ;
5270     std::string arg6 = (std::string) "" ;
5271     std::string arg7 = (std::string) "" ;
5272     std::string arg8 = (std::string) "" ;
5273     int result;
5274     std::string temp3 ;
5275     std::string temp4 ;
5276     PyObject * obj0 = 0 ;
5277     PyObject * obj2 = 0 ;
5278     PyObject * obj3 = 0 ;
5279     PyObject * obj4 = 0 ;
5280     PyObject * obj5 = 0 ;
5281     PyObject * obj6 = 0 ;
5282     PyObject * obj7 = 0 ;
5283    
5284     if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOO:BossTask_load",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5285     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5286     if (obj2) {
5287     {
5288     if (PyString_Check(obj2)) {
5289     temp3 = std::string(PyString_AsString(obj2));
5290     arg3 = &temp3;
5291     }else {
5292     SWIG_exception(SWIG_TypeError, "string expected");
5293     }
5294     }
5295     }
5296     if (obj3) {
5297     {
5298     if (PyString_Check(obj3)) {
5299     temp4 = std::string(PyString_AsString(obj3));
5300     arg4 = &temp4;
5301     }else {
5302     SWIG_exception(SWIG_TypeError, "string expected");
5303     }
5304     }
5305     }
5306     if (obj4) {
5307     {
5308     if (PyString_Check(obj4))
5309     arg5 = std::string(PyString_AsString(obj4));
5310     else
5311     SWIG_exception(SWIG_TypeError, "string expected");
5312     }
5313     }
5314     if (obj5) {
5315     {
5316     if (PyString_Check(obj5))
5317     arg6 = std::string(PyString_AsString(obj5));
5318     else
5319     SWIG_exception(SWIG_TypeError, "string expected");
5320     }
5321     }
5322     if (obj6) {
5323     {
5324     if (PyString_Check(obj6))
5325     arg7 = std::string(PyString_AsString(obj6));
5326     else
5327     SWIG_exception(SWIG_TypeError, "string expected");
5328     }
5329     }
5330     if (obj7) {
5331     {
5332     if (PyString_Check(obj7))
5333     arg8 = std::string(PyString_AsString(obj7));
5334     else
5335     SWIG_exception(SWIG_TypeError, "string expected");
5336     }
5337     }
5338     {
5339     try {
5340     result = (int)(arg1)->load(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8);
5341    
5342 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5343 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5344     return NULL;
5345 gcodispo 1.12 }catch (const std::exception& e) {
5346 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5347     return NULL;
5348 gcodispo 1.12 }
5349     }
5350     resultobj = PyInt_FromLong((long)result);
5351     return resultobj;
5352     fail:
5353     return NULL;
5354     }
5355    
5356    
5357 gcodispo 1.30 static PyObject *_wrap_BossTask_schedulerQuery(PyObject *self, PyObject *args) {
5358     PyObject *resultobj;
5359     BossTask *arg1 = (BossTask *) 0 ;
5360     int arg2 = (int) SCHEDULED ;
5361     std::string const &arg3_defvalue = "all" ;
5362     std::string *arg3 = (std::string *) &arg3_defvalue ;
5363     std::string const &arg4_defvalue = "" ;
5364     std::string *arg4 = (std::string *) &arg4_defvalue ;
5365     std::string arg5 = (std::string) "" ;
5366     std::string arg6 = (std::string) "" ;
5367     std::string arg7 = (std::string) "" ;
5368     std::string arg8 = (std::string) "" ;
5369     unsigned int arg9 = (unsigned int) 0 ;
5370     int result;
5371     std::string temp3 ;
5372     std::string temp4 ;
5373     PyObject * obj0 = 0 ;
5374     PyObject * obj2 = 0 ;
5375     PyObject * obj3 = 0 ;
5376     PyObject * obj4 = 0 ;
5377     PyObject * obj5 = 0 ;
5378     PyObject * obj6 = 0 ;
5379     PyObject * obj7 = 0 ;
5380     PyObject * obj8 = 0 ;
5381    
5382     if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossTask_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5383     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5384     if (obj2) {
5385     {
5386     if (PyString_Check(obj2)) {
5387     temp3 = std::string(PyString_AsString(obj2));
5388     arg3 = &temp3;
5389     }else {
5390     SWIG_exception(SWIG_TypeError, "string expected");
5391     }
5392     }
5393     }
5394     if (obj3) {
5395     {
5396     if (PyString_Check(obj3)) {
5397     temp4 = std::string(PyString_AsString(obj3));
5398     arg4 = &temp4;
5399     }else {
5400     SWIG_exception(SWIG_TypeError, "string expected");
5401     }
5402     }
5403     }
5404     if (obj4) {
5405     {
5406     if (PyString_Check(obj4))
5407     arg5 = std::string(PyString_AsString(obj4));
5408     else
5409     SWIG_exception(SWIG_TypeError, "string expected");
5410     }
5411     }
5412     if (obj5) {
5413     {
5414     if (PyString_Check(obj5))
5415     arg6 = std::string(PyString_AsString(obj5));
5416     else
5417     SWIG_exception(SWIG_TypeError, "string expected");
5418     }
5419     }
5420     if (obj6) {
5421     {
5422     if (PyString_Check(obj6))
5423     arg7 = std::string(PyString_AsString(obj6));
5424     else
5425     SWIG_exception(SWIG_TypeError, "string expected");
5426     }
5427     }
5428     if (obj7) {
5429     {
5430     if (PyString_Check(obj7))
5431     arg8 = std::string(PyString_AsString(obj7));
5432     else
5433     SWIG_exception(SWIG_TypeError, "string expected");
5434     }
5435     }
5436     if (obj8) {
5437     arg9 = (unsigned int) PyInt_AsLong(obj8);
5438     if (PyErr_Occurred()) SWIG_fail;
5439     }
5440     {
5441     try {
5442     result = (int)(arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9);
5443    
5444     }catch (const BossSchedFailure & e) {
5445     PyErr_SetString ( SchedulerError, e.what() );
5446     return NULL;
5447     }catch (const std::exception& e) {
5448     PyErr_SetString ( BossError, e.what() );
5449     return NULL;
5450     }
5451     }
5452     resultobj = PyInt_FromLong((long)result);
5453     return resultobj;
5454     fail:
5455     return NULL;
5456     }
5457    
5458    
5459 gcodispo 1.10 static PyObject *_wrap_BossTask_query(PyObject *self, PyObject *args) {
5460     PyObject *resultobj;
5461     BossTask *arg1 = (BossTask *) 0 ;
5462     int arg2 = (int) SCHEDULED ;
5463     std::string const &arg3_defvalue = "all" ;
5464     std::string *arg3 = (std::string *) &arg3_defvalue ;
5465     std::string const &arg4_defvalue = "" ;
5466     std::string *arg4 = (std::string *) &arg4_defvalue ;
5467     std::string arg5 = (std::string) "" ;
5468     std::string arg6 = (std::string) "" ;
5469     std::string arg7 = (std::string) "" ;
5470     std::string arg8 = (std::string) "" ;
5471 gcodispo 1.21 unsigned int arg9 = (unsigned int) 0 ;
5472     bool arg10 = (bool) false ;
5473 gcodispo 1.10 int result;
5474     std::string temp3 ;
5475     std::string temp4 ;
5476     PyObject * obj0 = 0 ;
5477     PyObject * obj2 = 0 ;
5478     PyObject * obj3 = 0 ;
5479     PyObject * obj4 = 0 ;
5480     PyObject * obj5 = 0 ;
5481     PyObject * obj6 = 0 ;
5482     PyObject * obj7 = 0 ;
5483     PyObject * obj8 = 0 ;
5484 gcodispo 1.21 PyObject * obj9 = 0 ;
5485 gcodispo 1.10
5486 gcodispo 1.21 if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossTask_query",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
5487 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5488     if (obj2) {
5489     {
5490     if (PyString_Check(obj2)) {
5491     temp3 = std::string(PyString_AsString(obj2));
5492     arg3 = &temp3;
5493     }else {
5494     SWIG_exception(SWIG_TypeError, "string expected");
5495     }
5496     }
5497 yzhang 1.1 }
5498 gcodispo 1.10 if (obj3) {
5499     {
5500     if (PyString_Check(obj3)) {
5501     temp4 = std::string(PyString_AsString(obj3));
5502     arg4 = &temp4;
5503     }else {
5504     SWIG_exception(SWIG_TypeError, "string expected");
5505     }
5506     }
5507 gcodispo 1.3 }
5508 gcodispo 1.10 if (obj4) {
5509     {
5510     if (PyString_Check(obj4))
5511     arg5 = std::string(PyString_AsString(obj4));
5512     else
5513     SWIG_exception(SWIG_TypeError, "string expected");
5514     }
5515 yzhang 1.1 }
5516 gcodispo 1.10 if (obj5) {
5517     {
5518     if (PyString_Check(obj5))
5519     arg6 = std::string(PyString_AsString(obj5));
5520     else
5521     SWIG_exception(SWIG_TypeError, "string expected");
5522     }
5523 yzhang 1.1 }
5524 gcodispo 1.10 if (obj6) {
5525     {
5526     if (PyString_Check(obj6))
5527     arg7 = std::string(PyString_AsString(obj6));
5528     else
5529     SWIG_exception(SWIG_TypeError, "string expected");
5530     }
5531 gcodispo 1.3 }
5532 gcodispo 1.10 if (obj7) {
5533     {
5534     if (PyString_Check(obj7))
5535     arg8 = std::string(PyString_AsString(obj7));
5536     else
5537     SWIG_exception(SWIG_TypeError, "string expected");
5538     }
5539 yzhang 1.1 }
5540 gcodispo 1.10 if (obj8) {
5541 gcodispo 1.21 arg9 = (unsigned int) PyInt_AsLong(obj8);
5542     if (PyErr_Occurred()) SWIG_fail;
5543     }
5544     if (obj9) {
5545     arg10 = PyInt_AsLong(obj9) ? true : false;
5546 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
5547 gcodispo 1.3 }
5548 gcodispo 1.10 {
5549     try {
5550 gcodispo 1.21 result = (int)(arg1)->query(arg2,(std::string const &)*arg3,(std::string const &)*arg4,arg5,arg6,arg7,arg8,arg9,arg10);
5551 gcodispo 1.10
5552 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5553 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5554     return NULL;
5555 gcodispo 1.10 }catch (const std::exception& e) {
5556 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5557     return NULL;
5558 gcodispo 1.10 }
5559 yzhang 1.1 }
5560 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
5561     return resultobj;
5562     fail:
5563     return NULL;
5564 yzhang 1.1 }
5565    
5566    
5567 gcodispo 1.10 static PyObject *_wrap_BossTask_query_out(PyObject *self, PyObject *args) {
5568     PyObject *resultobj;
5569     BossTask *arg1 = (BossTask *) 0 ;
5570     std::ostream &arg2_defvalue = std::cout ;
5571     std::ostream *arg2 = (std::ostream *) &arg2_defvalue ;
5572     jobStates const &arg3_defvalue = SCHEDULED ;
5573     jobStates *arg3 = (jobStates *) &arg3_defvalue ;
5574     printOption const &arg4_defvalue = NORMAL ;
5575     printOption *arg4 = (printOption *) &arg4_defvalue ;
5576     std::string arg5 = (std::string) "" ;
5577     PyObject * obj0 = 0 ;
5578     PyObject * obj1 = 0 ;
5579     PyObject * obj2 = 0 ;
5580     PyObject * obj3 = 0 ;
5581     PyObject * obj4 = 0 ;
5582    
5583     if(!PyArg_ParseTuple(args,(char *)"O|OOOO:BossTask_query_out",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5584     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5585     if (obj1) {
5586     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__ostream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5587     if (arg2 == NULL) {
5588     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5589     }
5590 gcodispo 1.9 }
5591 gcodispo 1.10 if (obj2) {
5592     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_jobStates,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5593     if (arg3 == NULL) {
5594     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5595     }
5596 gcodispo 1.9 }
5597 gcodispo 1.10 if (obj3) {
5598     if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_printOption,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5599     if (arg4 == NULL) {
5600     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5601     }
5602 yzhang 1.1 }
5603 gcodispo 1.10 if (obj4) {
5604     {
5605     if (PyString_Check(obj4))
5606     arg5 = std::string(PyString_AsString(obj4));
5607     else
5608     SWIG_exception(SWIG_TypeError, "string expected");
5609     }
5610 gcodispo 1.3 }
5611 gcodispo 1.10 {
5612     try {
5613     ((BossTask const *)arg1)->query_out(*arg2,(jobStates const &)*arg3,(printOption const &)*arg4,arg5);
5614    
5615 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5616 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5617     return NULL;
5618 gcodispo 1.10 }catch (const std::exception& e) {
5619 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5620     return NULL;
5621 gcodispo 1.10 }
5622 gcodispo 1.3 }
5623 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
5624     return resultobj;
5625     fail:
5626     return NULL;
5627     }
5628    
5629    
5630     static PyObject *_wrap_BossTask_clear(PyObject *self, PyObject *args) {
5631     PyObject *resultobj;
5632     BossTask *arg1 = (BossTask *) 0 ;
5633     PyObject * obj0 = 0 ;
5634    
5635     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_clear",&obj0)) goto fail;
5636     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5637     {
5638     try {
5639     (arg1)->clear();
5640    
5641 gcodispo 1.17 }catch (const BossSchedFailure & e) {
5642 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
5643     return NULL;
5644 gcodispo 1.10 }catch (const std::exception& e) {
5645 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
5646     return NULL;
5647 gcodispo 1.10 }
5648 yzhang 1.1 }
5649 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
5650     return resultobj;
5651     fail:
5652     return NULL;
5653     }
5654    
5655    
5656 gcodispo 1.19 static PyObject *_wrap_BossTask_appendToPyDict(PyObject *self, PyObject *args) {
5657     PyObject *resultobj;
5658     BossTask *arg1 = (BossTask *) 0 ;
5659     PyObject *arg2 = (PyObject *) 0 ;
5660     BossAttributeContainer *arg3 = 0 ;
5661     PyObject * obj0 = 0 ;
5662     PyObject * obj1 = 0 ;
5663     PyObject * obj2 = 0 ;
5664    
5665     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_appendToPyDict",&obj0,&obj1,&obj2)) goto fail;
5666     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5667     arg2 = obj1;
5668     if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_BossAttributeContainer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5669     if (arg3 == NULL) {
5670     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5671     }
5672     {
5673     try {
5674 gcodispo 1.25 BossTask_appendToPyDict((BossTask const *)arg1,arg2,(BossAttributeContainer const &)*arg3);
5675 gcodispo 1.19
5676     }catch (const BossSchedFailure & e) {
5677     PyErr_SetString ( SchedulerError, e.what() );
5678     return NULL;
5679     }catch (const std::exception& e) {
5680     PyErr_SetString ( BossError, e.what() );
5681     return NULL;
5682     }
5683     }
5684 gcodispo 1.25 Py_INCREF(Py_None); resultobj = Py_None;
5685 gcodispo 1.19 return resultobj;
5686     fail:
5687     return NULL;
5688     }
5689    
5690    
5691     static PyObject *_wrap_BossTask_jobDict(PyObject *self, PyObject *args) {
5692     PyObject *resultobj;
5693     BossTask *arg1 = (BossTask *) 0 ;
5694 gcodispo 1.29 BossJob *arg2 = (BossJob *) 0 ;
5695 gcodispo 1.25 PyObject *arg3 = (PyObject *) 0 ;
5696 gcodispo 1.19 PyObject * obj0 = 0 ;
5697     PyObject * obj1 = 0 ;
5698 gcodispo 1.25 PyObject * obj2 = 0 ;
5699 gcodispo 1.19
5700 gcodispo 1.25 if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_jobDict",&obj0,&obj1,&obj2)) goto fail;
5701 gcodispo 1.19 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5702 gcodispo 1.29 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_BossJob,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5703 gcodispo 1.25 arg3 = obj2;
5704 gcodispo 1.19 {
5705     try {
5706 gcodispo 1.29 BossTask_jobDict((BossTask const *)arg1,(BossJob const *)arg2,arg3);
5707 gcodispo 1.19
5708     }catch (const BossSchedFailure & e) {
5709     PyErr_SetString ( SchedulerError, e.what() );
5710     return NULL;
5711     }catch (const std::exception& e) {
5712     PyErr_SetString ( BossError, e.what() );
5713     return NULL;
5714     }
5715     }
5716 gcodispo 1.25 Py_INCREF(Py_None); resultobj = Py_None;
5717 gcodispo 1.19 return resultobj;
5718     fail:
5719     return NULL;
5720     }
5721    
5722    
5723     static PyObject *_wrap_BossTask_jobsDict(PyObject *self, PyObject *args) {
5724     PyObject *resultobj;
5725     BossTask *arg1 = (BossTask *) 0 ;
5726     PyObject *result;
5727     PyObject * obj0 = 0 ;
5728    
5729     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobsDict",&obj0)) goto fail;
5730     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5731     {
5732     try {
5733     result = (PyObject *)BossTask_jobsDict(arg1);
5734    
5735     }catch (const BossSchedFailure & e) {
5736     PyErr_SetString ( SchedulerError, e.what() );
5737     return NULL;
5738     }catch (const std::exception& e) {
5739     PyErr_SetString ( BossError, e.what() );
5740     return NULL;
5741     }
5742     }
5743     resultobj = result;
5744     return resultobj;
5745     fail:
5746     return NULL;
5747     }
5748    
5749    
5750 gcodispo 1.29 static PyObject *_wrap_BossTask_job(PyObject *self, PyObject *args) {
5751     PyObject *resultobj;
5752     BossTask *arg1 = (BossTask *) 0 ;
5753     std::string *arg2 = 0 ;
5754     PyObject *result;
5755     std::string temp2 ;
5756     PyObject * obj0 = 0 ;
5757     PyObject * obj1 = 0 ;
5758    
5759     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_job",&obj0,&obj1)) goto fail;
5760     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5761     {
5762     if (PyString_Check(obj1)) {
5763     temp2 = std::string(PyString_AsString(obj1));
5764     arg2 = &temp2;
5765     }else {
5766     SWIG_exception(SWIG_TypeError, "string expected");
5767     }
5768     }
5769     {
5770     try {
5771     result = (PyObject *)BossTask_job(arg1,(std::string const &)*arg2);
5772    
5773     }catch (const BossSchedFailure & e) {
5774     PyErr_SetString ( SchedulerError, e.what() );
5775     return NULL;
5776     }catch (const std::exception& e) {
5777     PyErr_SetString ( BossError, e.what() );
5778     return NULL;
5779     }
5780     }
5781     resultobj = result;
5782     return resultobj;
5783     fail:
5784     return NULL;
5785     }
5786    
5787    
5788 gcodispo 1.30 static PyObject *_wrap_BossTask_Chain(PyObject *self, PyObject *args) {
5789     PyObject *resultobj;
5790     BossTask *arg1 = (BossTask *) 0 ;
5791     std::string *arg2 = 0 ;
5792     PyObject *result;
5793     std::string temp2 ;
5794     PyObject * obj0 = 0 ;
5795     PyObject * obj1 = 0 ;
5796    
5797     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_Chain",&obj0,&obj1)) goto fail;
5798     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5799     {
5800     if (PyString_Check(obj1)) {
5801     temp2 = std::string(PyString_AsString(obj1));
5802     arg2 = &temp2;
5803     }else {
5804     SWIG_exception(SWIG_TypeError, "string expected");
5805     }
5806     }
5807     {
5808     try {
5809     result = (PyObject *)BossTask_Chain(arg1,(std::string const &)*arg2);
5810    
5811     }catch (const BossSchedFailure & e) {
5812     PyErr_SetString ( SchedulerError, e.what() );
5813     return NULL;
5814     }catch (const std::exception& e) {
5815     PyErr_SetString ( BossError, e.what() );
5816     return NULL;
5817     }
5818     }
5819     resultobj = result;
5820     return resultobj;
5821     fail:
5822     return NULL;
5823     }
5824    
5825    
5826 gcodispo 1.29 static PyObject *_wrap_BossTask_jobStates(PyObject *self, PyObject *args) {
5827     PyObject *resultobj;
5828     BossTask *arg1 = (BossTask *) 0 ;
5829     PyObject *result;
5830     PyObject * obj0 = 0 ;
5831    
5832     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobStates",&obj0)) goto fail;
5833     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5834     {
5835     try {
5836     result = (PyObject *)BossTask_jobStates(arg1);
5837    
5838     }catch (const BossSchedFailure & e) {
5839     PyErr_SetString ( SchedulerError, e.what() );
5840     return NULL;
5841     }catch (const std::exception& e) {
5842     PyErr_SetString ( BossError, e.what() );
5843     return NULL;
5844     }
5845     }
5846     resultobj = result;
5847     return resultobj;
5848     fail:
5849     return NULL;
5850     }
5851    
5852    
5853 gcodispo 1.34 static PyObject *_wrap_BossTask_joblist(PyObject *self, PyObject *args) {
5854     PyObject *resultobj;
5855     BossTask *arg1 = (BossTask *) 0 ;
5856     PyObject *result;
5857     PyObject * obj0 = 0 ;
5858    
5859     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_joblist",&obj0)) goto fail;
5860     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5861     {
5862     try {
5863     result = (PyObject *)BossTask_joblist(arg1);
5864    
5865     }catch (const BossSchedFailure & e) {
5866     PyErr_SetString ( SchedulerError, e.what() );
5867     return NULL;
5868     }catch (const std::exception& e) {
5869     PyErr_SetString ( BossError, e.what() );
5870     return NULL;
5871     }
5872     }
5873     resultobj = result;
5874     return resultobj;
5875     fail:
5876     return NULL;
5877     }
5878    
5879    
5880 gcodispo 1.29 static PyObject *_wrap_BossTask_jobStatistic(PyObject *self, PyObject *args) {
5881     PyObject *resultobj;
5882     BossTask *arg1 = (BossTask *) 0 ;
5883     PyObject *result;
5884     PyObject * obj0 = 0 ;
5885    
5886     if(!PyArg_ParseTuple(args,(char *)"O:BossTask_jobStatistic",&obj0)) goto fail;
5887     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5888     {
5889     try {
5890     result = (PyObject *)BossTask_jobStatistic(arg1);
5891    
5892     }catch (const BossSchedFailure & e) {
5893     PyErr_SetString ( SchedulerError, e.what() );
5894     return NULL;
5895     }catch (const std::exception& e) {
5896     PyErr_SetString ( BossError, e.what() );
5897     return NULL;
5898     }
5899     }
5900     resultobj = result;
5901     return resultobj;
5902     fail:
5903     return NULL;
5904     }
5905    
5906    
5907 gcodispo 1.19 static PyObject *_wrap_BossTask_progDict(PyObject *self, PyObject *args) {
5908     PyObject *resultobj;
5909     BossTask *arg1 = (BossTask *) 0 ;
5910     std::vector<std::pair<BossProgram,BossProgramExec > >::const_iterator *arg2 = 0 ;
5911     PyObject *result;
5912     PyObject * obj0 = 0 ;
5913     PyObject * obj1 = 0 ;
5914    
5915     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_progDict",&obj0,&obj1)) goto fail;
5916     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5917     if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5918     if (arg2 == NULL) {
5919     PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5920     }
5921     {
5922     try {
5923     result = (PyObject *)BossTask_progDict((BossTask const *)arg1,*arg2);
5924    
5925     }catch (const BossSchedFailure & e) {
5926     PyErr_SetString ( SchedulerError, e.what() );
5927     return NULL;
5928     }catch (const std::exception& e) {
5929     PyErr_SetString ( BossError, e.what() );
5930     return NULL;
5931     }
5932     }
5933     resultobj = result;
5934     return resultobj;
5935     fail:
5936     return NULL;
5937     }
5938    
5939    
5940     static PyObject *_wrap_BossTask_jobPrograms(PyObject *self, PyObject *args) {
5941     PyObject *resultobj;
5942     BossTask *arg1 = (BossTask *) 0 ;
5943     std::string *arg2 = 0 ;
5944     PyObject *result;
5945     std::string temp2 ;
5946     PyObject * obj0 = 0 ;
5947     PyObject * obj1 = 0 ;
5948    
5949     if(!PyArg_ParseTuple(args,(char *)"OO:BossTask_jobPrograms",&obj0,&obj1)) goto fail;
5950     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5951     {
5952     if (PyString_Check(obj1)) {
5953     temp2 = std::string(PyString_AsString(obj1));
5954     arg2 = &temp2;
5955     }else {
5956     SWIG_exception(SWIG_TypeError, "string expected");
5957     }
5958     }
5959     {
5960     try {
5961     result = (PyObject *)BossTask_jobPrograms((BossTask const *)arg1,(std::string const &)*arg2);
5962    
5963     }catch (const BossSchedFailure & e) {
5964     PyErr_SetString ( SchedulerError, e.what() );
5965     return NULL;
5966     }catch (const std::exception& e) {
5967     PyErr_SetString ( BossError, e.what() );
5968     return NULL;
5969     }
5970     }
5971     resultobj = result;
5972     return resultobj;
5973     fail:
5974     return NULL;
5975     }
5976    
5977    
5978 gcodispo 1.29 static PyObject *_wrap_BossTask_program(PyObject *self, PyObject *args) {
5979     PyObject *resultobj;
5980     BossTask *arg1 = (BossTask *) 0 ;
5981     std::string *arg2 = 0 ;
5982     std::string *arg3 = 0 ;
5983     PyObject *result;
5984     std::string temp2 ;
5985     std::string temp3 ;
5986     PyObject * obj0 = 0 ;
5987     PyObject * obj1 = 0 ;
5988     PyObject * obj2 = 0 ;
5989    
5990     if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_program",&obj0,&obj1,&obj2)) goto fail;
5991     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5992     {
5993     if (PyString_Check(obj1)) {
5994     temp2 = std::string(PyString_AsString(obj1));
5995     arg2 = &temp2;
5996     }else {
5997     SWIG_exception(SWIG_TypeError, "string expected");
5998     }
5999     }
6000     {
6001     if (PyString_Check(obj2)) {
6002     temp3 = std::string(PyString_AsString(obj2));
6003     arg3 = &temp3;
6004     }else {
6005     SWIG_exception(SWIG_TypeError, "string expected");
6006     }
6007     }
6008     {
6009     try {
6010     result = (PyObject *)BossTask_program(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
6011    
6012     }catch (const BossSchedFailure & e) {
6013     PyErr_SetString ( SchedulerError, e.what() );
6014     return NULL;
6015     }catch (const std::exception& e) {
6016     PyErr_SetString ( BossError, e.what() );
6017     return NULL;
6018     }
6019     }
6020     resultobj = result;
6021     return resultobj;
6022     fail:
6023     return NULL;
6024     }
6025    
6026    
6027     static PyObject *_wrap_BossTask_programExec(PyObject *self, PyObject *args) {
6028 gcodispo 1.28 PyObject *resultobj;
6029     BossTask *arg1 = (BossTask *) 0 ;
6030 gcodispo 1.29 std::string *arg2 = 0 ;
6031     std::string *arg3 = 0 ;
6032 gcodispo 1.28 PyObject *result;
6033 gcodispo 1.29 std::string temp2 ;
6034     std::string temp3 ;
6035 gcodispo 1.28 PyObject * obj0 = 0 ;
6036 gcodispo 1.29 PyObject * obj1 = 0 ;
6037     PyObject * obj2 = 0 ;
6038 gcodispo 1.28
6039 gcodispo 1.29 if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_programExec",&obj0,&obj1,&obj2)) goto fail;
6040 gcodispo 1.28 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6041     {
6042 gcodispo 1.29 if (PyString_Check(obj1)) {
6043     temp2 = std::string(PyString_AsString(obj1));
6044     arg2 = &temp2;
6045     }else {
6046     SWIG_exception(SWIG_TypeError, "string expected");
6047     }
6048     }
6049     {
6050     if (PyString_Check(obj2)) {
6051     temp3 = std::string(PyString_AsString(obj2));
6052     arg3 = &temp3;
6053     }else {
6054     SWIG_exception(SWIG_TypeError, "string expected");
6055     }
6056     }
6057     {
6058 gcodispo 1.28 try {
6059 gcodispo 1.29 result = (PyObject *)BossTask_programExec(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
6060 gcodispo 1.28
6061     }catch (const BossSchedFailure & e) {
6062     PyErr_SetString ( SchedulerError, e.what() );
6063     return NULL;
6064     }catch (const std::exception& e) {
6065     PyErr_SetString ( BossError, e.what() );
6066     return NULL;
6067     }
6068     }
6069     resultobj = result;
6070     return resultobj;
6071     fail:
6072     return NULL;
6073     }
6074    
6075    
6076 gcodispo 1.29 static PyObject *_wrap_BossTask_specific(PyObject *self, PyObject *args) {
6077 gcodispo 1.28 PyObject *resultobj;
6078     BossTask *arg1 = (BossTask *) 0 ;
6079 gcodispo 1.29 std::string *arg2 = 0 ;
6080     std::string *arg3 = 0 ;
6081 gcodispo 1.28 PyObject *result;
6082 gcodispo 1.29 std::string temp2 ;
6083     std::string temp3 ;
6084 gcodispo 1.28 PyObject * obj0 = 0 ;
6085 gcodispo 1.29 PyObject * obj1 = 0 ;
6086     PyObject * obj2 = 0 ;
6087 gcodispo 1.28
6088 gcodispo 1.29 if(!PyArg_ParseTuple(args,(char *)"OOO:BossTask_specific",&obj0,&obj1,&obj2)) goto fail;
6089 gcodispo 1.28 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossTask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6090     {
6091 gcodispo 1.29 if (PyString_Check(obj1)) {
6092     temp2 = std::string(PyString_AsString(obj1));
6093     arg2 = &temp2;
6094     }else {
6095     SWIG_exception(SWIG_TypeError, "string expected");
6096     }
6097     }
6098     {
6099     if (PyString_Check(obj2)) {
6100     temp3 = std::string(PyString_AsString(obj2));
6101     arg3 = &temp3;
6102     }else {
6103     SWIG_exception(SWIG_TypeError, "string expected");
6104     }
6105     }
6106     {
6107 gcodispo 1.28 try {
6108 gcodispo 1.29 result = (PyObject *)BossTask_specific(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
6109 gcodispo 1.28
6110     }catch (const BossSchedFailure & e) {
6111     PyErr_SetString ( SchedulerError, e.what() );
6112     return NULL;
6113     }catch (const std::exception& e) {
6114     PyErr_SetString ( BossError, e.what() );
6115     return NULL;
6116     }
6117     }
6118     resultobj = result;
6119     return resultobj;
6120     fail:
6121     return NULL;
6122     }
6123    
6124    
6125 gcodispo 1.10 static PyObject * BossTask_swigregister(PyObject *self, PyObject *args) {
6126     PyObject *obj;
6127     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6128     SWIG_TypeClientData(SWIGTYPE_p_BossTask, obj);
6129     Py_INCREF(obj);
6130     return Py_BuildValue((char *)"");
6131     }
6132     static PyObject *_wrap_new_BossAdministratorSession(PyObject *self, PyObject *args) {
6133     PyObject *resultobj;
6134     std::string arg1 = (std::string) "" ;
6135 gcodispo 1.16 std::string arg2 = (std::string) "2" ;
6136     std::string arg3 = (std::string) "" ;
6137 gcodispo 1.18 std::string arg4 = (std::string) "" ;
6138     bool arg5 = (bool) false ;
6139 gcodispo 1.10 BossAdministratorSession *result;
6140     PyObject * obj0 = 0 ;
6141     PyObject * obj1 = 0 ;
6142 gcodispo 1.16 PyObject * obj2 = 0 ;
6143     PyObject * obj3 = 0 ;
6144 gcodispo 1.18 PyObject * obj4 = 0 ;
6145 gcodispo 1.10
6146 gcodispo 1.18 if(!PyArg_ParseTuple(args,(char *)"|OOOOO:new_BossAdministratorSession",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6147 gcodispo 1.10 if (obj0) {
6148     {
6149     if (PyString_Check(obj0))
6150     arg1 = std::string(PyString_AsString(obj0));
6151     else
6152     SWIG_exception(SWIG_TypeError, "string expected");
6153     }
6154 gcodispo 1.3 }
6155 gcodispo 1.10 if (obj1) {
6156 gcodispo 1.16 {
6157     if (PyString_Check(obj1))
6158     arg2 = std::string(PyString_AsString(obj1));
6159     else
6160     SWIG_exception(SWIG_TypeError, "string expected");
6161     }
6162     }
6163     if (obj2) {
6164     {
6165     if (PyString_Check(obj2))
6166     arg3 = std::string(PyString_AsString(obj2));
6167     else
6168     SWIG_exception(SWIG_TypeError, "string expected");
6169     }
6170     }
6171     if (obj3) {
6172 gcodispo 1.18 {
6173     if (PyString_Check(obj3))
6174     arg4 = std::string(PyString_AsString(obj3));
6175     else
6176     SWIG_exception(SWIG_TypeError, "string expected");
6177     }
6178     }
6179     if (obj4) {
6180     arg5 = PyInt_AsLong(obj4) ? true : false;
6181 gcodispo 1.10 if (PyErr_Occurred()) SWIG_fail;
6182 gcodispo 1.3 }
6183 gcodispo 1.10 {
6184     try {
6185 gcodispo 1.18 result = (BossAdministratorSession *)new BossAdministratorSession(arg1,arg2,arg3,arg4,arg5);
6186 gcodispo 1.10
6187 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6188 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6189     return NULL;
6190 gcodispo 1.10 }catch (const std::exception& e) {
6191 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6192     return NULL;
6193 gcodispo 1.10 }
6194 gcodispo 1.3 }
6195 gcodispo 1.10 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_BossAdministratorSession, 1);
6196     return resultobj;
6197     fail:
6198     return NULL;
6199 yzhang 1.1 }
6200    
6201    
6202 gcodispo 1.10 static PyObject *_wrap_delete_BossAdministratorSession(PyObject *self, PyObject *args) {
6203     PyObject *resultobj;
6204     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6205     PyObject * obj0 = 0 ;
6206    
6207     if(!PyArg_ParseTuple(args,(char *)"O:delete_BossAdministratorSession",&obj0)) goto fail;
6208     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6209     {
6210     try {
6211     delete arg1;
6212    
6213 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6214 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6215     return NULL;
6216 gcodispo 1.10 }catch (const std::exception& e) {
6217 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6218     return NULL;
6219 gcodispo 1.10 }
6220 yzhang 1.1 }
6221 gcodispo 1.10 Py_INCREF(Py_None); resultobj = Py_None;
6222     return resultobj;
6223     fail:
6224     return NULL;
6225     }
6226    
6227    
6228     static PyObject *_wrap_BossAdministratorSession_configureDB(PyObject *self, PyObject *args) {
6229     PyObject *resultobj;
6230     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6231     int result;
6232     PyObject * obj0 = 0 ;
6233    
6234     if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_configureDB",&obj0)) goto fail;
6235     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6236     {
6237     try {
6238     result = (int)(arg1)->configureDB();
6239    
6240 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6241 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6242     return NULL;
6243 gcodispo 1.10 }catch (const std::exception& e) {
6244 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6245     return NULL;
6246 gcodispo 1.10 }
6247 gcodispo 1.3 }
6248 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6249     return resultobj;
6250     fail:
6251     return NULL;
6252 yzhang 1.1 }
6253    
6254    
6255 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_configureRTMonDB(PyObject *self, PyObject *args) {
6256     PyObject *resultobj;
6257     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6258     std::string *arg2 = 0 ;
6259     int result;
6260     std::string temp2 ;
6261     PyObject * obj0 = 0 ;
6262     PyObject * obj1 = 0 ;
6263    
6264     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_configureRTMonDB",&obj0,&obj1)) goto fail;
6265     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6266     {
6267     if (PyString_Check(obj1)) {
6268     temp2 = std::string(PyString_AsString(obj1));
6269     arg2 = &temp2;
6270     }else {
6271     SWIG_exception(SWIG_TypeError, "string expected");
6272     }
6273 gcodispo 1.3 }
6274 gcodispo 1.10 {
6275     try {
6276     result = (int)(arg1)->configureRTMonDB((std::string const &)*arg2);
6277    
6278 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6279 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6280     return NULL;
6281 gcodispo 1.10 }catch (const std::exception& e) {
6282 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6283     return NULL;
6284 gcodispo 1.10 }
6285 gcodispo 1.3 }
6286 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6287     return resultobj;
6288     fail:
6289     return NULL;
6290     }
6291    
6292    
6293     static PyObject *_wrap_BossAdministratorSession_deleteCHTool(PyObject *self, PyObject *args) {
6294     PyObject *resultobj;
6295     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6296     std::string *arg2 = 0 ;
6297     int result;
6298     std::string temp2 ;
6299     PyObject * obj0 = 0 ;
6300     PyObject * obj1 = 0 ;
6301    
6302     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteCHTool",&obj0,&obj1)) goto fail;
6303     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6304     {
6305     if (PyString_Check(obj1)) {
6306     temp2 = std::string(PyString_AsString(obj1));
6307     arg2 = &temp2;
6308     }else {
6309     SWIG_exception(SWIG_TypeError, "string expected");
6310     }
6311 gcodispo 1.3 }
6312 gcodispo 1.10 {
6313     try {
6314     result = (int)(arg1)->deleteCHTool((std::string const &)*arg2);
6315    
6316 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6317 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6318     return NULL;
6319 gcodispo 1.10 }catch (const std::exception& e) {
6320 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6321     return NULL;
6322 gcodispo 1.10 }
6323 gcodispo 1.3 }
6324 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6325     return resultobj;
6326     fail:
6327     return NULL;
6328 yzhang 1.1 }
6329    
6330    
6331 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteProgramType(PyObject *self, PyObject *args) {
6332     PyObject *resultobj;
6333     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6334     std::string *arg2 = 0 ;
6335     int result;
6336     std::string temp2 ;
6337     PyObject * obj0 = 0 ;
6338     PyObject * obj1 = 0 ;
6339    
6340     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteProgramType",&obj0,&obj1)) goto fail;
6341     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6342     {
6343     if (PyString_Check(obj1)) {
6344     temp2 = std::string(PyString_AsString(obj1));
6345     arg2 = &temp2;
6346     }else {
6347     SWIG_exception(SWIG_TypeError, "string expected");
6348     }
6349 gcodispo 1.9 }
6350 gcodispo 1.10 {
6351     try {
6352     result = (int)(arg1)->deleteProgramType((std::string const &)*arg2);
6353    
6354 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6355 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6356     return NULL;
6357 gcodispo 1.10 }catch (const std::exception& e) {
6358 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6359     return NULL;
6360 gcodispo 1.10 }
6361 gcodispo 1.9 }
6362 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6363     return resultobj;
6364     fail:
6365     return NULL;
6366 yzhang 1.1 }
6367    
6368    
6369 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteRTMon(PyObject *self, PyObject *args) {
6370     PyObject *resultobj;
6371     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6372     std::string *arg2 = 0 ;
6373     int result;
6374     std::string temp2 ;
6375     PyObject * obj0 = 0 ;
6376     PyObject * obj1 = 0 ;
6377    
6378     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteRTMon",&obj0,&obj1)) goto fail;
6379     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6380     {
6381     if (PyString_Check(obj1)) {
6382     temp2 = std::string(PyString_AsString(obj1));
6383     arg2 = &temp2;
6384     }else {
6385     SWIG_exception(SWIG_TypeError, "string expected");
6386     }
6387 yzhang 1.1 }
6388 gcodispo 1.10 {
6389     try {
6390     result = (int)(arg1)->deleteRTMon((std::string const &)*arg2);
6391    
6392 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6393 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6394     return NULL;
6395 gcodispo 1.10 }catch (const std::exception& e) {
6396 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6397     return NULL;
6398 gcodispo 1.10 }
6399 yzhang 1.1 }
6400 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6401     return resultobj;
6402     fail:
6403     return NULL;
6404 yzhang 1.1 }
6405    
6406    
6407 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_deleteScheduler(PyObject *self, PyObject *args) {
6408     PyObject *resultobj;
6409     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6410     std::string *arg2 = 0 ;
6411     int result;
6412     std::string temp2 ;
6413     PyObject * obj0 = 0 ;
6414     PyObject * obj1 = 0 ;
6415    
6416     if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_deleteScheduler",&obj0,&obj1)) goto fail;
6417     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6418     {
6419     if (PyString_Check(obj1)) {
6420     temp2 = std::string(PyString_AsString(obj1));
6421     arg2 = &temp2;
6422     }else {
6423     SWIG_exception(SWIG_TypeError, "string expected");
6424     }
6425 gcodispo 1.9 }
6426 gcodispo 1.10 {
6427     try {
6428     result = (int)(arg1)->deleteScheduler((std::string const &)*arg2);
6429    
6430 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6431 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6432     return NULL;
6433 gcodispo 1.10 }catch (const std::exception& e) {
6434 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6435     return NULL;
6436 gcodispo 1.10 }
6437 yzhang 1.1 }
6438 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6439     return resultobj;
6440     fail:
6441     return NULL;
6442 yzhang 1.1 }
6443    
6444    
6445 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerCHTool(PyObject *self, PyObject *args) {
6446     PyObject *resultobj;
6447     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6448     std::string *arg2 = 0 ;
6449     std::string arg3 = (std::string) "NULL" ;
6450     std::string arg4 = (std::string) "NULL" ;
6451     bool arg5 = (bool) false ;
6452     bool arg6 = (bool) false ;
6453     int result;
6454     std::string temp2 ;
6455     PyObject * obj0 = 0 ;
6456     PyObject * obj1 = 0 ;
6457     PyObject * obj2 = 0 ;
6458     PyObject * obj3 = 0 ;
6459     PyObject * obj4 = 0 ;
6460     PyObject * obj5 = 0 ;
6461    
6462     if(!PyArg_ParseTuple(args,(char *)"OO|OOOO:BossAdministratorSession_registerCHTool",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
6463     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6464     {
6465     if (PyString_Check(obj1)) {
6466     temp2 = std::string(PyString_AsString(obj1));
6467     arg2 = &temp2;
6468     }else {
6469     SWIG_exception(SWIG_TypeError, "string expected");
6470     }
6471 gcodispo 1.9 }
6472 gcodispo 1.10 if (obj2) {
6473     {
6474     if (PyString_Check(obj2))
6475     arg3 = std::string(PyString_AsString(obj2));
6476     else
6477     SWIG_exception(SWIG_TypeError, "string expected");
6478 yzhang 1.1 }
6479     }
6480 gcodispo 1.10 if (obj3) {
6481     {
6482     if (PyString_Check(obj3))
6483     arg4 = std::string(PyString_AsString(obj3));
6484     else
6485     SWIG_exception(SWIG_TypeError, "string expected");
6486 gcodispo 1.3 }
6487 yzhang 1.1 }
6488 gcodispo 1.10 if (obj4) {
6489     arg5 = PyInt_AsLong(obj4) ? true : false;
6490     if (PyErr_Occurred()) SWIG_fail;
6491 gcodispo 1.3 }
6492 gcodispo 1.10 if (obj5) {
6493     arg6 = PyInt_AsLong(obj5) ? true : false;
6494     if (PyErr_Occurred()) SWIG_fail;
6495 gcodispo 1.3 }
6496 gcodispo 1.10 {
6497     try {
6498     result = (int)(arg1)->registerCHTool((std::string const &)*arg2,arg3,arg4,arg5,arg6);
6499    
6500 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6501 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6502     return NULL;
6503 gcodispo 1.10 }catch (const std::exception& e) {
6504 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6505     return NULL;
6506 yzhang 1.1 }
6507     }
6508 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6509     return resultobj;
6510     fail:
6511     return NULL;
6512     }
6513    
6514    
6515     static PyObject *_wrap_BossAdministratorSession_registerProgram(PyObject *self, PyObject *args) {
6516     PyObject *resultobj;
6517     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6518     std::string *arg2 = 0 ;
6519     std::string arg3 = (std::string) "NULL" ;
6520     std::string arg4 = (std::string) "NULL" ;
6521     std::string arg5 = (std::string) "NULL" ;
6522     std::string arg6 = (std::string) "NULL" ;
6523     std::string arg7 = (std::string) "" ;
6524     bool arg8 = (bool) false ;
6525     int result;
6526     std::string temp2 ;
6527     PyObject * obj0 = 0 ;
6528     PyObject * obj1 = 0 ;
6529     PyObject * obj2 = 0 ;
6530     PyObject * obj3 = 0 ;
6531     PyObject * obj4 = 0 ;
6532     PyObject * obj5 = 0 ;
6533     PyObject * obj6 = 0 ;
6534     PyObject * obj7 = 0 ;
6535    
6536     if(!PyArg_ParseTuple(args,(char *)"OO|OOOOOO:BossAdministratorSession_registerProgram",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6537     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6538     {
6539     if (PyString_Check(obj1)) {
6540     temp2 = std::string(PyString_AsString(obj1));
6541     arg2 = &temp2;
6542     }else {
6543     SWIG_exception(SWIG_TypeError, "string expected");
6544 gcodispo 1.3 }
6545 yzhang 1.1 }
6546 gcodispo 1.10 if (obj2) {
6547     {
6548     if (PyString_Check(obj2))
6549     arg3 = std::string(PyString_AsString(obj2));
6550     else
6551     SWIG_exception(SWIG_TypeError, "string expected");
6552 gcodispo 1.3 }
6553     }
6554 gcodispo 1.10 if (obj3) {
6555     {
6556     if (PyString_Check(obj3))
6557     arg4 = std::string(PyString_AsString(obj3));
6558     else
6559     SWIG_exception(SWIG_TypeError, "string expected");
6560 gcodispo 1.3 }
6561     }
6562 gcodispo 1.10 if (obj4) {
6563     {
6564     if (PyString_Check(obj4))
6565     arg5 = std::string(PyString_AsString(obj4));
6566     else
6567     SWIG_exception(SWIG_TypeError, "string expected");
6568 gcodispo 1.3 }
6569     }
6570 gcodispo 1.10 if (obj5) {
6571     {
6572     if (PyString_Check(obj5))
6573     arg6 = std::string(PyString_AsString(obj5));
6574     else
6575     SWIG_exception(SWIG_TypeError, "string expected");
6576 gcodispo 1.3 }
6577     }
6578 gcodispo 1.10 if (obj6) {
6579     {
6580     if (PyString_Check(obj6))
6581     arg7 = std::string(PyString_AsString(obj6));
6582     else
6583     SWIG_exception(SWIG_TypeError, "string expected");
6584 gcodispo 1.3 }
6585     }
6586 gcodispo 1.10 if (obj7) {
6587     arg8 = PyInt_AsLong(obj7) ? true : false;
6588     if (PyErr_Occurred()) SWIG_fail;
6589 yzhang 1.1 }
6590 gcodispo 1.10 {
6591     try {
6592     result = (int)(arg1)->registerProgram((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8);
6593    
6594 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6595 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6596     return NULL;
6597 gcodispo 1.10 }catch (const std::exception& e) {
6598 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6599     return NULL;
6600 gcodispo 1.3 }
6601 yzhang 1.1 }
6602 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6603     return resultobj;
6604     fail:
6605     return NULL;
6606 yzhang 1.1 }
6607    
6608    
6609 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerRTMon(PyObject *self, PyObject *args) {
6610     PyObject *resultobj;
6611     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6612     std::string *arg2 = 0 ;
6613     std::string arg3 = (std::string) "NULL" ;
6614     std::string arg4 = (std::string) "NULL" ;
6615     std::string arg5 = (std::string) "NULL" ;
6616     bool arg6 = (bool) false ;
6617     bool arg7 = (bool) false ;
6618     int result;
6619     std::string temp2 ;
6620     PyObject * obj0 = 0 ;
6621     PyObject * obj1 = 0 ;
6622     PyObject * obj2 = 0 ;
6623     PyObject * obj3 = 0 ;
6624     PyObject * obj4 = 0 ;
6625     PyObject * obj5 = 0 ;
6626     PyObject * obj6 = 0 ;
6627    
6628     if(!PyArg_ParseTuple(args,(char *)"OO|OOOOO:BossAdministratorSession_registerRTMon",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
6629     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6630     {
6631     if (PyString_Check(obj1)) {
6632     temp2 = std::string(PyString_AsString(obj1));
6633     arg2 = &temp2;
6634     }else {
6635     SWIG_exception(SWIG_TypeError, "string expected");
6636     }
6637     }
6638     if (obj2) {
6639     {
6640     if (PyString_Check(obj2))
6641     arg3 = std::string(PyString_AsString(obj2));
6642     else
6643     SWIG_exception(SWIG_TypeError, "string expected");
6644     }
6645     }
6646     if (obj3) {
6647     {
6648     if (PyString_Check(obj3))
6649     arg4 = std::string(PyString_AsString(obj3));
6650     else
6651     SWIG_exception(SWIG_TypeError, "string expected");
6652     }
6653 gcodispo 1.3 }
6654 gcodispo 1.10 if (obj4) {
6655     {
6656     if (PyString_Check(obj4))
6657     arg5 = std::string(PyString_AsString(obj4));
6658     else
6659     SWIG_exception(SWIG_TypeError, "string expected");
6660     }
6661 gcodispo 1.3 }
6662 gcodispo 1.10 if (obj5) {
6663     arg6 = PyInt_AsLong(obj5) ? true : false;
6664     if (PyErr_Occurred()) SWIG_fail;
6665 gcodispo 1.3 }
6666 gcodispo 1.10 if (obj6) {
6667     arg7 = PyInt_AsLong(obj6) ? true : false;
6668     if (PyErr_Occurred()) SWIG_fail;
6669 yzhang 1.1 }
6670 gcodispo 1.10 {
6671     try {
6672     result = (int)(arg1)->registerRTMon((std::string const &)*arg2,arg3,arg4,arg5,arg6,arg7);
6673    
6674 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6675 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6676     return NULL;
6677 gcodispo 1.10 }catch (const std::exception& e) {
6678 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6679     return NULL;
6680 gcodispo 1.10 }
6681 yzhang 1.1 }
6682 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6683     return resultobj;
6684     fail:
6685     return NULL;
6686 yzhang 1.1 }
6687    
6688    
6689 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_registerScheduler(PyObject *self, PyObject *args) {
6690     PyObject *resultobj;
6691     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6692     std::string *arg2 = 0 ;
6693     std::string arg3 = (std::string) "NULL" ;
6694     std::string arg4 = (std::string) "NULL" ;
6695     std::string arg5 = (std::string) "NULL" ;
6696     std::string arg6 = (std::string) "NULL" ;
6697     std::string arg7 = (std::string) "" ;
6698     std::string arg8 = (std::string) "" ;
6699     std::string arg9 = (std::string) "" ;
6700     std::string arg10 = (std::string) "" ;
6701     std::string const &arg11_defvalue = "" ;
6702     std::string *arg11 = (std::string *) &arg11_defvalue ;
6703     std::string arg12 = (std::string) "" ;
6704     std::string arg13 = (std::string) "" ;
6705     bool arg14 = (bool) false ;
6706     bool arg15 = (bool) false ;
6707 gcodispo 1.15 bool arg16 = (bool) false ;
6708 gcodispo 1.16 bool arg17 = (bool) false ;
6709 gcodispo 1.10 int result;
6710     std::string temp2 ;
6711     std::string temp11 ;
6712     PyObject * obj0 = 0 ;
6713     PyObject * obj1 = 0 ;
6714     PyObject * obj2 = 0 ;
6715     PyObject * obj3 = 0 ;
6716     PyObject * obj4 = 0 ;
6717     PyObject * obj5 = 0 ;
6718     PyObject * obj6 = 0 ;
6719     PyObject * obj7 = 0 ;
6720     PyObject * obj8 = 0 ;
6721     PyObject * obj9 = 0 ;
6722     PyObject * obj10 = 0 ;
6723     PyObject * obj11 = 0 ;
6724     PyObject * obj12 = 0 ;
6725     PyObject * obj13 = 0 ;
6726     PyObject * obj14 = 0 ;
6727 gcodispo 1.15 PyObject * obj15 = 0 ;
6728 gcodispo 1.16 PyObject * obj16 = 0 ;
6729 gcodispo 1.10
6730 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;
6731 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6732     {
6733     if (PyString_Check(obj1)) {
6734     temp2 = std::string(PyString_AsString(obj1));
6735     arg2 = &temp2;
6736     }else {
6737     SWIG_exception(SWIG_TypeError, "string expected");
6738     }
6739     }
6740     if (obj2) {
6741     {
6742     if (PyString_Check(obj2))
6743     arg3 = std::string(PyString_AsString(obj2));
6744     else
6745     SWIG_exception(SWIG_TypeError, "string expected");
6746     }
6747     }
6748     if (obj3) {
6749     {
6750     if (PyString_Check(obj3))
6751     arg4 = std::string(PyString_AsString(obj3));
6752     else
6753     SWIG_exception(SWIG_TypeError, "string expected");
6754     }
6755     }
6756     if (obj4) {
6757     {
6758     if (PyString_Check(obj4))
6759     arg5 = std::string(PyString_AsString(obj4));
6760     else
6761     SWIG_exception(SWIG_TypeError, "string expected");
6762     }
6763 gcodispo 1.3 }
6764 gcodispo 1.10 if (obj5) {
6765 gcodispo 1.3 {
6766 gcodispo 1.10 if (PyString_Check(obj5))
6767     arg6 = std::string(PyString_AsString(obj5));
6768     else
6769     SWIG_exception(SWIG_TypeError, "string expected");
6770 gcodispo 1.3 }
6771 gcodispo 1.10 }
6772     if (obj6) {
6773     {
6774     if (PyString_Check(obj6))
6775     arg7 = std::string(PyString_AsString(obj6));
6776     else
6777     SWIG_exception(SWIG_TypeError, "string expected");
6778 gcodispo 1.3 }
6779     }
6780 gcodispo 1.10 if (obj7) {
6781     {
6782     if (PyString_Check(obj7))
6783     arg8 = std::string(PyString_AsString(obj7));
6784     else
6785     SWIG_exception(SWIG_TypeError, "string expected");
6786     }
6787 gcodispo 1.3 }
6788 gcodispo 1.10 if (obj8) {
6789     {
6790     if (PyString_Check(obj8))
6791     arg9 = std::string(PyString_AsString(obj8));
6792     else
6793     SWIG_exception(SWIG_TypeError, "string expected");
6794     }
6795 gcodispo 1.3 }
6796 gcodispo 1.10 if (obj9) {
6797     {
6798     if (PyString_Check(obj9))
6799     arg10 = std::string(PyString_AsString(obj9));
6800     else
6801     SWIG_exception(SWIG_TypeError, "string expected");
6802     }
6803 gcodispo 1.3 }
6804 gcodispo 1.10 if (obj10) {
6805     {
6806     if (PyString_Check(obj10)) {
6807     temp11 = std::string(PyString_AsString(obj10));
6808     arg11 = &temp11;
6809     }else {
6810     SWIG_exception(SWIG_TypeError, "string expected");
6811     }
6812     }
6813 gcodispo 1.3 }
6814 gcodispo 1.10 if (obj11) {
6815     {
6816     if (PyString_Check(obj11))
6817     arg12 = std::string(PyString_AsString(obj11));
6818     else
6819     SWIG_exception(SWIG_TypeError, "string expected");
6820     }
6821 gcodispo 1.3 }
6822 gcodispo 1.10 if (obj12) {
6823     {
6824     if (PyString_Check(obj12))
6825     arg13 = std::string(PyString_AsString(obj12));
6826     else
6827     SWIG_exception(SWIG_TypeError, "string expected");
6828     }
6829 gcodispo 1.3 }
6830 gcodispo 1.10 if (obj13) {
6831     arg14 = PyInt_AsLong(obj13) ? true : false;
6832     if (PyErr_Occurred()) SWIG_fail;
6833 gcodispo 1.3 }
6834 gcodispo 1.10 if (obj14) {
6835     arg15 = PyInt_AsLong(obj14) ? true : false;
6836     if (PyErr_Occurred()) SWIG_fail;
6837 gcodispo 1.3 }
6838 gcodispo 1.15 if (obj15) {
6839     arg16 = PyInt_AsLong(obj15) ? true : false;
6840     if (PyErr_Occurred()) SWIG_fail;
6841     }
6842 gcodispo 1.16 if (obj16) {
6843     arg17 = PyInt_AsLong(obj16) ? true : false;
6844     if (PyErr_Occurred()) SWIG_fail;
6845     }
6846 gcodispo 1.10 {
6847     try {
6848 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);
6849 gcodispo 1.10
6850 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6851 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6852     return NULL;
6853 gcodispo 1.10 }catch (const std::exception& e) {
6854 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6855     return NULL;
6856 gcodispo 1.10 }
6857 yzhang 1.1 }
6858 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
6859     return resultobj;
6860     fail:
6861     return NULL;
6862 yzhang 1.1 }
6863    
6864    
6865 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_help(PyObject *self, PyObject *args) {
6866     PyObject *resultobj;
6867     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6868     std::string result;
6869     PyObject * obj0 = 0 ;
6870    
6871     if(!PyArg_ParseTuple(args,(char *)"O:BossAdministratorSession_help",&obj0)) goto fail;
6872     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6873     {
6874     try {
6875     result = (arg1)->help();
6876    
6877 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6878 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6879     return NULL;
6880 gcodispo 1.10 }catch (const std::exception& e) {
6881 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6882     return NULL;
6883 gcodispo 1.10 }
6884 gcodispo 1.9 }
6885 gcodispo 1.10 {
6886     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
6887 yzhang 1.1 }
6888 gcodispo 1.10 return resultobj;
6889     fail:
6890     return NULL;
6891     }
6892    
6893    
6894     static PyObject *_wrap_BossAdministratorSession_SQL(PyObject *self, PyObject *args) {
6895     PyObject *resultobj;
6896     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6897     std::string arg2 ;
6898     bool arg3 = (bool) false ;
6899     std::string result;
6900     PyObject * obj0 = 0 ;
6901     PyObject * obj1 = 0 ;
6902     PyObject * obj2 = 0 ;
6903    
6904     if(!PyArg_ParseTuple(args,(char *)"OO|O:BossAdministratorSession_SQL",&obj0,&obj1,&obj2)) goto fail;
6905     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6906     {
6907     if (PyString_Check(obj1))
6908     arg2 = std::string(PyString_AsString(obj1));
6909     else
6910     SWIG_exception(SWIG_TypeError, "string expected");
6911 yzhang 1.1 }
6912 gcodispo 1.10 if (obj2) {
6913     arg3 = PyInt_AsLong(obj2) ? true : false;
6914     if (PyErr_Occurred()) SWIG_fail;
6915 gcodispo 1.3 }
6916 gcodispo 1.10 {
6917     try {
6918     result = (arg1)->SQL(arg2,arg3);
6919    
6920 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6921 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6922     return NULL;
6923 gcodispo 1.10 }catch (const std::exception& e) {
6924 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
6925     return NULL;
6926 gcodispo 1.10 }
6927 gcodispo 1.3 }
6928 gcodispo 1.10 {
6929     resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
6930 yzhang 1.1 }
6931 gcodispo 1.10 return resultobj;
6932     fail:
6933     return NULL;
6934 yzhang 1.1 }
6935    
6936    
6937 gcodispo 1.10 static PyObject *_wrap_BossAdministratorSession_purge(PyObject *self, PyObject *args) {
6938     PyObject *resultobj;
6939     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
6940     std::string *arg2 = 0 ;
6941     std::string *arg3 = 0 ;
6942     std::string *arg4 = 0 ;
6943     std::string const &arg5_defvalue = "0" ;
6944     std::string *arg5 = (std::string *) &arg5_defvalue ;
6945     int result;
6946     std::string temp2 ;
6947     std::string temp3 ;
6948     std::string temp4 ;
6949     std::string temp5 ;
6950     PyObject * obj0 = 0 ;
6951     PyObject * obj1 = 0 ;
6952     PyObject * obj2 = 0 ;
6953     PyObject * obj3 = 0 ;
6954     PyObject * obj4 = 0 ;
6955    
6956     if(!PyArg_ParseTuple(args,(char *)"OOOO|O:BossAdministratorSession_purge",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
6957     if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6958     {
6959     if (PyString_Check(obj1)) {
6960     temp2 = std::string(PyString_AsString(obj1));
6961     arg2 = &temp2;
6962     }else {
6963     SWIG_exception(SWIG_TypeError, "string expected");
6964     }
6965     }
6966     {
6967     if (PyString_Check(obj2)) {
6968     temp3 = std::string(PyString_AsString(obj2));
6969     arg3 = &temp3;
6970     }else {
6971     SWIG_exception(SWIG_TypeError, "string expected");
6972     }
6973     }
6974     {
6975     if (PyString_Check(obj3)) {
6976     temp4 = std::string(PyString_AsString(obj3));
6977     arg4 = &temp4;
6978     }else {
6979     SWIG_exception(SWIG_TypeError, "string expected");
6980 gcodispo 1.5 }
6981     }
6982 gcodispo 1.10 if (obj4) {
6983     {
6984     if (PyString_Check(obj4)) {
6985     temp5 = std::string(PyString_AsString(obj4));
6986     arg5 = &temp5;
6987     }else {
6988     SWIG_exception(SWIG_TypeError, "string expected");
6989 gcodispo 1.9 }
6990 gcodispo 1.5 }
6991     }
6992 gcodispo 1.10 {
6993     try {
6994     result = (int)(arg1)->purge((std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5);
6995    
6996 gcodispo 1.17 }catch (const BossSchedFailure & e) {
6997 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
6998     return NULL;
6999 gcodispo 1.10 }catch (const std::exception& e) {
7000 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
7001     return NULL;
7002 gcodispo 1.10 }
7003     }
7004     resultobj = PyInt_FromLong((long)result);
7005     return resultobj;
7006     fail:
7007     return NULL;
7008 gcodispo 1.9 }
7009    
7010    
7011 gcodispo 1.11 static PyObject *_wrap_BossAdministratorSession_registerPlugins(PyObject *self, PyObject *args) {
7012 gcodispo 1.10 PyObject *resultobj;
7013     BossAdministratorSession *arg1 = (BossAdministratorSession *) 0 ;
7014     std::string arg2 ;
7015     int result;
7016     PyObject * obj0 = 0 ;
7017     PyObject * obj1 = 0 ;
7018    
7019 gcodispo 1.11 if(!PyArg_ParseTuple(args,(char *)"OO:BossAdministratorSession_registerPlugins",&obj0,&obj1)) goto fail;
7020 gcodispo 1.10 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossAdministratorSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7021     {
7022     if (PyString_Check(obj1))
7023     arg2 = std::string(PyString_AsString(obj1));
7024     else
7025     SWIG_exception(SWIG_TypeError, "string expected");
7026 gcodispo 1.5 }
7027 gcodispo 1.10 {
7028     try {
7029 gcodispo 1.11 result = (int)(arg1)->registerPlugins(arg2);
7030 gcodispo 1.10
7031 gcodispo 1.17 }catch (const BossSchedFailure & e) {
7032 gcodispo 1.19 PyErr_SetString ( SchedulerError, e.what() );
7033     return NULL;
7034 gcodispo 1.10 }catch (const std::exception& e) {
7035 gcodispo 1.19 PyErr_SetString ( BossError, e.what() );
7036     return NULL;
7037 gcodispo 1.10 }
7038 gcodispo 1.3 }
7039 gcodispo 1.10 resultobj = PyInt_FromLong((long)result);
7040     return resultobj;
7041     fail:
7042     return NULL;
7043 yzhang 1.1 }
7044    
7045    
7046 gcodispo 1.10 static PyObject * BossAdministratorSession_swigregister(PyObject *self, PyObject *args) {
7047     PyObject *obj;
7048     if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7049     SWIG_TypeClientData(SWIGTYPE_p_BossAdministratorSession, obj);
7050     Py_INCREF(obj);
7051     return Py_BuildValue((char *)"");
7052 yzhang 1.1 }
7053     static PyMethodDef SwigMethods[] = {
7054 gcodispo 1.10 { (char *)"new_objectMap", _wrap_new_objectMap, METH_VARARGS },
7055     { (char *)"objectMap___len__", _wrap_objectMap___len__, METH_VARARGS },
7056     { (char *)"objectMap_clear", _wrap_objectMap_clear, METH_VARARGS },
7057     { (char *)"objectMap___nonzero__", _wrap_objectMap___nonzero__, METH_VARARGS },
7058     { (char *)"objectMap___getitem__", _wrap_objectMap___getitem__, METH_VARARGS },
7059     { (char *)"objectMap___setitem__", _wrap_objectMap___setitem__, METH_VARARGS },
7060     { (char *)"objectMap___delitem__", _wrap_objectMap___delitem__, METH_VARARGS },
7061     { (char *)"objectMap_has_key", _wrap_objectMap_has_key, METH_VARARGS },
7062     { (char *)"objectMap_keys", _wrap_objectMap_keys, METH_VARARGS },
7063     { (char *)"objectMap_values", _wrap_objectMap_values, METH_VARARGS },
7064     { (char *)"objectMap_items", _wrap_objectMap_items, METH_VARARGS },
7065     { (char *)"objectMap___contains__", _wrap_objectMap___contains__, METH_VARARGS },
7066     { (char *)"objectMap___iter__", _wrap_objectMap___iter__, METH_VARARGS },
7067     { (char *)"delete_objectMap", _wrap_delete_objectMap, METH_VARARGS },
7068     { (char *)"objectMap_swigregister", objectMap_swigregister, METH_VARARGS },
7069     { (char *)"new_vector_string", _wrap_new_vector_string, METH_VARARGS },
7070     { (char *)"vector_string___len__", _wrap_vector_string___len__, METH_VARARGS },
7071     { (char *)"vector_string___nonzero__", _wrap_vector_string___nonzero__, METH_VARARGS },
7072     { (char *)"vector_string_clear", _wrap_vector_string_clear, METH_VARARGS },
7073     { (char *)"vector_string_append", _wrap_vector_string_append, METH_VARARGS },
7074     { (char *)"vector_string_pop", _wrap_vector_string_pop, METH_VARARGS },
7075     { (char *)"vector_string___getitem__", _wrap_vector_string___getitem__, METH_VARARGS },
7076     { (char *)"vector_string___getslice__", _wrap_vector_string___getslice__, METH_VARARGS },
7077     { (char *)"vector_string___setitem__", _wrap_vector_string___setitem__, METH_VARARGS },
7078     { (char *)"vector_string___setslice__", _wrap_vector_string___setslice__, METH_VARARGS },
7079     { (char *)"vector_string___delitem__", _wrap_vector_string___delitem__, METH_VARARGS },
7080     { (char *)"vector_string___delslice__", _wrap_vector_string___delslice__, METH_VARARGS },
7081     { (char *)"delete_vector_string", _wrap_delete_vector_string, METH_VARARGS },
7082     { (char *)"vector_string_swigregister", vector_string_swigregister, METH_VARARGS },
7083     { (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS },
7084     { (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS },
7085 gcodispo 1.13 { (char *)"BossSession_resetDB", _wrap_BossSession_resetDB, METH_VARARGS },
7086 gcodispo 1.10 { (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS },
7087     { (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS },
7088     { (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS },
7089 gcodispo 1.19 { (char *)"BossSession_showCHTools", _wrap_BossSession_showCHTools, METH_VARARGS },
7090     { (char *)"BossSession_showProgramTypes", _wrap_BossSession_showProgramTypes, METH_VARARGS },
7091     { (char *)"BossSession_showRTMon", _wrap_BossSession_showRTMon, METH_VARARGS },
7092     { (char *)"BossSession_showSchedulers", _wrap_BossSession_showSchedulers, METH_VARARGS },
7093 gcodispo 1.10 { (char *)"BossSession_defaultCHTool", _wrap_BossSession_defaultCHTool, METH_VARARGS },
7094     { (char *)"BossSession_defaultProgramType", _wrap_BossSession_defaultProgramType, METH_VARARGS },
7095     { (char *)"BossSession_defaultRTMon", _wrap_BossSession_defaultRTMon, METH_VARARGS },
7096     { (char *)"BossSession_defaultScheduler", _wrap_BossSession_defaultScheduler, METH_VARARGS },
7097     { (char *)"BossSession_version", _wrap_BossSession_version, METH_VARARGS },
7098     { (char *)"BossSession_clientID", _wrap_BossSession_clientID, METH_VARARGS },
7099     { (char *)"BossSession_showConfigs", _wrap_BossSession_showConfigs, METH_VARARGS },
7100     { (char *)"BossSession_RTupdate", _wrap_BossSession_RTupdate, METH_VARARGS },
7101     { (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS },
7102     { (char *)"BossSession_query", _wrap_BossSession_query, METH_VARARGS },
7103 gcodispo 1.26 { (char *)"BossSession_getTasksByName", _wrap_BossSession_getTasksByName, METH_VARARGS },
7104 gcodispo 1.34 { (char *)"BossSession_getTasksByTaskInfo", _wrap_BossSession_getTasksByTaskInfo, METH_VARARGS },
7105 gcodispo 1.32 { (char *)"BossSession_getTasksByJobName", _wrap_BossSession_getTasksByJobName, METH_VARARGS },
7106 gcodispo 1.34 { (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS },
7107     { (char *)"BossSession_selectTasksByName", _wrap_BossSession_selectTasksByName, METH_VARARGS },
7108     { (char *)"BossSession_selectTasksByTaskInfo", _wrap_BossSession_selectTasksByTaskInfo, METH_VARARGS },
7109 gcodispo 1.32 { (char *)"BossSession_tasksInMemory", _wrap_BossSession_tasksInMemory, METH_VARARGS },
7110     { (char *)"BossSession_locate", _wrap_BossSession_locate, METH_VARARGS },
7111 gcodispo 1.19 { (char *)"BossSession_show", _wrap_BossSession_show, METH_VARARGS },
7112     { (char *)"BossSession_CHTools", _wrap_BossSession_CHTools, METH_VARARGS },
7113     { (char *)"BossSession_ProgramTypes", _wrap_BossSession_ProgramTypes, METH_VARARGS },
7114     { (char *)"BossSession_RTMons", _wrap_BossSession_RTMons, METH_VARARGS },
7115     { (char *)"BossSession_schedulers", _wrap_BossSession_schedulers, METH_VARARGS },
7116     { (char *)"BossSession_schedListMatch", _wrap_BossSession_schedListMatch, METH_VARARGS },
7117 gcodispo 1.34 { (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS },
7118 gcodispo 1.10 { (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS },
7119     { (char *)"new_BossTaskException", _wrap_new_BossTaskException, METH_VARARGS },
7120     { (char *)"delete_BossTaskException", _wrap_delete_BossTaskException, METH_VARARGS },
7121     { (char *)"BossTaskException_swigregister", BossTaskException_swigregister, METH_VARARGS },
7122 gcodispo 1.29 { (char *)"BossTask_job_begin", _wrap_BossTask_job_begin, METH_VARARGS },
7123     { (char *)"BossTask_job_end", _wrap_BossTask_job_end, METH_VARARGS },
7124 gcodispo 1.34 { (char *)"BossTask_jobsInMemory", _wrap_BossTask_jobsInMemory, METH_VARARGS },
7125 gcodispo 1.29 { (char *)"BossTask_queryJobPrograms", _wrap_BossTask_queryJobPrograms, METH_VARARGS },
7126     { (char *)"BossTask_queryProgram", _wrap_BossTask_queryProgram, METH_VARARGS },
7127     { (char *)"BossTask_queryProgramExec", _wrap_BossTask_queryProgramExec, METH_VARARGS },
7128 gcodispo 1.10 { (char *)"delete_BossTask", _wrap_delete_BossTask, METH_VARARGS },
7129     { (char *)"new_BossTask", _wrap_new_BossTask, METH_VARARGS },
7130     { (char *)"BossTask_id", _wrap_BossTask_id, METH_VARARGS },
7131     { (char *)"BossTask_name", _wrap_BossTask_name, METH_VARARGS },
7132 gcodispo 1.30 { (char *)"BossTask_chain", _wrap_BossTask_chain, METH_VARARGS },
7133 gcodispo 1.10 { (char *)"BossTask_taskMap", _wrap_BossTask_taskMap, METH_VARARGS },
7134     { (char *)"BossTask_jobsMap", _wrap_BossTask_jobsMap, METH_VARARGS },
7135     { (char *)"BossTask_jobMap", _wrap_BossTask_jobMap, METH_VARARGS },
7136     { (char *)"BossTask_programsMap", _wrap_BossTask_programsMap, METH_VARARGS },
7137     { (char *)"BossTask_declare", _wrap_BossTask_declare, METH_VARARGS },
7138     { (char *)"BossTask_remove", _wrap_BossTask_remove, METH_VARARGS },
7139     { (char *)"BossTask_archive", _wrap_BossTask_archive, METH_VARARGS },
7140     { (char *)"BossTask_submit", _wrap_BossTask_submit, METH_VARARGS },
7141     { (char *)"BossTask_reSubmit", _wrap_BossTask_reSubmit, METH_VARARGS },
7142     { (char *)"BossTask_kill", _wrap_BossTask_kill, METH_VARARGS },
7143     { (char *)"BossTask_getOutput", _wrap_BossTask_getOutput, METH_VARARGS },
7144 gcodispo 1.26 { (char *)"BossTask_loadByName", _wrap_BossTask_loadByName, METH_VARARGS },
7145 gcodispo 1.12 { (char *)"BossTask_load", _wrap_BossTask_load, METH_VARARGS },
7146 gcodispo 1.30 { (char *)"BossTask_schedulerQuery", _wrap_BossTask_schedulerQuery, METH_VARARGS },
7147 gcodispo 1.10 { (char *)"BossTask_query", _wrap_BossTask_query, METH_VARARGS },
7148     { (char *)"BossTask_query_out", _wrap_BossTask_query_out, METH_VARARGS },
7149     { (char *)"BossTask_clear", _wrap_BossTask_clear, METH_VARARGS },
7150 gcodispo 1.19 { (char *)"BossTask_appendToPyDict", _wrap_BossTask_appendToPyDict, METH_VARARGS },
7151     { (char *)"BossTask_jobDict", _wrap_BossTask_jobDict, METH_VARARGS },
7152     { (char *)"BossTask_jobsDict", _wrap_BossTask_jobsDict, METH_VARARGS },
7153 gcodispo 1.29 { (char *)"BossTask_job", _wrap_BossTask_job, METH_VARARGS },
7154 gcodispo 1.30 { (char *)"BossTask_Chain", _wrap_BossTask_Chain, METH_VARARGS },
7155 gcodispo 1.29 { (char *)"BossTask_jobStates", _wrap_BossTask_jobStates, METH_VARARGS },
7156 gcodispo 1.34 { (char *)"BossTask_joblist", _wrap_BossTask_joblist, METH_VARARGS },
7157 gcodispo 1.29 { (char *)"BossTask_jobStatistic", _wrap_BossTask_jobStatistic, METH_VARARGS },
7158 gcodispo 1.19 { (char *)"BossTask_progDict", _wrap_BossTask_progDict, METH_VARARGS },
7159     { (char *)"BossTask_jobPrograms", _wrap_BossTask_jobPrograms, METH_VARARGS },
7160 gcodispo 1.29 { (char *)"BossTask_program", _wrap_BossTask_program, METH_VARARGS },
7161     { (char *)"BossTask_programExec", _wrap_BossTask_programExec, METH_VARARGS },
7162     { (char *)"BossTask_specific", _wrap_BossTask_specific, METH_VARARGS },
7163 gcodispo 1.10 { (char *)"BossTask_swigregister", BossTask_swigregister, METH_VARARGS },
7164     { (char *)"new_BossAdministratorSession", _wrap_new_BossAdministratorSession, METH_VARARGS },
7165     { (char *)"delete_BossAdministratorSession", _wrap_delete_BossAdministratorSession, METH_VARARGS },
7166     { (char *)"BossAdministratorSession_configureDB", _wrap_BossAdministratorSession_configureDB, METH_VARARGS },
7167     { (char *)"BossAdministratorSession_configureRTMonDB", _wrap_BossAdministratorSession_configureRTMonDB, METH_VARARGS },
7168     { (char *)"BossAdministratorSession_deleteCHTool", _wrap_BossAdministratorSession_deleteCHTool, METH_VARARGS },
7169     { (char *)"BossAdministratorSession_deleteProgramType", _wrap_BossAdministratorSession_deleteProgramType, METH_VARARGS },
7170     { (char *)"BossAdministratorSession_deleteRTMon", _wrap_BossAdministratorSession_deleteRTMon, METH_VARARGS },
7171     { (char *)"BossAdministratorSession_deleteScheduler", _wrap_BossAdministratorSession_deleteScheduler, METH_VARARGS },
7172     { (char *)"BossAdministratorSession_registerCHTool", _wrap_BossAdministratorSession_registerCHTool, METH_VARARGS },
7173     { (char *)"BossAdministratorSession_registerProgram", _wrap_BossAdministratorSession_registerProgram, METH_VARARGS },
7174     { (char *)"BossAdministratorSession_registerRTMon", _wrap_BossAdministratorSession_registerRTMon, METH_VARARGS },
7175     { (char *)"BossAdministratorSession_registerScheduler", _wrap_BossAdministratorSession_registerScheduler, METH_VARARGS },
7176     { (char *)"BossAdministratorSession_help", _wrap_BossAdministratorSession_help, METH_VARARGS },
7177     { (char *)"BossAdministratorSession_SQL", _wrap_BossAdministratorSession_SQL, METH_VARARGS },
7178     { (char *)"BossAdministratorSession_purge", _wrap_BossAdministratorSession_purge, METH_VARARGS },
7179 gcodispo 1.11 { (char *)"BossAdministratorSession_registerPlugins", _wrap_BossAdministratorSession_registerPlugins, METH_VARARGS },
7180 gcodispo 1.10 { (char *)"BossAdministratorSession_swigregister", BossAdministratorSession_swigregister, METH_VARARGS },
7181     { NULL, NULL }
7182 yzhang 1.1 };
7183    
7184    
7185     /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
7186    
7187 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}};
7188 gcodispo 1.19 static swig_type_info _swigt__p_XMLDoc[] = {{"_p_XMLDoc", 0, "XMLDoc *", 0},{"_p_XMLDoc"},{0}};
7189 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}};
7190 gcodispo 1.29 static swig_type_info _swigt__p_BossProgramExec[] = {{"_p_BossProgramExec", 0, "BossProgramExec *", 0},{"_p_BossProgramExec"},{0}};
7191 gcodispo 1.30 static swig_type_info _swigt__p_BossChain[] = {{"_p_BossChain", 0, "BossChain *", 0},{"_p_BossChain"},{0}};
7192 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}};
7193     static swig_type_info _swigt__p_BossTask[] = {{"_p_BossTask", 0, "BossTask *", 0},{"_p_BossTask"},{0}};
7194     static swig_type_info _swigt__p_BossTaskException[] = {{"_p_BossTaskException", 0, "BossTaskException *", 0},{"_p_BossTaskException"},{0}};
7195 gcodispo 1.29 static swig_type_info _swigt__p_std__ostream[] = {{"_p_std__ostream", 0, "std::ostream *", 0},{"_p_std__ostream"},{0}};
7196     static swig_type_info _swigt__p_BossProgram[] = {{"_p_BossProgram", 0, "BossProgram *", 0},{"_p_BossProgram"},{0}};
7197 gcodispo 1.19 static swig_type_info _swigt__p_printOption[] = {{"_p_printOption", 0, "printOption const &", 0},{"_p_printOption"},{0}};
7198 gcodispo 1.10 static swig_type_info _swigt__p_BossAttributeContainer[] = {{"_p_BossAttributeContainer", 0, "BossAttributeContainer *", 0},{"_p_BossAttributeContainer"},{0}};
7199     static swig_type_info _swigt__p_BossJob[] = {{"_p_BossJob", 0, "BossJob *", 0},{"_p_BossJob"},{0}};
7200     static swig_type_info _swigt__p_BossDatabase[] = {{"_p_BossDatabase", 0, "BossDatabase *", 0},{"_p_BossDatabase"},{0}};
7201     static swig_type_info _swigt__p_BossSession[] = {{"_p_BossSession", 0, "BossSession *", 0},{"_p_BossSession"},{0}};
7202     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}};
7203     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}};
7204     static swig_type_info _swigt__p_BossAdministratorSession[] = {{"_p_BossAdministratorSession", 0, "BossAdministratorSession *", 0},{"_p_BossAdministratorSession"},{0}};
7205 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}};
7206 gcodispo 1.30 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}};
7207 gcodispo 1.10 static swig_type_info _swigt__p_jobStates[] = {{"_p_jobStates", 0, "jobStates const &", 0},{"_p_jobStates"},{0}};
7208    
7209     static swig_type_info *swig_types_initial[] = {
7210 gcodispo 1.29 _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t,
7211 gcodispo 1.19 _swigt__p_XMLDoc,
7212 gcodispo 1.10 _swigt__p_std__vectorTstd__pairTBossProgram_BossProgramExec_t_t__const_iterator,
7213 gcodispo 1.29 _swigt__p_BossProgramExec,
7214 gcodispo 1.30 _swigt__p_BossChain,
7215 gcodispo 1.10 _swigt__p_std__mapTstd__string_std__mapTstd__string_std__string_t_t,
7216     _swigt__p_BossTask,
7217     _swigt__p_BossTaskException,
7218 gcodispo 1.29 _swigt__p_std__ostream,
7219     _swigt__p_BossProgram,
7220 gcodispo 1.19 _swigt__p_printOption,
7221 gcodispo 1.10 _swigt__p_BossAttributeContainer,
7222     _swigt__p_BossJob,
7223     _swigt__p_BossDatabase,
7224     _swigt__p_BossSession,
7225     _swigt__p_std__vectorTstd__string_t,
7226     _swigt__p_std__mapTstd__string_std__string_t,
7227     _swigt__p_BossAdministratorSession,
7228 gcodispo 1.34 _swigt__p_std__vectorTBossJob_p_t__const_iterator,
7229 gcodispo 1.30 _swigt__p_BossTask__job_iterator,
7230 gcodispo 1.10 _swigt__p_jobStates,
7231     0
7232 yzhang 1.1 };
7233    
7234    
7235     /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
7236    
7237     static swig_const_info swig_const_table[] = {
7238 gcodispo 1.10 { SWIG_PY_INT, (char *)"RUNNING", (long) RUNNING, 0, 0, 0},
7239     { SWIG_PY_INT, (char *)"SCHEDULED", (long) SCHEDULED, 0, 0, 0},
7240     { SWIG_PY_INT, (char *)"SUBMITTED", (long) SUBMITTED, 0, 0, 0},
7241     { SWIG_PY_INT, (char *)"ALL", (long) ALL, 0, 0, 0},
7242     { SWIG_PY_INT, (char *)"STATUS_ONLY", (long) STATUS_ONLY, 0, 0, 0},
7243     { SWIG_PY_INT, (char *)"NORMAL", (long) NORMAL, 0, 0, 0},
7244     { SWIG_PY_INT, (char *)"SPECIFIC", (long) SPECIFIC, 0, 0, 0},
7245     { SWIG_PY_INT, (char *)"PROGRAMS", (long) PROGRAMS, 0, 0, 0},
7246     { SWIG_PY_INT, (char *)"FULL", (long) FULL, 0, 0, 0},
7247     {0}};
7248 yzhang 1.1
7249     #ifdef __cplusplus
7250     }
7251     #endif
7252    
7253     #ifdef __cplusplus
7254 gcodispo 1.10 extern "C"
7255 gcodispo 1.9 #endif
7256 gcodispo 1.10 SWIGEXPORT(void) SWIG_init(void) {
7257     static PyObject *SWIG_globals = 0;
7258     static int typeinit = 0;
7259     PyObject *m, *d;
7260     int i;
7261     if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
7262     m = Py_InitModule((char *) SWIG_name, SwigMethods);
7263     d = PyModule_GetDict(m);
7264 gcodispo 1.9
7265 gcodispo 1.10 if (!typeinit) {
7266     for (i = 0; swig_types_initial[i]; i++) {
7267     swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
7268     }
7269     typeinit = 1;
7270 gcodispo 1.9 }
7271 gcodispo 1.10 SWIG_InstallConstants(d,swig_const_table);
7272 yzhang 1.1
7273 gcodispo 1.19
7274     // define custom exceptions
7275     PyObject *e;
7276 gcodispo 1.20 PyMethodDef tp_methods = {
7277     NULL, NULL, 0, NULL
7278     };
7279     e = Py_InitModule("BossSession", &tp_methods);
7280 gcodispo 1.19 // generic BOSS exception
7281     BossError = PyErr_NewException("BossSession.BossError", NULL, NULL);
7282     Py_INCREF(BossError);
7283     PyModule_AddObject(e, "BossError", BossError);
7284     // scheduler interaction BOSS exception
7285     SchedulerError = PyErr_NewException("BossSession.BossError.SchedulerError", BossError, NULL);
7286     Py_INCREF(SchedulerError);
7287     PyModule_AddObject(e, "SchedulerError", SchedulerError);
7288    
7289 yzhang 1.1 }
7290