filetype.h (553B)
1 #pragma once 2 3 #include <string> 4 #include <cstdint> 5 6 namespace pluginLib 7 { 8 class FileType 9 { 10 public: 11 static const FileType Syx; 12 static const FileType Mid; 13 static const FileType Empty; 14 15 explicit FileType(std::string _type) : m_type(std::move(_type)) 16 { 17 } 18 19 bool operator == (const FileType& _other) const; 20 bool operator != (const FileType& _other) const; 21 22 const std::string& type() const { return m_type; } 23 24 private: 25 std::string m_type; 26 }; 27 28 enum class ExportType : uint8_t 29 { 30 Clipboard, 31 DragAndDrop, 32 EmuHardware, 33 File 34 }; 35 }