28 struct timeval timestamp;
32 virtual vrpn_int32 encode_to(
char *buf, vrpn_int32 buflen, vrpn_int32 dial,
34 virtual void report_changes(
void);
35 virtual void report(
void);
52 vrpn_int32 numdials = 1,
53 vrpn_float64 spin_rate = 1.0,
54 vrpn_float64 update_rate = 10.0);
73typedef struct _vrpn_DIALCB {
74 struct timeval msg_time;
101 return d_callback_list.register_handler(userdata, handler);
106 return d_callback_list.unregister_handler(userdata, handler);
Class from which all user-level (and other) classes that communicate with vrpn_Connections should der...
virtual void mainloop()=0
Called once through each main loop iteration to handle updates. Remote object mainloop() should call ...
virtual int register_types(void)=0
Register the types of messages this device sends/receives. Return 0 on success, -1 on fail.
Generic connection class not specific to the transport mechanism.
vrpn_float64 _update_rate
vrpn_Callback_List< vrpn_DIALCB > d_callback_list
virtual int register_change_handler(void *userdata, vrpn_DIALCHANGEHANDLER handler)
virtual int unregister_change_handler(void *userdata, vrpn_DIALCHANGEHANDLER handler)
This structure is what is passed to a vrpn_Connection message callback.
All types of client/server/peer objects in VRPN should be derived from the vrpn_BaseClass type descri...
void(VRPN_CALLBACK * vrpn_DIALCHANGEHANDLER)(void *userdata, const vrpn_DIALCB info)