6#if !defined(CXFILE_INCLUDE_H)
7#define CXFILE_INCLUDE_H
13BEGIN_MOOTOOLS_NAMESPACE
22 typedef void (*fileCallbackEvent)(
xFileHandle fileHandle, fileEventType type);
24 typedef struct XFileCallback
26 fileCallbackEvent callback;
35 extern XFileCallback fileCallbackNotify;
40 class CXFileException;
41 class DLL_TOOLSFUNCTION
CXFile :
public CXObject
45 DECLARE_DYNAMIC_XOBJECT(
CXFile)
55 modeReadWrite = 0x00002,
56 readFlags = modeRead|modeWrite|modeReadWrite,
58 shareExclusive = 0x00010,
59 shareDenyWrite = 0x00020,
60 shareDenyRead = 0x00030,
61 shareDenyNone = 0x00040,
62 shareFlags = shareExclusive| shareDenyWrite|shareDenyRead|shareDenyNone,
64 typeUnicode = 0x00400,
68 modeNoTruncate = 0x02000,
72 noException = 0x100000,
74 specificFlags = 0x10000000,
81 typedef enum SeekPosition
XEnumType(
unsigned int)
92#ifdef MOOTOOLS_MFC_PRODUCT_BUILD
97 virtual fileuint GetPosition()
const;
98 virtual CXString GetFileName()
const;
99 virtual CXString GetFilePath()
const;
113 virtual unsigned int Read(
void* buffer,
unsigned int maxByteToRead);
114 virtual void Write(
const void* buffer,
unsigned int byteToWrite);
116 virtual void Abort();
117 virtual void Flush();
118 virtual void Close();
125 virtual void Dump()
const;
147 bool autoClose, sendException;
151END_MOOTOOLS_NAMESPACE
153#include "xfileoperation.h"
The class defines an x, y, z 3D point which can use int, float or double.
Definition 3DPoint.h:27
CXFile is the base class for CXStdioFile, CXStdioFileEx, CXMemFile.
Definition XFile.h:42
CXFile(CFile *pfile, bool allowException=true)
allowException = false then no exception is send by the class which return false instead
virtual bool Open(LPCTSTR lpszFileName, unsigned int openMode, CXFileException *pError=NULL)
Open does not send any exception but can fill CXFileException with the appropriate cause of the faili...