mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-03 01:19:24 +02:00
List of commands that were executed in the `src directory`: * sed -i 's/Audacity: A Digital Audio Editor/Tenacity/g' *.h * sed -i 's/Audacity: A Digital Audio Editor/Tenacity/g' *.cpp Signed-off-by: Panagiotis Vasilopoulos <hello@alwayslivid.com>
51 lines
893 B
C++
51 lines
893 B
C++
/**********************************************************************
|
|
|
|
Tenacity
|
|
|
|
FileIO.h
|
|
|
|
Leland Lucius
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_FILEIO__
|
|
#define __AUDACITY_FILEIO__
|
|
|
|
#include <memory>
|
|
|
|
class wxInputStream;
|
|
class wxOutputStream;
|
|
class wxFFileOutputStream;
|
|
class wxFileNameWrapper;
|
|
|
|
class AUDACITY_DLL_API FileIO
|
|
{
|
|
public:
|
|
typedef enum FileIOMode
|
|
{
|
|
Input,
|
|
Output
|
|
} FileIOMode;
|
|
|
|
public:
|
|
FileIO(const wxFileNameWrapper & name, FileIOMode mode);
|
|
|
|
// Calls Close()
|
|
~FileIO();
|
|
|
|
bool IsOpened();
|
|
|
|
bool Close();
|
|
|
|
wxInputStream & Read(void *buffer, size_t size);
|
|
wxOutputStream & Write(const void *buffer, size_t size);
|
|
|
|
private:
|
|
FileIOMode mMode;
|
|
std::unique_ptr<wxInputStream> mInputStream;
|
|
std::unique_ptr<wxFFileOutputStream> mOutputStream;
|
|
bool mOpen;
|
|
};
|
|
|
|
#endif
|