Py::Object ParameterGrpPy::hasGroup(const Py::Tuple& args) { char *pstr; if (!PyArg_ParseTuple(args.ptr(), "s", &pstr)) throw Py::Exception(); return Py::Boolean(_cParamGrp->HasGroup(pstr)); }
PyObject *ParameterGrpPy::PyHasGroup(PyObject *args) { char *pstr; if (!PyArg_ParseTuple(args, "s", &pstr)) // convert args: Python->C return NULL; // NULL triggers exception PY_TRY { return Py_BuildValue("i",_cParamGrp->HasGroup(pstr)); }PY_CATCH; }