/* * Author: Patrick-Christopher Mattulat * Co-Author: Claude Sonnet 4.6 (LLM) * Company: Lynar Studios * E-Mail: webmaster@lynarstudios.com * Created: 2020-08-17 * Changed: 2026-06-23 * * */ #ifndef LS_STD_FILE_READER_HPP #define LS_STD_FILE_READER_HPP #include "File.hpp" #include #include #include /* * @doc: class(name: 'FileReader', package: 'io') * @doc: io.FileReader.description('This class can read the content of a file and return it as byte field.') * */ namespace ls::standard::io { class LS_STD_DYNAMIC_GOAL FileReader : public ls::standard::core::Class, public ls::standard::core::interface_type::IReader { public: explicit FileReader(const ls::standard::io::File &_file); ~FileReader() noexcept override; [[nodiscard]] ls::standard::core::type::byte_field read() override; void reset(const ls::standard::io::File &_file); private: ls::standard::io::File file; }; } #endif