/* * Author: Patrick-Christopher Mattulat * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2020-08-17 * Changed: 2021-05-01 * * */ #ifndef LS_STD_FILE_READER_HPP #define LS_STD_FILE_READER_HPP #include #include "File.hpp" #include "IReader.hpp" namespace ls_std { class FileReader : public ls_std::Class, public ls_std::IReader { public: explicit FileReader(ls_std::File &_file); ~FileReader() override = default; ls_std::byte_field read() override; void reset(ls_std::File &_file); private: ls_std::File file; static void _init(ls_std::File &_file); }; } #endif