MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / insert

Method insert

src/Base/ParameterPy.cpp:231–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231Py::Object ParameterGrpPy::insert(const Py::Tuple& args)
232{
233 char* pstr = nullptr;
234 if (!PyArg_ParseTuple(args.ptr(), "s", &pstr)) {
235 throw Py::Exception();
236 }
237
238 try {
239 _cParamGrp->insert(pstr);
240 return Py::None();
241 }
242 catch (const Base::Exception& e) {
243 e.setPyException();
244 throw Py::Exception();
245 }
246}
247
248Py::Object ParameterGrpPy::exportTo(const Py::Tuple& args)
249{

Callers

nothing calls this directly

Calls 3

ExceptionClass · 0.50
ptrMethod · 0.45
setPyExceptionMethod · 0.45

Tested by

no test coverage detected