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

Method m_connectNeededCallbacks

src/osvr/Client/ClientInterfaceObjectManager.cpp:114–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 void ClientInterfaceObjectManager::m_connectNeededCallbacks() {
115 auto failedPaths = std::unordered_set<std::string>{};
116 auto successfulPaths = size_t{0};
117 /// Call our little lambda with every path that has interfaces but no
118 /// handler, and see what we can do.
119 m_interfaces.visitPathsWithoutHandlers([&](std::string const &path) {
120 auto success = m_connectCallbacksOnPath(path);
121 if (success) {
122 successfulPaths++;
123 } else {
124 failedPaths.insert(path);
125 }
126 });
127 OSVR_DEV_VERBOSE("Connected " << successfulPaths << " of "
128 << successfulPaths + failedPaths.size()
129 << " unconnected paths successfully");
130 }
131} // namespace client
132} // namespace osvr

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected