ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
Revision: 1.33
Committed: Fri Jun 8 15:49:19 2007 UTC (17 years, 10 months ago) by gcodispo
Content type: text/plain
Branch: MAIN
CVS Tags: BOSS_4_3_5
Changes since 1.32: +18 -31 lines
Log Message:
Removed useless option leaving tmp files in the work directory (eventual dump in the logfile)

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