37 DeviceWrapper::DeviceWrapper(std::string
const &name,
38 vrpn_ConnectionPtr
const &conn,
bool client)
39 : vrpn_BaseClass(name.c_str(), conn.
get()), m_conn(conn),
41 vrpn_BaseClass::init();
42 m_setup(conn, common::RawSenderType(d_sender_id), name);
50 DeviceWrapper::~DeviceWrapper() {}
52 void DeviceWrapper::mainloop() {
update(); }
54 void DeviceWrapper::m_update() {
63 int DeviceWrapper::register_types() {
ref_type_at_key< Derived, Key >::type get(TypeKeyedBase< Derived > &c)
vrpn_ConnectionPtr m_getConnection() const
Accessor for underlying connection.
void update()
Called from the outside to run the mainloop on the device and its components.