|
enum | OpenFlags {
modeRead = (int)0x00000,
modeWrite = (int)0x00001,
modeReadWrite = (int)0x00002,
shareCompat = (int)0x00000,
shareExclusive = (int)0x00010,
shareDenyWrite = (int)0x00020,
shareDenyRead = (int)0x00030,
shareDenyNone = (int)0x00040,
modeNoInherit = (int)0x00080,
typeUnicode = (int)0x00400,
modeCreate = (int)0x01000,
modeNoTruncate = (int)0x02000,
typeText = (int)0x04000,
typeBinary = (int)0x08000,
osNoBuffer = (int)0x10000,
osWriteThrough = (int)0x20000,
osRandomAccess = (int)0x40000,
osSequentialScan = (int)0x80000
} |
|
enum | Attribute {
normal = 0x00,
readOnly = FILE_ATTRIBUTE_READONLY,
hidden = FILE_ATTRIBUTE_HIDDEN,
system = FILE_ATTRIBUTE_SYSTEM,
volume = 0x08,
directory = FILE_ATTRIBUTE_DIRECTORY,
archive = FILE_ATTRIBUTE_ARCHIVE,
device = FILE_ATTRIBUTE_DEVICE,
temporary = FILE_ATTRIBUTE_TEMPORARY,
sparse = FILE_ATTRIBUTE_SPARSE_FILE,
reparsePt = FILE_ATTRIBUTE_REPARSE_POINT,
compressed = FILE_ATTRIBUTE_COMPRESSED,
offline = FILE_ATTRIBUTE_OFFLINE,
notIndexed = FILE_ATTRIBUTE_NOT_CONTENT_INDEXED,
encrypted = FILE_ATTRIBUTE_ENCRYPTED
} |
|
enum | SeekPosition { begin = 0x0,
current = 0x1,
end = 0x2
} |
|
|
virtual const CRuntimeClass * | GetRuntimeClass () const override |
|
| CFile (const char *lpszFileName, unsigned int nOpenFlags) |
|
bool | Open (const char *lpszFileName, unsigned int nOpenFlags=CFile::modeRead, CFileException *pError=nullptr) |
|
void | Close () |
|
void | Abort () |
|
uint64 | SeekToEnd () |
|
void | SeekToBegin () |
|
virtual uint64 | Seek (int64 lOff, unsigned int nFrom) |
|
virtual uint64 | GetLength () const |
|
virtual uint64 | GetPosition () const |
|
virtual unsigned int | Read (void *lpBuf, unsigned int nCount) |
|
virtual void | Write (const void *lpBuf, unsigned int nCount) |
|
unsigned int | ReadHuge (void *lpBuf, unsigned int nCount) |
|
| operator Common::SeekableReadStream * () |
|
| operator Common::SeekableReadStream & () |
|
Common::SeekableReadStream * | detach () |
|
| CObject (const CObject &)=default |
|
CObject & | operator= (const CObject &)=default |
|
virtual void | AssertValid () const |
|
virtual void | Dump (CDumpContext &dc) const |
|
bool | IsKindOf (const CRuntimeClass *pClass) const |
|
◆ detach()
Detaches the stream from the CFile without destroying it.
The documentation for this class was generated from the following file: