File Class Reference

#include <File.h>

Inherits NamedObject.

Inheritance diagram for File:

Inheritance graph
[legend]
Collaboration diagram for File:

Collaboration graph
[legend]
List of all members.

Public Member Functions

String path () const
String dir () const
FilePermissions permissions () const
int setPermissions (const FilePermissions &permissions)
unsigned int position () const
int seek (unsigned int pos)
int data (String &d) const=0
int setData (const String &d) const=0
int read (String &buff, unsigned int size) const=0
int write (const String &buff) const=0

Static Public Member Functions

static int open (const String &path, File **file)
static int create (const String &path, File **file, const FilePermissions &permissions=FILE_PERMISSIONS_DEFAULT, const String &manual="")
static int unlink (const String &path)

Protected Member Functions

 File (const String &path, const FilePermissions &permissions=FILE_PERMISSIONS_DEFAULT, const String &manual="")
virtual ~File ()

Private Types

typedef map< String, File * > FileList

Private Attributes

FileList _files

Detailed Description

Definition at line 33 of file File.h.


Member Typedef Documentation

typedef map<String, File *> File::FileList [private]

Definition at line 70 of file File.h.


Constructor & Destructor Documentation

File::File ( const String path,
const FilePermissions permissions = FILE_PERMISSIONS_DEFAULT,
const String manual = "" 
) [protected]

virtual File::~File (  )  [protected, virtual]


Member Function Documentation

static int File::open ( const String path,
File **  file 
) [static]

static int File::create ( const String path,
File **  file,
const FilePermissions permissions = FILE_PERMISSIONS_DEFAULT,
const String manual = "" 
) [static]

static int File::unlink ( const String path  )  [static]

String File::path (  )  const

String File::dir (  )  const

FilePermissions File::permissions (  )  const

int File::setPermissions ( const FilePermissions permissions  ) 

unsigned int File::position (  )  const

int File::seek ( unsigned int  pos  ) 

int File::data ( String d  )  const [pure virtual]

int File::setData ( const String d  )  const [pure virtual]

int File::read ( String buff,
unsigned int  size 
) const [pure virtual]

int File::write ( const String buff  )  const [pure virtual]


Member Data Documentation

FileList File::_files [private]

Definition at line 72 of file File.h.


The documentation for this class was generated from the following file:
Generated on Thu Sep 6 20:13:36 2007 for Pylon Application Platform by  doxygen 1.5.1