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

Method getBools

src/Base/ParameterPy.cpp:376–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376Py::Object ParameterGrpPy::getBools(const Py::Tuple& args)
377{
378 char* filter = nullptr;
379 if (!PyArg_ParseTuple(args.ptr(), "|s", &filter)) {
380 throw Py::Exception();
381 }
382
383 std::vector<std::pair<std::string, bool>> map = _cParamGrp->GetBoolMap(filter);
384 Py::List list;
385 for (const auto& it : map) {
386 list.append(Py::String(it.first));
387 }
388
389 return list; // NOLINT
390}
391
392Py::Object ParameterGrpPy::setInt(const Py::Tuple& args)
393{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected