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

Method getPathValue

src/App/PropertyStandard.cpp:581–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579}
580
581const boost::any PropertyEnumeration::getPathValue(const ObjectIdentifier& path) const
582{
583 std::string p = path.getSubPathStr();
584 if (p == ".Enum" || p == ".All") {
585 Base::PyGILStateLocker lock;
586 Py::Object res;
587 getPyPathValue(path, res);
588 return pyObjectToAny(res, false);
589 }
590 else if (p == ".String") {
591 auto v = getValueAsString();
592 return std::string(v ? v : "");
593 }
594 else {
595 return getValue();
596 }
597}
598
599bool PropertyEnumeration::getPyPathValue(const ObjectIdentifier& path, Py::Object& r) const
600{

Callers

nothing calls this directly

Calls 9

getPyPathValueFunction · 0.85
pyObjectToAnyFunction · 0.85
getPathValueFunction · 0.85
getSubPathStrMethod · 0.80
numSubComponentsMethod · 0.80
getValueFunction · 0.70
findMethod · 0.45
getNameMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected