#include <FileIO.h>
Definition at line 21 of file FileIO.h.
◆ FileIOMode
◆ FileIOMode
◆ FileIO()
Definition at line 19 of file FileIO.cpp.
22{
23 wxString scheme;
24
25 auto path =
name.GetFullPath();
27 mInputStream = std::make_unique<wxFFileInputStream>(path);
29 wxPrintf(
wxT(
"Couldn't get input stream: %s\n"), path);
30 return;
31 }
32 }
33 else {
36 wxPrintf(
wxT(
"Couldn't get output stream: %s\n"), path);
37 return;
38 }
39 }
40
42}
std::unique_ptr< wxInputStream > mInputStream
std::unique_ptr< wxFFileOutputStream > mOutputStream
References Input, mInputStream, mMode, mOpen, mOutputStream, name, and wxT().
◆ ~FileIO()
◆ Close()
◆ IsOpened()
bool FileIO::IsOpened |
( |
| ) |
|
◆ Read()
wxInputStream & FileIO::Read |
( |
void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
◆ Write()
wxOutputStream & FileIO::Write |
( |
const void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
◆ mInputStream
std::unique_ptr<wxInputStream> FileIO::mInputStream |
|
private |
◆ mMode
◆ mOpen
◆ mOutputStream
std::unique_ptr<wxFFileOutputStream> FileIO::mOutputStream |
|
private |
The documentation for this class was generated from the following files: