MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / m_getPath

Method m_getPath

src/osvr/Common/OriginalSource.cpp:144–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

getSensorFunction · 0.85
getInterfaceFunction · 0.85
getDeviceFunction · 0.85
getFullPathFunction · 0.85

Tested by

no test coverage detected