25 #ifndef INCLUDED_DeviceComponent_h_GUID_FC172255_F4F1_41A2_ABA5_E5E33F8BD005 26 #define INCLUDED_DeviceComponent_h_GUID_FC172255_F4F1_41A2_ABA5_E5E33F8BD005 81 MessageHandlerList<BaseDeviceMessageHandleTraits> m_messageHandlers;
85 #endif // INCLUDED_DeviceComponent_h_GUID_FC172255_F4F1_41A2_ABA5_E5E33F8BD005
Handles spatial transformations.
Definition: SerializationTraitExample_Complicated.h:40
Class used as an interface for underlying devices that can have device components (corresponding to i...
Definition: BaseDevice.h:51
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
void m_registerHandler(vrpn_MESSAGEHANDLER handler, void *userdata, RawMessageType const &msgType)
Registers a handler whose lifetime is tied to the lifetime of the component.
Definition: DeviceComponent.cpp:54
virtual void m_update()
Implementation-specific (optional) stuff to do during mainloop.
Definition: DeviceComponent.cpp:62
Definition: DeviceComponent.h:42
bool m_hasParent() const
Returns true if we have a parent registered.
Definition: DeviceComponent.cpp:48
virtual void m_parentSet()=0
Called once when we have a parent.
Parent & m_getParent()
Gets the parent - only call if m_hasParent() is true.
Definition: DeviceComponent.cpp:50
void recordParent(Parent &dev)
Called (only) by BaseDevice when being added: effectively records a "parent pointer" that does not co...
Definition: DeviceComponent.cpp:39
Type-safe wrapper with built-in default for a VRPN "message type" integer.
Definition: RawMessageType.h:45
void update()
Called during mainloop.
Definition: DeviceComponent.cpp:46
DeviceComponent()
Protected constructor, to require subclassing.
Definition: DeviceComponent.cpp:37