21 #ifndef INCLUDE_OLA_CLIENT_CLIENTTYPES_H_
22 #define INCLUDE_OLA_CLIENT_CLIENTTYPES_H_
25 #include <ola/rdm/RDMFrame.h>
26 #include <ola/rdm/RDMResponseCodes.h>
47 const std::string &name,
59 unsigned int Id()
const {
return m_id; }
64 const std::string&
Name()
const {
return m_name; }
78 bool operator<(
const OlaPlugin &other)
const {
79 return m_id < other.m_id;
122 unsigned int universe,
124 const std::string &description,
130 m_universe(universe),
132 m_description(description),
133 m_priority_capability(capability),
134 m_priority_mode(mode),
135 m_priority(priority),
136 m_supports_rdm(supports_rdm) {}
139 unsigned int Id()
const {
return m_id; }
144 unsigned int Universe()
const {
return m_universe; }
146 bool IsActive()
const {
return m_active; }
154 return m_priority_capability;
157 return m_priority_mode;
160 uint8_t Priority()
const {
return m_priority; }
170 unsigned int m_universe;
172 std::string m_description;
185 unsigned int universe,
187 const std::string &description,
192 OlaPort(port_id, universe, active, description,
193 capability, mode, priority, supports_rdm) {
203 unsigned int universe,
205 const std::string &description,
210 OlaPort(port_id, universe, active, description,
211 capability, mode, priority, supports_rdm) {
223 const std::string &name,
225 const std::vector<OlaInputPort> &input_ports,
226 const std::vector<OlaOutputPort> &output_ports):
230 m_plugin_id(plugin_id),
231 m_input_ports(input_ports),
232 m_output_ports(output_ports) {}
235 std::string Id()
const {
return m_id; }
236 unsigned int Alias()
const {
return m_alias; }
237 const std::string& Name()
const {
return m_name; }
238 int PluginId()
const {
return m_plugin_id; }
240 const std::vector<OlaInputPort> &InputPorts()
const {
241 return m_input_ports;
243 const std::vector<OlaOutputPort> &OutputPorts()
const {
244 return m_output_ports;
247 bool operator<(
const OlaDevice &other)
const {
248 return m_alias < other.m_alias;
253 unsigned int m_alias;
256 std::vector<OlaInputPort> m_input_ports;
257 std::vector<OlaOutputPort> m_output_ports;
273 const std::string &name,
274 const std::vector<OlaInputPort> &input_ports,
275 const std::vector<OlaOutputPort> &output_ports,
276 unsigned int rdm_device_count):
280 m_input_ports(input_ports),
281 m_output_ports(output_ports),
282 m_rdm_device_count(rdm_device_count) {}
285 unsigned int Id()
const {
return m_id;}
286 merge_mode MergeMode()
const {
return m_merge_mode; }
287 const std::string& Name()
const {
return m_name;}
288 unsigned int InputPortCount()
const {
return m_input_ports.size(); }
289 unsigned int OutputPortCount()
const {
return m_output_ports.size(); }
290 unsigned int RDMDeviceCount()
const {
return m_rdm_device_count; }
292 const std::vector<OlaInputPort> &InputPorts()
const {
293 return m_input_ports;
295 const std::vector<OlaOutputPort> &OutputPorts()
const {
296 return m_output_ports;
301 merge_mode m_merge_mode;
303 std::vector<OlaInputPort> m_input_ports;
304 std::vector<OlaOutputPort> m_output_ports;
305 unsigned int m_rdm_device_count;
323 : universe(universe),
350 : response_code(response_code) {
355 #endif // INCLUDE_OLA_CLIENT_CLIENTTYPES_H_