Open Lighting Architecture
Latest Git
|
Responsible for performing Port operations.
Public Member Functions | |
PortManager (UniverseStore *universe_store, PortBroker *broker) | |
Create a new PortManager. More... | |
~PortManager () | |
Destructor. | |
bool | PatchPort (InputPort *port, unsigned int universe) |
Patch an InputPort to a universe. More... | |
bool | PatchPort (OutputPort *port, unsigned int universe) |
Patch an OutputPort to a universe. More... | |
bool | UnPatchPort (InputPort *port) |
UnPatch an InputPort. More... | |
bool | UnPatchPort (OutputPort *port) |
UnPatch an OutputPort. More... | |
bool | SetPriorityInherit (Port *port) |
Set a port to 'inherit' priority mode. More... | |
bool | SetPriorityStatic (Port *port, uint8_t value) |
Set a port to 'override' priority mode. More... | |
|
inline |
Create a new PortManager.
universe_store | the UniverseStore used to lookup / create Universes. |
broker | the PortBroker to update when Ports are added / removed. |
bool ola::PortManager::PatchPort | ( | InputPort * | port, |
unsigned int | universe | ||
) |
Patch an InputPort to a universe.
port | the port to patch |
universe | the universe-id to patch to. |
bool ola::PortManager::PatchPort | ( | OutputPort * | port, |
unsigned int | universe | ||
) |
Patch an OutputPort to a universe.
port | the port to patch |
universe | the universe-id to patch to. |
bool ola::PortManager::SetPriorityInherit | ( | Port * | port | ) |
Set a port to 'inherit' priority mode.
port | the port to configure |
bool ola::PortManager::SetPriorityStatic | ( | Port * | port, |
uint8_t | value | ||
) |
Set a port to 'override' priority mode.
port | the port to configure |
value | the new priority |
bool ola::PortManager::UnPatchPort | ( | InputPort * | port | ) |
bool ola::PortManager::UnPatchPort | ( | OutputPort * | port | ) |
UnPatch an OutputPort.
port | the port to unpatch |