ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
Revision: 1.29
Committed: Fri Mar 9 15:40:00 2007 UTC (18 years, 1 month ago) by gcodispo
Content type: text/plain
Branch: MAIN
CVS Tags: BOSS_4_3_2
Changes since 1.28: +497 -163 lines
Log Message:
Added methods to make easier access to program level info and runtime info

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