| 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. |