24#ifndef INCLUDE_OLAD_PORTBROKER_H_
25#define INCLUDE_OLAD_PORTBROKER_H_
31#include <olad/Universe.h>
40class PortBrokerInterface {
42 PortBrokerInterface() {}
43 virtual ~PortBrokerInterface() {}
45 virtual void SendRDMRequest(
53class PortBroker:
public PortBrokerInterface {
67 typedef std::pair<std::string, const Port*> port_key;
69 void RequestComplete(port_key key,
73 std::set<port_key> m_ports;
75 PortBroker(
const PortBroker &) =
delete;
76 const PortBroker &operator=(
const PortBroker &) =
delete;
Classes that represent RDM commands.
Definitions and Interfaces to implement an RDMController that sends a single message at a time.
void RemovePort(const Port *port)
Definition PortBroker.cpp:47
void AddPort(const Port *port)
Definition PortBroker.cpp:38
void SendRDMRequest(const Port *port, Universe *universe, ola::rdm::RDMRequest *request, ola::rdm::RDMCallback *callback)
Definition PortBroker.cpp:60
The base port class.
Definition Port.h:49
RDM Commands that represent requests (GET, SET or DISCOVER).
Definition RDMCommand.h:234
ola::BaseCallback1< void, RDMReply * > RDMCallback
The callback run when a RDM request completes.
Definition RDMControllerInterface.h:52
The namespace containing all OLA symbols.
Definition Credentials.cpp:44
Holds the final state of an RDM request.
Definition RDMReply.h:43