21 #ifndef INCLUDE_OLA_CLIENT_CLIENTTYPES_H_
22 #define INCLUDE_OLA_CLIENT_CLIENTTYPES_H_
25 #include <ola/rdm/RDMResponseCodes.h>
45 OlaPlugin(
unsigned int id,
const std::string &name,
bool active)
54 unsigned int Id()
const {
return m_id; }
59 const std::string&
Name()
const {
return m_name; }
67 bool operator<(
const OlaPlugin &other)
const {
68 return m_id < other.m_id;
110 unsigned int universe,
112 const std::string &description,
118 m_universe(universe),
120 m_description(description),
121 m_priority_capability(capability),
122 m_priority_mode(mode),
123 m_priority(priority),
124 m_supports_rdm(supports_rdm) {}
127 unsigned int Id()
const {
return m_id; }
132 unsigned int Universe()
const {
return m_universe; }
134 bool IsActive()
const {
return m_active; }
142 return m_priority_capability;
145 return m_priority_mode;
148 uint8_t Priority()
const {
return m_priority; }
158 unsigned int m_universe;
160 std::string m_description;
173 unsigned int universe,
175 const std::string &description,
180 OlaPort(port_id, universe, active, description,
181 capability, mode, priority, supports_rdm) {
191 unsigned int universe,
193 const std::string &description,
198 OlaPort(port_id, universe, active, description,
199 capability, mode, priority, supports_rdm) {
211 const std::string &name,
213 const std::vector<OlaInputPort> &input_ports,
214 const std::vector<OlaOutputPort> &output_ports):
218 m_plugin_id(plugin_id),
219 m_input_ports(input_ports),
220 m_output_ports(output_ports) {}
223 std::string Id()
const {
return m_id; }
224 unsigned int Alias()
const {
return m_alias; }
225 const std::string& Name()
const {
return m_name; }
226 int PluginId()
const {
return m_plugin_id; }
228 const std::vector<OlaInputPort> &InputPorts()
const {
229 return m_input_ports;
231 const std::vector<OlaOutputPort> &OutputPorts()
const {
232 return m_output_ports;
235 bool operator<(
const OlaDevice &other)
const {
236 return m_alias < other.m_alias;
241 unsigned int m_alias;
244 std::vector<OlaInputPort> m_input_ports;
245 std::vector<OlaOutputPort> m_output_ports;
261 const std::string &name,
262 unsigned int input_port_count,
263 unsigned int output_port_count,
264 unsigned int rdm_device_count):
268 m_input_port_count(input_port_count),
269 m_output_port_count(output_port_count),
270 m_rdm_device_count(rdm_device_count) {}
273 unsigned int Id()
const {
return m_id;}
274 merge_mode MergeMode()
const {
return m_merge_mode; }
275 const std::string& Name()
const {
return m_name;}
276 unsigned int InputPortCount()
const {
return m_input_port_count; }
277 unsigned int OutputPortCount()
const {
return m_output_port_count; }
278 unsigned int RDMDeviceCount()
const {
return m_rdm_device_count; }
282 merge_mode m_merge_mode;
284 unsigned int m_input_port_count;
285 unsigned int m_output_port_count;
286 unsigned int m_rdm_device_count;
304 : universe(universe),
326 : response_code(response_code) {
331 #endif // INCLUDE_OLA_CLIENT_CLIENTTYPES_H_