ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/BOSS/BossPython/BossSession_wrap.cxx
(Generate patch)

Comparing COMP/BOSS/BossPython/BossSession_wrap.cxx (file contents):
Revision 1.5 by gcodispo, Thu Oct 26 13:43:42 2006 UTC vs.
Revision 1.6 by gcodispo, Fri Oct 27 12:45:31 2006 UTC

# Line 889 | Line 889 | PyObject *BossSession_showSchedulers__SW
889      return BossSession_show( self, my_vec );
890    }
891   PyObject *BossSession_queryTasks(BossSession *self,int filter_opt,std::string const &taskRange,std::string const &jobRange,std::string const &subn,std::string type,std::string user,std::string after,std::string before,bool avoidCheck){
892 <       self->jobQuery ( filter_opt, taskRange, jobRange, subn,
893 <                        type, user, after, before, avoidCheck);
892 >       if ( !avoidCheck ) {
893 >         self->schedulerQuery ( filter_opt, taskRange, jobRange, subn,
894 >                                type, user, after, before);
895 >       }
896         PyObject * job_dict = PyList_New(0);
897         std::vector <std::string>
898           taskList = self->selectTasks( taskRange, before, after, user);
# Line 1937 | Line 1939 | static PyObject *_wrap_delete_BossSessio
1939   }
1940  
1941  
1942 + static PyObject *_wrap_BossSession_clear(PyObject *self, PyObject *args) {
1943 +    PyObject *resultobj;
1944 +    BossSession *arg1 = (BossSession *) 0 ;
1945 +    PyObject * obj0 = 0 ;
1946 +    
1947 +    if(!PyArg_ParseTuple(args,(char *)"O:BossSession_clear",&obj0)) goto fail;
1948 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1949 +    {
1950 +        try {
1951 +            (arg1)->clear();
1952 +            
1953 +        }catch (const std::exception& e) {
1954 +            SWIG_exception(SWIG_RuntimeError, e.what());
1955 +        }
1956 +    }
1957 +    Py_INCREF(Py_None); resultobj = Py_None;
1958 +    return resultobj;
1959 +    fail:
1960 +    return NULL;
1961 + }
1962 +
1963 +
1964   static PyObject *_wrap_BossSession_makeBossTask(PyObject *self, PyObject *args) {
1965      PyObject *resultobj;
1966      BossSession *arg1 = (BossSession *) 0 ;
# Line 2490 | Line 2514 | static PyObject *_wrap_BossSession_listM
2514   }
2515  
2516  
2517 < static PyObject *_wrap_BossSession_jobQuery(PyObject *self, PyObject *args) {
2517 > static PyObject *_wrap_BossSession_schedulerQuery(PyObject *self, PyObject *args) {
2518      PyObject *resultobj;
2519      BossSession *arg1 = (BossSession *) 0 ;
2520      int arg2 = (int) SCHEDULED ;
# Line 2504 | Line 2528 | static PyObject *_wrap_BossSession_jobQu
2528      std::string arg7 = (std::string) "" ;
2529      std::string arg8 = (std::string) "" ;
2530      std::string arg9 = (std::string) "" ;
2507    bool arg10 = (bool) false ;
2508    SwigValueWrapper< std::vector<BossJob * > > result;
2531      std::string temp3 ;
2532      std::string temp4 ;
2533      std::string temp5 ;
# Line 2517 | Line 2539 | static PyObject *_wrap_BossSession_jobQu
2539      PyObject * obj6 = 0 ;
2540      PyObject * obj7 = 0 ;
2541      PyObject * obj8 = 0 ;
2520    PyObject * obj9 = 0 ;
2542      
2543 <    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOOO:BossSession_jobQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
2543 >    if(!PyArg_ParseTuple(args,(char *)"O|iOOOOOOO:BossSession_schedulerQuery",&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2544      if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2545      if (obj2) {
2546          {
# Line 2583 | Line 2604 | static PyObject *_wrap_BossSession_jobQu
2604              SWIG_exception(SWIG_TypeError, "string expected");
2605          }
2606      }
2586    if (obj9) {
2587        arg10 = PyInt_AsLong(obj9) ? true : false;
2588        if (PyErr_Occurred()) SWIG_fail;
2589    }
2607      {
2608          try {
2609 <            result = (arg1)->jobQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9,arg10);
2609 >            (arg1)->schedulerQuery(arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6,arg7,arg8,arg9);
2610              
2611          }catch (const std::exception& e) {
2612              SWIG_exception(SWIG_RuntimeError, e.what());
2613          }
2614      }
2615 <    {
2599 <        std::vector<BossJob * > * resultptr;
2600 <        resultptr = new std::vector<BossJob * >((std::vector<BossJob * > &) result);
2601 <        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTBossJob_p_t, 1);
2602 <    }
2615 >    Py_INCREF(Py_None); resultobj = Py_None;
2616      return resultobj;
2617      fail:
2618      return NULL;
# Line 5234 | Line 5247 | static PyMethodDef SwigMethods[] = {
5247           { (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS },
5248           { (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS },
5249           { (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS },
5250 +         { (char *)"BossSession_clear", _wrap_BossSession_clear, METH_VARARGS },
5251           { (char *)"BossSession_makeBossTask", _wrap_BossSession_makeBossTask, METH_VARARGS },
5252           { (char *)"BossSession_destroyBossTask", _wrap_BossSession_destroyBossTask, METH_VARARGS },
5253           { (char *)"BossSession_defaultCHTool", _wrap_BossSession_defaultCHTool, METH_VARARGS },
# Line 5246 | Line 5260 | static PyMethodDef SwigMethods[] = {
5260           { (char *)"BossSession_purgeTasks", _wrap_BossSession_purgeTasks, METH_VARARGS },
5261           { (char *)"BossSession_RTupdate", _wrap_BossSession_RTupdate, METH_VARARGS },
5262           { (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS },
5263 <         { (char *)"BossSession_jobQuery", _wrap_BossSession_jobQuery, METH_VARARGS },
5263 >         { (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS },
5264           { (char *)"BossSession_queryPrint", _wrap_BossSession_queryPrint, METH_VARARGS },
5265           { (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS },
5266           { (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS },

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines