sword::FileDesc Class Reference

This class represents one file. More...

#include <filemgr.h>

Collaboration diagram for sword::FileDesc:

Collaboration graph
[legend]
List of all members.

Public Member Functions

int getFd ()
 
Returns:
File handle.

long seek (long offset, int whence)
long read (void *buf, long count)
long write (const void *buf, long count)

Public Attributes

char * path
 Path to file.
int mode
 File access mode.
int perms
 File permissions.
bool tryDowngrade

Private Member Functions

 FileDesc (FileMgr *parent, const char *path, int mode, int perms, bool tryDowngrade)

Private Attributes

long offset
int fd
FileMgrparent
FileDescnext

Friends

class FileMgr

Detailed Description

This class represents one file.

It works with the FileMgr object.

Definition at line 45 of file filemgr.h.


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