1 #ifndef UDMX_DEVICE_H 2 #define UDMX_DEVICE_H 3 4 #include <SFML/System.hpp> 5 #include <stdint.h> 6 #include "hardware/hardwareOutputDevice.h" 7 8 class UDMXDevice : public HardwareOutputDevice 9 { 10 private: 11 public: 12 UDMXDevice() = default; 13 virtual ~UDMXDevice() = default; 14 15 //Configure the device. 16 virtual bool configure(std::unordered_map<string, string> settings); 17 18 //Set a hardware channel output. Value is 0.0 to 1.0 for no to max output. 19 virtual void setChannelData(int channel, float value); 20 21 //Return the number of output channels supported by this device. 22 virtual int getChannelCount(); 23 }; 24 25 #endif//UDMX_DEVICE_H 26