FileReader.hpp 663 B

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