SYNOPSIS

#include <file.h>

Inherited by ost::Dir, and ost::RandomFile.

Classes

struct _fcb

Public Types

enum Error { errSuccess = 0, errNotOpened, errMapFailed, errInitFailed, errOpenDenied, errOpenFailed, errOpenInUse, errReadInterrupted, errReadIncomplete, errReadFailure, errWriteInterrupted, errWriteIncomplete, errWriteFailure, errLockFailure, errExtended }

enum Access { accessReadOnly = O_RDONLY, accessWriteOnly = O_WRONLY, accessReadWrite = O_RDWR }

enum Open { openReadOnly = O_RDONLY, openWriteOnly = O_WRONLY, openReadWrite = O_RDWR, openAppend = O_WRONLY | O_APPEND, openSync = O_RDWR, openTruncate = O_RDWR | O_TRUNC }

enum Attr { attrInvalid = 0, attrPrivate = 0400 | 0200, attrGroup = attrPrivate | 0040 | 0020, attrPublic = attrGroup | 0004 | 0002 }

enum Mapping { mappedRead = accessReadOnly, mappedWrite = accessWriteOnly, mappedReadWrite = accessReadWrite }

enum Complete { completionImmediate, completionDelayed, completionDeferred }

typedef enum Error Error

typedef enum Access Access

typedef enum Open Open

typedef enum Attr Attr

typedef enum Complete Complete

typedef enum Mapping Mapping

Static Public Member Functions

static const char * getExtension (const char *path)

static const char * getFilename (const char *path)

static char * getFilename (const char *path, char *buffer, size_t size=64)

static char * getDirname (const char *path, char *buffer, size_t size=256)

static char * getRealpath (const char *path, char *buffer, size_t size=256)

Protected Types

typedef struct ost::File::_fcb fcb_t

Member Typedef Documentation

typedef enum \fBAccess\fP \fBost::File::Access\fP

typedef enum \fBAttr\fP \fBost::File::Attr\fP

typedef enum \fBComplete\fP \fBost::File::Complete\fP

typedef enum \fBError\fP \fBost::File::Error\fP

typedef struct \fBost::File::_fcb\fP \fBost::File::fcb_t\fP\fC [protected]\fP

typedef enum \fBMapping\fP \fBost::File::Mapping\fP

typedef enum \fBOpen\fP \fBost::File::Open\fP

Member Enumeration Documentation

enum \fBost::File::Access\fP

Enumerator

accessReadOnly

accessWriteOnly

accessReadWrite

enum \fBost::File::Attr\fP

Enumerator

attrInvalid

attrPrivate

attrGroup

attrPublic

enum \fBost::File::Complete\fP

Enumerator

completionImmediate

completionDelayed

completionDeferred

enum \fBost::File::Error\fP

Enumerator

errSuccess

errNotOpened

errMapFailed

errInitFailed

errOpenDenied

errOpenFailed

errOpenInUse

errReadInterrupted

errReadIncomplete

errReadFailure

errWriteInterrupted

errWriteIncomplete

errWriteFailure

errLockFailure

errExtended

enum \fBost::File::Mapping\fP

Enumerator

mappedRead

mappedWrite

mappedReadWrite

enum \fBost::File::Open\fP

Enumerator

openReadOnly

openWriteOnly

openReadWrite

openAppend

openSync

openTruncate

Member Function Documentation

static char* ost::File::getDirname (const char *path, char *buffer, size_tsize = \fC256\fP)\fC [static]\fP

static const char* ost::File::getExtension (const char *path)\fC [static]\fP

static const char* ost::File::getFilename (const char *path)\fC [static]\fP

static char* ost::File::getFilename (const char *path, char *buffer, size_tsize = \fC64\fP)\fC [static]\fP

static char* ost::File::getRealpath (const char *path, char *buffer, size_tsize = \fC256\fP)\fC [static]\fP

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.