25 #ifndef INCLUDED_ConnectionDevice_h_GUID_C04223D7_51D1_49BE_91AB_73FCA9C88515
26 #define INCLUDED_ConnectionDevice_h_GUID_C04223D7_51D1_49BE_91AB_73FCA9C88515
36 #include <boost/noncopyable.hpp>
43 namespace connection {
51 typedef std::vector<std::string> NameList;
54 OSVR_CONNECTION_EXPORT std::string
const &
getName()
const;
66 const char *bytestream,
size_t len);
75 OSVR_CONNECTION_EXPORT
void
105 std::string m_descriptor;
109 #endif // INCLUDED_ConnectionDevice_h_GUID_C04223D7_51D1_49BE_91AB_73FCA9C88515
Header forward declaring MessageType and specifying a smart pointer.
void setDeviceDescriptor(std::string const &jsonString)
Send new/updated JSON device descriptor.
A DeviceToken connects the generic device interaction code in PluginKit's C API with the workings of ...
virtual void m_sendData(util::time::TimeValue const ×tamp, MessageType *type, const char *bytestream, size_t len)=0
(Subclass implementation) Send message.
Header forward-declaring ConnectionDevice and specifying the desired pointer to hold a ConnectionDevi...
Automatically-generated export header - do not edit!
ConnectionDevice(std::string const &name)
Constructor for use by derived classes only.
DeviceToken & m_getDeviceToken()
accessor for device token
Base class for connection-specific message type registration.
virtual ~ConnectionDevice()
destructor
void setDeviceToken(DeviceToken &token)
For use only by DeviceToken.
std::string const & getDeviceDescriptor() const
Get the most current JSON device descriptor.
void process()
Process messages. This shouldn't block.
NameList const & getNames() const
accessor for device names
Base class for connection-specific device data, owned by a DeviceToken.
Header providing a C++ wrapper around TimeValueC.h.
void sendData(util::time::TimeValue const ×tamp, MessageType *type, const char *bytestream, size_t len)
Send message (as primary device name)
std::string const & getName() const
accessor for (primary) device name
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
bool m_hasDeviceToken() const
Does this connection device have a device token? Should be true in nearly every case.
virtual void m_process()=0
(Subclass implementation) Process messages. This shouldn't block.