25 #ifndef INCLUDED_VrpnConnectionDevice_h_GUID_A5D057AB_D92A_4784_885E_3DAAAEE142A5
26 #define INCLUDED_VrpnConnectionDevice_h_GUID_A5D057AB_D92A_4784_885E_3DAAAEE142A5
36 #include <vrpn_ConnectionPtr.h>
42 namespace connection {
47 vrpn_ConnectionPtr
const &vrpnConn)
50 m_server.reset(generateVrpnDynamicServer(data));
51 m_baseobj = data.flexServer;
52 for (
auto const &component : init.getComponents()) {
66 m_baseobj->sendData(timestamp, msgtype->getID(), bytestream, len);
71 unique_ptr<vrpn_MainloopObject> m_server;
76 #endif // INCLUDED_VrpnConnectionDevice_h_GUID_A5D057AB_D92A_4784_885E_3DAAAEE142A5
Basic implementation of a vrpn_BaseClass server.
ConnectionDevice(std::string const &name)
Constructor for use by derived classes only.
std::string getQualifiedName() const
Get device name qualified by plugin name.
virtual void m_process()
(Subclass implementation) Process messages. This shouldn't block.
Header to bring unique_ptr into the osvr namespace.
T * addComponent(shared_ptr< T > component)
Adds a component to a base device.
Structure used internally to construct the desired type of device.
virtual void m_sendData(util::time::TimeValue const ×tamp, MessageType *type, const char *bytestream, size_t len)
(Subclass implementation) Send message.
DeviceToken & m_getDeviceToken()
accessor for device token
Base class for connection-specific message type registration.
void connectionInteract()
Interact with connection. Only legal to end up in ConnectionDevice::sendData from within here somehow...
Base class for connection-specific device data, owned by a DeviceToken.
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
ConnectionDevice implementation for a VrpnBasedConnection.