15#include <wx/filename.h>
16#include <wx/wfstream.h>
25 auto path =
name.GetFullPath();
27 mInputStream = std::make_unique<wxFFileInputStream>(path);
29 wxPrintf(
wxT(
"Couldn't get input stream: %s\n"), path);
36 wxPrintf(
wxT(
"Couldn't get output stream: %s\n"), path);
FileIO(const wxFileNameWrapper &name, FileIOMode mode)
std::unique_ptr< wxInputStream > mInputStream
wxInputStream & Read(void *buffer, size_t size)
wxOutputStream & Write(const void *buffer, size_t size)
std::unique_ptr< wxFFileOutputStream > mOutputStream