OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
bsaarchive.hpp
Go to the documentation of this file.
1 #ifndef VFS_BSAARCHIVE_HPP_
2 #define VFS_BSAARCHIVE_HPP_
3 
4 #include "archive.hpp"
5 
7 
8 namespace VFS
9 {
10 
11  class BsaArchiveFile : public File
12  {
13  public:
15 
16  virtual Files::IStreamPtr open();
17 
20  };
21 
22  class BsaArchive : public Archive
23  {
24  public:
25  BsaArchive(const std::string& filename);
26 
27  virtual void listResources(std::map<std::string, File*>& out, char (*normalize_function) (char));
28 
29  private:
31 
32  std::vector<BsaArchiveFile> mResources;
33  };
34 
35 }
36 
37 #endif
virtual void listResources(std::map< std::string, File * > &out, char(*normalize_function)(char))
List all resources contained in this archive, and run the resource names through the given normalize ...
Definition: bsaarchive.cpp:18
const Bsa::BSAFile::FileStruct * mInfo
Definition: bsaarchive.hpp:18
std::vector< BsaArchiveFile > mResources
Definition: bsaarchive.hpp:32
virtual Files::IStreamPtr open()
Definition: bsaarchive.cpp:38
Definition: bsa_file.hpp:43
Definition: bsaarchive.hpp:11
Definition: archive.hpp:19
Definition: bsaarchive.hpp:22
Definition: archive.hpp:11
boost::shared_ptr< std::istream > IStreamPtr
Definition: constrainedfilestream.hpp:20
BsaArchiveFile(const Bsa::BSAFile::FileStruct *info, Bsa::BSAFile *bsa)
Definition: bsaarchive.cpp:31
Bsa::BSAFile * mFile
Definition: bsaarchive.hpp:19
Bsa::BSAFile mFile
Definition: bsaarchive.hpp:30
BsaArchive(const std::string &filename)
Definition: bsaarchive.cpp:7
Represents one file entry in the archive.
Definition: bsa_file.hpp:47