| 579 | } |
| 580 | |
| 581 | const 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 | |
| 599 | bool PropertyEnumeration::getPyPathValue(const ObjectIdentifier& path, Py::Object& r) const |
| 600 | { |
nothing calls this directly
no test coverage detected