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