1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Author: Patrick-Christopher Mattulat
- * Company: Lynar Studios
- * E-Mail: webmaster@lynarstudios.com
- * Created: 2020-08-17
- * Changed: 2020-09-04
- *
- * */
- #ifndef LS_STD_FILE_WRITER_HPP
- #define LS_STD_FILE_WRITER_HPP
- #include "../base/Class.hpp"
- #include "IWriter.hpp"
- #include "File.hpp"
- namespace ls_std {
- class FileWriter : public Class, IWriter {
- public:
- explicit FileWriter(File& _file);
- ~FileWriter() = default;
- void reset(File& _file);
- bool write(const ls_std::byte_field& _data) override;
- private:
- File file;
- static void _init(File& _file);
- };
- }
- #endif
|