Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

file.h File Reference

#include <cc++/config.h>
#include <cc++/thread.h>
#include <iostream>
#include <fstream>
#include <cstdio>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/mman.h>

Go to the source code of this file.

Compounds

struct  _fcb
class  Dir
 A low level portable directory class. low level directory access class. More...

class  DSO
 The DSO dynamic loader class is used to load object files. Dynamic class file loader. More...

class  FIFOSession
 The FIFOSession produces a seperate thread which can manage a fifo stream session. More...

class  fifostream
 This class provides a few alterations to the standard fstream class for dealing with fifo devices. More...

class  MappedFile
 Create and map a disk file into memory. Map a named disk file into memory. More...

class  Pipe
 The Pipe uses system kernel buffering to hold data being passed either between two execution contexts within the same process, or between different processes. kernel buffering between processes and/or threads. More...

class  RandomFile
 The purpose of this class is to define a base class for low level random file access that is portable between Win32 and Posix systems. Portable random disk file access. More...

class  SharedFile
 This class defines a database I/O file service that can be shared by multiple processes. This class defines a database I/O file service that can be shared by multiple processes. More...

class  ThreadFile
 This class defines a database I/O file service that can be shared by multiple threads. This class defines a database I/O file service that can be shared by multiple threads. More...


Defines

#define caddr_t   char *
#define S_IRUSR   0400
#define S_IWUSR   0200
#define S_IRGRP   0040
#define S_IWGRP   0020
#define S_IROTH   0004
#define S_IWOTH   0002
#define FILE_MAPPED_READ   FILE_ACCESS_READONLY
#define FILE_MAPPED_WRITE   FILE_ACCESS_WRITEONLY
#define FILE_MAPPED_RDWR   FILE_ACCESS_READWRITE

Typedefs

typedef unsigned long pos_t
typedef size_t ccxx_size_t
typedef enum fileattr_t fileattr_t
typedef enum fileerror_t fileerror_t
typedef enum fileaccess_t fileaccess_t
typedef enum filecomplete_t filecomplete_t

Enumerations

enum  {
  FILE_OPEN_READONLY = O_RDONLY, FILE_OPEN_WRITEONLY = O_WRONLY, FILE_OPEN_READWRITE = O_RDWR, FILE_OPEN_APPEND = O_WRONLY | O_APPEND,
  FILE_OPEN_SYNC = O_RDWR, FILE_OPEN_TRUNCATE
}
enum  fileattr_t { FILE_ATTR_INVALID = 0, FILE_ATTR_PRIVATE = 0400 | 0200 , FILE_ATTR_GROUP = FILE_ATTR_PRIVATE | 0040 | 0020 , FILE_ATTR_PUBLIC }
enum  fileerror_t {
  FILE_SUCCESS = 0, FILE_NOT_OPENED, FILE_MAP_FAILED, FILE_INIT_FAILED,
  FILE_OPEN_DENIED, FILE_OPEN_FAILED, FILE_OPEN_INUSE, FILE_READ_INTERRUPTED,
  FILE_READ_INCOMPLETE, FILE_READ_FAILURE, FILE_WRITE_INTERRUPTED, FILE_WRITE_INCOMPLETE,
  FILE_WRITE_FAILURE, FILE_EXTENDED_ERROR
}
enum  fileaccess_t { FILE_ACCESS_READONLY = O_RDONLY, FILE_ACCESS_WRITEONLY = O_WRONLY, FILE_ACCESS_READWRITE }
enum  filecomplete_t { FILE_COMPLETION_IMMEDIATE, FILE_COMPLETION_DELAYED, FILE_COMPLETION_DEFERRED }

Functions

bool isDir (const char *path)
bool isFile (const char *path)
bool isDevice (const char *path)
bool canAccess (const char *path)
bool canModify (const char *path)

Variables

_fcb fcb_t


Define Documentation

#define FILE_MAPPED_RDWR   FILE_ACCESS_READWRITE
 

#define FILE_MAPPED_READ   FILE_ACCESS_READONLY
 

#define FILE_MAPPED_WRITE   FILE_ACCESS_WRITEONLY
 

#define S_IRGRP   0040
 

#define S_IROTH   0004
 

#define S_IRUSR   0400
 

#define S_IWGRP   0020
 

#define S_IWOTH   0002
 

#define S_IWUSR   0200
 

#define caddr_t   char *
 


Typedef Documentation

typedef size_t ccxx_size_t
 

typedef enum fileaccess_t fileaccess_t
 

typedef enum fileattr_t fileattr_t
 

typedef enum filecomplete_t filecomplete_t
 

typedef enum fileerror_t fileerror_t
 

typedef unsigned long pos_t
 


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
FILE_OPEN_READONLY  
FILE_OPEN_WRITEONLY  
FILE_OPEN_READWRITE  
FILE_OPEN_APPEND  
FILE_OPEN_SYNC  
FILE_OPEN_TRUNCATE  

enum fileaccess_t
 

Enumeration values:
FILE_ACCESS_READONLY  
FILE_ACCESS_WRITEONLY  
FILE_ACCESS_READWRITE  

enum fileattr_t
 

Enumeration values:
FILE_ATTR_INVALID  
FILE_ATTR_PRIVATE  
FILE_ATTR_GROUP  
FILE_ATTR_PUBLIC  

enum filecomplete_t
 

Enumeration values:
FILE_COMPLETION_IMMEDIATE  
FILE_COMPLETION_DELAYED  
FILE_COMPLETION_DEFERRED  

enum fileerror_t
 

Enumeration values:
FILE_SUCCESS  
FILE_NOT_OPENED  
FILE_MAP_FAILED  
FILE_INIT_FAILED  
FILE_OPEN_DENIED  
FILE_OPEN_FAILED  
FILE_OPEN_INUSE  
FILE_READ_INTERRUPTED  
FILE_READ_INCOMPLETE  
FILE_READ_FAILURE  
FILE_WRITE_INTERRUPTED  
FILE_WRITE_INCOMPLETE  
FILE_WRITE_FAILURE  
FILE_EXTENDED_ERROR  


Function Documentation

bool canAccess const char *   path
 

bool canModify const char *   path
 

bool isDevice const char *   path
 

bool isDir const char *   path
 

bool isFile const char *   path
 


Variable Documentation

struct _fcb fcb_t
 


Generated at Tue Nov 20 12:34:33 2001 for CommonC++ by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001