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

Method addDevice

src/osvr/Connection/Connection.cpp:128–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 void Connection::addDevice(ConnectionDevicePtr device) {
129 BOOST_ASSERT_MSG(device, "Device must be non-null!");
130 auto const &names = device->getNames();
131 if (names.size() == 1) {
132 OSVR_DEV_VERBOSE("Added device: " << names.front());
133 } else {
134 OSVR_DEV_VERBOSE("Added device with names:");
135 for (auto const &name : names) {
136 OSVR_DEV_VERBOSE(" - " << name);
137 }
138 }
139 m_devices.push_back(device);
140 }
141
142 void Connection::process() {
143 // Process the connection first.

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected