Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXIO.h>
Inheritance diagram for FX::FXIO:
Public Types | |
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 } |
Public Member Functions | |
FXIO () | |
virtual bool | open (FXInputHandle handle, FXuint mode) |
virtual bool | isOpen () const |
FXuint | mode () const |
FXInputHandle | handle () const |
virtual void | attach (FXInputHandle handle, FXuint mode) |
virtual void | detach () |
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 bool | eof () |
virtual FXlong | size () |
virtual bool | close () |
virtual | ~FXIO () |
The various subclasses of FXIO perform i/o on files, sockets, pipes, and possibly other devices.
|
|
Access modes.
|
|
Positioning modes.
|
|
Construct.
|
|
Destroy and close.
|
|
Open device with access mode and handle.
Reimplemented in FX::FXFile, FX::FXPipe, and FX::FXSocket. |
|
Return true if open.
|
|
Return access mode.
|
|
Return handle.
|
|
Attach existing device handle.
|
|
Detach device handle.
|
|
Get current file position.
Reimplemented in FX::FXFile. |
|
Change file position, returning new position from start.
Reimplemented in FX::FXFile. |
|
Read block of bytes, returning number of bytes read.
Reimplemented in FX::FXFile, FX::FXPipe, and FX::FXSocket. |
|
Write block of bytes, returning number of bytes written.
Reimplemented in FX::FXFile, FX::FXPipe, and FX::FXSocket. |
|
Truncate file.
Reimplemented in FX::FXFile. |
|
Flush to disk.
Reimplemented in FX::FXFile. |
|
Test if we're at the end.
Reimplemented in FX::FXFile. |
|
Return size of i/o device.
Reimplemented in FX::FXFile. |
|
Close handle.
Reimplemented in FX::FXFile, FX::FXPipe, and FX::FXSocket. |
Copyright © 1997-2005 Jeroen van der Zijp |