21 #ifndef PLUGINS_E131_E131PORT_H_
22 #define PLUGINS_E131_E131PORT_H_
25 #include "olad/Port.h"
26 #include "plugins/e131/E131Device.h"
27 #include "libs/acn/E131Node.h"
36 std::string Description(
Universe *universe)
const;
38 static const unsigned int MAX_E131_UNIVERSE = 63999;
53 return m_helper.PreSetUniverse(old_universe, new_universe);
60 bool SupportsPriorities()
const {
return true; }
61 uint8_t InheritedPriority()
const {
return m_priority; }
66 E131PortHelper m_helper;
83 return m_helper.PreSetUniverse(old_universe, new_universe);
92 void SetPreviewMode(
bool preview_mode) { m_preview_on = preview_mode; }
93 bool PreviewMode()
const {
return m_preview_on; }
94 bool SupportsPriorities()
const {
return true; }
98 uint8_t m_last_priority;
101 E131PortHelper m_helper;
106 #endif // PLUGINS_E131_E131PORT_H_
Definition: PortConstants.h:46
static const uint8_t SOURCE_PRIORITY_DEFAULT
The default priority for a source.
Definition: SourcePriorities.h:41
std::string Description() const
Fetch the string description for a Port.
Definition: E131Port.h:86
Definition: E131Port.h:33
Definition: Universe.h:45
Used to hold a single universe of DMX data.
Definition: DmxBuffer.h:49
BasicOutputPort(AbstractDevice *parent, unsigned int port_id, bool start_rdm_discovery_on_patch=false, bool supports_rdm=false)
Create a new BasicOutputPort.
Definition: Port.cpp:120
Definition: E131Device.h:40
Definition: PluginAdaptor.h:41
bool WriteDMX(const ola::DmxBuffer &buffer, uint8_t priority)
Write DMX data to this port.
Definition: E131Port.cpp:95
Definition: E131Port.h:71
Definition: E131Node.h:50
Universe * GetUniverse() const
Fetch the universe this Port is bound to.
Definition: Port.h:295
uint8_t GetPriority() const
Get the numeric priority for this Port.
Definition: Port.h:298
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44