21 #ifndef OLAD_PLUGIN_API_CLIENT_H_
22 #define OLAD_PLUGIN_API_CLIENT_H_
26 #include "common/rpc/RpcController.h"
29 #include "olad/DmxSource.h"
33 class OlaClientService_Stub;
55 Client(ola::proto::OlaClientService_Stub *client_stub,
67 virtual bool SendDMX(
unsigned int universe_id, uint8_t priority,
100 ola::proto::Ack *ack);
102 std::auto_ptr<class ola::proto::OlaClientService_Stub> m_client_stub;
103 std::map<unsigned int, DmxSource> m_data_map;
106 DISALLOW_COPY_AND_ASSIGN(
Client);
109 #endif // OLAD_PLUGIN_API_CLIENT_H_
Definition: DmxSource.h:36
virtual bool SendDMX(unsigned int universe_id, uint8_t priority, const DmxBuffer &buffer)
Push a DMX update to this client.
Definition: Client.cpp:47
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
A RDM unique identifier (UID).
const DmxSource SourceData(unsigned int universe) const
Get the most recent DMX data received from this client.
Definition: Client.cpp:75
Represents a connected OLA client on the OLA server side.
Definition: Client.h:46
Represents a RDM UID.
Definition: UID.h:57
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
A RpcController object is passed every time an RPC is invoked and is used to indicate the success or ...
Definition: RpcController.h:42
ola::rdm::UID GetUID() const
Return the UID associated with this client.
Definition: Client.cpp:87
Client(ola::proto::OlaClientService_Stub *client_stub, const ola::rdm::UID &uid)
Create a new client.
Definition: Client.cpp:37
void DMXReceived(unsigned int universe, const DmxSource &source)
Called when this client sends us new data.
Definition: Client.cpp:71
void SetUID(const ola::rdm::UID &uid)
Set the UID for the client.
Definition: Client.cpp:91