OSVR-Core
|
ConnectionDevice implementation for a VrpnBasedConnection. More...
#include <VrpnConnectionDevice.h>
Public Member Functions | |
VrpnConnectionDevice (DeviceInitObject &init, vrpn_ConnectionPtr const &vrpnConn) | |
virtual void | m_process () |
(Subclass implementation) Process messages. More... | |
virtual void | m_sendData (util::time::TimeValue const ×tamp, MessageType *type, const char *bytestream, size_t len) |
(Subclass implementation) Send message. | |
![]() | |
virtual OSVR_CONNECTION_EXPORT | ~ConnectionDevice () |
destructor | |
OSVR_CONNECTION_EXPORT std::string const & | getName () const |
accessor for (primary) device name | |
NameList const & | getNames () const |
accessor for device names | |
void | process () |
Process messages. 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. | |
OSVR_CONNECTION_EXPORT void | setDeviceDescriptor (std::string const &jsonString) |
Send new/updated JSON device descriptor. More... | |
OSVR_CONNECTION_EXPORT 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. More... | |
DeviceToken & | m_getDeviceToken () |
accessor for device token | |
OSVR_CONNECTION_EXPORT | ConnectionDevice (std::string const &name) |
Constructor for use by derived classes only. | |
OSVR_CONNECTION_EXPORT | ConnectionDevice (NameList const &names) |
Constructor for use by derived classes only. | |
ConnectionDevice implementation for a VrpnBasedConnection.
|
inlinevirtual |
(Subclass implementation) Process messages.
This shouldn't block.
Implements osvr::connection::ConnectionDevice.