29 #ifndef INCLUDE_OLA_RDM_SUBDEVICEDISPATCHER_H_ 30 #define INCLUDE_OLA_RDM_SUBDEVICEDISPATCHER_H_ 53 struct FanOutTracker {
55 FanOutTracker(uint16_t number_of_subdevices,
58 bool IncrementAndCheckIfComplete() {
59 return ++m_responses_so_far == m_number_of_subdevices;
67 uint16_t NumResponses()
const {
68 return m_responses_so_far;
72 uint16_t m_number_of_subdevices;
73 uint16_t m_responses_so_far;
80 typedef std::map<uint16_t, ola::rdm::RDMControllerInterface*> SubDeviceMap;
82 SubDeviceMap m_subdevices;
89 ola::rdm::rdm_nack_reason nack_reason);
91 void HandleSubDeviceResponse(FanOutTracker *tracker,
96 #endif // INCLUDE_OLA_RDM_SUBDEVICEDISPATCHER_H_ Definitions and Interfaces to implement an RDMController that sends a single message at a time...
RDMStatusCode
RDM Status Codes.
Definition: RDMResponseCodes.h:45
An RDM Command that represents responses (GET, SET or DISCOVER).
Definition: RDMCommand.h:457
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition: RDMCommand.h:234
void SendRDMRequest(ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *callback)
Send a RDM command.
Definition: SubDeviceDispatcher.cpp:50
void AddSubDevice(uint16_t sub_device_number, ola::rdm::RDMControllerInterface *device)
Definition: SubDeviceDispatcher.cpp:38
The base class for all 1 argument callbacks.
Definition: Callback.h:982
Holds the final state of an RDM request.
Definition: RDMReply.h:43
The interface that can send RDMRequest.
Definition: RDMControllerInterface.h:73
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
Definition: SubDeviceDispatcher.h:41