FIFE::DAT1 Class Reference

#include <dat1.h>

Inheritance diagram for FIFE::DAT1:
Inheritance graph
[legend]
Collaboration diagram for FIFE::DAT1:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DAT1 (VFS *vfs, const std::string &file)
bool fileExists (const std::string &name) const
RawDataopen (const std::string &file) const
const RawDataDAT1::s_infogetInfo (const std::string &name) const
std::set< std::string > listFiles (const std::string &pathstr) const
std::set< std::string > listDirectories (const std::string &pathstr) const

Detailed Description

VFSource for the Fallout1 DAT file format.

Definition at line 44 of file dat1.h.


Constructor & Destructor Documentation

FIFE::DAT1::DAT1 ( VFS vfs,
const std::string &  file 
)

Constructor Create a VFSSource for a Fallout1 DAT file.

Parameters:
file A Fallout1 DAT file - e.g. master.DAT

Definition at line 38 of file dat1.cpp.


Member Function Documentation

bool FIFE::DAT1::fileExists ( const std::string &  file  )  const [virtual]

check if the given file exists

Parameters:
file filename to check
Returns:
true if it exists, false otherwise

Implements FIFE::VFSSource.

Definition at line 94 of file dat1.cpp.

const RawDataDAT1::s_info & FIFE::DAT1::getInfo ( const std::string &  name  )  const

Get the needed information to unpack and extract a file from the DAT file. Retrieves the Information needed to extract a specific file, this is passed as argument to a mffalloutrawdatadat1 RawMemSource, which itself fills its memory content with the unpacked file.

Exceptions:
NotFound 
See also:
MFFalloutRawDataDAT1, RawMemSource

Definition at line 98 of file dat1.cpp.

Referenced by open().

Here is the caller graph for this function:

std::set< std::string > FIFE::DAT1::listDirectories ( const std::string &  path  )  const [virtual]

list all directories in a directory of this source

Parameters:
path path to list directories in Will return an empty list on any error

Implements FIFE::VFSSource.

Definition at line 110 of file dat1.cpp.

std::set< std::string > FIFE::DAT1::listFiles ( const std::string &  path  )  const [virtual]

list all files in a directory of this source

Parameters:
path path to list files in Will return an empty list on any error

Implements FIFE::VFSSource.

Definition at line 106 of file dat1.cpp.

RawData * FIFE::DAT1::open ( const std::string &  file  )  const [virtual]

open a file inside this source

Parameters:
file the file to open
Returns:
a new RawData*
Exceptions:
CannotOpenFile if the file can't be found

Implements FIFE::VFSSource.

Definition at line 89 of file dat1.cpp.

References getInfo(), and FIFE::VFSSource::getVFS().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208