Bayonne2 / Common C++ 2 Framework
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Public Types | Static Public Member Functions | Protected Types
File Class Reference

#include <file.h>

Inheritance diagram for File:
Inheritance graph
[legend]

Data Structures

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 File::_fcb fcb_t
 

Detailed Description

Definition at line 117 of file file.h.

Member Typedef Documentation

typedef enum Access File::Access

Definition at line 150 of file file.h.

typedef enum Attr File::Attr

Definition at line 213 of file file.h.

typedef enum Complete File::Complete

Definition at line 239 of file file.h.

typedef enum Error File::Error

Definition at line 137 of file file.h.

typedef struct File::_fcb File::fcb_t
protected
typedef enum Mapping File::Mapping

Definition at line 240 of file file.h.

typedef enum Open File::Open

Definition at line 183 of file file.h.

Member Enumeration Documentation

Enumerator
accessReadOnly 
accessWriteOnly 
accessReadWrite 

Definition at line 139 of file file.h.

enum File::Attr
Enumerator
attrInvalid 
attrPrivate 
attrGroup 
attrPublic 

Definition at line 199 of file file.h.

Enumerator
completionImmediate 
completionDelayed 
completionDeferred 

Definition at line 233 of file file.h.

Enumerator
errSuccess 
errNotOpened 
errMapFailed 
errInitFailed 
errOpenDenied 
errOpenFailed 
errOpenInUse 
errReadInterrupted 
errReadIncomplete 
errReadFailure 
errWriteInterrupted 
errWriteIncomplete 
errWriteFailure 
errLockFailure 
errExtended 

Definition at line 120 of file file.h.

Enumerator
mappedRead 
mappedWrite 
mappedReadWrite 

Definition at line 228 of file file.h.

enum File::Open
Enumerator
openReadOnly 
openWriteOnly 
openReadWrite 
openAppend 
openSync 
openTruncate 

Definition at line 171 of file file.h.

Member Function Documentation

static char* File::getDirname ( const char *  path,
char *  buffer,
size_t  size = 256 
)
static
static const char* File::getExtension ( const char *  path)
static
static const char* File::getFilename ( const char *  path)
static
static char* File::getFilename ( const char *  path,
char *  buffer,
size_t  size = 64 
)
static
static char* File::getRealpath ( const char *  path,
char *  buffer,
size_t  size = 256 
)
static

The documentation for this class was generated from the following file: