21 #ifndef OLAD_DEVICEMANAGER_H_
22 #define OLAD_DEVICEMANAGER_H_
29 #include "ola/timecode/TimeCode.h"
30 #include "olad/Device.h"
31 #include "olad/Preferences.h"
42 : alias(alias), device(device) {}
110 std::vector<device_alias_pair>
Devices()
const;
138 static const unsigned int MISSING_DEVICE_ALIAS;
141 typedef std::map<std::string, device_alias_pair> DeviceIdMap;
142 typedef std::map<unsigned int, AbstractDevice*> DeviceAliasMap;
147 DeviceIdMap m_devices;
148 DeviceAliasMap m_alias_map;
150 unsigned int m_next_device_alias;
151 std::set<class OutputPort*> m_timecode_ports;
156 template <
class PortClass>
157 void SavePortPatchings(
const std::vector<PortClass*> &ports)
const;
159 void SavePortPriority(
const Port &port)
const;
160 void RestorePortPriority(
Port *port)
const;
162 template <
class PortClass>
163 void RestorePortSettings(
const std::vector<PortClass*> &ports)
const;
165 static const char PORT_PREFERENCES[];
166 static const unsigned int FIRST_DEVICE_ALIAS = 1;
167 static const char PRIORITY_VALUE_SUFFIX[];
168 static const char PRIORITY_MODE_SUFFIX[];
173 #endif // OLAD_DEVICEMANAGER_H_