28 #ifndef INCLUDE_OLA_RDM_UIDALLOCATOR_H_ 29 #define INCLUDE_OLA_RDM_UIDALLOCATOR_H_ 53 : m_esta_id(uid.ManufacturerId()),
54 m_device_id(uid.DeviceId()),
55 m_last_device_id(
UID::ALL_DEVICES) {
65 : m_esta_id(uid.ManufacturerId()),
66 m_device_id(uid.DeviceId()),
67 m_last_device_id(last_device_id) {
79 return new UID(m_esta_id, m_device_id++);
85 uint32_t m_last_device_id;
89 #endif // INCLUDE_OLA_RDM_UIDALLOCATOR_H_ A RDM unique identifier (UID).
static const uint32_t ALL_DEVICES
The value for the 'all devices' id.
Definition: UID.h:304
UID * AllocateNext()
Allocate the next UID from the pool.
Definition: UIDAllocator.h:75
Allocate UIDs from a pool.
Definition: UIDAllocator.h:46
Represents a RDM UID.
Definition: UID.h:57
UIDAllocator(const UID &uid, uint32_t last_device_id)
Create a new allocator with the starting UID that ends at the specified last_device_id.
Definition: UIDAllocator.h:64
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
UIDAllocator(const UID &uid)
Create a new allocator with the starting UID.
Definition: UIDAllocator.h:52