21 #ifndef OLAD_PORTMANAGER_H_
22 #define OLAD_PORTMANAGER_H_
26 #include "olad/Device.h"
27 #include "olad/DeviceManager.h"
28 #include "olad/PortBroker.h"
29 #include "olad/UniverseStore.h"
38 : m_universe_store(universe_store),
43 bool PatchPort(
InputPort *port,
unsigned int universe);
44 bool PatchPort(
OutputPort *port,
unsigned int universe);
48 bool SetPriorityInherit(
Port *port);
49 bool SetPriorityOverride(
Port *port, uint8_t value);
55 template<
class PortClass>
56 bool GenericPatchPort(PortClass *port,
57 unsigned int new_universe_id);
59 template<
class PortClass>
60 bool GenericUnPatchPort(PortClass *port);
62 template<
class PortClass>
64 unsigned int new_universe_id)
const;
66 template<
class PortClass>
68 unsigned int new_universe_id)
const;
71 unsigned int universe_id)
const;
73 unsigned int universe_id)
const;
75 template<
class PortClass>
76 bool CheckForPortMatchingUniverse(
const vector<PortClass*> &ports,
77 unsigned int universe_id)
const;
83 #endif // OLAD_PORTMANAGER_H_