mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
initial checkin
This commit is contained in:
50
MAC_SDK/Source/Shared/StdLibFileIO.h
Normal file
50
MAC_SDK/Source/Shared/StdLibFileIO.h
Normal file
@@ -0,0 +1,50 @@
|
||||
#ifdef IO_USE_STD_LIB_FILE_IO
|
||||
|
||||
#ifndef APE_STDLIBFILEIO_H
|
||||
#define APE_STDLIBFILEIO_H
|
||||
|
||||
#include "IO.h"
|
||||
|
||||
class CStdLibFileIO : public CIO
|
||||
{
|
||||
public:
|
||||
|
||||
// construction / destruction
|
||||
CStdLibFileIO();
|
||||
~CStdLibFileIO();
|
||||
|
||||
// open / close
|
||||
int Open(LPCTSTR pName);
|
||||
int Close();
|
||||
|
||||
// read / write
|
||||
int Read(void * pBuffer, unsigned int nBytesToRead, unsigned int * pBytesRead);
|
||||
int Write(const void * pBuffer, unsigned int nBytesToWrite, unsigned int * pBytesWritten);
|
||||
|
||||
// seek
|
||||
int Seek(int nDistance, unsigned int nMoveMode);
|
||||
|
||||
// other functions
|
||||
int SetEOF();
|
||||
|
||||
// creation / destruction
|
||||
int Create(const char * pName);
|
||||
int Delete();
|
||||
|
||||
// attributes
|
||||
int GetPosition();
|
||||
int GetSize();
|
||||
int GetName(char * pBuffer);
|
||||
int GetHandle();
|
||||
|
||||
private:
|
||||
|
||||
char m_cFileName[MAX_PATH];
|
||||
BOOL m_bReadOnly;
|
||||
FILE * m_pFile;
|
||||
};
|
||||
|
||||
#endif // #ifndef APE_STDLIBFILEIO_H
|
||||
|
||||
#endif // #ifdef IO_USE_STD_LIB_FILE_IO
|
||||
|
||||
Reference in New Issue
Block a user