FIFE::RawDataSource Class Reference

#include <rawdatasource.h>

Inheritance diagram for FIFE::RawDataSource:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual unsigned int getSize () const =0
virtual void readInto (uint8_t *buffer, unsigned int start, unsigned int length)=0

Detailed Description

Abstract baseclass - provides data for RawData

RawData uses RawDataSources to access the data - if you want to add support for a new archivetype this is one of the classes you need.

Definition at line 44 of file rawdatasource.h.


Member Function Documentation

virtual unsigned int FIFE::RawDataSource::getSize (  )  const [pure virtual]

get the complete datasize

Implemented in FIFE::RawDataFile, and FIFE::RawDataMemSource.

Referenced by FIFE::RawData::getDataLength().

Here is the caller graph for this function:

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

read data from the source

Parameters:
buffer the data will be written into buffer
start the startindex inside the source
length length bytes will be written into buffer

Implemented in FIFE::RawDataFile, and FIFE::RawDataMemSource.

Referenced by FIFE::RawData::read(), and FIFE::RawData::readInto().

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
Generated on Wed Nov 23 13:05:10 2011 for FIFE by  doxygen 1.6.3