1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-04-25 07:23:44 +02:00

Locate and position the current Audacity source code, and clear a variety of old junk out of the way into junk-branches

This commit is contained in:
ra
2010-01-23 19:44:49 +00:00
commit e74978ba77
1011 changed files with 781704 additions and 0 deletions

63
src/FileIO.h Executable file
View File

@@ -0,0 +1,63 @@
/**********************************************************************
Audacity: A Digital Audio Editor
FileIO.h
Leland Lucius
**********************************************************************/
#ifndef __AUDACITY_FILEIO__
#define __AUDACITY_FILEIO__
#include <wx/object.h>
#include <wx/wfstream.h>
#include <wx/protocol/ftp.h>
class FileIO
{
public:
typedef enum FileIOMode
{
Input,
Output
} FileIOMode;
public:
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);
// On the Mac, this sets the file type and creator. It does nothing on
// other platforms.
void SetCatalogInfo();
void SetCatalogInfo(wxUint32 type);
private:
wxString mName;
FileIOMode mMode;
wxURI mUri;
wxFTP *mFtp;
wxInputStream *mInputStream;
wxOutputStream *mOutputStream;
bool mOpen;
};
#endif
// Indentation settings for Vim and Emacs.
// Please do not modify past this point.
//
// Local Variables:
// c-basic-offset: 3
// indent-tabs-mode: nil
// End:
//
// vim: et sts=3 sw=3