FileReader.hpp 703 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-08-17
  6. * Changed: 2021-04-23
  7. *
  8. * */
  9. #ifndef LS_STD_FILE_READER_HPP
  10. #define LS_STD_FILE_READER_HPP
  11. #include <ls_std/base/Class.hpp>
  12. #include "File.hpp"
  13. #include "IReader.hpp"
  14. namespace ls_std
  15. {
  16. class FileReader : public Class, public IReader
  17. {
  18. public:
  19. explicit FileReader(ls_std::File &_file);
  20. ~FileReader() override = default;
  21. ls_std::byte_field read() override;
  22. void reset(ls_std::File &_file);
  23. private:
  24. ls_std::File file;
  25. static void _init(ls_std::File &_file);
  26. };
  27. }
  28. #endif