Ejemplo n.º 1
0
Py::Object ParameterGrpPy::clear(const Py::Tuple& args)
{
    if (!PyArg_ParseTuple(args.ptr(), ""))
        throw Py::Exception();

    _cParamGrp->Clear();
    return Py::None();
}
Ejemplo n.º 2
0
void ParameterGrp::copyTo(Base::Reference<ParameterGrp> Grp)
{
    // delete previos content
    Grp->Clear();

    // copy all
    insertTo(Grp);
}
Ejemplo n.º 3
0
PyObject *ParameterGrpPy::PyClear(PyObject *args)
{
    if (!PyArg_ParseTuple(args, ""))     // convert args: Python->C 
        return NULL;                             // NULL triggers exception 
    PY_TRY {
        _cParamGrp->Clear();
        Py_Return; 
    }PY_CATCH;
}