FileReader.hpp 867 B

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