25 #ifndef INCLUDED_DeviceInterfaceBase_h_GUID_F804FF7E_EF77_4280_8597_CFFC18D53DFD 26 #define INCLUDED_DeviceInterfaceBase_h_GUID_F804FF7E_EF77_4280_8597_CFFC18D53DFD 33 #include <boost/assert.hpp> 39 namespace connection {
45 void setDeviceToken(
DeviceToken &dev) { m_token = &dev; }
46 util::GuardPtr getSendGuard() {
47 BOOST_ASSERT_MSG(m_token !=
nullptr,
"Can't get a send guard " 48 "before we've been supplied " 49 "with a device token!");
50 return m_token->getSendGuard();
59 #endif // INCLUDED_DeviceInterfaceBase_h_GUID_F804FF7E_EF77_4280_8597_CFFC18D53DFD
A DeviceToken connects the generic device interaction code in PluginKit's C API with the workings of ...
Definition: DeviceToken.h:56
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Base class for the DeviceInterfaceObjects retrieved by plugins to let them send data on an interface...
Definition: DeviceInterfaceBase.h:43