2024-01-15 23:30:41 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_VFS_ARCHIVE_H
|
|
|
|
#define OPENMW_COMPONENTS_VFS_ARCHIVE_H
|
2015-03-17 20:59:39 +00:00
|
|
|
|
2024-01-15 23:30:41 +00:00
|
|
|
#include <string>
|
2015-03-17 20:59:39 +00:00
|
|
|
|
2024-01-15 23:30:41 +00:00
|
|
|
#include "filemap.hpp"
|
2024-01-17 23:13:34 +00:00
|
|
|
#include "pathutil.hpp"
|
2015-03-17 20:59:39 +00:00
|
|
|
|
|
|
|
namespace VFS
|
|
|
|
{
|
|
|
|
class Archive
|
|
|
|
{
|
|
|
|
public:
|
2023-05-31 21:11:03 +00:00
|
|
|
virtual ~Archive() = default;
|
2015-03-17 20:59:39 +00:00
|
|
|
|
2023-05-31 21:11:03 +00:00
|
|
|
/// List all resources contained in this archive.
|
2023-12-17 14:20:48 +00:00
|
|
|
virtual void listResources(FileMap& out) = 0;
|
2020-12-29 20:45:59 +00:00
|
|
|
|
|
|
|
/// True if this archive contains the provided normalized file.
|
2024-01-17 23:13:34 +00:00
|
|
|
virtual bool contains(Path::NormalizedView file) const = 0;
|
2020-12-29 20:45:59 +00:00
|
|
|
|
|
|
|
virtual std::string getDescription() const = 0;
|
2015-03-17 20:59:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|