| 191 | } |
| 192 | |
| 193 | const boost::any PropertyVector::getPathValue(const ObjectIdentifier& path) const |
| 194 | { |
| 195 | Base::Unit unit = getUnit(); |
| 196 | if (unit != Unit::One) { |
| 197 | std::string p = path.getSubPathStr(); |
| 198 | if (p == ".x" || p == ".y" || p == ".z") { |
| 199 | // Convert double to quantity |
| 200 | return Base::Quantity(boost::any_cast<double>(Property::getPathValue(path)), unit); |
| 201 | } |
| 202 | } |
| 203 | return Property::getPathValue(path); |
| 204 | } |
| 205 | |
| 206 | bool PropertyVector::getPyPathValue(const ObjectIdentifier& path, Py::Object& res) const |
| 207 | { |
nothing calls this directly
no test coverage detected