3#include <NDEVR/Device.h>
The equivelent of std::vector but with a bit more control.
void deviceRemovedSignal(const UUID &id)
Emitted when a device has been removed.
DeviceManager()
Constructs an empty DeviceManager.
void devicesAddedSignal(const Buffer< UUID > &ids)
Emitted when one or more devices have been added.
bool hasDevice(const UUID &id) const
Checks whether a device with the given UUID is registered.
static DeviceManager & DefaultManager()
Returns the singleton default DeviceManager instance.
Buffer< UUID > m_added_objects
UUIDs of devices added but not yet signaled.
void removeDevice(const UUID &id)
Removes a device from the manager by its UUID.
void update()
Emits signals for any devices that have been added since the last update.
Dictionary< UUID, Device * > m_device_lookup
Map of device UUIDs to their Device pointers.
Device * device(const UUID &id)
Returns the device with the given UUID.
void addDevice(Device *device)
Registers a device with the manager.
A root class which describes some physical object, such as a Motor, Sensor, or Connection.
A hash-based key-value store, useful for quick associative lookups.
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
The primary namespace for the NDEVR SDK.