| 1739 | } |
| 1740 | |
| 1741 | void ObjectIdentifier::setValue(const App::any& value) const |
| 1742 | { |
| 1743 | std::stringstream ss; |
| 1744 | ResolveResults rs(*this); |
| 1745 | if (rs.propertyType) { |
| 1746 | FC_THROWM(Base::RuntimeError, "Cannot set pseudo property"); |
| 1747 | } |
| 1748 | |
| 1749 | Base::PyGILStateLocker lock; |
| 1750 | try { |
| 1751 | Py::Object pyvalue = pyObjectFromAny(value); |
| 1752 | access(rs, &pyvalue); |
| 1753 | } |
| 1754 | catch (Py::Exception&) { |
| 1755 | Base::PyException::throwException(); |
| 1756 | } |
| 1757 | } |
| 1758 | |
| 1759 | const std::string& ObjectIdentifier::getSubObjectName(bool newStyle) const |
| 1760 | { |
no test coverage detected