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.7 by gcodispo, Fri Oct 27 13:36:09 2006 UTC vs.
Revision 1.8 by gcodispo, Fri Oct 27 15:24:50 2006 UTC

# Line 887 | Line 887 | PyObject *BossSession_showSchedulers__SW
887      std::vector<std::string> my_vec = self->showSchedulers();
888      return BossSession_show( self, my_vec );
889    }
890 + PyObject *BossSession_listMatch__SWIG_1(BossSession *self,std::string const &scheduler,std::string const &schclassad,std::string const &taskid,std::string const &jobid,bool keepfile){
891 +    std::vector<std::string> my_vec = self->listMatch( scheduler,
892 +                                                       schclassad,
893 +                                                       keepfile,
894 +                                                       taskid,
895 +                                                       jobid);
896 +    return BossSession_show( self, my_vec );
897 +  }
898   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){
899         if ( !avoidCheck ) {
900           self->schedulerQuery ( filter_opt, taskRange, jobRange, subn,
# Line 1774 | Line 1782 | static PyObject *_wrap_BossSession_showS
1782   }
1783  
1784  
1785 + static PyObject *_wrap_BossSession_listMatch__SWIG_1(PyObject *self, PyObject *args) {
1786 +    PyObject *resultobj;
1787 +    BossSession *arg1 = (BossSession *) 0 ;
1788 +    std::string *arg2 = 0 ;
1789 +    std::string *arg3 = 0 ;
1790 +    std::string const &arg4_defvalue = "" ;
1791 +    std::string *arg4 = (std::string *) &arg4_defvalue ;
1792 +    std::string const &arg5_defvalue = "" ;
1793 +    std::string *arg5 = (std::string *) &arg5_defvalue ;
1794 +    bool arg6 = (bool) false ;
1795 +    PyObject *result;
1796 +    std::string temp2 ;
1797 +    std::string temp3 ;
1798 +    std::string temp4 ;
1799 +    std::string temp5 ;
1800 +    PyObject * obj0 = 0 ;
1801 +    PyObject * obj1 = 0 ;
1802 +    PyObject * obj2 = 0 ;
1803 +    PyObject * obj3 = 0 ;
1804 +    PyObject * obj4 = 0 ;
1805 +    PyObject * obj5 = 0 ;
1806 +    
1807 +    if(!PyArg_ParseTuple(args,(char *)"OOO|OOO:BossSession_listMatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
1808 +    if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_BossSession,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1809 +    {
1810 +        if (PyString_Check(obj1)) {
1811 +            temp2 = std::string(PyString_AsString(obj1));
1812 +            arg2 = &temp2;
1813 +        }else {
1814 +            SWIG_exception(SWIG_TypeError, "string expected");
1815 +        }
1816 +    }
1817 +    {
1818 +        if (PyString_Check(obj2)) {
1819 +            temp3 = std::string(PyString_AsString(obj2));
1820 +            arg3 = &temp3;
1821 +        }else {
1822 +            SWIG_exception(SWIG_TypeError, "string expected");
1823 +        }
1824 +    }
1825 +    if (obj3) {
1826 +        {
1827 +            if (PyString_Check(obj3)) {
1828 +                temp4 = std::string(PyString_AsString(obj3));
1829 +                arg4 = &temp4;
1830 +            }else {
1831 +                SWIG_exception(SWIG_TypeError, "string expected");
1832 +            }
1833 +        }
1834 +    }
1835 +    if (obj4) {
1836 +        {
1837 +            if (PyString_Check(obj4)) {
1838 +                temp5 = std::string(PyString_AsString(obj4));
1839 +                arg5 = &temp5;
1840 +            }else {
1841 +                SWIG_exception(SWIG_TypeError, "string expected");
1842 +            }
1843 +        }
1844 +    }
1845 +    if (obj5) {
1846 +        arg6 = PyInt_AsLong(obj5) ? true : false;
1847 +        if (PyErr_Occurred()) SWIG_fail;
1848 +    }
1849 +    {
1850 +        try {
1851 +            result = (PyObject *)BossSession_listMatch__SWIG_1(arg1,(std::string const &)*arg2,(std::string const &)*arg3,(std::string const &)*arg4,(std::string const &)*arg5,arg6);
1852 +            
1853 +        }catch (const std::exception& e) {
1854 +            SWIG_exception(SWIG_RuntimeError, e.what());
1855 +        }
1856 +    }
1857 +    resultobj = result;
1858 +    return resultobj;
1859 +    fail:
1860 +    return NULL;
1861 + }
1862 +
1863 +
1864 + static PyObject *_wrap_BossSession_listMatch(PyObject *self, PyObject *args) {
1865 +    int argc;
1866 +    PyObject *argv[7];
1867 +    int ii;
1868 +    
1869 +    argc = PyObject_Length(args);
1870 +    for (ii = 0; (ii < argc) && (ii < 6); ii++) {
1871 +        argv[ii] = PyTuple_GetItem(args,ii);
1872 +    }
1873 +    if ((argc >= 3) && (argc <= 6)) {
1874 +        int _v;
1875 +        {
1876 +            void *ptr;
1877 +            if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_BossSession, 0) == -1) {
1878 +                _v = 0;
1879 +                PyErr_Clear();
1880 +            }else {
1881 +                _v = 1;
1882 +            }
1883 +        }
1884 +        if (_v) {
1885 +            {
1886 +                _v = PyString_Check(argv[1]) ? 1 : 0;
1887 +            }
1888 +            if (_v) {
1889 +                {
1890 +                    _v = PyString_Check(argv[2]) ? 1 : 0;
1891 +                }
1892 +                if (_v) {
1893 +                    if (argc <= 3) {
1894 +                        return _wrap_BossSession_listMatch__SWIG_1(self,args);
1895 +                    }
1896 +                    {
1897 +                        _v = PyString_Check(argv[3]) ? 1 : 0;
1898 +                    }
1899 +                    if (_v) {
1900 +                        if (argc <= 4) {
1901 +                            return _wrap_BossSession_listMatch__SWIG_1(self,args);
1902 +                        }
1903 +                        {
1904 +                            _v = PyString_Check(argv[4]) ? 1 : 0;
1905 +                        }
1906 +                        if (_v) {
1907 +                            if (argc <= 5) {
1908 +                                return _wrap_BossSession_listMatch__SWIG_1(self,args);
1909 +                            }
1910 +                            {
1911 +                                _v = (PyInt_Check(argv[5]) || PyLong_Check(argv[5])) ? 1 : 0;
1912 +                            }
1913 +                            if (_v) {
1914 +                                return _wrap_BossSession_listMatch__SWIG_1(self,args);
1915 +                            }
1916 +                        }
1917 +                    }
1918 +                }
1919 +            }
1920 +        }
1921 +    }
1922 +    
1923 +    PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'BossSession_listMatch'");
1924 +    return NULL;
1925 + }
1926 +
1927 +
1928   static PyObject *_wrap_BossSession_queryTasks(PyObject *self, PyObject *args) {
1929      PyObject *resultobj;
1930      BossSession *arg1 = (BossSession *) 0 ;
# Line 2362 | Line 2513 | static PyObject *_wrap_BossSession_RTupd
2513   }
2514  
2515  
2516 < static PyObject *_wrap_BossSession_listMatch(PyObject *self, PyObject *args) {
2516 > static PyObject *_wrap_BossSession_listMatch__SWIG_0(PyObject *self, PyObject *args) {
2517      PyObject *resultobj;
2518      BossSession *arg1 = (BossSession *) 0 ;
2519      std::string *arg2 = 0 ;
# Line 2372 | Line 2523 | static PyObject *_wrap_BossSession_listM
2523      std::string *arg5 = (std::string *) &arg5_defvalue ;
2524      std::string const &arg6_defvalue = "" ;
2525      std::string *arg6 = (std::string *) &arg6_defvalue ;
2526 <    std::string result;
2526 >    SwigValueWrapper< std::vector<std::string > > result;
2527      std::string temp2 ;
2528      std::string temp3 ;
2529      std::string temp5 ;
# Line 2435 | Line 2586 | static PyObject *_wrap_BossSession_listM
2586          }
2587      }
2588      {
2589 <        resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size());
2589 >        std::vector<std::string > * resultptr;
2590 >        resultptr = new std::vector<std::string >((std::vector<std::string > &) result);
2591 >        resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTstd__string_t, 1);
2592      }
2593      return resultobj;
2594      fail:
# Line 5102 | Line 5255 | static PyMethodDef SwigMethods[] = {
5255           { (char *)"BossSession_showProgramTypes", _wrap_BossSession_showProgramTypes, METH_VARARGS },
5256           { (char *)"BossSession_showRTMon", _wrap_BossSession_showRTMon, METH_VARARGS },
5257           { (char *)"BossSession_showSchedulers", _wrap_BossSession_showSchedulers, METH_VARARGS },
5258 +         { (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS },
5259           { (char *)"BossSession_queryTasks", _wrap_BossSession_queryTasks, METH_VARARGS },
5260           { (char *)"new_BossSession", _wrap_new_BossSession, METH_VARARGS },
5261           { (char *)"delete_BossSession", _wrap_delete_BossSession, METH_VARARGS },
# Line 5116 | Line 5270 | static PyMethodDef SwigMethods[] = {
5270           { (char *)"BossSession_clientID", _wrap_BossSession_clientID, METH_VARARGS },
5271           { (char *)"BossSession_showConfigs", _wrap_BossSession_showConfigs, METH_VARARGS },
5272           { (char *)"BossSession_RTupdate", _wrap_BossSession_RTupdate, METH_VARARGS },
5119         { (char *)"BossSession_listMatch", _wrap_BossSession_listMatch, METH_VARARGS },
5273           { (char *)"BossSession_schedulerQuery", _wrap_BossSession_schedulerQuery, METH_VARARGS },
5274           { (char *)"BossSession_selectTasks", _wrap_BossSession_selectTasks, METH_VARARGS },
5275           { (char *)"BossSession_swigregister", BossSession_swigregister, METH_VARARGS },

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines