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.
Definition: VrpnBaseFlexServer.h:43
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
Definition: VrpnMessageType.h:40
OSVR_CONNECTION_EXPORT ConnectionDevice(std::string const &name)
Constructor for use by derived classes only.
Definition: ConnectionDevice.cpp:48
virtual void m_process()
(Subclass implementation) Process messages.
Definition: VrpnConnectionDevice.h:57
Header to bring unique_ptr into the osvr namespace.
T * addComponent(shared_ptr< T > component)
Adds a component to a base device.
Definition: BaseDevice.h:58
Structure used internally to construct the desired type of device.
Definition: DeviceInitObject.h:59
virtual void m_sendData(util::time::TimeValue const ×tamp, MessageType *type, const char *bytestream, size_t len)
(Subclass implementation) Send message.
Definition: VrpnConnectionDevice.h:62
DeviceToken & m_getDeviceToken()
accessor for device token
Definition: ConnectionDevice.cpp:81
Base class for connection-specific message type registration.
Definition: MessageType.h:38
void connectionInteract()
Interact with connection.
Definition: DeviceToken.cpp:104
Definition: DeviceConstructionData.h:41
Base class for connection-specific device data, owned by a DeviceToken.
Definition: ConnectionDevice.h:46
std::string getQualifiedName() const
Get device name qualified by plugin name.
Definition: DeviceInitObject.cpp:118
Standardized, portable parallel to struct timeval for representing both absolute times and time inter...
Definition: TimeValueC.h:81
ConnectionDevice implementation for a VrpnBasedConnection.
Definition: VrpnConnectionDevice.h:44
virtual void mainloop()
Definition: VrpnBaseFlexServer.h:56