FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
FIFE::RawDataSource Class Referenceabstract

#include <rawdatasource.h>

Inheritance diagram for FIFE::RawDataSource:
Inheritance graph
Collaboration diagram for FIFE::RawDataSource:
Collaboration graph

Public Member Functions

virtual uint32_t getSize () const =0
 
virtual void readInto (uint8_t *buffer, uint32_t start, uint32_t 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 uint32_t FIFE::RawDataSource::getSize ( ) const
pure virtual

get the complete datasize

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

virtual void FIFE::RawDataSource::readInto ( uint8_t *  buffer,
uint32_t  start,
uint32_t  length 
)
pure 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

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


The documentation for this class was generated from the following files: