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

Method getUnsigneds

src/Base/ParameterPy.cpp:452–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452Py::Object ParameterGrpPy::getUnsigneds(const Py::Tuple& args)
453{
454 char* filter = nullptr;
455 if (!PyArg_ParseTuple(args.ptr(), "|s", &filter)) {
456 throw Py::Exception();
457 }
458
459 std::vector<std::pair<std::string, unsigned long>> map = _cParamGrp->GetUnsignedMap(filter);
460 Py::List list;
461 for (const auto& it : map) {
462 list.append(Py::String(it.first));
463 }
464
465 return list; // NOLINT
466}
467
468Py::Object ParameterGrpPy::setFloat(const Py::Tuple& args)
469{

Callers

nothing calls this directly

Calls 5

GetUnsignedMapMethod · 0.80
StringClass · 0.70
ExceptionClass · 0.50
ptrMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected