![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXFile.h>
Public Member Functions | |
FXFile () | |
FXFile (FXInputHandle handle, FXuint mode) | |
FXFile (const FXString &file, FXuint mode=FXIO::Reading, FXuint perm=FXIO::OwnerReadWrite|FXIO::GroupReadWrite|FXIO::OtherReadWrite) | |
virtual bool | open (const FXString &file, FXuint mode=FXIO::Reading, FXuint perm=FXIO::OwnerReadWrite|FXIO::GroupReadWrite|FXIO::OtherReadWrite) |
virtual bool | open (FXInputHandle handle, FXuint mode) |
virtual FXlong | position () const |
virtual FXlong | position (FXlong offset, FXuint from=FXIO::Begin) |
virtual FXival | readBlock (void *data, FXival count) |
virtual FXival | writeBlock (const void *data, FXival count) |
virtual FXlong | truncate (FXlong size) |
virtual bool | flush () |
virtual FXlong | size () |
virtual bool | eof () |
virtual bool | close () |
virtual | ~FXFile () |
![]() | |
FXIO () | |
virtual bool | isOpen () const |
FXuint | mode () const |
FXInputHandle | handle () const |
virtual void | attach (FXInputHandle handle, FXuint mode) |
virtual void | detach () |
virtual | ~FXIO () |
Static Public Member Functions | |
static bool | create (const FXString &file, FXuint perm=FXIO::OwnerReadWrite|FXIO::GroupReadWrite|FXIO::OtherReadWrite) |
static bool | remove (const FXString &file) |
static bool | rename (const FXString &srcfile, const FXString &dstfile) |
static bool | link (const FXString &srcfile, const FXString &dstfile) |
static FXString | symlink (const FXString &file) |
static bool | symlink (const FXString &srcfile, const FXString &dstfile) |
static bool | identical (const FXString &file1, const FXString &file2) |
static bool | copy (const FXString &srcfile, const FXString &dstfile, bool overwrite=false) |
static bool | concat (const FXString &srcfile1, const FXString &srcfile2, const FXString &dstfile, bool overwrite=false) |
static bool | copyFiles (const FXString &srcfile, const FXString &dstfile, bool overwrite=false) |
static bool | moveFiles (const FXString &srcfile, const FXString &dstfile, bool overwrite=false) |
static bool | removeFiles (const FXString &path, bool recursive=false) |
Additional Inherited Members | |
![]() | |
enum | { OtherRead = 0x00004, OtherWrite = 0x00002, OtherExec = 0x00001, OtherReadWrite = 0x00006, OtherFull = 0x00007, GroupRead = 0x00020, GroupWrite = 0x00010, GroupExec = 0x00008, GroupReadWrite = 0x00030, GroupFull = 0x00038, OwnerRead = 0x00100, OwnerWrite = 0x00080, OwnerExec = 0x00040, OwnerReadWrite = 0x00180, OwnerFull = 0x001C0, Hidden = 0x00200, Directory = 0x00400, File = 0x00800, SymLink = 0x01000, SetUser = 0x02000, SetGroup = 0x04000, Sticky = 0x08000, Character = 0x10000, Block = 0x20000, Socket = 0x40000, Fifo = 0x80000 } |
enum | { NoAccess = 0, ReadOnly = 1, WriteOnly = 2, ReadWrite = 3, Append = 4, Truncate = 8, Create = 16, Exclusive = 32, NonBlocking = 64, Reading = ReadOnly, Writing = ReadWrite|Create|Truncate } |
enum | { Begin = 0, Current = 1, End = 2 } |
Low level file access.
|
inline |
Construct file.
FX::FXFile::FXFile | ( | FXInputHandle | handle, |
FXuint | mode | ||
) |
Construct file and attach existing handle h.
FX::FXFile::FXFile | ( | const FXString & | file, |
FXuint | mode = FXIO::Reading , |
||
FXuint | perm = FXIO::OwnerReadWrite|FXIO::GroupReadWrite|FXIO::OtherReadWrite |
||
) |
Construct and open a file.
|
virtual |
Destroy.
|
virtual |
Open file.
|
virtual |
Open device with access mode and handle.
Reimplemented from FX::FXIO.
|
virtual |
Get current file position.
Reimplemented from FX::FXIO.
|
virtual |
Change file position, returning new position from start.
Reimplemented from FX::FXIO.
Read block of bytes, returning number of bytes read.
Reimplemented from FX::FXIO.
Write block of bytes, returning number of bytes written.
Reimplemented from FX::FXIO.
|
virtual |
Truncate file.
Reimplemented from FX::FXIO.
|
virtual |
Flush to disk.
Reimplemented from FX::FXIO.
|
virtual |
Return file size.
Reimplemented from FX::FXIO.
|
virtual |
Test if we're at the end.
Reimplemented from FX::FXIO.
|
virtual |
Close file.
Reimplemented from FX::FXIO.
|
static |
Create new (empty) file.
|
static |
Remove file.
Rename or move srcfile to dstfile, replacing dstfile if it exists.
Link file.
Symbolic link file.
Return true if files are identical.
|
static |
Copy srcfile to dstfile, overwriting dstfile if allowed.
|
static |
Concatenate srcfile1 and srcfile2 to dstfile, overwriting dstfile if allowed.
|
static |
Recursively copy files or directories from srcfile to dstfile, overwriting dstfile if allowed.
|
static |
Recursively copy or move files or directories from srcfile to dstfile, overwriting dstfile if allowed.
|
static |
Recursively remove file or directory, recurse if allowed.
![]() |