22 #ifndef FIFE_MAP_LOADERS_FALLOUT_DAT2_H 23 #define FIFE_MAP_LOADERS_FALLOUT_DAT2_H 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 std::unique_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
std::set< std::string > listFiles(const std::string &pathstr) const
list all files in a directory of this source
The needed information for the extraction.
Timer m_timer
lazy loading timer
const RawDataDAT2::s_info & getInfo(const std::string &name) const
Get Information needed to unpack and extract data.
VFSSource abstract baseclass.
VFSource for the Fallout2 DAT file format.
void readFileEntry() const
read a bunch of file entries
std::set< std::string > listDirectories(const std::string &pathstr) const
list all directories in a directory of this source
std::set< std::string > list(const std::string &pathstr, bool dirs) const
std::map< std::string, RawDataDAT2::s_info > type_filelist
type_filelist::const_iterator findFileEntry(const std::string &name) const
find a file entry
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
std::unique_ptr< RawData > m_data
uint32_t m_currentIndex
current index in file
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.