OSVR-Core
Public Member Functions | List of all members
osvr::connection::VrpnConnectionDevice Class Reference

ConnectionDevice implementation for a VrpnBasedConnection. More...

#include <VrpnConnectionDevice.h>

Inheritance diagram for osvr::connection::VrpnConnectionDevice:
osvr::connection::ConnectionDevice

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 &timestamp, MessageType *type, const char *bytestream, size_t len)
 (Subclass implementation) Send message.
 
- Public Member Functions inherited from osvr::connection::ConnectionDevice
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 &timestamp, 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

- Public Types inherited from osvr::connection::ConnectionDevice
typedef std::vector< std::string > NameList
 
- Protected Member Functions inherited from osvr::connection::ConnectionDevice
bool m_hasDeviceToken () const
 Does this connection device have a device token? Should be true in nearly every case. More...
 
DeviceTokenm_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.
 

Detailed Description

ConnectionDevice implementation for a VrpnBasedConnection.

Member Function Documentation

§ m_process()

virtual void osvr::connection::VrpnConnectionDevice::m_process ( )
inlinevirtual

(Subclass implementation) Process messages.

This shouldn't block.

Implements osvr::connection::ConnectionDevice.


The documentation for this class was generated from the following file: