FX::FXIO Class Reference

#include <FXIO.h>

Inheritance diagram for FX::FXIO:

FX::FXFile FX::FXPipe FX::FXSocket List of all members.

Detailed Description

FXIO manipulates a handle to an abstract i/o device. The various subclasses of FXIO perform i/o on files, sockets, pipes, and possibly other devices.

Definition at line 37 of file FXIO.h.

Public Types

 OtherRead
 OtherWrite
 OtherExec
 OtherReadWrite
 OtherFull
 GroupRead
 GroupWrite
 GroupExec
 GroupReadWrite
 GroupFull
 OwnerRead
 OwnerWrite
 OwnerExec
 OwnerReadWrite
 OwnerFull
 Hidden
 Directory
 File
 SymLink
 SetUser
 SetGroup
 Sticky
 Character
 Block
 Socket
 Fifo
 NoAccess
 ReadOnly
 WriteOnly
 ReadWrite
 Append
 Truncate
 Create
 Exclusive
 NonBlocking
 TextTranslate
 Reading
 Writing
 Begin
 Current
 End
enum  {
  OtherRead, OtherWrite, OtherExec, OtherReadWrite,
  OtherFull, GroupRead, GroupWrite, GroupExec,
  GroupReadWrite, GroupFull, OwnerRead, OwnerWrite,
  OwnerExec, OwnerReadWrite, OwnerFull, Hidden,
  Directory, File, SymLink, SetUser,
  SetGroup, Sticky, Character, Block,
  Socket, Fifo
}
enum  {
  NoAccess, ReadOnly, WriteOnly, ReadWrite,
  Append, Truncate, Create, Exclusive,
  NonBlocking, TextTranslate, Reading, Writing
}
enum  { Begin, Current, End }

Public Member Functions

 FXIO ()
virtual bool open (FXInputHandle handle, FXuint mode)
virtual bool isOpen () const
FXuint mode () const
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 ()

Protected Attributes

FXInputHandle device
FXuint access


The documentation for this class was generated from the following file:
(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:34:32 2009 for TnFOX by doxygen v1.4.7