| 49 | } |
| 50 | |
| 51 | PyObject* BaseClassPy::getAllDerivedFrom(PyObject* args) const |
| 52 | { |
| 53 | if (!PyArg_ParseTuple(args, "")) { |
| 54 | return nullptr; |
| 55 | } |
| 56 | |
| 57 | std::vector<Base::Type> ary; |
| 58 | Type::getAllDerivedFrom(getBaseClassPtr()->getTypeId(), ary); |
| 59 | Py::List res; |
| 60 | for (const auto& it : ary) { |
| 61 | res.append(toPyString(it.getName())); |
| 62 | } |
| 63 | return Py::new_reference_to(res); |
| 64 | } |
| 65 | |
| 66 | Py::String BaseClassPy::getTypeId() const |
| 67 | { |
nothing calls this directly
no test coverage detected