Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

MFile Class Reference

A Mfs File. More...

#include <Mfs.h>

Inheritance diagram for MFile:

GFile GStream GDom List of all members.

Public Member Functions

int Open (char *Name, int Attrib)
 Opens a file.
bool IsOpen ()
 Returns non zero if the class is associated with an open file handle.
int Close ()
 Closes the file.
int GetOpenMode ()
 Gets the mode that the file was openned with.
int64 GetPos ()
 Gets the current file pointer.
int64 SetPos (int64 Pos)
 Sets the current file pointer.
int64 GetSize ()
 Gets the file size.
int64 SetSize (int64 Size)
 Sets the file size.
int Read (void *Buffer, int Size, int Flags=0)
 Reads bytes into memory from the current file pointer.
int Write (void *Buffer, int Size, int Flags=0)
 Writes bytes from memory to the current file pointer.
char * GetName ()
 Gets the path used to open the file.
int64 Seek (int64 To, int Whence)
 Moves the current file pointer.
bool Eof ()
 Returns true if the current file pointer is at the end of the file.
void SetStatus (bool s=false)
 Resets the status value.
bool GetStatus ()
 Returns true if all operations were successful since the file was openned or SetStatus was used to reset the file's status.
void SetSwap (bool s)
 Sets the swap option. When switched on all integer reads/writes will have their bytes swaped.
bool GetSwap ()
 Gets the current swap setting.
MMetaDataFirstMd ()
 Meta data access Gets the first metadata value.
MMetaDataNextMd ()
 Gets the next metadata value.
MMetaDataAddMd ()
 Adds a new peice of metadata.
bool DelMd (char *Name)
 Deletes a peice of metadata.

Detailed Description

A Mfs File.


Member Function Documentation

int64 MFile::GetPos  )  [virtual]
 

Gets the current file pointer.

Returns:
The file pointer or -1 on error.

Reimplemented from GFile.

int64 MFile::GetSize  )  [virtual]
 

Gets the file size.

Returns:
The file size or -1 on error.

Reimplemented from GFile.

int MFile::Open char *  Name,
int  Attrib
[virtual]
 

Opens a file.

Returns:
Non zero on success

Reimplemented from GFile.

int MFile::Read void *  Buffer,
int  Size,
int  Flags = 0
[virtual]
 

Reads bytes into memory from the current file pointer.

Returns:
The number of bytes read or <= 0.

Reimplemented from GFile.

int64 MFile::SetPos int64  Pos  )  [virtual]
 

Sets the current file pointer.

Returns:
The new file pointer or -1 on error.

Reimplemented from GFile.

int64 MFile::SetSize int64  Size  )  [virtual]
 

Sets the file size.

Returns:
The new file size or -1 on error.

Reimplemented from GFile.

int MFile::Write void *  Buffer,
int  Size,
int  Flags = 0
[virtual]
 

Writes bytes from memory to the current file pointer.

Returns:
The number of bytes written or <= 0.

Reimplemented from GFile.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:05 2005 for Lgi by  doxygen 1.4.1