![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXIO.h>
Public Types | |
enum | { OtherRead = 0x00004, OtherWrite = 0x00002, OtherExec = 0x00001, OtherReadWrite = OtherRead|OtherWrite, OtherFull = OtherReadWrite|OtherExec, GroupRead = 0x00020, GroupWrite = 0x00010, GroupExec = 0x00008, GroupReadWrite = GroupRead|GroupWrite, GroupFull = GroupReadWrite|GroupExec, OwnerRead = 0x00100, OwnerWrite = 0x00080, OwnerExec = 0x00040, OwnerReadWrite = OwnerRead|OwnerWrite, OwnerFull = OwnerReadWrite|OwnerExec, AllRead = OtherRead|GroupRead|OwnerRead, AllWrite = OtherWrite|GroupWrite|OwnerWrite, AllExec = OtherExec|GroupExec|OwnerExec, AllReadWrite = AllRead|AllWrite, AllFull = AllReadWrite|AllExec, 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 = ReadOnly|WriteOnly, Append = 4, Truncate = 8, Create = 16, Exclusive = 32, NonBlocking = 64, Executable = 128, OwnHandle = 256, NoAccessTime = 512, Reading = ReadOnly, Writing = ReadWrite|Create|Truncate } |
enum | { Begin = 0, Current = 1, End = 2 } |
Public Member Functions | |
FXIO () | |
virtual FXbool | open (FXInputHandle h, FXuint m) |
FXbool | isReadable () const |
FXbool | isWritable () const |
FXuint | mode () const |
FXInputHandle | handle () const |
virtual FXbool | isOpen () const |
virtual FXbool | isSerial () const |
virtual void | attach (FXInputHandle h, FXuint m) |
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 FXbool | flush () |
virtual FXbool | eof () |
virtual FXlong | size () |
virtual FXbool | close () |
virtual | ~FXIO () |
The various subclasses of FXIO perform i/o on files, sockets, pipes, and possibly other devices.
anonymous enum |
File modes.
anonymous enum |
Access modes.
anonymous enum |
FX::FXIO::FXIO | ( | ) |
Construct.
virtual FX::FXIO::~FXIO | ( | ) | [virtual] |
Destroy and close.
virtual FXbool FX::FXIO::open | ( | FXInputHandle | h, | |
FXuint | m | |||
) | [virtual] |
Open device with access mode m and handle h.
Reimplemented in FX::FXFile, FX::FXPipe, and FX::FXSocket.
FXbool FX::FXIO::isReadable | ( | ) | const |
Is readable.
FXbool FX::FXIO::isWritable | ( | ) | const |
Is writable.
FXuint FX::FXIO::mode | ( | ) | const [inline] |
Return access mode.
FXInputHandle FX::FXIO::handle | ( | ) | const [inline] |
Return handle.
virtual FXbool FX::FXIO::isOpen | ( | ) | const [virtual] |
Return true if open.
virtual FXbool FX::FXIO::isSerial | ( | ) | const [virtual] |
virtual void FX::FXIO::attach | ( | FXInputHandle | h, | |
FXuint | m | |||
) | [virtual] |
Attach existing device handle, taking ownership of the handle.
virtual void FX::FXIO::detach | ( | ) | [virtual] |
Detach device handle, disowning the handle.
virtual FXlong FX::FXIO::position | ( | ) | const [virtual] |
virtual FXlong FX::FXIO::position | ( | FXlong | offset, | |
FXuint | from = FXIO::Begin | |||
) | [virtual] |
Change file position, returning new position from start.
Reimplemented in FX::FXFile, and FX::FXMemMap.
Read block of bytes, returning number of bytes read.
Reimplemented in FX::FXFile, FX::FXMemMap, FX::FXPipe, and FX::FXSocket.
Write block of bytes, returning number of bytes written.
Reimplemented in FX::FXFile, FX::FXMemMap, FX::FXPipe, and FX::FXSocket.
virtual FXlong FX::FXIO::truncate | ( | FXlong | size | ) | [virtual] |
virtual FXbool FX::FXIO::flush | ( | ) | [virtual] |
virtual FXbool FX::FXIO::eof | ( | ) | [virtual] |
virtual FXlong FX::FXIO::size | ( | ) | [virtual] |
virtual FXbool FX::FXIO::close | ( | ) | [virtual] |
![]() |