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

Method getPathValue

src/App/PropertyExpressionEngine.cpp:564–575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

562}
563
564const boost::any PropertyExpressionEngine::getPathValue(const App::ObjectIdentifier& path) const
565{
566 // Get a canonical path
567 ObjectIdentifier usePath(canonicalPath(path));
568
569 auto i = expressions.find(usePath);
570 if (i != expressions.end()) {
571 return i->second;
572 }
573
574 return boost::any();
575}
576
577void PropertyExpressionEngine::setValue(const ObjectIdentifier& path,
578 std::shared_ptr<Expression> expr)

Callers 3

updateHiddenReferenceMethod · 0.45
setValueMethod · 0.45
executeMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected