Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

amn::IReadFile Class Reference

#include <IReadFile.h>

Inheritance diagram for amn::IReadFile:

amn::IReference List of all members.

Public Member Functions

 IReadFile (IFileManager *m, const char *filename)
virtual ~IReadFile ()
virtual bool isOpen ()=0
 Returns whether the file was successfully opened or not.
virtual void close ()=0
 Closes the file.
virtual int readBytes (void *into, int length)=0
virtual int getFilePosition ()=0
 Returns the file position.
virtual void setFilePosition (int position)=0
 Sets the file position.
virtual int getFileSize ()=0
 Returns the file size.
virtual const char * getFileName ()=0
 Returns the file name.

Protected Attributes

IFileManagerfileManager
std::ifstream file

Constructor & Destructor Documentation

amn::IReadFile::IReadFile IFileManager m,
const char *  filename
[inline]
 

virtual amn::IReadFile::~IReadFile  )  [inline, virtual]
 


Member Function Documentation

virtual void amn::IReadFile::close  )  [pure virtual]
 

Closes the file.

virtual const char* amn::IReadFile::getFileName  )  [pure virtual]
 

Returns the file name.

virtual int amn::IReadFile::getFilePosition  )  [pure virtual]
 

Returns the file position.

virtual int amn::IReadFile::getFileSize  )  [pure virtual]
 

Returns the file size.

virtual bool amn::IReadFile::isOpen  )  [pure virtual]
 

Returns whether the file was successfully opened or not.

virtual int amn::IReadFile::readBytes void *  into,
int  length
[pure virtual]
 

Read bytes from file.

Parameters:
Pointer to read bytes into.
Number of bytes to read.
Returns:
Number of bytes successfully read.

virtual void amn::IReadFile::setFilePosition int  position  )  [pure virtual]
 

Sets the file position.


Member Data Documentation

std::ifstream amn::IReadFile::file [protected]
 

IFileManager* amn::IReadFile::fileManager [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Feb 1 22:23:26 2006 for AmnesiaEngine by  doxygen 1.4.2