22 #ifndef FIFE_MAP_LOADERS_FALLOUT_DAT2_H
23 #define FIFE_MAP_LOADERS_FALLOUT_DAT2_H
33 #include <boost/scoped_ptr.hpp>
67 DAT2(
VFS* vfs,
const std::string& path);
69 bool fileExists(
const std::string& name)
const;
78 std::set<std::string>
listFiles(
const std::string& pathstr)
const;
79 std::set<std::string>
listDirectories(
const std::string& pathstr)
const;
83 mutable boost::scoped_ptr<RawData>
m_data;
98 type_filelist::const_iterator
findFileEntry(
const std::string& name)
const;
100 std::set<std::string>
list(
const std::string& pathstr,
bool dirs)
const;
uint32_t m_filecount
number of file entries to read
bool fileExists(const std::string &name) const
check if the given file exists
RawData * open(const std::string &file) const
open a file inside this source
The needed information for the extraction.
Timer m_timer
lazy loading timer
VFSSource abstract baseclass.
VFSource for the Fallout2 DAT file format.
boost::scoped_ptr< RawData > m_data
type_filelist::const_iterator findFileEntry(const std::string &name) const
find a file entry
std::set< std::string > list(const std::string &pathstr, bool dirs) const
std::map< std::string, RawDataDAT2::s_info > type_filelist
std::set< std::string > listDirectories(const std::string &pathstr) const
list all directories in a directory of this source
const RawDataDAT2::s_info & getInfo(const std::string &name) const
Get Information needed to unpack and extract data.
void readFileEntry() const
read a bunch of file entries
uint32_t m_currentIndex
current index in file
std::set< std::string > listFiles(const std::string &pathstr) const
list all files in a directory of this source
the main VFS (virtual file system) class
DAT2 & operator=(const DAT2 &)
DAT2(VFS *vfs, const std::string &path)
Constructor Create a VFSSource for a Fallout2 DAT file.
Used to access diffrent kinds of data.