OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::connection::GenericConnectionDevice Class Reference

ConnectionDevice implementation for advanced devices. More...

#include <osvr/Connection/GenericConnectionDevice.h>

Inheritance diagram for osvr::connection::GenericConnectionDevice:
osvr::connection::ConnectionDevice

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.
 
- Public Member Functions inherited from osvr::connection::ConnectionDevice
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 &timestamp, 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

- 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.
 
DeviceTokenm_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.
 

Detailed Description

ConnectionDevice implementation for advanced devices.

Definition at line 42 of file GenericConnectionDevice.h.


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