21 #ifndef OLAD_PLUGIN_API_PORTMANAGER_H_ 22 #define OLAD_PLUGIN_API_PORTMANAGER_H_ 25 #include "olad/Device.h" 26 #include "olad/PortBroker.h" 27 #include "olad/plugin_api/DeviceManager.h" 28 #include "olad/plugin_api/UniverseStore.h" 46 : m_universe_store(universe_store),
99 template<
class PortClass>
100 bool GenericPatchPort(PortClass *port,
101 unsigned int new_universe_id);
103 template<
class PortClass>
104 bool GenericUnPatchPort(PortClass *port);
106 template<
class PortClass>
108 unsigned int new_universe_id)
const;
110 template<
class PortClass>
112 unsigned int new_universe_id)
const;
119 unsigned int universe_id)
const;
126 unsigned int universe_id)
const;
132 template<
class PortClass>
133 bool CheckForPortMatchingUniverse(
const std::vector<PortClass*> &ports,
134 unsigned int universe_id)
const;
142 #endif // OLAD_PLUGIN_API_PORTMANAGER_H_
bool UnPatchPort(InputPort *port)
UnPatch an InputPort.
Definition: PortManager.cpp:42
Definition: PortBroker.h:53
Maintains a collection of Universe objects.
Definition: UniverseStore.h:39
bool PatchPort(InputPort *port, unsigned int universe)
Patch an InputPort to a universe.
Definition: PortManager.cpp:32
A port that sends DMX512 data.
Definition: Port.h:163
~PortManager()
Destructor.
Definition: PortManager.h:53
Responsible for performing Port operations.
Definition: PortManager.h:37
The interface for a Device.
Definition: Device.h:44
bool SetPriorityInherit(Port *port)
Set a port to 'inherit' priority mode.
Definition: PortManager.cpp:50
bool SetPriorityStatic(Port *port, uint8_t value)
Set a port to 'override' priority mode.
Definition: PortManager.cpp:61
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44
The base port class.
Definition: Port.h:49
PortManager(UniverseStore *universe_store, PortBroker *broker)
Create a new PortManager.
Definition: PortManager.h:44