25 #ifndef INCLUDED_GenericConnectionDevice_h_GUID_411E730D_4ACA_4385_77C9_05A84863E786
26 #define INCLUDED_GenericConnectionDevice_h_GUID_411E730D_4ACA_4385_77C9_05A84863E786
34 #include <boost/assert.hpp>
40 namespace connection {
45 std::function<OSVR_ReturnCode()> update)
49 std::function<OSVR_ReturnCode()> update)
55 const char *,
size_t) {
56 BOOST_ASSERT_MSG(
false,
"Never called!");
60 std::function<OSVR_ReturnCode()> m_update;
65 #endif // INCLUDED_GenericConnectionDevice_h_GUID_411E730D_4ACA_4385_77C9_05A84863E786
Header declaring a type and values for simple C return codes.
virtual void m_process()
(Subclass implementation) Process messages. This shouldn't block.
ConnectionDevice(std::string const &name)
Constructor for use by derived classes only.
virtual void m_sendData(util::time::TimeValue const &, MessageType *, const char *, size_t)
(Subclass implementation) Send message.
Base class for connection-specific message type registration.
Base class for connection-specific device data, owned by a DeviceToken.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
ConnectionDevice implementation for advanced devices.