FIFE 2008.0
FIFE::RawDataFile Class Reference

#include <rawdatafile.h>

Inheritance diagram for FIFE::RawDataFile:
Collaboration diagram for FIFE::RawDataFile:

List of all members.

Public Member Functions

 RawDataFile (const std::string &file)
virtual unsigned int getSize () const
virtual void readInto (uint8_t *buffer, unsigned int start, unsigned int length)

Detailed Description

A RawDataSource for a file on the host system

See also:
VFSHostSystem
RawDataSource

Definition at line 43 of file rawdatafile.h.


Constructor & Destructor Documentation

FIFE::RawDataFile::RawDataFile ( const std::string &  file)

Constructor Constructs a RawDataSource for file.

Parameters:
fileThe path to the file to load.
Exceptions:
CannotOpenFile

Definition at line 36 of file rawdatafile.cpp.


Member Function Documentation

unsigned int FIFE::RawDataFile::getSize ( ) const [virtual]

get the complete datasize

Implements FIFE::RawDataSource.

Definition at line 50 of file rawdatafile.cpp.

void FIFE::RawDataFile::readInto ( uint8_t *  buffer,
unsigned int  start,
unsigned int  length 
) [virtual]

read data from the source

Parameters:
bufferthe data will be written into buffer
startthe startindex inside the source
lengthlength bytes will be written into buffer

Implements FIFE::RawDataSource.

Definition at line 54 of file rawdatafile.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator