OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
archive.hpp
Go to the documentation of this file.
1 #ifndef OPENMW_COMPONENTS_RESOURCE_ARCHIVE_H
2 #define OPENMW_COMPONENTS_RESOURCE_ARCHIVE_H
3 
4 #include <map>
5 
7 
8 namespace VFS
9 {
10 
11  class File
12  {
13  public:
14  virtual ~File() {}
15 
16  virtual Files::IStreamPtr open() = 0;
17  };
18 
19  class Archive
20  {
21  public:
22  virtual ~Archive() {}
23 
25  virtual void listResources(std::map<std::string, File*>& out, char (*normalize_function) (char)) = 0;
26  };
27 
28 }
29 
30 #endif
virtual Files::IStreamPtr open()=0
virtual void listResources(std::map< std::string, File * > &out, char(*normalize_function)(char))=0
List all resources contained in this archive, and run the resource names through the given normalize ...
virtual ~File()
Definition: archive.hpp:14
Definition: archive.hpp:19
Definition: archive.hpp:11
boost::shared_ptr< std::istream > IStreamPtr
Definition: constrainedfilestream.hpp:20
virtual ~Archive()
Definition: archive.hpp:22