Porytiles
Loading...
Searching...
No Matches
noop_artifact_checksum_provider.hpp
Go to the documentation of this file.
1#pragma once
2
6
7namespace porytiles2 {
8
17 public:
19
20 [[nodiscard]] std::unordered_map<ArtifactKey, std::string>
21 compute_tileset_artifact_checksums(const std::string &tileset_name) const override;
22
23 [[nodiscard]] std::unordered_map<ArtifactKey, std::string>
24 load_cached_tileset_checksums(const std::string &tileset_name) const override;
25
27 const std::string &tileset_name, const std::unordered_map<ArtifactKey, std::string> &checksums) const override;
28};
29
30} // namespace porytiles2
Abstract service for managing artifact checksums.
An implementation of ArtifactChecksumProvider that just does nothing.
std::unordered_map< ArtifactKey, std::string > load_cached_tileset_checksums(const std::string &tileset_name) const override
Loads the cached checksums for the given Tileset.
std::unordered_map< ArtifactKey, std::string > compute_tileset_artifact_checksums(const std::string &tileset_name) const override
Computes checksums for the artifacts that belong to the given Tileset.
Result< void > cache_tileset_checksums(const std::string &tileset_name, const std::unordered_map< ArtifactKey, std::string > &checksums) const override
Caches checksums for the given Tileset to persistent storage.
std::expected< T, E > Result
A result with some type T on success, otherwise an error of type E.
Definition result.hpp:25