| 142 | } |
| 143 | |
| 144 | std::string OriginalSource::m_getPath() const { |
| 145 | BOOST_ASSERT_MSG(isResolved(), |
| 146 | "Only makes sense when called on a resolved source."); |
| 147 | PathNode *node = getSensor(); |
| 148 | if (!node) { |
| 149 | node = getInterface(); |
| 150 | } |
| 151 | if (!node) { |
| 152 | node = getDevice(); |
| 153 | } |
| 154 | if (node) { |
| 155 | return getFullPath(*node); |
| 156 | } |
| 157 | return std::string{}; |
| 158 | } |
| 159 | namespace { |
| 160 | class DecomposeOriginalSource : public boost::static_visitor<>, |
| 161 | boost::noncopyable { |
nothing calls this directly
no test coverage detected