#include <Iguana/Utilities/classlib/iobase/File.h>
Public Member Functions | |
virtual void | abort (void) |
virtual void | attach (IOFD fd) |
virtual void | close (void) |
virtual void | create (const std::string &name, bool exclusive=false, FileAcl perms=0666) |
virtual void | create (const char *name, bool exclusive=false, FileAcl perms=0666) |
File (const std::string &name, int flags=IOFlags::OpenRead, FileAcl perms=0666) | |
File (const char *name, int flags=IOFlags::OpenRead, FileAcl perms=0666) | |
File (IOFD fd, bool autoclose=true) | |
File (void) | |
virtual void | flush (void) |
virtual void | open (const std::string &name, int flags=IOFlags::OpenRead, FileAcl perms=0666) |
virtual void | open (const char *name, int flags=IOFlags::OpenRead, FileAcl perms=0666) |
virtual IOOffset | position (IOOffset offset, Relative whence=SET) |
virtual IOSize | read (void *into, IOSize n, IOOffset pos) |
virtual IOSize | read (void *into, IOSize n) |
virtual IOSize | readv (IOBuffer *into, IOSize length) |
virtual void | resize (IOOffset size) |
virtual void | setAutoClose (bool closeit) |
virtual IOOffset | size (void) const |
virtual bool | status (IOStatus &s) const |
virtual void | times (Time *ctime, Time *mtime, Time *atime) const |
virtual IOSize | write (const void *from, IOSize n, IOOffset pos) |
virtual IOSize | write (const void *from, IOSize n) |
virtual IOSize | writev (const IOBuffer *from, IOSize length) |
~File (void) | |
Private Types | |
enum | { InternalAutoClose = 4096 } |
Private Member Functions | |
File * | duplicate (File *child) const |
File * | duplicate (bool copy) const |
File (IOFD fd, unsigned flags) | |
Static Private Member Functions | |
static bool | sysclose (IOFD fd, int *error=0) |
static IOFD | sysduplicate (IOFD fd) |
static void | sysopen (const char *name, int flags, FileAcl perms, IOFD &newfd, unsigned &newflags) |
Private Attributes | |
unsigned | m_flags |
Most operations related to file names or file system can be found in Filename.
Definition at line 32 of file File.h.
anonymous enum [private] |
lat::File::File | ( | void | ) |
lat::File::~File | ( | void | ) |
lat::File::File | ( | IOFD | fd, | |
unsigned | flags | |||
) | [private] |
virtual void lat::File::create | ( | const std::string & | name, | |
bool | exclusive = false , |
|||
FileAcl | perms = 0666 | |||
) | [virtual] |
virtual void lat::File::create | ( | const char * | name, | |
bool | exclusive = false , |
|||
FileAcl | perms = 0666 | |||
) | [virtual] |
Reimplemented from lat::Storage.
virtual void lat::File::open | ( | const std::string & | name, | |
int | flags = IOFlags::OpenRead , |
|||
FileAcl | perms = 0666 | |||
) | [virtual] |
virtual void lat::File::open | ( | const char * | name, | |
int | flags = IOFlags::OpenRead , |
|||
FileAcl | perms = 0666 | |||
) | [virtual] |
Referenced by IgConfigElement::initConfiguration().
Implements lat::Storage.
Reimplemented from lat::Storage.
Reimplemented from lat::IOChannel.
Reimplemented from lat::IOChannel.
Implements lat::Storage.
Reimplemented from lat::Storage.
Reimplemented from lat::IOChannel.
static void lat::File::sysopen | ( | const char * | name, | |
int | flags, | |||
FileAcl | perms, | |||
IOFD & | newfd, | |||
unsigned & | newflags | |||
) | [static, private] |
Reimplemented from lat::Storage.
Reimplemented from lat::IOChannel.
Reimplemented from lat::IOChannel.
unsigned lat::File::m_flags [private] |