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

Method getInts

src/Base/ParameterPy.cpp:414–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414Py::Object ParameterGrpPy::getInts(const Py::Tuple& args)
415{
416 char* filter = nullptr;
417 if (!PyArg_ParseTuple(args.ptr(), "|s", &filter)) {
418 throw Py::Exception();
419 }
420
421 std::vector<std::pair<std::string, long>> map = _cParamGrp->GetIntMap(filter);
422 Py::List list;
423 for (const auto& it : map) {
424 list.append(Py::String(it.first));
425 }
426
427 return list; // NOLINT
428}
429
430Py::Object ParameterGrpPy::setUnsigned(const Py::Tuple& args)
431{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected