wowlib
0.0.0
Read & write World of Warcraft client files — a C++26 core
Toggle main menu visibility
Loading...
Searching...
No Matches
storage_backend.hpp
Go to the documentation of this file.
1
#pragma once
2
5
6
#include <concepts>
7
8
#include <
wowlib/core/buffer.hpp
>
9
#include <
wowlib/core/client_version.hpp
>
10
#include <
wowlib/core/error.hpp
>
11
#include <
wowlib/core/file_key.hpp
>
12
13
namespace
wowlib::fs
{
20
template
<
typename
B>
concept
StorageBackend
= std::movable<B> &&
requires
(B b,
const
FileKey
& key) {
21
{ b.readFile(key) } -> std::same_as<Result<FileBuffer>>; { b.exists(key) } -> std::same_as<bool>; {
22
B::kind()
23
} -> std::same_as<StorageKind>;
24
};
25
}
buffer.hpp
The owning byte buffer file contents are read into.
client_version.hpp
Client version identity, the flavor axis that separates a client's CONTENT version from the engine ge...
wowlib::fs::StorageBackend
The storage backend contract: what MpqStorage and CascStorage implement and ClientFileSystem composes...
Definition
storage_backend.hpp:20
error.hpp
The error-handling vocabulary: ErrorCode, Error and the Result<T> alias every fallible wowlib operati...
file_key.hpp
File identity types: the strong FileDataID and the FileKey a read request travels as.
wowlib::fs
Definition
table_core.hpp:46
wowlib::FileKey
Definition
file_key.hpp:26
src
wowlib
fs
storage_backend.hpp
Generated by
1.17.0