FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::RawDataDAT2 Class Reference

A subclass of RawDataMemSource, that fills itself with a FALLOUT1 .DAT file entry. More...

#include <rawdatadat2.h>

+ Inheritance diagram for FIFE::RawDataDAT2:
+ Collaboration diagram for FIFE::RawDataDAT2:


struct  s_info
 The needed information for the extraction. More...

Public Member Functions

 RawDataDAT2 (VFS *vfs, const std::string &datfile, const s_info &info)
 Constructor. More...
- Public Member Functions inherited from FIFE::RawDataMemSource
 RawDataMemSource (uint32_t datalen)
 Create a new RawDataMemSource that allocates datalen bytes. More...
virtual ~RawDataMemSource ()
uint8_t * getRawData () const
 Get a Pointer to the data You need to use this function to fill the class with meaningfull data. More...
virtual uint32_t getSize () const
 get the complete datasize More...
virtual void readInto (uint8_t *buffer, uint32_t start, uint32_t length)
 read data from the source More...
- Public Member Functions inherited from FIFE::RawDataSource
 RawDataSource ()
virtual ~RawDataSource ()

Detailed Description

A subclass of RawDataMemSource, that fills itself with a FALLOUT1 .DAT file entry.

See also

Definition at line 46 of file rawdatadat2.h.

Constructor & Destructor Documentation

FIFE::RawDataDAT2::RawDataDAT2 ( VFS vfs,
const std::string &  datfile,
const s_info info 


vfsThe vfs to open with.
datfileThe .DAT archive - e.g. master.DAT
infoThe .DAT file entry, as retrieved by MFFalloutDAT2

Definition at line 42 of file rawdatadat2.cpp.

References FIFE::RawDataMemSource::getRawData(), FIFE::RawDataDAT2::s_info::name, FIFE::RawDataDAT2::s_info::offset, FIFE::VFS::open(), FIFE::RawDataDAT2::s_info::packedLength, FIFE::RawDataDAT2::s_info::type, and FIFE::RawDataDAT2::s_info::unpackedLength.

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