ConnectionDevice implementation for advanced devices. More...
#include <osvr/Connection/GenericConnectionDevice.h>
Public Member Functions | |
GenericConnectionDevice (std::string const &name, std::function< OSVR_ReturnCode()> update) | |
GenericConnectionDevice (ConnectionDevice::NameList const &names, std::function< OSVR_ReturnCode()> update) | |
virtual void | m_process () |
(Subclass implementation) Process messages. This shouldn't block. | |
virtual void | m_sendData (util::time::TimeValue const &, MessageType *, const char *, size_t) |
(Subclass implementation) Send message. | |
![]() | |
virtual | ~ConnectionDevice () |
destructor | |
std::string const & | getName () const |
accessor for (primary) device name | |
NameList const & | getNames () const |
accessor for device names | |
void | process () |
Process messages. This shouldn't block. More... | |
void | sendData (util::time::TimeValue const ×tamp, MessageType *type, const char *bytestream, size_t len) |
Send message (as primary device name) | |
void | setDeviceToken (DeviceToken &token) |
For use only by DeviceToken. | |
void | setDeviceDescriptor (std::string const &jsonString) |
Send new/updated JSON device descriptor. More... | |
std::string const & | getDeviceDescriptor () const |
Get the most current JSON device descriptor. | |
Additional Inherited Members | |
![]() | |
typedef std::vector< std::string > | NameList |
![]() | |
bool | m_hasDeviceToken () const |
Does this connection device have a device token? Should be true in nearly every case. | |
DeviceToken & | m_getDeviceToken () |
accessor for device token | |
ConnectionDevice (std::string const &name) | |
Constructor for use by derived classes only. | |
ConnectionDevice (NameList const &names) | |
Constructor for use by derived classes only. | |
ConnectionDevice implementation for advanced devices.
Definition at line 42 of file GenericConnectionDevice.h.