#pragma once #include #include #include #include #include namespace hex { class EncodingFile { public: enum class Type { Thingy }; EncodingFile() = default; EncodingFile(Type type, const fs::path &path); [[nodiscard]] std::pair getEncodingFor(const std::vector &buffer) const; [[nodiscard]] size_t getLongestSequence() const { return this->m_longestSequence; } [[nodiscard]] bool valid() const { return this->m_valid; } private: void parseThingyFile(std::ifstream &content); bool m_valid = false; std::map, std::string>> m_mapping; size_t m_longestSequence = 0; }; }