Open Lighting Architecture
0.9.4
|
Responsible for performing Port operations.
Public Member Functions | |
PortManager (UniverseStore *universe_store, PortBroker *broker) | |
Create a new PortManager. | |
~PortManager () | |
Destructor. | |
bool | PatchPort (InputPort *port, unsigned int universe) |
Patch an InputPort to a universe. | |
bool | PatchPort (OutputPort *port, unsigned int universe) |
Patch an OutputPort to a universe. | |
bool | UnPatchPort (InputPort *port) |
UnPatch an InputPort. | |
bool | UnPatchPort (OutputPort *port) |
UnPatch an OutputPort. | |
bool | SetPriorityInherit (Port *port) |
Set a port to 'inherit' priority mode. | |
bool | SetPriorityStatic (Port *port, uint8_t value) |
Set a port to 'override' priority mode. |
|
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 |