21 #ifndef OLAD_PORTMANAGER_H_
22 #define OLAD_PORTMANAGER_H_
25 #include "olad/Device.h"
26 #include "olad/DeviceManager.h"
27 #include "olad/PortBroker.h"
28 #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 SetPriorityStatic(
Port *port, uint8_t value);
52 template<
class PortClass>
53 bool GenericPatchPort(PortClass *port,
54 unsigned int new_universe_id);
56 template<
class PortClass>
57 bool GenericUnPatchPort(PortClass *port);
59 template<
class PortClass>
61 unsigned int new_universe_id)
const;
63 template<
class PortClass>
65 unsigned int new_universe_id)
const;
68 unsigned int universe_id)
const;
70 unsigned int universe_id)
const;
72 template<
class PortClass>
73 bool CheckForPortMatchingUniverse(
const std::vector<PortClass*> &ports,
74 unsigned int universe_id)
const;
82 #endif // OLAD_PORTMANAGER_H_