File Class Reference

Inheritance diagram for File:

SystemCode ComPort MemFile List of all members.

Public Member Functions

BOOL Open (char *_filename, int _action, int attr=0, int _share=0)
virtual BOOL Close ()
virtual int32 Read (PTR buf, uint32 siz)
virtual int32 Write (PTR buf, uint32 siz)
virtual uint32 Seek (int32 offset, int8 fromwhere)
virtual uint64 Seek64 (int64 offset, int8 fromwhere)
uint32 SetPos (uint32 offset)
uint32 SetPos64 (uint64 offset)
virtual uint32 GetPos ()
virtual uint64 GetPos64 ()
virtual uint32 GetSize ()
virtual uint64 GetSize64 ()
int32 Write (const char *str)
BOOL Eof ()
uint32 Tell ()
uint64 Tell64 ()
char PutChar (char _c)
char GetChar ()
int32 GetHandle ()
virtual BOOL SetEof ()
BOOL Truncate ()
BOOL Sync ()

Static Public Member Functions

static BOOL Exist (char *_filename)
static BOOL Delete (char *fname)
static BOOL DeleteEx (char *fname)
static BOOL DeletePathEx (char *path)
static BOOL Rename (char *oldname, char *newname)
static int32 GetSize (char *fname)
static BOOL GetAttr (char *fname, int32 &attr)
static BOOL SetAttr (char *fname, int32 attr)
static BOOL DeletePath (char *name)
static BOOL CreatePath (char *name)
static BOOL CreatePathEx (char *name)
static BOOL SetCurrentPath (char *name)
static BOOL GetCurrentPath (String &)
static void Split (const char *full, String *drv, String *path, String *nam, String *ext)
static void Merge (String &full, const char *drv, const char *path, const char *nam, const char *ext)
static BOOL GetShort (String &_short, char *_long)
static void GetTempPath (String &s)
static void GetTempFileName (String &s, char *ext=NULL)
static void GetOSPath (String &s)
static BOOL GetStartMenuPath (String &s, BOOL AllUsers=TRUE)
static BOOL GetDesktopPath (String &s)
static BOOL GetVersion (char *fname, Version &ver, char *verfn="$DFVER$.TMP")
static BOOL CopyFile (char *src, char *dest, BOOL deldst=FALSE)
static BOOL MoveFile (char *src, char *dest, BOOL deldst=FALSE)
static BOOL WildcardCompare (char *wc, char *fn, BOOL cs=CASE_SENSITIVE)
static BOOL GetDeviceFreeSpace (char *, uint64 &free)
static BOOL IsDeviceRemovable (char *)
static BOOL GetTime (char *file, Time *creation, Time *lastaccess=(Time *) NULL, Time *lastwrite=(Time *) NULL)
static BOOL SetTime (char *file, Time *creation, Time *lastaccess=(Time *) NULL, Time *lastwrite=(Time *) NULL)
static BOOL IsFolder (uint32 attr)
static BOOL IsReadOnly (uint32 attr)
static BOOL GetFullPath (String &fn, char *currentpath=NULL)

Public Attributes

BOOL Valid

Friends

class FileFind
class FileFindArc
class ComPort

Detailed Description

Definition at line 1 of file file.hpp.


The documentation for this class was generated from the following file:
Generated on Mon Mar 5 09:49:15 2007 for DigiForce by  doxygen 1.4.7