Audacity  2.2.0
FileIO Class Reference

#include <FileIO.h>

Public Types

enum  FileIOMode { Input, Output }
 
typedef enum FileIO::FileIOMode FileIOMode
 

Public Member Functions

 FileIO (const wxString &name, FileIOMode mode)
 
 ~FileIO ()
 
bool IsOpened ()
 
void Close ()
 
wxInputStream & Read (void *buffer, size_t size)
 
wxOutputStream & Write (const void *buffer, size_t size)
 

Private Attributes

wxString mName
 
FileIOMode mMode
 
std::unique_ptr< wxInputStream > mInputStream
 
std::unique_ptr< wxOutputStream > mOutputStream
 
bool mOpen
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
Input 
Output 

Constructor & Destructor Documentation

FileIO::FileIO ( const wxString &  name,
FileIOMode  mode 
)
FileIO::~FileIO ( )

References Close().

Member Function Documentation

void FileIO::Close ( )

References mInputStream, mOpen, and mOutputStream.

Referenced by ~FileIO().

bool FileIO::IsOpened ( )

References mOpen.

wxInputStream & FileIO::Read ( void *  buffer,
size_t  size 
)

References mInputStream.

wxOutputStream & FileIO::Write ( const void *  buffer,
size_t  size 
)

References mOutputStream.

Member Data Documentation

std::unique_ptr<wxInputStream> FileIO::mInputStream
private

Referenced by Close(), FileIO(), and Read().

FileIOMode FileIO::mMode
private

Referenced by FileIO().

wxString FileIO::mName
private

Referenced by FileIO().

bool FileIO::mOpen
private

Referenced by Close(), FileIO(), and IsOpened().

std::unique_ptr<wxOutputStream> FileIO::mOutputStream
private

Referenced by Close(), FileIO(), and Write().


The documentation for this class was generated from the following files: