23 #ifndef RDMNET_CPP_MESSAGE_TYPES_DYNAMIC_UID_H_
24 #define RDMNET_CPP_MESSAGE_TYPES_DYNAMIC_UID_H_
33 #include "rdm/cpp/uid.h"
47 constexpr
bool IsOk()
const noexcept;
61 : 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:99
DynamicUidAssignmentList()=delete
Not default-constructible.
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:151
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:157
constexpr bool more_coming() const noexcept
This message contains a partial list.
Definition: dynamic_uid.h:145
std::vector< DynamicUidMapping > GetMappings() const
Copy out the list of dynamic UID mappings.
Definition: dynamic_uid.h:130
DynamicUidAssignmentList & operator=(const DynamicUidAssignmentList &other)=delete
Not copyable - use GetMappings() to copy out the data.
DynamicUidAssignmentList(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:466
rdmnet_dynamic_uid_status_t
Definition: common.h:134
@ kRdmnetDynamicUidStatusOk
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
Definition: message.h:246
RdmnetDynamicUidMapping * mappings
Definition: message.h:248
bool more_coming
Definition: message.h:257
size_t num_mappings
Definition: message.h:250
Definition: message.h:235
EtcPalUuid rid
Definition: message.h:241
rdmnet_dynamic_uid_status_t status_code
Definition: message.h:237
RdmUid uid
Definition: message.h:239
A mapping from a dynamic UID to a responder ID (RID).
Definition: dynamic_uid.h:42
constexpr bool IsOk() const noexcept
Whether a DynamicUidMapping has a status code of OK.
Definition: dynamic_uid.h:76
rdm::Uid uid
The dynamic UID.
Definition: dynamic_uid.h:54
etcpal::Uuid rid
The corresponding RID to which the dynamic UID is mapped.
Definition: dynamic_uid.h:56
std::string CodeToString() const
Convert the mapping status code to a string representation.
Definition: dynamic_uid.h:88
DynamicUidMapping & operator=(const RdmnetDynamicUidMapping &c_mapping)
Assign an instance of the C RdmnetDynamicUidMapping type to an instance of this class.
Definition: dynamic_uid.h:66
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:52
const char * CodeToCString() const noexcept
Convert the mapping status code to a string representation.
Definition: dynamic_uid.h:82