23 #ifndef RDMNET_CPP_MESSAGE_TYPES_DYNAMIC_UID_H_
24 #define RDMNET_CPP_MESSAGE_TYPES_DYNAMIC_UID_H_
32 #include "rdm/cpp/uid.h"
46 constexpr
bool IsOk()
const noexcept;
60 : status_code(c_mapping.status_code), uid(c_mapping.uid), rid(c_mapping.rid)
T back_inserter(T... args)
A list of mappings from dynamic UIDs to responder IDs received from an RDMnet broker.
Definition: dynamic_uid.h:98
constexpr size_t raw_mapping_array_size() const noexcept
Get the size of the raw array of dynamic UID mapping C structures.
Definition: dynamic_uid.h:156
DynamicUidAssignmentList()=delete
Not default-constructible.
DynamicUidAssignmentList(const DynamicUidAssignmentList &other)=delete
Not copyable - use GetMappings() to copy out the data.
std::vector< DynamicUidMapping > GetMappings() const
Copy out the list of dynamic UID mappings.
Definition: dynamic_uid.h:129
constexpr bool more_coming() const noexcept
This message contains a partial list.
Definition: dynamic_uid.h:144
constexpr const RdmnetDynamicUidMapping * raw_mapping_array() const noexcept
Get a pointer to the raw array of dynamic UID mapping C structures.
Definition: dynamic_uid.h:150
DynamicUidAssignmentList & operator=(const DynamicUidAssignmentList &other)=delete
Not copyable - use GetMappings() to copy out the data.
Functions and definitions common to all RDMnet API modules.
const char * rdmnet_dynamic_uid_status_to_string(rdmnet_dynamic_uid_status_t code)
Get a string description of an RDMnet Dynamic UID status code.
Definition: common.c:392
rdmnet_dynamic_uid_status_t
Dynamic UID Status Codes for the BrokerDynamicUidMapping struct.
Definition: common.h:134
@ kRdmnetDynamicUidStatusOk
The Dynamic UID Mapping was fetched or assigned successfully.
Definition: common.h:136
Basic types for parsed RDMnet messages.
A namespace which contains all C++ language definitions in the RDMnet library.
Definition: broker.h:45
A list of mappings from dynamic UIDs to responder IDs received from an RDMnet broker.
Definition: message.h:245
bool more_coming
This message contains a partial list.
Definition: message.h:256
size_t num_mappings
The size of the mappings array.
Definition: message.h:249
RdmnetDynamicUidMapping * mappings
An array of dynamic UID mappings.
Definition: message.h:247
A mapping from a dynamic UID to a responder ID (RID).
Definition: message.h:234
EtcPalUuid rid
The corresponding RID to which the dynamic UID is mapped.
Definition: message.h:240
RdmUid uid
The dynamic UID.
Definition: message.h:238
rdmnet_dynamic_uid_status_t status_code
The response code - indicates whether the broker was able to assign or look up dynamic UID.
Definition: message.h:236
A mapping from a dynamic UID to a responder ID (RID).
Definition: dynamic_uid.h:41
etcpal::Uuid rid
The corresponding RID to which the dynamic UID is mapped.
Definition: dynamic_uid.h:55
std::string CodeToString() const
Convert the mapping status code to a string representation.
Definition: dynamic_uid.h:87
rdm::Uid uid
The dynamic UID.
Definition: dynamic_uid.h:53
const char * CodeToCString() const noexcept
Convert the mapping status code to a string representation.
Definition: dynamic_uid.h:81
constexpr bool IsOk() const noexcept
Whether a DynamicUidMapping has a status code of OK.
Definition: dynamic_uid.h:75
rdmnet_dynamic_uid_status_t status_code
The response code - indicating whether the broker was able to assign or look up this dynamic UID.
Definition: dynamic_uid.h:51
DynamicUidMapping & operator=(const RdmnetDynamicUidMapping &c_mapping)
Assign an instance of the C RdmnetDynamicUidMapping type to an instance of this class.
Definition: dynamic_uid.h:65